i-bash/configure

32832 lines
848 KiB
Text
Raw Normal View History

1996-12-23 17:02:34 +00:00
#! /bin/sh
# From configure.in for Bash 4.2, version 4.037.
2001-11-13 17:56:06 +00:00
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.63 for bash 4.2-release.
2001-11-13 17:56:06 +00:00
#
# Report bugs to <bug-bash@gnu.org>.
#
2009-01-12 13:36:28 +00:00
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2001-11-13 17:56:06 +00:00
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
2004-07-27 13:29:18 +00:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2004-07-27 13:29:18 +00:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-01-12 13:36:28 +00:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2006-10-10 14:15:34 +00:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2009-01-12 13:36:28 +00:00
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
2004-07-27 13:29:18 +00:00
fi
# Support unset when possible.
2006-10-10 14:15:34 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
as_unset=unset
else
as_unset=false
fi
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
{ (exit 1); exit 1; }
fi
2006-10-10 14:15:34 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
2009-01-12 13:36:28 +00:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2006-10-10 14:15:34 +00:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2009-01-12 13:36:28 +00:00
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
2006-10-10 14:15:34 +00:00
# Required to use basename.
2009-01-12 13:36:28 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2006-10-10 14:15:34 +00:00
as_expr=expr
else
as_expr=false
fi
2009-01-12 13:36:28 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2006-10-10 14:15:34 +00:00
as_basename=basename
else
as_basename=false
fi
2004-07-27 13:29:18 +00:00
# Name of the executable.
2009-01-12 13:36:28 +00:00
as_me=`$as_basename -- "$0" ||
2004-07-27 13:29:18 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2009-01-12 13:36:28 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# CDPATH.
$as_unset CDPATH
2006-10-10 14:15:34 +00:00
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if test "x$CONFIG_SHELL" = x; then
if (eval ":") 2>/dev/null; then
as_have_required=yes
else
as_have_required=no
2004-07-27 13:29:18 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if test $as_have_required = yes && (eval ":
(as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=\$LINENO
as_lineno_2=\$LINENO
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
:
else
as_candidate_shells=
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
2009-01-12 13:36:28 +00:00
case $as_dir in
2004-07-27 13:29:18 +00:00
/*)
2009-01-12 13:36:28 +00:00
for as_base in sh bash ksh sh5; do
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
done;;
esac
done
IFS=$as_save_IFS
for as_shell in $as_candidate_shells $SHELL; do
# Try only shells that exist, to save several forks.
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
:
_ASEOF
}; then
CONFIG_SHELL=$as_shell
as_have_required=yes
if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
:
(as_func_return () {
(exit $1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = "$1" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test $exitcode = 0) || { (exit 1); exit 1; }
(
2004-07-27 13:29:18 +00:00
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2009-01-12 13:36:28 +00:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
_ASEOF
}; then
break
fi
fi
done
if test "x$CONFIG_SHELL" != x; then
for as_var in BASH_ENV ENV
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi
if test $as_have_required = no; then
echo This script requires a shell more modern than all the
echo shells that I found on your system. Please install a
echo modern shell, or manually run the script under such a
echo shell if you do have one.
{ (exit 1); exit 1; }
fi
fi
fi
(eval "as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0") || {
echo No shell found that supports shell functions.
echo Please tell bug-autoconf@gnu.org about your system,
echo including any error possibly output before this message.
echo This can help us improve future autoconf versions.
echo Configuration will now proceed without shell functions.
}
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2004-07-27 13:29:18 +00:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2009-01-12 13:36:28 +00:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2004-07-27 13:29:18 +00:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2009-01-12 13:36:28 +00:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2004-07-27 13:29:18 +00:00
sed '
2009-01-12 13:36:28 +00:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2004-07-27 13:29:18 +00:00
N
2009-01-12 13:36:28 +00:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2004-07-27 13:29:18 +00:00
t loop
2009-01-12 13:36:28 +00:00
s/-\n.*//
2004-07-27 13:29:18 +00:00
' >$as_me.lineno &&
2009-01-12 13:36:28 +00:00
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2004-07-27 13:29:18 +00:00
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
2009-01-12 13:36:28 +00:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2004-07-27 13:29:18 +00:00
# Exit status is that of the last command.
exit
}
2009-01-12 13:36:28 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2001-11-13 17:56:06 +00:00
as_expr=expr
else
as_expr=false
fi
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
rm -f conf$$ conf$$.exe conf$$.file
2009-01-12 13:36:28 +00:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
2001-11-13 17:56:06 +00:00
as_ln_s='ln -s'
2009-01-12 13:36:28 +00:00
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
2001-11-13 17:56:06 +00:00
fi
else
as_ln_s='cp -p'
fi
2009-01-12 13:36:28 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
1996-12-23 17:02:34 +00:00
2006-10-10 14:15:34 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
2009-01-12 13:36:28 +00:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
2004-07-27 13:29:18 +00:00
# Sed expression to map a string onto a valid CPP name.
2006-10-10 14:15:34 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2004-07-27 13:29:18 +00:00
# Sed expression to map a string onto a valid variable name.
2006-10-10 14:15:34 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
exec 7<&0 </dev/null 6>&1
2001-11-13 17:56:06 +00:00
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1996-08-26 18:22:31 +00:00
#
2001-11-13 17:56:06 +00:00
# Initializations.
#
1996-12-23 17:02:34 +00:00
ac_default_prefix=/usr/local
2009-01-12 13:36:28 +00:00
ac_clean_files=
2006-10-10 14:15:34 +00:00
ac_config_libobj_dir=.
2009-01-12 13:36:28 +00:00
LIBOBJS=
2001-11-13 17:56:06 +00:00
cross_compiling=no
subdirs=
2004-07-27 13:29:18 +00:00
MFLAGS=
MAKEFLAGS=
2001-11-13 17:56:06 +00:00
SHELL=${CONFIG_SHELL-/bin/sh}
2004-07-27 13:29:18 +00:00
# Identity of this package.
PACKAGE_NAME='bash'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='4.2-release'
PACKAGE_STRING='bash 4.2-release'
2004-07-27 13:29:18 +00:00
PACKAGE_BUGREPORT='bug-bash@gnu.org'
2001-11-13 17:56:06 +00:00
ac_unique_file="shell.h"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
2009-01-12 13:36:28 +00:00
#ifdef HAVE_SYS_TYPES_H
2001-11-13 17:56:06 +00:00
# include <sys/types.h>
#endif
2009-01-12 13:36:28 +00:00
#ifdef HAVE_SYS_STAT_H
2001-11-13 17:56:06 +00:00
# include <sys/stat.h>
#endif
2009-01-12 13:36:28 +00:00
#ifdef STDC_HEADERS
2001-11-13 17:56:06 +00:00
# include <stdlib.h>
# include <stddef.h>
#else
2009-01-12 13:36:28 +00:00
# ifdef HAVE_STDLIB_H
2001-11-13 17:56:06 +00:00
# include <stdlib.h>
# endif
#endif
2009-01-12 13:36:28 +00:00
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2001-11-13 17:56:06 +00:00
# include <memory.h>
# endif
# include <string.h>
#endif
2009-01-12 13:36:28 +00:00
#ifdef HAVE_STRINGS_H
2001-11-13 17:56:06 +00:00
# include <strings.h>
#endif
2009-01-12 13:36:28 +00:00
#ifdef HAVE_INTTYPES_H
2001-11-13 17:56:06 +00:00
# include <inttypes.h>
#endif
2009-01-12 13:36:28 +00:00
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
2001-11-13 17:56:06 +00:00
# include <unistd.h>
#endif"
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
ac_header_list=
ac_func_list=
ac_subst_vars='LTLIBOBJS
LOCAL_DEFS
LOCAL_LDFLAGS
LOCAL_CFLAGS
LOCAL_LIBS
MALLOC_DEBUG
DEBUG
RELSTATUS
BASHVERS
ARFLAGS
BUILD_DIR
incdir
PROFILE_FLAGS
SHOBJ_STATUS
SHOBJ_LIBS
SHOBJ_XLDFLAGS
SHOBJ_LDFLAGS
SHOBJ_LD
SHOBJ_CFLAGS
SHOBJ_CC
JOBS_O
TERMCAP_DEP
TERMCAP_LIB
SIGLIST_O
LIBINTL_H
INTL_INC
INTL_DEP
LIBOBJS
POSUB
LTLIBINTL
LIBINTL
INTLLIBS
INTL_LIBTOOL_SUFFIX_PREFIX
INTLOBJS
GENCAT
INSTOBJEXT
DATADIRNAME
CATOBJEXT
USE_INCLUDED_LIBINTL
BUILD_INCLUDED_LIBINTL
INTLBISON
LTLIBICONV
LIBICONV
GLIBC21
ALLOCA
MSGMERGE
XGETTEXT
GMSGFMT
MSGFMT
USE_NLS
MKINSTALLDIRS
SIZE
MAKE_SHELL
SET_MAKE
YFLAGS
YACC
RANLIB
AR
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
TILDE_LIB
HIST_LIBDIR
HISTORY_DEP
HISTORY_LIB
RL_INCLUDE
RL_INCLUDEDIR
RL_LIBDIR
READLINE_DEP
READLINE_LIB
RL_MINOR
RL_MAJOR
RL_VERSION
LDFLAGS_FOR_BUILD
CPPFLAGS_FOR_BUILD
CFLAGS_FOR_BUILD
STATIC_LD
CC_FOR_BUILD
SIGNAMES_O
SIGNAMES_H
CROSS_COMPILE
EGREP
GREP
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
HELPSTRINGS
HELPINSTALL
HELPDIRDEFINE
HELPDIR
MALLOC_DEP
MALLOC_LDFLAGS
MALLOC_LIBRARY
MALLOC_LIB
MALLOC_SRC
MALLOC_TARGET
PURIFY
TESTSCRIPT
DEBUGGER_START_FILE
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
2006-10-10 14:15:34 +00:00
ac_subst_files=''
2009-01-12 13:36:28 +00:00
ac_user_opts='
enable_option_checking
with_afs
with_bash_malloc
with_curses
with_gnu_malloc
with_installed_readline
with_purecov
with_purify
enable_minimal_config
enable_alias
enable_arith_for_command
enable_array_variables
enable_bang_history
enable_brace_expansion
enable_casemod_attributes
enable_casemod_expansions
enable_command_timing
enable_cond_command
enable_cond_regexp
enable_coprocesses
enable_debugger
enable_directory_stack
enable_disabled_builtins
enable_dparen_arithmetic
enable_extended_glob
2011-11-21 20:51:19 -05:00
enable_extended_glob_default
2009-01-12 13:36:28 +00:00
enable_help_builtin
enable_history
enable_job_control
enable_multibyte
enable_net_redirections
enable_process_substitution
enable_progcomp
enable_prompt_string_decoding
enable_readline
enable_restricted
enable_select
enable_separate_helpfiles
enable_single_help_strings
enable_strict_posix_default
enable_usg_echo_default
enable_xpg_echo_default
enable_mem_scramble
enable_profiling
enable_static_link
enable_largefile
enable_nls
with_gnu_ld
enable_rpath
with_libiconv_prefix
enable_nls
2009-01-12 13:36:28 +00:00
with_included_gettext
with_libintl_prefix
'
ac_precious_vars='build_alias
host_alias
target_alias
DEBUGGER_START_FILE
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CPPFLAGS
2009-01-12 13:36:28 +00:00
YACC
YFLAGS'
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
# Initialize some variables set by options.
2001-11-13 17:56:06 +00:00
ac_init_help=
ac_init_version=false
2009-01-12 13:36:28 +00:00
ac_unrecognized_opts=
ac_unrecognized_sep=
1996-12-23 17:02:34 +00:00
# The variables have the same names as the options, with
# dashes changed to underlines.
2001-11-13 17:56:06 +00:00
cache_file=/dev/null
1996-12-23 17:02:34 +00:00
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
2001-11-13 17:56:06 +00:00
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
2009-01-12 13:36:28 +00:00
# (The list follows the same order as the GNU Coding Standards.)
1996-12-23 17:02:34 +00:00
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
2009-01-12 13:36:28 +00:00
datarootdir='${prefix}/share'
datadir='${datarootdir}'
1996-12-23 17:02:34 +00:00
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
2009-01-12 13:36:28 +00:00
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
1996-12-23 17:02:34 +00:00
ac_prev=
2009-01-12 13:36:28 +00:00
ac_dashdash=
1996-12-23 17:02:34 +00:00
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
2009-01-12 13:36:28 +00:00
eval $ac_prev=\$ac_option
1996-12-23 17:02:34 +00:00
ac_prev=
continue
fi
2009-01-12 13:36:28 +00:00
case $ac_option in
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
*) ac_optarg=yes ;;
esac
1996-12-23 17:02:34 +00:00
# Accept the important Cygnus configure options, so we can diagnose typos.
2009-01-12 13:36:28 +00:00
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
1996-12-23 17:02:34 +00:00
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2001-11-13 17:56:06 +00:00
bindir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-build | --build | --buil | --bui | --bu)
2001-11-13 17:56:06 +00:00
ac_prev=build_alias ;;
1996-12-23 17:02:34 +00:00
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
2001-11-13 17:56:06 +00:00
build_alias=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2001-11-13 17:56:06 +00:00
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-datadir | --datadir | --datadi | --datad)
1996-12-23 17:02:34 +00:00
ac_prev=datadir ;;
2009-01-12 13:36:28 +00:00
-datadir=* | --datadir=* | --datadi=* | --datad=*)
2001-11-13 17:56:06 +00:00
datadir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
| --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-disable-* | --disable-*)
2009-01-12 13:36:28 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1996-12-23 17:02:34 +00:00
# Reject names that are not valid shell variable names.
2009-01-12 13:36:28 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval enable_$ac_useropt=no ;;
-docdir | --docdir | --docdi | --doc | --do)
ac_prev=docdir ;;
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
docdir=$ac_optarg ;;
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
ac_prev=dvidir ;;
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
dvidir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-enable-* | --enable-*)
2009-01-12 13:36:28 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1996-12-23 17:02:34 +00:00
# Reject names that are not valid shell variable names.
2009-01-12 13:36:28 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
1996-12-23 17:02:34 +00:00
esac
2009-01-12 13:36:28 +00:00
eval enable_$ac_useropt=\$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
2001-11-13 17:56:06 +00:00
exec_prefix=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
2001-11-13 17:56:06 +00:00
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
1996-12-23 17:02:34 +00:00
-host | --host | --hos | --ho)
2001-11-13 17:56:06 +00:00
ac_prev=host_alias ;;
1996-12-23 17:02:34 +00:00
-host=* | --host=* | --hos=* | --ho=*)
2001-11-13 17:56:06 +00:00
host_alias=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
ac_prev=htmldir ;;
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
| --ht=*)
htmldir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
2001-11-13 17:56:06 +00:00
includedir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2001-11-13 17:56:06 +00:00
infodir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2001-11-13 17:56:06 +00:00
libdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
2001-11-13 17:56:06 +00:00
libexecdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
localedir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-localstatedir | --localstatedir | --localstatedi | --localstated \
2009-01-12 13:36:28 +00:00
| --localstate | --localstat | --localsta | --localst | --locals)
1996-12-23 17:02:34 +00:00
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2009-01-12 13:36:28 +00:00
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2001-11-13 17:56:06 +00:00
localstatedir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2001-11-13 17:56:06 +00:00
mandir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
2004-07-27 13:29:18 +00:00
| --no-cr | --no-c | -n)
1996-12-23 17:02:34 +00:00
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2001-11-13 17:56:06 +00:00
oldincludedir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2001-11-13 17:56:06 +00:00
prefix=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2001-11-13 17:56:06 +00:00
program_prefix=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2001-11-13 17:56:06 +00:00
program_suffix=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
2001-11-13 17:56:06 +00:00
program_transform_name=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
ac_prev=pdfdir ;;
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
pdfdir=$ac_optarg ;;
-psdir | --psdir | --psdi | --psd | --ps)
ac_prev=psdir ;;
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
psdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
2001-11-13 17:56:06 +00:00
sbindir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
2001-11-13 17:56:06 +00:00
sharedstatedir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
2001-11-13 17:56:06 +00:00
site=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2001-11-13 17:56:06 +00:00
srcdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2001-11-13 17:56:06 +00:00
sysconfdir=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-target | --target | --targe | --targ | --tar | --ta | --t)
2001-11-13 17:56:06 +00:00
ac_prev=target_alias ;;
1996-12-23 17:02:34 +00:00
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2001-11-13 17:56:06 +00:00
target_alias=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
2001-11-13 17:56:06 +00:00
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
1996-12-23 17:02:34 +00:00
-with-* | --with-*)
2009-01-12 13:36:28 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1996-12-23 17:02:34 +00:00
# Reject names that are not valid shell variable names.
2009-01-12 13:36:28 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
1996-12-23 17:02:34 +00:00
esac
2009-01-12 13:36:28 +00:00
eval with_$ac_useropt=\$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-without-* | --without-*)
2009-01-12 13:36:28 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1996-12-23 17:02:34 +00:00
# Reject names that are not valid shell variable names.
2009-01-12 13:36:28 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval with_$ac_useropt=no ;;
1996-12-23 17:02:34 +00:00
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2001-11-13 17:56:06 +00:00
x_includes=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2001-11-13 17:56:06 +00:00
x_libraries=$ac_optarg ;;
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2001-11-13 17:56:06 +00:00
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
;;
2001-11-13 17:56:06 +00:00
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
eval $ac_envvar=\$ac_optarg
2001-11-13 17:56:06 +00:00
export $ac_envvar ;;
1996-12-23 17:02:34 +00:00
*)
2001-11-13 17:56:06 +00:00
# FIXME: should be removed in autoconf 3.0.
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2001-11-13 17:56:06 +00:00
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2001-11-13 17:56:06 +00:00
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1996-12-23 17:02:34 +00:00
;;
esac
done
if test -n "$ac_prev"; then
2001-11-13 17:56:06 +00:00
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
if test -n "$ac_unrecognized_opts"; then
case $enable_option_checking in
no) ;;
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
{ (exit 1); exit 1; }; } ;;
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2001-11-13 17:56:06 +00:00
esac
2009-01-12 13:36:28 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Check all directory arguments for consistency.
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
1996-12-23 17:02:34 +00:00
do
2009-01-12 13:36:28 +00:00
eval ac_val=\$$ac_var
# Remove trailing slashes.
2001-11-13 17:56:06 +00:00
case $ac_val in
2009-01-12 13:36:28 +00:00
*/ )
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
eval $ac_var=\$ac_val;;
1996-12-23 17:02:34 +00:00
esac
2009-01-12 13:36:28 +00:00
# Be sure to have absolute directory names.
case $ac_val in
[\\/$]* | ?:[\\/]* ) continue;;
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
esac
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
done
2001-11-13 17:56:06 +00:00
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
2004-07-27 13:29:18 +00:00
# FIXME: To remove some day.
2001-11-13 17:56:06 +00:00
build=$build_alias
host=$host_alias
target=$target_alias
2004-07-27 13:29:18 +00:00
# FIXME: To remove some day.
2001-11-13 17:56:06 +00:00
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2001-11-13 17:56:06 +00:00
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
test "$silent" = yes && exec 6>/dev/null
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
{ (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
2009-01-12 13:36:28 +00:00
# Try the directory containing this script, then the parent directory.
ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_myself" : 'X\(//\)[^/]' \| \
X"$as_myself" : 'X\(//\)$' \| \
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
1996-12-23 17:02:34 +00:00
srcdir=$ac_confdir
2009-01-12 13:36:28 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
1996-12-23 17:02:34 +00:00
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
2009-01-12 13:36:28 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2006-10-10 14:15:34 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
eval ac_env_${ac_var}_set=\${${ac_var}+set}
eval ac_env_${ac_var}_value=\$${ac_var}
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
2004-07-27 13:29:18 +00:00
cat <<_ACEOF
\`configure' configures bash 4.2-release to adapt to many kinds of systems.
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
Usage: $0 [OPTION]... [VAR=VALUE]...
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
2009-01-12 13:36:28 +00:00
[$ac_default_prefix]
2001-11-13 17:56:06 +00:00
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2009-01-12 13:36:28 +00:00
[PREFIX]
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
For better control, use the options below.
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
Fine tuning of the installation directories:
2009-01-12 13:36:28 +00:00
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/bash]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat <<\_ACEOF
2001-11-13 17:56:06 +00:00
System types:
--build=BUILD configure for building on BUILD [guessed]
2004-07-27 13:29:18 +00:00
--host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bash 4.2-release:";;
2001-11-13 17:56:06 +00:00
esac
2004-07-27 13:29:18 +00:00
cat <<\_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
Optional Features:
2009-01-12 13:36:28 +00:00
--disable-option-checking ignore unrecognized --enable/--with options
2001-11-13 17:56:06 +00:00
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2002-07-17 14:10:11 +00:00
--enable-minimal-config a minimal sh-like configuration
--enable-alias enable shell aliases
--enable-arith-for-command
enable arithmetic for command
--enable-array-variables
include shell array variables
--enable-bang-history turn on csh-style history substitution
--enable-brace-expansion
include brace expansion
2009-01-12 13:36:28 +00:00
--enable-casemod-attributes
include case-modifying variable attributes
--enable-casemod-expansions
include case-modifying word expansions
2002-07-17 14:10:11 +00:00
--enable-command-timing enable the time reserved word and command timing
--enable-cond-command enable the conditional command
2009-01-12 13:36:28 +00:00
--enable-cond-regexp enable extended regular expression matching in
2004-07-27 13:29:18 +00:00
conditional commands
2009-01-12 13:36:28 +00:00
--enable-coprocesses enable coprocess support and the coproc reserved
word
2004-07-27 13:29:18 +00:00
--enable-debugger enable support for bash debugger
2002-07-17 14:10:11 +00:00
--enable-directory-stack
enable builtins pushd/popd/dirs
--enable-disabled-builtins
allow disabled builtins to still be invoked
--enable-dparen-arithmetic
include ((...)) command
--enable-extended-glob include ksh-style extended pattern matching
2011-11-21 20:51:19 -05:00
--enable-extended-glob-default
force extended pattern matching to be enabled by
default
2002-07-17 14:10:11 +00:00
--enable-help-builtin include the help builtin
--enable-history turn on command history
--enable-job-control enable job control features
2004-07-27 13:29:18 +00:00
--enable-multibyte enable multibyte characters if OS supports them
2002-07-17 14:10:11 +00:00
--enable-net-redirections
enable /dev/tcp/host/port redirection
--enable-process-substitution
enable process substitution
--enable-progcomp enable programmable completion and the complete
builtin
--enable-prompt-string-decoding
turn on escape character decoding in prompts
--enable-readline turn on command line editing
--enable-restricted enable a restricted shell
--enable-select include select command
--enable-separate-helpfiles
use external files for help builtin documentation
2005-12-07 14:08:12 +00:00
--enable-single-help-strings
store help documentation as a single string to ease
translation
--enable-strict-posix-default
configure bash to be posix-conformant by default
2002-07-17 14:10:11 +00:00
--enable-usg-echo-default
a synonym for --enable-xpg-echo-default
--enable-xpg-echo-default
make the echo builtin expand escape sequences by
default
--enable-mem-scramble scramble memory on calls to malloc and free
--enable-profiling allow profiling with gprof
--enable-static-link link bash statically, for use as a root shell
2001-11-13 17:56:06 +00:00
--disable-largefile omit support for large files
2004-07-27 13:29:18 +00:00
--disable-nls do not use Native Language Support
--disable-rpath do not hardcode runtime library paths
2001-11-13 17:56:06 +00:00
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2002-07-17 14:10:11 +00:00
--with-afs if you are running AFS
--with-bash-malloc use the Bash version of malloc
--with-curses use the curses library instead of the termcap
library
--with-gnu-malloc synonym for --with-bash-malloc
--with-installed-readline
use a version of the readline library that is
already installed
--with-purecov configure to postprocess with pure coverage
--with-purify configure to postprocess with purify
2004-07-27 13:29:18 +00:00
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-included-gettext use the GNU gettext library included here
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir
2001-11-13 17:56:06 +00:00
Some influential environment variables:
2004-07-27 13:29:18 +00:00
DEBUGGER_START_FILE
location of bash debugger initialization file
2001-11-13 17:56:06 +00:00
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
2009-01-12 13:36:28 +00:00
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
2001-11-13 17:56:06 +00:00
CPP C preprocessor
2009-01-12 13:36:28 +00:00
YACC The `Yet Another C Compiler' implementation to use. Defaults to
the first program found out of: `bison -y', `byacc', `yacc'.
YFLAGS The list of arguments that will be passed by default to $YACC.
This script will default YFLAGS to the empty string to avoid a
default value of `-d' given by some make applications.
2001-11-13 17:56:06 +00:00
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <bug-bash@gnu.org>.
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
ac_status=$?
2001-11-13 17:56:06 +00:00
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
2004-07-27 13:29:18 +00:00
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2009-01-12 13:36:28 +00:00
test -d "$ac_dir" ||
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
continue
2004-07-27 13:29:18 +00:00
ac_builddir=.
2009-01-12 13:36:28 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
case $srcdir in
2009-01-12 13:36:28 +00:00
.) # We are building in place.
2004-07-27 13:29:18 +00:00
ac_srcdir=.
2009-01-12 13:36:28 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2004-07-27 13:29:18 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2009-01-12 13:36:28 +00:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2006-10-10 14:15:34 +00:00
esac
2009-01-12 13:36:28 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure.
if test -f "$ac_srcdir/configure.gnu"; then
echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
elif test -f "$ac_srcdir/configure"; then
echo &&
$SHELL "$ac_srcdir/configure" --help=recursive
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
2001-11-13 17:56:06 +00:00
done
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
test -n "$ac_init_help" && exit $ac_status
2001-11-13 17:56:06 +00:00
if $ac_init_version; then
2004-07-27 13:29:18 +00:00
cat <<\_ACEOF
bash configure 4.2-release
2009-01-12 13:36:28 +00:00
generated by GNU Autoconf 2.63
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2001-11-13 17:56:06 +00:00
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
exit
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
cat >config.log <<_ACEOF
2001-11-13 17:56:06 +00:00
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
1996-12-23 17:02:34 +00:00
It was created by bash $as_me 4.2-release, which was
2009-01-12 13:36:28 +00:00
generated by GNU Autoconf 2.63. Invocation command line was
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
$ $0 $@
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
exec 5>>config.log
2001-11-13 17:56:06 +00:00
{
cat <<_ASUNAME
2004-07-27 13:29:18 +00:00
## --------- ##
## Platform. ##
## --------- ##
2001-11-13 17:56:06 +00:00
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009-01-12 13:36:28 +00:00
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001-11-13 17:56:06 +00:00
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
2009-01-12 13:36:28 +00:00
$as_echo "PATH: $as_dir"
2004-07-27 13:29:18 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
} >&5
2004-07-27 13:29:18 +00:00
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
2001-11-13 17:56:06 +00:00
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
2006-10-10 14:15:34 +00:00
# Strip out --silent because we don't want to record it for future runs.
2001-11-13 17:56:06 +00:00
# Also quote any args containing shell meta-characters.
2006-10-10 14:15:34 +00:00
# Make two passes to allow for proper duplicate-argument suppression.
2001-11-13 17:56:06 +00:00
ac_configure_args=
2006-10-10 14:15:34 +00:00
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
2001-11-13 17:56:06 +00:00
do
2006-10-10 14:15:34 +00:00
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
2009-01-12 13:36:28 +00:00
*\'*)
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2006-10-10 14:15:34 +00:00
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
2009-01-12 13:36:28 +00:00
ac_configure_args="$ac_configure_args '$ac_arg'"
2006-10-10 14:15:34 +00:00
;;
esac
done
2001-11-13 17:56:06 +00:00
done
2006-10-10 14:15:34 +00:00
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2001-11-13 17:56:06 +00:00
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
2009-01-12 13:36:28 +00:00
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001-11-13 17:56:06 +00:00
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
2004-07-27 13:29:18 +00:00
{
echo
2006-10-10 14:15:34 +00:00
2004-07-27 13:29:18 +00:00
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
2009-01-12 13:36:28 +00:00
(
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
done
2001-11-13 17:56:06 +00:00
(set) 2>&1 |
2009-01-12 13:36:28 +00:00
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2001-11-13 17:56:06 +00:00
sed -n \
2009-01-12 13:36:28 +00:00
"s/'\''/'\''\\\\'\'''\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
;; #(
2001-11-13 17:56:06 +00:00
*)
2009-01-12 13:36:28 +00:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001-11-13 17:56:06 +00:00
;;
2009-01-12 13:36:28 +00:00
esac |
sort
)
2004-07-27 13:29:18 +00:00
echo
2006-10-10 14:15:34 +00:00
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
2009-01-12 13:36:28 +00:00
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
$as_echo "$ac_var='\''$ac_val'\''"
2006-10-10 14:15:34 +00:00
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
2009-01-12 13:36:28 +00:00
## ------------------- ##
## File substitutions. ##
## ------------------- ##
2006-10-10 14:15:34 +00:00
_ASBOX
echo
for ac_var in $ac_subst_files
do
2009-01-12 13:36:28 +00:00
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
$as_echo "$ac_var='\''$ac_val'\''"
2006-10-10 14:15:34 +00:00
done | sort
echo
fi
2004-07-27 13:29:18 +00:00
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
2009-01-12 13:36:28 +00:00
cat confdefs.h
2004-07-27 13:29:18 +00:00
echo
fi
test "$ac_signal" != 0 &&
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: caught signal $ac_signal"
$as_echo "$as_me: exit $exit_status"
2004-07-27 13:29:18 +00:00
} >&5
2009-01-12 13:36:28 +00:00
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001-11-13 17:56:06 +00:00
exit $exit_status
2009-01-12 13:36:28 +00:00
' 0
2001-11-13 17:56:06 +00:00
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2009-01-12 13:36:28 +00:00
rm -f -r conftest* confdefs.h
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
2001-11-13 17:56:06 +00:00
# Let the site file select an alternate cache file if it wants to.
2009-01-12 13:36:28 +00:00
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
ac_site_file1=$prefix/share/config.site
ac_site_file2=$prefix/etc/config.site
else
ac_site_file1=$ac_default_prefix/share/config.site
ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
test "x$ac_site_file" = xNONE && continue
2001-11-13 17:56:06 +00:00
if test -r "$ac_site_file"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2004-07-27 13:29:18 +00:00
sed 's/^/| /' "$ac_site_file" >&5
2001-11-13 17:56:06 +00:00
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
2001-11-13 17:56:06 +00:00
case $cache_file in
2009-01-12 13:36:28 +00:00
[\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";;
2001-11-13 17:56:06 +00:00
esac
fi
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
2001-11-13 17:56:06 +00:00
>$cache_file
fi
2009-01-12 13:36:28 +00:00
ac_header_list="$ac_header_list sys/time.h"
ac_header_list="$ac_header_list unistd.h"
ac_func_list="$ac_func_list alarm"
ac_func_list="$ac_func_list fpurge"
ac_func_list="$ac_func_list __fpurge"
2011-11-21 20:51:19 -05:00
ac_func_list="$ac_func_list snprintf"
ac_func_list="$ac_func_list vsnprintf"
2001-11-13 17:56:06 +00:00
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
2009-01-12 13:36:28 +00:00
for ac_var in $ac_precious_vars; do
2001-11-13 17:56:06 +00:00
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
2009-01-12 13:36:28 +00:00
eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value
2001-11-13 17:56:06 +00:00
case $ac_old_set,$ac_new_set in
set,)
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001-11-13 17:56:06 +00:00
ac_cache_corrupted=: ;;
,set)
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001-11-13 17:56:06 +00:00
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
2009-01-12 13:36:28 +00:00
# differences in whitespace do not lead to failure.
ac_old_val_w=`echo x $ac_old_val`
ac_new_val_w=`echo x $ac_new_val`
if test "$ac_old_val_w" != "$ac_new_val_w"; then
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac_cache_corrupted=:
else
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
eval $ac_var=\$ac_old_val
fi
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2001-11-13 17:56:06 +00:00
fi;;
esac
2004-07-27 13:29:18 +00:00
# Pass precious variables to config.status.
2001-11-13 17:56:06 +00:00
if test "$ac_new_set" = set; then
case $ac_new_val in
2009-01-12 13:36:28 +00:00
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004-07-27 13:29:18 +00:00
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001-11-13 17:56:06 +00:00
esac
fi
done
if $ac_cache_corrupted; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
ac_aux_dir=
2009-01-12 13:36:28 +00:00
for ac_dir in ./support "$srcdir"/./support; do
if test -f "$ac_dir/install-sh"; then
2001-11-13 17:56:06 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
2009-01-12 13:36:28 +00:00
elif test -f "$ac_dir/install.sh"; then
2001-11-13 17:56:06 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
2009-01-12 13:36:28 +00:00
elif test -f "$ac_dir/shtool"; then
2001-11-13 17:56:06 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
fi
2009-01-12 13:36:28 +00:00
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
ac_config_headers="$ac_config_headers config.h"
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
BASHVERS=4.2
2009-02-19 22:21:29 +00:00
RELSTATUS=release
2002-07-17 14:10:11 +00:00
case "$RELSTATUS" in
2009-01-12 13:36:28 +00:00
alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2002-07-17 14:10:11 +00:00
*) DEBUG= MALLOC_DEBUG= ;;
esac
2001-11-13 17:56:06 +00:00
# Make sure we can run config.sub.
2009-01-12 13:36:28 +00:00
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_build+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
else
ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
{ (exit 1); exit 1; }; };;
esac
2001-11-13 17:56:06 +00:00
build=$ac_cv_build
2009-01-12 13:36:28 +00:00
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_host+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
else
if test "x$host_alias" = x; then
ac_cv_host=$ac_cv_build
else
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
fi
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
{ (exit 1); exit 1; }; };;
esac
2001-11-13 17:56:06 +00:00
host=$ac_cv_host
2009-01-12 13:36:28 +00:00
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
opt_bash_malloc=yes
opt_purify=no
opt_purecov=no
opt_afs=no
opt_curses=no
opt_with_installed_readline=no
#htmldir=
case "${host_cpu}-${host_os}" in
alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2000-03-17 21:46:59 +00:00
mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2005-12-07 14:08:12 +00:00
#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2002-07-17 14:10:11 +00:00
#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2001-11-13 17:56:06 +00:00
*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2000-03-17 21:46:59 +00:00
*-aix*) opt_bash_malloc=no ;; # AIX machines
*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2001-04-06 19:14:31 +00:00
*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2000-03-17 21:46:59 +00:00
*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2005-12-07 14:08:12 +00:00
*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2000-03-17 21:46:59 +00:00
*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
*-beos*) opt_bash_malloc=no ;; # they say it's suitable
2001-04-06 19:14:31 +00:00
*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1996-12-23 17:02:34 +00:00
esac
2002-07-17 14:10:11 +00:00
# memory scrambling on free()
case "${host_os}" in
sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
*) opt_memscramble=yes ;;
esac
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-afs was given.
1997-06-05 14:59:13 +00:00
if test "${with_afs+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_afs; opt_afs=$withval
fi
1997-06-05 14:59:13 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-bash-malloc was given.
2000-03-17 21:46:59 +00:00
if test "${with_bash_malloc+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_bash_malloc; opt_bash_malloc=$withval
fi
2000-03-17 21:46:59 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-curses was given.
1997-06-05 14:59:13 +00:00
if test "${with_curses+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_curses; opt_curses=$withval
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-gnu-malloc was given.
1997-06-05 14:59:13 +00:00
if test "${with_gnu_malloc+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_gnu_malloc; opt_bash_malloc=$withval
fi
1997-06-05 14:59:13 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-installed-readline was given.
1999-02-19 17:11:39 +00:00
if test "${with_installed_readline+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_installed_readline; opt_with_installed_readline=$withval
fi
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-purecov was given.
1997-06-05 14:59:13 +00:00
if test "${with_purecov+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_purecov; opt_purecov=$withval
fi
1997-06-05 14:59:13 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-purify was given.
1996-12-23 17:02:34 +00:00
if test "${with_purify+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_purify; opt_purify=$withval
fi
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
if test "$opt_bash_malloc" = yes; then
1997-06-05 14:59:13 +00:00
MALLOC_TARGET=malloc
MALLOC_SRC=malloc.c
2001-11-13 17:56:06 +00:00
MALLOC_LIB='-lmalloc'
MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
MALLOC_DEP='$(MALLOC_LIBRARY)'
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define USING_BASH_MALLOC 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
MALLOC_LIB=
MALLOC_LIBRARY=
MALLOC_LDFLAGS=
MALLOC_DEP=
1996-12-23 17:02:34 +00:00
fi
if test "$opt_purify" = yes; then
1997-06-05 14:59:13 +00:00
PURIFY="purify "
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define DISABLE_MALLOC_WRAPPERS 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
1996-12-23 17:02:34 +00:00
else
PURIFY=
fi
1997-06-05 14:59:13 +00:00
if test "$opt_purecov" = yes; then
PURIFY="${PURIFY}purecov"
fi
1996-12-23 17:02:34 +00:00
if test "$opt_afs" = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define AFS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
1997-06-05 14:59:13 +00:00
if test "$opt_curses" = yes; then
prefer_curses=yes
fi
2004-07-27 13:29:18 +00:00
if test -z "${DEBUGGER_START_FILE}"; then
2009-01-12 13:36:28 +00:00
DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2004-07-27 13:29:18 +00:00
fi
1996-12-23 17:02:34 +00:00
opt_minimal_config=no
opt_job_control=yes
opt_alias=yes
opt_readline=yes
opt_history=yes
opt_bang_history=yes
opt_dirstack=yes
opt_restricted=yes
opt_process_subst=yes
opt_prompt_decoding=yes
opt_select=yes
opt_help=yes
opt_array_variables=yes
opt_dparen_arith=yes
1998-04-17 19:52:44 +00:00
opt_extended_glob=yes
1996-12-23 17:02:34 +00:00
opt_brace_expansion=yes
opt_disabled_builtins=no
opt_command_timing=yes
2000-03-17 21:46:59 +00:00
opt_xpg_echo=no
2005-12-07 14:08:12 +00:00
opt_strict_posix=no
1998-04-17 19:52:44 +00:00
opt_cond_command=yes
2004-07-27 13:29:18 +00:00
opt_cond_regexp=yes
2009-01-12 13:36:28 +00:00
opt_coproc=yes
2000-03-17 21:46:59 +00:00
opt_arith_for_command=yes
opt_net_redirs=yes
opt_progcomp=yes
2002-07-17 14:10:11 +00:00
opt_separate_help=no
2004-07-27 13:29:18 +00:00
opt_multibyte=yes
opt_debugger=yes
2005-12-07 14:08:12 +00:00
opt_single_longdoc_strings=yes
2009-01-12 13:36:28 +00:00
opt_casemod_attrs=yes
opt_casemod_expansions=yes
2011-11-21 20:51:19 -05:00
opt_extglob_default=no
1998-04-17 19:52:44 +00:00
opt_static_link=no
opt_profiling=no
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --enable-minimal-config was given.
1996-12-23 17:02:34 +00:00
if test "${enable_minimal_config+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_minimal_config; opt_minimal_config=$enableval
fi
1996-12-23 17:02:34 +00:00
if test $opt_minimal_config = yes; then
opt_job_control=no opt_alias=no opt_readline=no
opt_history=no opt_bang_history=no opt_dirstack=no
opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2000-03-17 21:46:59 +00:00
opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2002-07-17 14:10:11 +00:00
opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2009-01-12 13:36:28 +00:00
opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2011-11-21 20:51:19 -05:00
opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
# Check whether --enable-alias was given.
1996-12-23 17:02:34 +00:00
if test "${enable_alias+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_alias; opt_alias=$enableval
fi
# Check whether --enable-arith-for-command was given.
2000-03-17 21:46:59 +00:00
if test "${enable_arith_for_command+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
fi
# Check whether --enable-array-variables was given.
1997-06-05 14:59:13 +00:00
if test "${enable_array_variables+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_array_variables; opt_array_variables=$enableval
fi
# Check whether --enable-bang-history was given.
1996-12-23 17:02:34 +00:00
if test "${enable_bang_history+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_bang_history; opt_bang_history=$enableval
fi
# Check whether --enable-brace-expansion was given.
1997-06-05 14:59:13 +00:00
if test "${enable_brace_expansion+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
fi
# Check whether --enable-casemod-attributes was given.
if test "${enable_casemod_attributes+set}" = set; then
enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
fi
# Check whether --enable-casemod-expansions was given.
if test "${enable_casemod_expansions+set}" = set; then
enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
fi
# Check whether --enable-command-timing was given.
1997-06-05 14:59:13 +00:00
if test "${enable_command_timing+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_command_timing; opt_command_timing=$enableval
fi
# Check whether --enable-cond-command was given.
1998-04-17 19:52:44 +00:00
if test "${enable_cond_command+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_cond_command; opt_cond_command=$enableval
fi
# Check whether --enable-cond-regexp was given.
2004-07-27 13:29:18 +00:00
if test "${enable_cond_regexp+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
fi
# Check whether --enable-coprocesses was given.
if test "${enable_coprocesses+set}" = set; then
enableval=$enable_coprocesses; opt_coproc=$enableval
fi
# Check whether --enable-debugger was given.
2004-07-27 13:29:18 +00:00
if test "${enable_debugger+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_debugger; opt_debugger=$enableval
fi
# Check whether --enable-directory-stack was given.
1997-06-05 14:59:13 +00:00
if test "${enable_directory_stack+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_directory_stack; opt_dirstack=$enableval
fi
# Check whether --enable-disabled-builtins was given.
1997-06-05 14:59:13 +00:00
if test "${enable_disabled_builtins+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
fi
# Check whether --enable-dparen-arithmetic was given.
1997-06-05 14:59:13 +00:00
if test "${enable_dparen_arithmetic+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
fi
# Check whether --enable-extended-glob was given.
1998-04-17 19:52:44 +00:00
if test "${enable_extended_glob+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_extended_glob; opt_extended_glob=$enableval
fi
2011-11-21 20:51:19 -05:00
# Check whether --enable-extended-glob-default was given.
if test "${enable_extended_glob_default+set}" = set; then
enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
fi
2009-01-12 13:36:28 +00:00
# Check whether --enable-help-builtin was given.
1996-12-23 17:02:34 +00:00
if test "${enable_help_builtin+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_help_builtin; opt_help=$enableval
fi
# Check whether --enable-history was given.
1997-06-05 14:59:13 +00:00
if test "${enable_history+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_history; opt_history=$enableval
fi
# Check whether --enable-job-control was given.
1997-06-05 14:59:13 +00:00
if test "${enable_job_control+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_job_control; opt_job_control=$enableval
fi
# Check whether --enable-multibyte was given.
2004-07-27 13:29:18 +00:00
if test "${enable_multibyte+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_multibyte; opt_multibyte=$enableval
fi
# Check whether --enable-net-redirections was given.
2000-03-17 21:46:59 +00:00
if test "${enable_net_redirections+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_net_redirections; opt_net_redirs=$enableval
fi
# Check whether --enable-process-substitution was given.
1997-06-05 14:59:13 +00:00
if test "${enable_process_substitution+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_process_substitution; opt_process_subst=$enableval
fi
# Check whether --enable-progcomp was given.
2000-03-17 21:46:59 +00:00
if test "${enable_progcomp+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_progcomp; opt_progcomp=$enableval
fi
# Check whether --enable-prompt-string-decoding was given.
1997-06-05 14:59:13 +00:00
if test "${enable_prompt_string_decoding+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
fi
# Check whether --enable-readline was given.
1997-06-05 14:59:13 +00:00
if test "${enable_readline+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_readline; opt_readline=$enableval
fi
# Check whether --enable-restricted was given.
1997-06-05 14:59:13 +00:00
if test "${enable_restricted+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_restricted; opt_restricted=$enableval
fi
# Check whether --enable-select was given.
1997-06-05 14:59:13 +00:00
if test "${enable_select+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_select; opt_select=$enableval
fi
# Check whether --enable-separate-helpfiles was given.
2002-07-17 14:10:11 +00:00
if test "${enable_separate_helpfiles+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
fi
# Check whether --enable-single-help-strings was given.
2005-12-07 14:08:12 +00:00
if test "${enable_single_help_strings+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
fi
# Check whether --enable-strict-posix-default was given.
2005-12-07 14:08:12 +00:00
if test "${enable_strict_posix_default+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
fi
# Check whether --enable-usg-echo-default was given.
1996-12-23 17:02:34 +00:00
if test "${enable_usg_echo_default+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
fi
# Check whether --enable-xpg-echo-default was given.
2000-03-17 21:46:59 +00:00
if test "${enable_xpg_echo_default+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --enable-mem-scramble was given.
2002-07-17 14:10:11 +00:00
if test "${enable_mem_scramble+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_mem_scramble; opt_memscramble=$enableval
fi
# Check whether --enable-profiling was given.
1998-04-17 19:52:44 +00:00
if test "${enable_profiling+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_profiling; opt_profiling=$enableval
fi
# Check whether --enable-static-link was given.
1998-04-17 19:52:44 +00:00
if test "${enable_static_link+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_static_link; opt_static_link=$enableval
fi
1999-02-19 17:11:39 +00:00
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
if test $opt_alias = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define ALIAS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_dirstack = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define PUSHD_AND_POPD 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_restricted = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define RESTRICTED_SHELL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_process_subst = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define PROCESS_SUBSTITUTION 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_prompt_decoding = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define PROMPT_STRING_DECODE 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_select = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define SELECT_COMMAND 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_help = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HELP_BUILTIN 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_array_variables = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define ARRAY_VARS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_dparen_arith = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define DPAREN_ARITHMETIC 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_brace_expansion = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define BRACE_EXPANSION 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_disabled_builtins = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define DISABLED_BUILTINS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $opt_command_timing = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define COMMAND_TIMING 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2000-03-17 21:46:59 +00:00
if test $opt_xpg_echo = yes ; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define DEFAULT_ECHO_TO_XPG 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2005-12-07 14:08:12 +00:00
fi
if test $opt_strict_posix = yes; then
cat >>confdefs.h <<\_ACEOF
#define STRICT_POSIX 1
_ACEOF
1998-04-17 19:52:44 +00:00
fi
if test $opt_extended_glob = yes ; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1998-04-17 19:52:44 +00:00
#define EXTENDED_GLOB 1
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
2011-11-21 20:51:19 -05:00
fi
if test $opt_extglob_default = yes; then
cat >>confdefs.h <<\_ACEOF
#define EXTGLOB_DEFAULT 1
_ACEOF
else
cat >>confdefs.h <<\_ACEOF
#define EXTGLOB_DEFAULT 0
_ACEOF
1998-04-17 19:52:44 +00:00
fi
if test $opt_cond_command = yes ; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1998-04-17 19:52:44 +00:00
#define COND_COMMAND 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
if test $opt_cond_regexp = yes ; then
cat >>confdefs.h <<\_ACEOF
#define COND_REGEXP 1
_ACEOF
1998-04-17 19:52:44 +00:00
2009-01-12 13:36:28 +00:00
fi
if test $opt_coproc = yes; then
cat >>confdefs.h <<\_ACEOF
#define COPROCESS_SUPPORT 1
_ACEOF
2000-03-17 21:46:59 +00:00
fi
if test $opt_arith_for_command = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define ARITH_FOR_COMMAND 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
if test $opt_net_redirs = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define NETWORK_REDIRECTIONS 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
if test $opt_progcomp = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define PROGRAMMABLE_COMPLETION 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
if test $opt_multibyte = no; then
cat >>confdefs.h <<\_ACEOF
#define NO_MULTIBYTE_SUPPORT 1
_ACEOF
fi
if test $opt_debugger = yes; then
cat >>confdefs.h <<\_ACEOF
#define DEBUGGER 1
_ACEOF
2000-03-17 21:46:59 +00:00
2009-01-12 13:36:28 +00:00
fi
if test $opt_casemod_attrs = yes; then
cat >>confdefs.h <<\_ACEOF
#define CASEMOD_ATTRS 1
_ACEOF
fi
if test $opt_casemod_expansions = yes; then
cat >>confdefs.h <<\_ACEOF
#define CASEMOD_EXPANSIONS 1
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2002-07-17 14:10:11 +00:00
if test $opt_memscramble = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define MEMSCRAMBLE 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
1997-06-05 14:59:13 +00:00
if test "$opt_minimal_config" = yes; then
TESTSCRIPT=run-minimal
else
TESTSCRIPT=run-all
fi
2002-07-17 14:10:11 +00:00
HELPDIR= HELPDIRDEFINE= HELPINSTALL=
if test "$opt_separate_help" != no; then
if test "$opt_separate_help" = "yes" ; then
HELPDIR='${datadir}/bash'
else
HELPDIR=$opt_separate_help
fi
HELPDIRDEFINE='-H ${HELPDIR}'
HELPINSTALL='install-help'
fi
2005-12-07 14:08:12 +00:00
HELPSTRINGS=
if test "$opt_single_longdoc_strings" != "yes"; then
HELPSTRINGS='-S'
fi
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
echo ""
2002-07-17 14:10:11 +00:00
echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2001-11-13 17:56:06 +00:00
echo ""
1997-06-05 14:59:13 +00:00
2001-11-13 17:56:06 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_ac_ct_CC="gcc"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2001-11-13 17:56:06 +00:00
else
CC="$ac_cv_prog_CC"
fi
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
if test -z "$CC"; then
2009-01-12 13:36:28 +00:00
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2001-11-13 17:56:06 +00:00
set dummy ${ac_tool_prefix}cc; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_CC="${ac_tool_prefix}cc"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
CC=$ac_cv_prog_CC
1996-12-23 17:02:34 +00:00
if test -n "$CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
fi
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
2001-11-13 17:56:06 +00:00
if test $# != 0; then
1996-12-23 17:02:34 +00:00
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
2006-10-10 14:15:34 +00:00
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996-12-23 17:02:34 +00:00
fi
fi
fi
fi
2001-11-13 17:56:06 +00:00
CC=$ac_cv_prog_CC
1996-12-23 17:02:34 +00:00
if test -n "$CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
2009-01-12 13:36:28 +00:00
for ac_prog in cl.exe
2001-11-13 17:56:06 +00:00
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
2000-03-17 21:46:59 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
CC=$ac_cv_prog_CC
2000-03-17 21:46:59 +00:00
if test -n "$CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2000-03-17 21:46:59 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
test -n "$CC" && break
done
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
if test -z "$CC"; then
ac_ct_CC=$CC
2009-01-12 13:36:28 +00:00
for ac_prog in cl.exe
2001-11-13 17:56:06 +00:00
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_ac_ct_CC="$ac_prog"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
1996-12-23 17:02:34 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
test -n "$ac_ct_CC" && break
done
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 1); exit 1; }; }; }
2001-11-13 17:56:06 +00:00
# Provide some information about the compiler.
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compiler --version >&5") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }
2009-01-12 13:36:28 +00:00
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compiler -v >&5") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }
2009-01-12 13:36:28 +00:00
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compiler -V >&5") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2009-01-12 13:36:28 +00:00
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2001-11-13 17:56:06 +00:00
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
ac_rmfiles=
for ac_file in $ac_files
do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
esac
done
rm -f $ac_rmfiles
if { (ac_try="$ac_link_default"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link_default") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; then
2009-01-12 13:36:28 +00:00
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile. We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
2006-10-10 14:15:34 +00:00
do
test -f "$ac_file" || continue
2001-11-13 17:56:06 +00:00
case $ac_file in
2009-01-12 13:36:28 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2006-10-10 14:15:34 +00:00
;;
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
2009-01-12 13:36:28 +00:00
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
then :; else
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
fi
# We set ac_cv_exeext here because the later test for it is not
# safe: cross compilers may not add the suffix if given an `-o'
# argument, so we may need to know it at that point already.
# Even if this section looks crufty: it has the advantage of
# actually working.
2006-10-10 14:15:34 +00:00
break;;
* )
break;;
2001-11-13 17:56:06 +00:00
esac
done
2009-01-12 13:36:28 +00:00
test "$ac_cv_exeext" = no && ac_cv_exeext=
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
ac_file=''
fi
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: C compiler cannot create executables
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
2001-11-13 17:56:06 +00:00
fi
ac_exeext=$ac_cv_exeext
2009-01-12 13:36:28 +00:00
# Check that the compiler produces executables we can run. If not, either
2001-11-13 17:56:06 +00:00
# the compiler is broken, or we cross compile.
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
2001-11-13 17:56:06 +00:00
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2006-10-10 14:15:34 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot run C compiled programs.
2006-10-10 14:15:34 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 1); exit 1; }; }; }
2001-11-13 17:56:06 +00:00
fi
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2001-11-13 17:56:06 +00:00
ac_clean_files=$ac_clean_files_save
2009-01-12 13:36:28 +00:00
# Check that the compiler produces executables we can run. If not, either
2001-11-13 17:56:06 +00:00
# the compiler is broken, or we cross compile.
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
2006-10-10 14:15:34 +00:00
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
2001-11-13 17:56:06 +00:00
case $ac_file in
2009-01-12 13:36:28 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2001-11-13 17:56:06 +00:00
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006-10-10 14:15:34 +00:00
break;;
2001-11-13 17:56:06 +00:00
* ) break;;
esac
done
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 1); exit 1; }; }; }
2001-11-13 17:56:06 +00:00
fi
rm -f conftest$ac_cv_exeext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
2001-11-13 17:56:06 +00:00
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_objext+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; then
2009-01-12 13:36:28 +00:00
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
2001-11-13 17:56:06 +00:00
case $ac_file in
2009-01-12 13:36:28 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2001-11-13 17:56:06 +00:00
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 1); exit 1; }; }; }
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
2001-11-13 17:56:06 +00:00
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_compiler_gnu=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_compiler_gnu=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
GCC=yes
else
GCC=
fi
2001-11-13 17:56:06 +00:00
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_cc_g+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
ac_cv_prog_cc_g=no
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cc_g=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
CFLAGS=""
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_c_werror_flag=$ac_save_c_werror_flag
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_prog_cc_g=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_c_werror_flag=$ac_save_c_werror_flag
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
2000-03-17 21:46:59 +00:00
if test "$ac_test_CFLAGS" = set; then
2001-11-13 17:56:06 +00:00
CFLAGS=$ac_save_CFLAGS
2000-03-17 21:46:59 +00:00
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
1996-12-23 17:02:34 +00:00
CFLAGS="-g -O2"
else
2000-03-17 21:46:59 +00:00
CFLAGS="-g"
1996-12-23 17:02:34 +00:00
fi
else
2000-03-17 21:46:59 +00:00
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_prog_cc_c89=no
2006-10-10 14:15:34 +00:00
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
2009-01-12 13:36:28 +00:00
as 'x'. The following induces an error, until -std is added to get
2006-10-10 14:15:34 +00:00
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
2009-01-12 13:36:28 +00:00
that's true only with -std. */
2006-10-10 14:15:34 +00:00
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2009-01-12 13:36:28 +00:00
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
inside strings and character constants. */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2006-10-10 14:15:34 +00:00
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
2009-01-12 13:36:28 +00:00
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2006-10-10 14:15:34 +00:00
do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cc_c89=$ac_arg
2006-10-10 14:15:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext
test "x$ac_cv_prog_cc_c89" != "xno" && break
2006-10-10 14:15:34 +00:00
done
2009-01-12 13:36:28 +00:00
rm -f conftest.$ac_ext
2006-10-10 14:15:34 +00:00
CC=$ac_save_CC
fi
2009-01-12 13:36:28 +00:00
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
x)
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
xno)
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
2006-10-10 14:15:34 +00:00
*)
2009-01-12 13:36:28 +00:00
CC="$CC $ac_cv_prog_cc_c89"
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2006-10-10 14:15:34 +00:00
esac
2001-11-13 17:56:06 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
$as_echo_n "checking for strerror in -lcposix... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcposix $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return strerror ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_lib_cposix_strerror=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_cposix_strerror=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
2004-07-27 13:29:18 +00:00
LIBS="$LIBS -lcposix"
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
1996-12-23 17:02:34 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_CPP+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2006-10-10 14:15:34 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
1996-12-23 17:02:34 +00:00
# On the NeXT, cc -E runs the code through the compiler's parser,
2001-11-13 17:56:06 +00:00
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2001-11-13 17:56:06 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-11-13 17:56:06 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
1996-12-23 17:02:34 +00:00
:
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
# Broken: fails on valid input.
continue
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2001-11-13 17:56:06 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <ac_nonexistent.h>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-11-13 17:56:06 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2001-11-13 17:56:06 +00:00
# Broken: success on invalid input.
continue
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
# Passes both tests.
ac_preproc_ok=:
break
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$CPP" >&6; }
2001-11-13 17:56:06 +00:00
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2006-10-10 14:15:34 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
2001-11-13 17:56:06 +00:00
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2001-11-13 17:56:06 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-11-13 17:56:06 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
1996-12-23 17:02:34 +00:00
:
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
# Broken: fails on valid input.
continue
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2001-11-13 17:56:06 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <ac_nonexistent.h>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-11-13 17:56:06 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2001-11-13 17:56:06 +00:00
# Broken: success on invalid input.
continue
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
# Passes both tests.
ac_preproc_ok=:
break
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 1); exit 1; }; }; }
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test -z "$GREP"; then
ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'GREP' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_GREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; }
fi
else
ac_cv_path_GREP=$GREP
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
2009-01-12 13:36:28 +00:00
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in egrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
# Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP"
ac_path_EGREP_max=$ac_count
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_EGREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; }
fi
else
ac_cv_path_EGREP=$EGREP
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_header_stdc+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2006-10-10 14:15:34 +00:00
int
main ()
{
;
return 0;
}
2004-07-27 13:29:18 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2005-12-07 14:08:12 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_header_stdc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_header_stdc=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <string.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "memchr" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "free" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <ctype.h>
2009-01-12 13:36:28 +00:00
#include <stdlib.h>
2004-07-27 13:29:18 +00:00
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
2006-10-10 14:15:34 +00:00
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
2004-07-27 13:29:18 +00:00
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
2006-10-10 14:15:34 +00:00
|| toupper (i) != TOUPPER (i))
2009-01-12 13:36:28 +00:00
return 2;
return 0;
2004-07-27 13:29:18 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
:
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_header_stdc=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2006-10-10 14:15:34 +00:00
inttypes.h stdint.h unistd.h
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_Header=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_Header=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
if test "${ac_cv_header_minix_config_h+set}" = set; then
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
$as_echo_n "checking for minix/config.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_header_minix_config_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
$as_echo "$ac_cv_header_minix_config_h" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
$as_echo_n "checking minix/config.h usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <minix/config.h>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
$as_echo_n "checking minix/config.h presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <minix/config.h>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
$as_echo_n "checking for minix/config.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_header_minix_config_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
ac_cv_header_minix_config_h=$ac_header_preproc
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
$as_echo "$ac_cv_header_minix_config_h" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
if test "x$ac_cv_header_minix_config_h" = x""yes; then
1996-12-23 17:02:34 +00:00
MINIX=yes
else
2001-11-13 17:56:06 +00:00
MINIX=
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
if test "$MINIX" = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define _POSIX_SOURCE 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define _POSIX_1_SOURCE 2
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define _MINIX 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
fi
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# define __EXTENSIONS__ 1
$ac_includes_default
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_safe_to_define___extensions__=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
test $ac_cv_safe_to_define___extensions__ = yes &&
cat >>confdefs.h <<\_ACEOF
#define __EXTENSIONS__ 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _ALL_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _POSIX_PTHREAD_SEMANTICS 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _TANDEM_SOURCE 1
_ACEOF
# Check whether --enable-largefile was given.
2001-11-13 17:56:06 +00:00
if test "${enable_largefile+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_largefile;
fi
2001-11-13 17:56:06 +00:00
if test "$enable_largefile" != no; then
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_largefile_CC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
ac_cv_sys_largefile_CC=no
if test "$GCC" != yes; then
ac_save_CC=$CC
while :; do
2009-01-12 13:36:28 +00:00
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
2006-10-10 14:15:34 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2009-01-12 13:36:28 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
break
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext
CC="$CC -n32"
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_sys_largefile_CC=' -n32'; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext
2006-10-10 14:15:34 +00:00
break
2001-11-13 17:56:06 +00:00
done
CC=$ac_save_CC
rm -f conftest.$ac_ext
fi
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
2001-11-13 17:56:06 +00:00
if test "$ac_cv_sys_largefile_CC" != no; then
CC=$CC$ac_cv_sys_largefile_CC
fi
2000-03-17 21:46:59 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_sys_file_offset_bits=no; break
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_sys_file_offset_bits=64; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_sys_file_offset_bits=unknown
2001-11-13 17:56:06 +00:00
break
done
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
no | unknown) ;;
*)
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
;;
esac
rm -rf conftest*
if test $ac_cv_sys_file_offset_bits = unknown; then
{ $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_large_files+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_sys_large_files=no; break
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#define _LARGE_FILES 1
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_sys_large_files=1; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_sys_large_files=unknown
2001-11-13 17:56:06 +00:00
break
done
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
$as_echo "$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
no | unknown) ;;
*)
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define _LARGE_FILES $ac_cv_sys_large_files
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
;;
esac
rm -rf conftest*
fi
2001-11-13 17:56:06 +00:00
fi
1998-04-17 19:52:44 +00:00
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
SIGNAMES_O=
1999-02-19 17:11:39 +00:00
SIGNAMES_H=lsignames.h
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
CROSS_COMPILE=
1998-04-17 19:52:44 +00:00
if test "x$cross_compiling" = "xyes"; then
case "${host}" in
2001-04-06 19:14:31 +00:00
*-cygwin*)
1998-04-17 19:52:44 +00:00
cross_cache=${srcdir}/cross-build/cygwin32.cache
;;
2005-12-07 14:08:12 +00:00
*-mingw*)
cross_cache=${srcdir}/cross-build/cygwin32.cache
;;
1999-02-19 17:11:39 +00:00
i[3456]86-*-beos*)
cross_cache=${srcdir}/cross-build/x86-beos.cache
;;
*) echo "configure: cross-compiling for $host is not supported" >&2
1998-04-17 19:52:44 +00:00
;;
esac
1999-02-19 17:11:39 +00:00
if test -n "${cross_cache}" && test -r "${cross_cache}"; then
echo "loading cross-build cache file ${cross_cache}"
. ${cross_cache}
fi
unset cross_cache
2006-10-10 14:15:34 +00:00
SIGNAMES_O='signames.o'
2005-12-07 14:08:12 +00:00
CROSS_COMPILE='-DCROSS_COMPILING'
1998-04-17 19:52:44 +00:00
fi
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
1998-04-17 19:52:44 +00:00
if test -z "$CC_FOR_BUILD"; then
if test "x$cross_compiling" = "xno"; then
CC_FOR_BUILD='$(CC)'
else
CC_FOR_BUILD=gcc
fi
fi
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
1998-04-17 19:52:44 +00:00
if test "$opt_profiling" = "yes"; then
PROFILE_FLAGS=-pg
1999-02-19 17:11:39 +00:00
case "$host_os" in
solaris2*) ;;
*) opt_static_link=yes ;;
esac
2002-07-17 14:10:11 +00:00
DEBUG= MALLOC_DEBUG=
1998-04-17 19:52:44 +00:00
fi
if test "$opt_static_link" = yes; then
2001-11-13 17:56:06 +00:00
# if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
1999-02-19 17:11:39 +00:00
STATIC_LD="-static"
2001-11-13 17:56:06 +00:00
case "$host_os" in
solaris2*) ;;
*) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
esac
1998-04-17 19:52:44 +00:00
fi
fi
2004-07-27 13:29:18 +00:00
if test "X$cross_compiling" = "Xno"; then
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
else
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
fi
2002-07-17 14:10:11 +00:00
test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
if test $ac_cv_c_compiler_gnu = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
ac_pattern="Autoconf.*'x'"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sgtty.h>
Autoconf TIOCGETP
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "$ac_pattern" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
ac_cv_prog_gcc_traditional=yes
else
ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
if test $ac_cv_prog_gcc_traditional = no; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <termio.h>
Autoconf TCGETA
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "$ac_pattern" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
1996-12-23 17:02:34 +00:00
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
fi
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
1999-02-19 17:11:39 +00:00
then
2001-11-13 17:56:06 +00:00
# If the user specified --with-installed-readline=PREFIX and PREFIX
# is not `yes', set ac_cv_rl_prefix to PREFIX
test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
1999-02-19 17:11:39 +00:00
2004-07-27 13:29:18 +00:00
2000-03-17 21:46:59 +00:00
if test "X$bash_cv_termcap_lib" = "X"; then
_bash_needmsg=yes
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
$as_echo_n "checking which library has the termcap functions... " >&6; }
2000-03-17 21:46:59 +00:00
_bash_needmsg=
fi
2001-11-13 17:56:06 +00:00
if test "${bash_cv_termcap_lib+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent" >&5
$as_echo_n "checking for tgetent... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define tgetent innocuous_tgetent
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char tgetent (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef tgetent
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_tgetent || defined __stub___tgetent
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_tgetent=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
$as_echo "$ac_cv_func_tgetent" >&6; }
if test "x$ac_cv_func_tgetent" = x""yes; then
2004-07-27 13:29:18 +00:00
bash_cv_termcap_lib=libc
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
2000-03-17 21:46:59 +00:00
LIBS="-ltermcap $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_termcap_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_termcap_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
2000-03-17 21:46:59 +00:00
bash_cv_termcap_lib=libtermcap
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltinfo $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_tinfo_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_tinfo_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
2002-07-17 14:10:11 +00:00
bash_cv_termcap_lib=libtinfo
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
$as_echo_n "checking for tgetent in -lcurses... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcurses $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_curses_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_curses_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
2000-03-17 21:46:59 +00:00
bash_cv_termcap_lib=libcurses
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
$as_echo_n "checking for tgetent in -lncurses... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
2000-03-17 21:46:59 +00:00
LIBS="-lncurses $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_ncurses_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_ncurses_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
2001-11-13 17:56:06 +00:00
bash_cv_termcap_lib=libncurses
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
bash_cv_termcap_lib=gnutermcap
2000-03-17 21:46:59 +00:00
fi
fi
fi
fi
fi
2004-07-27 13:29:18 +00:00
fi
2000-03-17 21:46:59 +00:00
if test "X$_bash_needmsg" = "Xyes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
$as_echo_n "checking which library has the termcap functions... " >&6; }
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
$as_echo "using $bash_cv_termcap_lib" >&6; }
2000-03-17 21:46:59 +00:00
if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
LDFLAGS="$LDFLAGS -L./lib/termcap"
TERMCAP_LIB="./lib/termcap/libtermcap.a"
TERMCAP_DEP="./lib/termcap/libtermcap.a"
elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
TERMCAP_LIB=-ltermcap
TERMCAP_DEP=
2001-11-13 17:56:06 +00:00
elif test $bash_cv_termcap_lib = libtinfo; then
TERMCAP_LIB=-ltinfo
TERMCAP_DEP=
2000-03-17 21:46:59 +00:00
elif test $bash_cv_termcap_lib = libncurses; then
TERMCAP_LIB=-lncurses
TERMCAP_DEP=
2004-07-27 13:29:18 +00:00
elif test $bash_cv_termcap_lib = libc; then
TERMCAP_LIB=
TERMCAP_DEP=
2000-03-17 21:46:59 +00:00
else
TERMCAP_LIB=-lcurses
TERMCAP_DEP=
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
$as_echo_n "checking version of installed readline library... " >&6; }
2001-11-13 17:56:06 +00:00
# What a pain in the ass this is.
# save cpp and ld options
_save_CFLAGS="$CFLAGS"
_save_LDFLAGS="$LDFLAGS"
_save_LIBS="$LIBS"
# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
# allows the caller to do something like $_rl_prefix=$withval if the user
# specifies --with-installed-readline=PREFIX as an argument to configure
if test -z "$ac_cv_rl_prefix"; then
test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
fi
eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
2004-07-27 13:29:18 +00:00
if test "${ac_cv_rl_version+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
2001-11-13 17:56:06 +00:00
ac_cv_rl_version='4.2'
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <stdio.h>
#include <readline/readline.h>
2005-12-07 14:08:12 +00:00
extern int rl_gnu_readline_p;
2001-11-13 17:56:06 +00:00
main()
{
FILE *fp;
fp = fopen("conftest.rlv", "w");
2005-12-07 14:08:12 +00:00
if (fp == 0)
exit(1);
if (rl_gnu_readline_p != 1)
fprintf(fp, "0.0\n");
else
fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
2001-11-13 17:56:06 +00:00
fclose(fp);
exit(0);
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_rl_version=`cat conftest.rlv`
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
ac_cv_rl_version='0.0'
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
CFLAGS="$_save_CFLAGS"
LDFLAGS="$_save_LDFLAGS"
LIBS="$_save_LIBS"
RL_MAJOR=0
RL_MINOR=0
# (
case "$ac_cv_rl_version" in
2*|3*|4*|5*|6*|7*|8*|9*)
RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
2002-07-17 14:10:11 +00:00
RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
2001-11-13 17:56:06 +00:00
;;
esac
# (((
case $RL_MAJOR in
[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
*) _RL_MAJOR=00 ;;
esac
# (((
case $RL_MINOR in
[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
[0-9]) _RL_MINOR=0$RL_MINOR ;;
*) _RL_MINOR=00 ;;
esac
RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
# Readline versions greater than 4.2 have these defines in readline.h
if test $ac_cv_rl_version = '0.0' ; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
2001-11-13 17:56:06 +00:00
elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
# set these for use by the caller
RL_PREFIX=$ac_cv_rl_prefix
RL_LIBDIR=$ac_cv_rl_libdir
RL_INCLUDEDIR=$ac_cv_rl_includedir
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
$as_echo "$ac_cv_rl_version" >&6; }
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define RL_READLINE_VERSION $RL_VERSION
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define RL_VERSION_MAJOR $RL_MAJOR
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define RL_VERSION_MINOR $RL_MINOR
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
# set these for use by the caller
RL_PREFIX=$ac_cv_rl_prefix
RL_LIBDIR=$ac_cv_rl_libdir
RL_INCLUDEDIR=$ac_cv_rl_includedir
2000-03-17 21:46:59 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
$as_echo "$ac_cv_rl_version" >&6; }
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
fi
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
case "$ac_cv_rl_version" in
2004-07-27 13:29:18 +00:00
5*|6*|7*|8*|9*) ;;
2001-11-13 17:56:06 +00:00
*) opt_with_installed_readline=no
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
$as_echo "$as_me: WARNING: using private bash version" >&2;}
2000-03-17 21:46:59 +00:00
;;
esac
fi
2005-12-07 14:08:12 +00:00
TILDE_LIB=-ltilde
2000-03-17 21:46:59 +00:00
if test $opt_readline = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define READLINE 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
if test "$opt_with_installed_readline" != "no" ; then
2004-07-27 13:29:18 +00:00
case "$opt_with_installed_readline" in
yes) RL_INCLUDE= ;;
*) case "$RL_INCLUDEDIR" in
/usr/include) ;;
*) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
esac
;;
2001-11-13 17:56:06 +00:00
esac
2000-03-17 21:46:59 +00:00
READLINE_DEP=
2005-12-07 14:08:12 +00:00
READLINE_LIB=-lreadline
# section for OS versions that don't allow unresolved symbols
# to be compiled into dynamic libraries.
case "$host_os" in
cygwin*) TILDE_LIB= ;;
esac
2000-03-17 21:46:59 +00:00
else
RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
READLINE_DEP='$(READLINE_LIBRARY)'
2005-12-07 14:08:12 +00:00
# section for OS versions that ship an older/broken version of
# readline as a standard dynamic library and don't allow a
# static version specified as -llibname to override the
# dynamic version
case "${host_os}" in
2011-11-21 20:49:12 -05:00
darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
2005-12-07 14:08:12 +00:00
*) READLINE_LIB=-lreadline ;;
esac
2000-03-17 21:46:59 +00:00
fi
else
RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
READLINE_LIB= READLINE_DEP=
fi
if test $opt_history = yes || test $opt_bang_history = yes; then
if test $opt_history = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define HISTORY 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
if test $opt_bang_history = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define BANG_HISTORY 1
2004-07-27 13:29:18 +00:00
_ACEOF
1999-02-19 17:11:39 +00:00
fi
2001-11-13 17:56:06 +00:00
if test "$opt_with_installed_readline" != "no"; then
HIST_LIBDIR=$RL_LIBDIR
1999-02-19 17:11:39 +00:00
HISTORY_DEP=
2005-12-07 14:08:12 +00:00
HISTORY_LIB=-lhistory
2004-07-27 13:29:18 +00:00
case "$opt_with_installed_readline" in
yes) RL_INCLUDE= ;;
*) case "$RL_INCLUDEDIR" in
/usr/include) ;;
*) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
esac
;;
2001-11-13 17:56:06 +00:00
esac
1999-02-19 17:11:39 +00:00
else
HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
HISTORY_DEP='$(HISTORY_LIBRARY)'
2005-12-07 14:08:12 +00:00
# section for OS versions that ship an older version of
# readline as a standard dynamic library and don't allow a
# static version specified as -llibname to override the
# dynamic version
case "${host_os}" in
2011-11-21 20:49:12 -05:00
darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
2005-12-07 14:08:12 +00:00
*) HISTORY_LIB=-lhistory ;;
esac
1999-02-19 17:11:39 +00:00
fi
else
HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
HISTORY_LIB= HISTORY_DEP=
fi
2004-07-27 13:29:18 +00:00
2005-12-07 14:08:12 +00:00
1996-12-23 17:02:34 +00:00
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
2001-11-13 17:56:06 +00:00
# AmigaOS /C/install, which installs bootblocks on floppy discs
2000-03-17 21:46:59 +00:00
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996-12-23 17:02:34 +00:00
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2006-10-10 14:15:34 +00:00
# OS/2's system install, which has a completely different semantic
1996-12-23 17:02:34 +00:00
# ./install, which can be erroneously created by make from ./install.sh.
2009-01-12 13:36:28 +00:00
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1996-12-23 17:02:34 +00:00
if test -z "$INSTALL"; then
2001-11-13 17:56:06 +00:00
if test "${ac_cv_path_install+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
./ | .// | /cC/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2006-10-10 14:15:34 +00:00
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2004-07-27 13:29:18 +00:00
/usr/ucb/* ) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006-10-10 14:15:34 +00:00
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
else
2009-01-12 13:36:28 +00:00
rm -rf conftest.one conftest.two conftest.dir
echo one > conftest.one
echo two > conftest.two
mkdir conftest.dir
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
test -s conftest.one && test -s conftest.two &&
test -s conftest.dir/conftest.one &&
test -s conftest.dir/conftest.two
then
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
break 3
fi
2006-10-10 14:15:34 +00:00
fi
fi
1996-12-23 17:02:34 +00:00
done
2004-07-27 13:29:18 +00:00
done
;;
esac
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
rm -rf conftest.one conftest.two conftest.dir
1996-12-23 17:02:34 +00:00
fi
if test "${ac_cv_path_install+set}" = set; then
2001-11-13 17:56:06 +00:00
INSTALL=$ac_cv_path_install
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
# As a last resort, use the slow shell script. Don't cache a
# value for INSTALL within a source directory, because that will
1996-12-23 17:02:34 +00:00
# break other packages using the cache if that directory is
2009-01-12 13:36:28 +00:00
# removed, or if the value is a relative name.
2001-11-13 17:56:06 +00:00
INSTALL=$ac_install_sh
1996-12-23 17:02:34 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }
1996-12-23 17:02:34 +00:00
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2001-11-13 17:56:06 +00:00
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2000-03-17 21:46:59 +00:00
1996-12-23 17:02:34 +00:00
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_AR+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -n "$AR"; then
ac_cv_prog_AR="$AR" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_AR=""
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1996-12-23 17:02:34 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
AR=$ac_cv_prog_AR
1996-12-23 17:02:34 +00:00
if test -n "$AR"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
$as_echo "$AR" >&6; }
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1999-02-19 17:11:39 +00:00
test -n "$ARFLAGS" || ARFLAGS="cr"
2001-11-13 17:56:06 +00:00
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_RANLIB+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
RANLIB=$ac_cv_prog_RANLIB
1996-12-23 17:02:34 +00:00
if test -n "$RANLIB"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
if test -z "$ac_cv_prog_RANLIB"; then
ac_ct_RANLIB=$RANLIB
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test -n "$ac_ct_RANLIB"; then
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_ac_ct_RANLIB="ranlib"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
if test "x$ac_ct_RANLIB" = x; then
RANLIB=":"
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
RANLIB=$ac_ct_RANLIB
fi
2001-11-13 17:56:06 +00:00
else
RANLIB="$ac_cv_prog_RANLIB"
1996-12-23 17:02:34 +00:00
fi
for ac_prog in 'bison -y' byacc
do
2001-11-13 17:56:06 +00:00
# Extract the first word of "$ac_prog", so it can be a program name with args.
1996-12-23 17:02:34 +00:00
set dummy $ac_prog; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_prog_YACC+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
2004-07-27 13:29:18 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_YACC="$ac_prog"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
2001-11-13 17:56:06 +00:00
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
fi
2001-11-13 17:56:06 +00:00
YACC=$ac_cv_prog_YACC
1996-12-23 17:02:34 +00:00
if test -n "$YACC"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $YACC" >&5
$as_echo "$YACC" >&6; }
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
test -n "$YACC" && break
1996-12-23 17:02:34 +00:00
done
test -n "$YACC" || YACC="yacc"
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.make <<\_ACEOF
2009-01-12 13:36:28 +00:00
SHELL = /bin/sh
1996-12-23 17:02:34 +00:00
all:
2009-01-12 13:36:28 +00:00
@echo '@@@%%%=$(MAKE)=@@@%%%'
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2009-01-12 13:36:28 +00:00
case `${MAKE-make} -f conftest.make 2>/dev/null` in
*@@@%%%=?*=@@@%%%*)
eval ac_cv_prog_make_${ac_make}_set=yes;;
*)
eval ac_cv_prog_make_${ac_make}_set=no;;
esac
2001-11-13 17:56:06 +00:00
rm -f conftest.make
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
1996-12-23 17:02:34 +00:00
SET_MAKE=
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-12-23 17:02:34 +00:00
SET_MAKE="MAKE=${MAKE-make}"
fi
2004-07-27 13:29:18 +00:00
1999-02-19 17:11:39 +00:00
case "$host_os" in
2000-03-17 21:46:59 +00:00
opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
1999-02-19 17:11:39 +00:00
*) MAKE_SHELL=/bin/sh ;;
esac
2005-12-07 14:08:12 +00:00
if test x$SIZE = x; then
if test x$ac_tool_prefix = x; then
SIZE=size
else
SIZE=${ac_tool_prefix}size
save_IFS=$IFS ; IFS=:
size_found=0
for dir in $PATH; do
if test -x $dir/$SIZE ; then
size_found=1
break
fi
done
if test $size_found -eq 0; then
SIZE=:
fi
IFS=$save_IFS
fi
fi
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_c_const+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2005-12-07 14:08:12 +00:00
else
2006-10-10 14:15:34 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
2001-11-13 17:56:06 +00:00
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
2009-01-12 13:36:28 +00:00
const charset cs;
2001-11-13 17:56:06 +00:00
/* SunOS 4.1.1 cc rejects this. */
2009-01-12 13:36:28 +00:00
char const *const *pcpcc;
char **ppc;
2001-11-13 17:56:06 +00:00
/* 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";
2009-01-12 13:36:28 +00:00
pcpcc = &g + (g ? g-g : 0);
2001-11-13 17:56:06 +00:00
/* HPUX 7.0 cc rejects these. */
2009-01-12 13:36:28 +00:00
++pcpcc;
ppc = (char**) pcpcc;
pcpcc = (char const *const *) ppc;
2001-11-13 17:56:06 +00:00
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
2009-01-12 13:36:28 +00:00
if (s) return 0;
2001-11-13 17:56:06 +00:00
}
{ /* 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;
2009-01-12 13:36:28 +00:00
if (!foo) return 0;
2001-11-13 17:56:06 +00:00
}
2009-01-12 13:36:28 +00:00
return !cs[0] && !zero.x;
1996-12-23 17:02:34 +00:00
#endif
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_c_const=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_c_const=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_c_const = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2009-01-12 13:36:28 +00:00
#define const /**/
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_c_inline+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#ifndef __cplusplus
2006-10-10 14:15:34 +00:00
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
1996-12-23 17:02:34 +00:00
#endif
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_inline=$ac_kw
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_inline" != no && break
2001-11-13 17:56:06 +00:00
done
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
case $ac_cv_c_inline in
inline | yes) ;;
2006-10-10 14:15:34 +00:00
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
2004-07-27 13:29:18 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
;;
2001-11-13 17:56:06 +00:00
esac
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_c_bigendian+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_c_bigendian=unknown
# See if we're dealing with a universal compiler.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifndef __APPLE_CC__
not a universal capable compiler
#endif
typedef int dummy;
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
# Check for potential -arch flags. It is not universal unless
# there are some -arch flags. Note that *ppc* also matches
# ppc64. This check is also rather less than ideal.
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
*-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
esac
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_c_bigendian = unknown; then
# See if sys/param.h defines the BYTE_ORDER macro.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
2009-01-12 13:36:28 +00:00
#include <sys/param.h>
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
&& LITTLE_ENDIAN)
bogus endian macros
#endif
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
# It does; now see whether it defined to BIG_ENDIAN or not.
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
2009-01-12 13:36:28 +00:00
#include <sys/param.h>
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
2009-01-12 13:36:28 +00:00
not big endian
#endif
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_c_bigendian=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_c_bigendian=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
#include <limits.h>
2004-07-27 13:29:18 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
bogus endian macros
#endif
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
# It does; now see whether it defined to _BIG_ENDIAN or not.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
#include <limits.h>
2001-11-13 17:56:06 +00:00
int
main ()
1996-12-23 17:02:34 +00:00
{
2009-01-12 13:36:28 +00:00
#ifndef _BIG_ENDIAN
not big endian
#endif
;
return 0;
1996-12-23 17:02:34 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_bigendian=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_c_bigendian=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# Compile a test program.
if test "$cross_compiling" = yes; then
# Try to guess by grepping values from an object file.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
short int ascii_mm[] =
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short int ascii_ii[] =
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
int use_ascii (int i) {
return ascii_mm[i] + ascii_ii[i];
}
short int ebcdic_ii[] =
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short int ebcdic_mm[] =
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
int use_ebcdic (int i) {
return ebcdic_mm[i] + ebcdic_ii[i];
}
extern int foo;
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
ac_cv_c_bigendian=yes
fi
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
# finding both strings is unlikely to happen, but who knows?
ac_cv_c_bigendian=unknown
fi
fi
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
/* Are we little or big endian? From Harbison&Steele. */
union
{
long int l;
char c[sizeof (long int)];
} u;
u.l = 1;
return u.c[sizeof (long int) - 1] == 1;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_bigendian=no
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_c_bigendian=yes
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
case $ac_cv_c_bigendian in #(
yes)
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define WORDS_BIGENDIAN 1
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
;; #(
no)
;; #(
universal)
cat >>confdefs.h <<\_ACEOF
#define AC_APPLE_UNIVERSAL_BUILD 1
_ACEOF
;; #(
*)
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
$as_echo "$as_me: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2004-07-27 13:29:18 +00:00
{ (exit 1); exit 1; }; } ;;
2009-01-12 13:36:28 +00:00
esac
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_c_stringize+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#define x(y) #y
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
char *s = x(teststring);
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "#teststring" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_c_stringize=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_cv_c_stringize=yes
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest*
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
$as_echo "$ac_cv_c_stringize" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_c_stringize = yes; then
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_STRINGIZE 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
$as_echo_n "checking for long double with more range or precision than double... " >&6; }
if test "${ac_cv_type_long_double_wider+set}" = set; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <float.h>
2009-01-12 13:36:28 +00:00
long double const a[] =
{
0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
LDBL_MIN, LDBL_MAX, LDBL_EPSILON
};
long double
f (long double x)
{
return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
+ (x ? f (x) : 'c'));
}
2001-11-13 17:56:06 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
+ (DBL_MANT_DIG < LDBL_MANT_DIG)
- (LDBL_MAX_EXP < DBL_MAX_EXP)
- (LDBL_MANT_DIG < DBL_MANT_DIG)))
&& (int) LDBL_EPSILON == 0
)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
1996-12-23 17:02:34 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_long_double_wider=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_type_long_double_wider=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
$as_echo "$ac_cv_type_long_double_wider" >&6; }
if test $ac_cv_type_long_double_wider = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_DOUBLE_WIDER 1
_ACEOF
fi
ac_cv_c_long_double=$ac_cv_type_long_double_wider
if test $ac_cv_c_long_double = yes; then
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_LONG_DOUBLE 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
$as_echo_n "checking for function prototypes... " >&6; }
if test "$ac_cv_prog_cc_c89" != no; then
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define PROTOTYPES 1
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define __PROTOTYPES 1
2001-11-13 17:56:06 +00:00
_ACEOF
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_c_char_unsigned+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
1996-12-23 17:02:34 +00:00
main ()
{
2004-07-27 13:29:18 +00:00
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
1996-12-23 17:02:34 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_c_char_unsigned=no
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_c_char_unsigned=yes
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define __CHAR_UNSIGNED__ 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-02-19 22:21:29 +00:00
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if test "${ac_cv_c_volatile+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_volatile=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
cat >>confdefs.h <<\_ACEOF
#define volatile /**/
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
if test "${ac_cv_c_restrict+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_c_restrict=no
# The order here caters to the fact that C++ does not require restrict.
for ac_kw in __restrict __restrict__ _Restrict restrict; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
typedef int * int_ptr;
int foo (int_ptr $ac_kw ip) {
return ip[0];
}
int
main ()
{
int s[1];
int * $ac_kw t = s;
t[0] = 0;
return foo(t)
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_restrict=$ac_kw
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_restrict" != no && break
done
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
$as_echo "$ac_cv_c_restrict" >&6; }
case $ac_cv_c_restrict in
restrict) ;;
no) cat >>confdefs.h <<\_ACEOF
#define restrict /**/
_ACEOF
;;
*) cat >>confdefs.h <<_ACEOF
#define restrict $ac_cv_c_restrict
_ACEOF
;;
esac
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
MKINSTALLDIRS=
if test -n "$ac_aux_dir"; then
case "$ac_aux_dir" in
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
esac
fi
if test -z "$MKINSTALLDIRS"; then
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
# Check whether --enable-nls was given.
2004-07-27 13:29:18 +00:00
if test "${enable_nls+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_nls; USE_NLS=$enableval
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
USE_NLS=yes
2009-01-12 13:36:28 +00:00
fi
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }
2004-07-27 13:29:18 +00:00
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
ac_executable_p="test -x"
else
ac_executable_p="test -f"
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
rm -f conf$$.file
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_path_MSGFMT+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
case "$MSGFMT" in
[\\/]* | ?:[\\/]*)
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
;;
*)
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH; do
IFS="$ac_save_IFS"
test -z "$ac_dir" && ac_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
break 2
fi
fi
done
done
IFS="$ac_save_IFS"
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
;;
esac
fi
MSGFMT="$ac_cv_path_MSGFMT"
if test "$MSGFMT" != ":"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
$as_echo "$MSGFMT" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_path_GMSGFMT+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
case $GMSGFMT in
[\\/]* | ?:[\\/]*)
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2004-07-27 13:29:18 +00:00
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
;;
esac
fi
GMSGFMT=$ac_cv_path_GMSGFMT
if test -n "$GMSGFMT"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
$as_echo "$GMSGFMT" >&6; }
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
ac_executable_p="test -x"
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
ac_executable_p="test -f"
fi
rm -f conf$$.file
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_path_XGETTEXT+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
case "$XGETTEXT" in
[\\/]* | ?:[\\/]*)
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
;;
*)
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH; do
IFS="$ac_save_IFS"
test -z "$ac_dir" && ac_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
break 2
fi
fi
done
done
IFS="$ac_save_IFS"
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
;;
esac
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
if test "$XGETTEXT" != ":"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
$as_echo "$XGETTEXT" >&6; }
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
rm -f messages.po
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
ac_executable_p="test -x"
else
ac_executable_p="test -f"
fi
rm -f conf$$.file
# Extract the first word of "msgmerge", so it can be a program name with args.
set dummy msgmerge; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_path_MSGMERGE+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
case "$MSGMERGE" in
[\\/]* | ?:[\\/]*)
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
;;
*)
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH; do
IFS="$ac_save_IFS"
test -z "$ac_dir" && ac_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
break 2
fi
fi
done
done
IFS="$ac_save_IFS"
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
;;
esac
fi
MSGMERGE="$ac_cv_path_MSGMERGE"
if test "$MSGMERGE" != ":"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
$as_echo "$MSGMERGE" >&6; }
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2004-07-27 13:29:18 +00:00
fi
if test "$GMSGFMT" != ":"; then
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
: ;
else
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2004-07-27 13:29:18 +00:00
GMSGFMT=":"
fi
fi
if test "$XGETTEXT" != ":"; then
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
: ;
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
2004-07-27 13:29:18 +00:00
XGETTEXT=":"
fi
rm -f messages.po
fi
2009-01-12 13:36:28 +00:00
ac_config_commands="$ac_config_commands default-1"
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
$as_echo_n "checking for off_t... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_type_off_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_off_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
if (sizeof (off_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((off_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_off_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
$as_echo "$ac_cv_type_off_t" >&6; }
if test "x$ac_cv_type_off_t" = x""yes; then
2004-07-27 13:29:18 +00:00
:
else
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define off_t long int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
$as_echo_n "checking for size_t... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_type_size_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_size_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
if (sizeof (size_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((size_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_size_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
$as_echo "$ac_cv_type_size_t" >&6; }
if test "x$ac_cv_type_size_t" = x""yes; then
2004-07-27 13:29:18 +00:00
:
else
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define size_t unsigned int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_working_alloca_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
2009-01-12 13:36:28 +00:00
if (p) return 0;
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_working_alloca_h=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_working_alloca_h=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_working_alloca_h = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA_H 1
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_alloca_works+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#ifdef __GNUC__
# define alloca __builtin_alloca
1996-12-23 17:02:34 +00:00
#else
2001-11-13 17:56:06 +00:00
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
# else
2009-01-12 13:36:28 +00:00
# ifdef HAVE_ALLOCA_H
2001-11-13 17:56:06 +00:00
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif
# endif
# endif
# endif
1996-12-23 17:02:34 +00:00
#endif
2001-11-13 17:56:06 +00:00
int
main ()
{
char *p = (char *) alloca (1);
2009-01-12 13:36:28 +00:00
if (p) return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_func_alloca_works=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_alloca_works=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_func_alloca_works = yes; then
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_ALLOCA 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble. Some versions do not even contain alloca or
# contain a buggy version. If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define C_ALLOCA 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_os_cray+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
#if defined CRAY && ! defined CRAY2
2001-11-13 17:56:06 +00:00
webecray
#else
wenotbecray
#endif
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "webecray" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_os_cray=yes
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_cv_os_cray=no
1996-12-23 17:02:34 +00:00
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1996-12-23 17:02:34 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1996-12-23 17:02:34 +00:00
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1996-12-23 17:02:34 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define CRAY_STACKSEG_END $ac_func
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
break
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
done
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_c_stack_direction+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
if test "$cross_compiling" = yes; then
ac_cv_c_stack_direction=0
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
$ac_includes_default
2001-11-13 17:56:06 +00:00
int
find_stack_direction ()
{
static char *addr = 0;
auto char dummy;
if (addr == 0)
{
addr = &dummy;
return find_stack_direction ();
}
else
return (&dummy > addr) ? 1 : -1;
}
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return find_stack_direction () < 0;
2001-11-13 17:56:06 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_c_stack_direction=1
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
ac_cv_c_stack_direction=-1
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define STACK_DIRECTION $ac_cv_c_stack_direction
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
for ac_header in stdlib.h unistd.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2004-07-27 13:29:18 +00:00
#include <$ac_header>
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
1998-04-17 19:52:44 +00:00
fi
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
done
for ac_func in getpagesize
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2001-11-13 17:56:06 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2001-11-13 17:56:06 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
$as_echo_n "checking for working mmap... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_func_mmap_fixed_mapped=no
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc
/* Thanks to Mike Haertel and Jim Avera for this test.
Here is a matrix of mmap possibilities:
mmap private not fixed
mmap private fixed at somewhere currently unmapped
mmap private fixed at somewhere already mapped
mmap shared not fixed
mmap shared fixed at somewhere currently unmapped
mmap shared fixed at somewhere already mapped
For private mappings, we should verify that changes cannot be read()
back from the file, nor mmap's back from the file at a different
address. (There have been systems where private was not correctly
implemented like the infamous i386 svr4.0, and systems where the
VM page cache was not coherent with the file system buffer cache
like early versions of FreeBSD and possibly contemporary NetBSD.)
For shared mappings, we should conversely verify that changes get
propagated back to all the places they're supposed to be.
Grep wants private fixed already mapped.
The main things grep needs to know about mmap are:
* does it exist and is it safe to write into the mmap'd area
* how to use it (BSD variants) */
#include <fcntl.h>
#include <sys/mman.h>
2009-01-12 13:36:28 +00:00
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
2004-07-27 13:29:18 +00:00
char *malloc ();
2001-11-13 17:56:06 +00:00
#endif
2004-07-27 13:29:18 +00:00
/* This mess was copied from the GNU getpagesize.h. */
2009-01-12 13:36:28 +00:00
#ifndef HAVE_GETPAGESIZE
2004-07-27 13:29:18 +00:00
/* Assume that all systems that can run configure have sys/param.h. */
2009-01-12 13:36:28 +00:00
# ifndef HAVE_SYS_PARAM_H
2004-07-27 13:29:18 +00:00
# define HAVE_SYS_PARAM_H 1
# endif
# ifdef _SC_PAGESIZE
# define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
2009-01-12 13:36:28 +00:00
# ifdef HAVE_SYS_PARAM_H
2004-07-27 13:29:18 +00:00
# include <sys/param.h>
# ifdef EXEC_PAGESIZE
# define getpagesize() EXEC_PAGESIZE
# else /* no EXEC_PAGESIZE */
# ifdef NBPG
# define getpagesize() NBPG * CLSIZE
# ifndef CLSIZE
# define CLSIZE 1
# endif /* no CLSIZE */
# else /* no NBPG */
# ifdef NBPC
# define getpagesize() NBPC
# else /* no NBPC */
# ifdef PAGESIZE
# define getpagesize() PAGESIZE
# endif /* PAGESIZE */
# endif /* no NBPC */
# endif /* no NBPG */
# endif /* no EXEC_PAGESIZE */
# else /* no HAVE_SYS_PARAM_H */
# define getpagesize() 8192 /* punt totally */
# endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
char *data, *data2, *data3;
int i, pagesize;
int fd;
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
pagesize = getpagesize ();
/* First, make a file with some known garbage in it. */
data = (char *) malloc (pagesize);
if (!data)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
*(data + i) = rand ();
umask (0);
fd = creat ("conftest.mmap", 0600);
if (fd < 0)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
if (write (fd, data, pagesize) != pagesize)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
close (fd);
/* Next, try to mmap the file at a fixed address which already has
something else allocated at it. If we can, also make sure that
we see the same garbage. */
fd = open ("conftest.mmap", O_RDWR);
if (fd < 0)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
data2 = (char *) malloc (2 * pagesize);
if (!data2)
2009-01-12 13:36:28 +00:00
return 1;
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
2004-07-27 13:29:18 +00:00
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
2006-10-10 14:15:34 +00:00
MAP_PRIVATE | MAP_FIXED, fd, 0L))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data2 + i))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
/* Finally, make sure that changes to the mapped area do not
percolate back to the file as seen by read(). (This is a bug on
some variants of i386 svr4.0.) */
for (i = 0; i < pagesize; ++i)
*(data2 + i) = *(data2 + i) + 1;
data3 = (char *) malloc (pagesize);
if (!data3)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
if (read (fd, data3, pagesize) != pagesize)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data3 + i))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
close (fd);
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
2004-07-27 13:29:18 +00:00
ac_cv_func_mmap_fixed_mapped=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_mmap_fixed_mapped = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
_ACEOF
fi
rm -f conftest.mmap
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_gnu_library_2_1+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <features.h>
#ifdef __GNU_LIBRARY__
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
Lucky GNU user
#endif
#endif
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
ac_cv_gnu_library_2_1=yes
else
ac_cv_gnu_library_2_1=no
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
rm -f conftest*
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
GLIBC21="$ac_cv_gnu_library_2_1"
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
if test "$cross_compiling" = yes; then
# Guess based on the CPU.
case "$host_cpu" in
alpha* | i3456786 | m68k | s390*)
gt_cv_int_divbyzero_sigfpe="guessing yes";;
*)
gt_cv_int_divbyzero_sigfpe="guessing no";;
esac
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
#include <signal.h>
static void
#ifdef __cplusplus
sigfpe_handler (int sig)
#else
sigfpe_handler (sig) int sig;
#endif
2001-11-13 17:56:06 +00:00
{
2004-07-27 13:29:18 +00:00
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
exit (sig != SIGFPE);
}
int x = 1;
int y = 0;
int z;
int nan;
int main ()
{
signal (SIGFPE, sigfpe_handler);
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
signal (SIGTRAP, sigfpe_handler);
#endif
/* Linux/SPARC yields signal SIGILL. */
#if defined (__sparc__) && defined (__linux__)
signal (SIGILL, sigfpe_handler);
#endif
z = x / y;
nan = y / y;
exit (1);
2001-11-13 17:56:06 +00:00
}
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
2004-07-27 13:29:18 +00:00
gt_cv_int_divbyzero_sigfpe=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
gt_cv_int_divbyzero_sigfpe=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
2004-07-27 13:29:18 +00:00
case "$gt_cv_int_divbyzero_sigfpe" in
*yes) value=1;;
*) value=0;;
esac
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define INTDIV0_RAISES_SIGFPE $value
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
$as_echo_n "checking for inttypes.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
2004-07-27 13:29:18 +00:00
#include <inttypes.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
uintmax_t i = (uintmax_t) -1;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
jm_ac_cv_header_inttypes_h=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
jm_ac_cv_header_inttypes_h=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
2004-07-27 13:29:18 +00:00
if test $jm_ac_cv_header_inttypes_h = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
$as_echo_n "checking for stdint.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <stdint.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
uintmax_t i = (uintmax_t) -1;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
jm_ac_cv_header_stdint_h=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
jm_ac_cv_header_stdint_h=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
2004-07-27 13:29:18 +00:00
if test $jm_ac_cv_header_stdint_h = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_STDINT_H_WITH_UINTMAX 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
$as_echo_n "checking for unsigned long long... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
unsigned long long ull = 1; int i = 63;
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
unsigned long long ullmax = (unsigned long long) -1;
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_type_unsigned_long_long=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_type_unsigned_long_long=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_type_unsigned_long_long = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_UNSIGNED_LONG_LONG 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
test $ac_cv_type_unsigned_long_long = yes \
&& ac_type='unsigned long long' \
|| ac_type='unsigned long'
cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
2002-07-17 14:10:11 +00:00
_ACEOF
2004-07-27 13:29:18 +00:00
else
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_UINTMAX_T 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
$as_echo_n "checking for inttypes.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${gt_cv_header_inttypes_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <inttypes.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
gt_cv_header_inttypes_h=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
gt_cv_header_inttypes_h=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
$as_echo "$gt_cv_header_inttypes_h" >&6; }
2004-07-27 13:29:18 +00:00
if test $gt_cv_header_inttypes_h = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_INTTYPES_H 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test $gt_cv_header_inttypes_h = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <inttypes.h>
#ifdef PRId32
char *p = PRId32;
2001-11-13 17:56:06 +00:00
#endif
int
main ()
{
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
gt_cv_inttypes_pri_broken=no
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
gt_cv_inttypes_pri_broken=yes
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
2004-07-27 13:29:18 +00:00
fi
if test "$gt_cv_inttypes_pri_broken" = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define PRI_MACROS_BROKEN 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test "X$prefix" = "XNONE"; then
acl_final_prefix="$ac_default_prefix"
else
acl_final_prefix="$prefix"
fi
if test "X$exec_prefix" = "XNONE"; then
acl_final_exec_prefix='${prefix}'
else
acl_final_exec_prefix="$exec_prefix"
fi
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
prefix="$acl_save_prefix"
2009-01-12 13:36:28 +00:00
# Check whether --with-gnu-ld was given.
2004-07-27 13:29:18 +00:00
if test "${with_gnu_ld+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
with_gnu_ld=no
2009-01-12 13:36:28 +00:00
fi
2004-07-27 13:29:18 +00:00
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
$as_echo_n "checking for ld used by GCC... " >&6; }
2004-07-27 13:29:18 +00:00
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
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
2004-07-27 13:29:18 +00:00
fi
if test "${acl_cv_path_LD+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
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
acl_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 "$acl_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
acl_cv_path_LD="$LD" # Let the user override the test with a path.
2001-11-13 17:56:06 +00:00
fi
fi
2004-07-27 13:29:18 +00:00
LD="$acl_cv_path_LD"
if test -n "$LD"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
$as_echo "$LD" >&6; }
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2004-07-27 13:29:18 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${acl_cv_prog_gnu_ld+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
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
acl_cv_prog_gnu_ld=yes
else
acl_cv_prog_gnu_ld=no
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
2004-07-27 13:29:18 +00:00
with_gnu_ld=$acl_cv_prog_gnu_ld
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
$as_echo_n "checking for shared library run path origin... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${acl_cv_rpath+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
. ./conftest.sh
rm -f ./conftest.sh
acl_cv_rpath=done
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
$as_echo "$acl_cv_rpath" >&6; }
2004-07-27 13:29:18 +00:00
wl="$acl_cv_wl"
libext="$acl_cv_libext"
shlibext="$acl_cv_shlibext"
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
hardcode_direct="$acl_cv_hardcode_direct"
hardcode_minus_L="$acl_cv_hardcode_minus_L"
2009-01-12 13:36:28 +00:00
# Check whether --enable-rpath was given.
2004-07-27 13:29:18 +00:00
if test "${enable_rpath+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_rpath; :
2004-07-27 13:29:18 +00:00
else
enable_rpath=yes
2009-01-12 13:36:28 +00:00
fi
2004-07-27 13:29:18 +00:00
use_additional=yes
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
2009-01-12 13:36:28 +00:00
# Check whether --with-libiconv-prefix was given.
2004-07-27 13:29:18 +00:00
if test "${with_libiconv_prefix+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_libiconv_prefix;
2004-07-27 13:29:18 +00:00
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
else
additional_includedir="$withval/include"
additional_libdir="$withval/lib"
fi
fi
2009-01-12 13:36:28 +00:00
fi
2004-07-27 13:29:18 +00:00
LIBICONV=
LTLIBICONV=
INCICONV=
rpathdirs=
ltrpathdirs=
names_already_handled=
names_next_round='iconv '
while test -n "$names_next_round"; do
names_this_round="$names_next_round"
names_next_round=
for name in $names_this_round; do
already_handled=
for n in $names_already_handled; do
if test "$n" = "$name"; then
already_handled=yes
break
fi
done
if test -z "$already_handled"; then
names_already_handled="$names_already_handled $name"
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
eval value=\"\$HAVE_LIB$uppername\"
if test -n "$value"; then
if test "$value" = yes; then
eval value=\"\$LIB$uppername\"
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
eval value=\"\$LTLIB$uppername\"
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
else
:
fi
else
found_dir=
found_la=
found_so=
found_a=
if test $use_additional = yes; then
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
found_dir="$additional_libdir"
found_so="$additional_libdir/lib$name.$shlibext"
if test -f "$additional_libdir/lib$name.la"; then
found_la="$additional_libdir/lib$name.la"
fi
else
if test -f "$additional_libdir/lib$name.$libext"; then
found_dir="$additional_libdir"
found_a="$additional_libdir/lib$name.$libext"
if test -f "$additional_libdir/lib$name.la"; then
found_la="$additional_libdir/lib$name.la"
fi
fi
fi
fi
if test "X$found_dir" = "X"; then
for x in $LDFLAGS $LTLIBICONV; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
case "$x" in
-L*)
dir=`echo "X$x" | sed -e 's/^X-L//'`
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
found_dir="$dir"
found_so="$dir/lib$name.$shlibext"
if test -f "$dir/lib$name.la"; then
found_la="$dir/lib$name.la"
fi
else
if test -f "$dir/lib$name.$libext"; then
found_dir="$dir"
found_a="$dir/lib$name.$libext"
if test -f "$dir/lib$name.la"; then
found_la="$dir/lib$name.la"
fi
fi
fi
;;
esac
if test "X$found_dir" != "X"; then
break
fi
done
fi
if test "X$found_dir" != "X"; then
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
if test "X$found_so" != "X"; then
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
else
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $found_dir"
fi
if test "$hardcode_direct" = yes; then
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
else
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $found_dir"
fi
else
haveit=
for x in $LDFLAGS $LIBICONV; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
fi
if test "$hardcode_minus_L" != no; then
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
else
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
fi
fi
fi
fi
else
if test "X$found_a" != "X"; then
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
else
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
fi
fi
additional_includedir=
case "$found_dir" in
*/lib | */lib/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
additional_includedir="$basedir/include"
;;
esac
if test "X$additional_includedir" != "X"; then
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
for x in $CPPFLAGS $INCICONV; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
fi
fi
fi
fi
fi
if test -n "$found_la"; then
save_libdir="$libdir"
case "$found_la" in
*/* | *\\*) . "$found_la" ;;
*) . "./$found_la" ;;
esac
libdir="$save_libdir"
for dep in $dependency_libs; do
case "$dep" in
-L*)
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
if test "X$additional_libdir" != "X/usr/lib"; then
haveit=
if test "X$additional_libdir" = "X/usr/local/lib"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
haveit=
for x in $LDFLAGS $LIBICONV; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
fi
fi
haveit=
for x in $LDFLAGS $LTLIBICONV; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
fi
fi
fi
fi
;;
-R*)
dir=`echo "X$dep" | sed -e 's/^X-R//'`
if test "$enable_rpath" != no; then
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $dir"
fi
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $dir"
fi
fi
;;
-l*)
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
;;
*.la)
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
;;
*)
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
;;
esac
done
fi
else
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
fi
fi
fi
done
done
if test "X$rpathdirs" != "X"; then
if test -n "$hardcode_libdir_separator"; then
alldirs=
for found_dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
done
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
else
for found_dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$found_dir"
eval flag=\"$hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
done
fi
fi
if test "X$ltrpathdirs" != "X"; then
for found_dir in $ltrpathdirs; do
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
done
fi
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
stdlib.h string.h unistd.h sys/param.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
2009-01-12 13:36:28 +00:00
geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
2004-07-27 13:29:18 +00:00
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
__fsetlocking
2001-11-13 17:56:06 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2001-11-13 17:56:06 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2001-11-13 17:56:06 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
done
2004-07-27 13:29:18 +00:00
am_save_CPPFLAGS="$CPPFLAGS"
for element in $INCICONV; do
haveit=
for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X$element"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for iconv" >&5
$as_echo_n "checking for iconv... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${am_cv_func_iconv+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
#include <iconv.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
am_cv_func_iconv=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
if test "$am_cv_func_iconv" != yes; then
am_save_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
#include <iconv.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
am_cv_lib_iconv=yes
am_cv_func_iconv=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
LIBS="$am_save_LIBS"
fi
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
$as_echo "$am_cv_func_iconv" >&6; }
2004-07-27 13:29:18 +00:00
if test "$am_cv_func_iconv" = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ICONV 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
if test "$am_cv_lib_iconv" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
$as_echo_n "checking how to link with libiconv... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
$as_echo "$LIBICONV" >&6; }
2004-07-27 13:29:18 +00:00
else
CPPFLAGS="$am_save_CPPFLAGS"
LIBICONV=
LTLIBICONV=
fi
if test "$am_cv_func_iconv" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
$as_echo_n "checking for iconv declaration... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${am_cv_proto_iconv+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
#include <iconv.h>
extern
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
2004-07-27 13:29:18 +00:00
"C"
#endif
#if defined(__STDC__) || defined(__cplusplus)
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
#else
size_t iconv();
2001-11-13 17:56:06 +00:00
#endif
int
main ()
{
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
am_cv_proto_iconv_arg1=""
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
am_cv_proto_iconv_arg1="const"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
2004-07-27 13:29:18 +00:00
}$am_cv_proto_iconv" >&5
2009-01-12 13:36:28 +00:00
$as_echo "${ac_t:-
}$am_cv_proto_iconv" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define ICONV_CONST $am_cv_proto_iconv_arg1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${am_cv_langinfo_codeset+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <langinfo.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
char* cs = nl_langinfo(CODESET);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
am_cv_langinfo_codeset=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
am_cv_langinfo_codeset=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
$as_echo "$am_cv_langinfo_codeset" >&6; }
2004-07-27 13:29:18 +00:00
if test $am_cv_langinfo_codeset = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LANGINFO_CODESET 1
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test $ac_cv_header_locale_h = yes; then
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
$as_echo_n "checking for LC_MESSAGES... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <locale.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
return LC_MESSAGES
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
am_cv_val_LC_MESSAGES=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
am_cv_val_LC_MESSAGES=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
2004-07-27 13:29:18 +00:00
if test $am_cv_val_LC_MESSAGES = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LC_MESSAGES 1
_ACEOF
fi
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
for ac_prog in bison
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_prog_INTLBISON+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
if test -n "$INTLBISON"; then
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2009-01-12 13:36:28 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004-07-27 13:29:18 +00:00
ac_cv_prog_INTLBISON="$ac_prog"
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004-07-27 13:29:18 +00:00
break 2
fi
done
done
2009-01-12 13:36:28 +00:00
IFS=$as_save_IFS
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
fi
INTLBISON=$ac_cv_prog_INTLBISON
if test -n "$INTLBISON"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
$as_echo "$INTLBISON" >&6; }
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
test -n "$INTLBISON" && break
done
if test -z "$INTLBISON"; then
ac_verc_fail=yes
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking version of bison" >&5
$as_echo_n "checking version of bison... " >&6; }
2004-07-27 13:29:18 +00:00
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
$as_echo "$ac_prog_version" >&6; }
2004-07-27 13:29:18 +00:00
fi
if test $ac_verc_fail = yes; then
INTLBISON=:
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
# Check whether --enable-nls was given.
2004-07-27 13:29:18 +00:00
if test "${enable_nls+set}" = set; then
2009-01-12 13:36:28 +00:00
enableval=$enable_nls; USE_NLS=$enableval
2004-07-27 13:29:18 +00:00
else
USE_NLS=yes
2009-01-12 13:36:28 +00:00
fi
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }
2004-07-27 13:29:18 +00:00
BUILD_INCLUDED_LIBINTL=no
USE_INCLUDED_LIBINTL=no
LIBINTL=
LTLIBINTL=
POSUB=
if test "$USE_NLS" = "yes"; then
gt_use_preinstalled_gnugettext=no
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
$as_echo_n "checking whether included gettext is requested... " >&6; }
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# Check whether --with-included-gettext was given.
2004-07-27 13:29:18 +00:00
if test "${with_included_gettext+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
2004-07-27 13:29:18 +00:00
else
nls_cv_force_use_gnu_gettext=no
2009-01-12 13:36:28 +00:00
fi
{ $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
2004-07-27 13:29:18 +00:00
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
$as_echo_n "checking for GNU gettext in libc... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern int *_nl_domain_bindings;
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
bindtextdomain ("", "");
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
gt_cv_func_gnugettext2_libc=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
gt_cv_func_gnugettext2_libc=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
use_additional=yes
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
2009-01-12 13:36:28 +00:00
# Check whether --with-libintl-prefix was given.
2004-07-27 13:29:18 +00:00
if test "${with_libintl_prefix+set}" = set; then
2009-01-12 13:36:28 +00:00
withval=$with_libintl_prefix;
2004-07-27 13:29:18 +00:00
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
else
additional_includedir="$withval/include"
additional_libdir="$withval/lib"
fi
fi
2009-01-12 13:36:28 +00:00
fi
2004-07-27 13:29:18 +00:00
LIBINTL=
LTLIBINTL=
INCINTL=
rpathdirs=
ltrpathdirs=
names_already_handled=
names_next_round='intl '
while test -n "$names_next_round"; do
names_this_round="$names_next_round"
names_next_round=
for name in $names_this_round; do
already_handled=
for n in $names_already_handled; do
if test "$n" = "$name"; then
already_handled=yes
break
fi
done
if test -z "$already_handled"; then
names_already_handled="$names_already_handled $name"
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
eval value=\"\$HAVE_LIB$uppername\"
if test -n "$value"; then
if test "$value" = yes; then
eval value=\"\$LIB$uppername\"
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
eval value=\"\$LTLIB$uppername\"
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
else
:
fi
else
found_dir=
found_la=
found_so=
found_a=
if test $use_additional = yes; then
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
found_dir="$additional_libdir"
found_so="$additional_libdir/lib$name.$shlibext"
if test -f "$additional_libdir/lib$name.la"; then
found_la="$additional_libdir/lib$name.la"
fi
else
if test -f "$additional_libdir/lib$name.$libext"; then
found_dir="$additional_libdir"
found_a="$additional_libdir/lib$name.$libext"
if test -f "$additional_libdir/lib$name.la"; then
found_la="$additional_libdir/lib$name.la"
fi
fi
fi
fi
if test "X$found_dir" = "X"; then
for x in $LDFLAGS $LTLIBINTL; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
case "$x" in
-L*)
dir=`echo "X$x" | sed -e 's/^X-L//'`
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
found_dir="$dir"
found_so="$dir/lib$name.$shlibext"
if test -f "$dir/lib$name.la"; then
found_la="$dir/lib$name.la"
fi
else
if test -f "$dir/lib$name.$libext"; then
found_dir="$dir"
found_a="$dir/lib$name.$libext"
if test -f "$dir/lib$name.la"; then
found_la="$dir/lib$name.la"
fi
fi
fi
;;
esac
if test "X$found_dir" != "X"; then
break
fi
done
fi
if test "X$found_dir" != "X"; then
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
if test "X$found_so" != "X"; then
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
else
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $found_dir"
fi
if test "$hardcode_direct" = yes; then
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
else
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $found_dir"
fi
else
haveit=
for x in $LDFLAGS $LIBINTL; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
fi
if test "$hardcode_minus_L" != no; then
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
else
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
fi
fi
fi
fi
else
if test "X$found_a" != "X"; then
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
else
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
fi
fi
additional_includedir=
case "$found_dir" in
*/lib | */lib/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
additional_includedir="$basedir/include"
;;
esac
if test "X$additional_includedir" != "X"; then
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
for x in $CPPFLAGS $INCINTL; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
fi
fi
fi
fi
fi
if test -n "$found_la"; then
save_libdir="$libdir"
case "$found_la" in
*/* | *\\*) . "$found_la" ;;
*) . "./$found_la" ;;
esac
libdir="$save_libdir"
for dep in $dependency_libs; do
case "$dep" in
-L*)
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
if test "X$additional_libdir" != "X/usr/lib"; then
haveit=
if test "X$additional_libdir" = "X/usr/local/lib"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
haveit=
for x in $LDFLAGS $LIBINTL; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
fi
fi
haveit=
for x in $LDFLAGS $LTLIBINTL; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
fi
fi
fi
fi
;;
-R*)
dir=`echo "X$dep" | sed -e 's/^X-R//'`
if test "$enable_rpath" != no; then
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $dir"
fi
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $dir"
fi
fi
;;
-l*)
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
;;
*.la)
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
;;
*)
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
;;
esac
done
fi
else
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
fi
fi
fi
done
done
if test "X$rpathdirs" != "X"; then
if test -n "$hardcode_libdir_separator"; then
alldirs=
for found_dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
done
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
else
for found_dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$found_dir"
eval flag=\"$hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
done
fi
fi
if test "X$ltrpathdirs" != "X"; then
for found_dir in $ltrpathdirs; do
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
done
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
gt_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCINTL"
gt_save_LIBS="$LIBS"
LIBS="$LIBS $LIBINTL"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias ();
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
bindtextdomain ("", "");
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
gt_cv_func_gnugettext2_libintl=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
gt_cv_func_gnugettext2_libintl=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
LIBS="$LIBS $LIBICONV"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias ();
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
bindtextdomain ("", "");
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
LIBINTL="$LIBINTL $LIBICONV"
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
gt_cv_func_gnugettext2_libintl=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
CPPFLAGS="$gt_save_CPPFLAGS"
LIBS="$gt_save_LIBS"
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
2004-07-27 13:29:18 +00:00
fi
if test "$gt_cv_func_gnugettext2_libc" = "yes" \
|| { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
&& test "$PACKAGE" != gettext-runtime \
&& test "$PACKAGE" != gettext-tools; }; then
gt_use_preinstalled_gnugettext=yes
else
LIBINTL=
LTLIBINTL=
INCINTL=
fi
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
nls_cv_use_gnu_gettext=yes
fi
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test "$nls_cv_use_gnu_gettext" = "yes"; then
BUILD_INCLUDED_LIBINTL=yes
USE_INCLUDED_LIBINTL=yes
LIBINTL="lib/intl/libintl.a $LIBICONV"
LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
CATOBJEXT=.gmo
fi
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define ENABLE_NLS 1
_ACEOF
else
USE_NLS=no
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
$as_echo_n "checking whether to use NLS... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }
2004-07-27 13:29:18 +00:00
if test "$USE_NLS" = "yes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
$as_echo_n "checking where the gettext function comes from... " >&6; }
2004-07-27 13:29:18 +00:00
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
gt_source="external libintl"
else
gt_source="libc"
fi
else
gt_source="included intl directory"
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $gt_source" >&5
$as_echo "$gt_source" >&6; }
2004-07-27 13:29:18 +00:00
fi
if test "$USE_NLS" = "yes"; then
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
$as_echo_n "checking how to link with libintl... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
$as_echo "$LIBINTL" >&6; }
2004-07-27 13:29:18 +00:00
for element in $INCINTL; do
haveit=
for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
eval x=\"$x\"
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
if test "X$x" = "X$element"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETTEXT 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_DCGETTEXT 1
_ACEOF
fi
POSUB=po
fi
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
BUILD_INCLUDED_LIBINTL=yes
fi
nls_cv_header_intl=
nls_cv_header_libgt=
DATADIRNAME=share
INSTOBJEXT=.mo
GENCAT=gencat
if test "$USE_INCLUDED_LIBINTL" = yes; then
INTLOBJS="\$(GETTOBJS)"
fi
INTL_LIBTOOL_SUFFIX_PREFIX=
INTLLIBS="$LIBINTL"
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <$ac_hdr>
2002-07-17 14:10:11 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
if ((DIR *) 0)
return 0;
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_Header=yes"
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_Header=no"
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
ac_header_dirent=$ac_hdr; break
2002-07-17 14:10:11 +00:00
fi
2004-07-27 13:29:18 +00:00
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_search_opendir+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
2001-11-13 17:56:06 +00:00
#endif
2004-07-27 13:29:18 +00:00
char opendir ();
2001-11-13 17:56:06 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return opendir ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2009-01-12 13:36:28 +00:00
for ac_lib in '' dir; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_search_opendir=$ac_res
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
fi
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
done
if test "${ac_cv_search_opendir+set}" = set; then
:
else
ac_cv_search_opendir=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm conftest.$ac_ext
2004-07-27 13:29:18 +00:00
LIBS=$ac_func_search_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_search_opendir+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
2001-11-13 17:56:06 +00:00
#endif
2004-07-27 13:29:18 +00:00
char opendir ();
2001-11-13 17:56:06 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return opendir ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2009-01-12 13:36:28 +00:00
for ac_lib in '' x; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_search_opendir=$ac_res
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
fi
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
done
if test "${ac_cv_search_opendir+set}" = set; then
:
else
ac_cv_search_opendir=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm conftest.$ac_ext
2004-07-27 13:29:18 +00:00
LIBS=$ac_func_search_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
fi
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_header_time+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
if ((struct tm *) 0)
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_header_time=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_header_time=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_header_time = yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
for ac_header in inttypes.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-11-13 17:56:06 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
2005-12-07 14:08:12 +00:00
2011-11-21 20:51:19 -05:00
2004-07-27 13:29:18 +00:00
for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
2011-11-21 20:51:19 -05:00
stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
syslog.h ulimit.h
2001-11-13 17:56:06 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2001-11-13 17:56:06 +00:00
else
2004-07-27 13:29:18 +00:00
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2005-12-07 14:08:12 +00:00
for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
2004-07-27 13:29:18 +00:00
sys/resource.h sys/param.h sys/socket.h sys/stat.h \
sys/time.h sys/times.h sys/types.h sys/wait.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
for ac_header in netinet/in.h arpa/inet.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
$as_echo_n "checking for sys/ptem.h... " >&6; }
2005-12-07 14:08:12 +00:00
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2005-12-07 14:08:12 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-12-07 14:08:12 +00:00
#if HAVE_SYS_STREAM_H
# include <sys/stream.h>
#endif
#include <sys/ptem.h>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2005-12-07 14:08:12 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-12-07 14:08:12 +00:00
ac_cv_header_sys_ptem_h=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_header_sys_ptem_h=no
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
$as_echo "$ac_cv_header_sys_ptem_h" >&6; }
2005-12-07 14:08:12 +00:00
2004-07-27 13:29:18 +00:00
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_working_alloca_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
2009-01-12 13:36:28 +00:00
if (p) return 0;
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_working_alloca_h=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_working_alloca_h=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_working_alloca_h = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA_H 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_alloca_works+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
# else
2009-01-12 13:36:28 +00:00
# ifdef HAVE_ALLOCA_H
2004-07-27 13:29:18 +00:00
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif
# endif
# endif
# endif
#endif
int
main ()
{
char *p = (char *) alloca (1);
2009-01-12 13:36:28 +00:00
if (p) return 0;
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_alloca_works=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_alloca_works=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_alloca_works = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA 1
_ACEOF
else
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble. Some versions do not even contain alloca or
# contain a buggy version. If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.
2009-01-12 13:36:28 +00:00
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define C_ALLOCA 1
_ACEOF
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_os_cray+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
#if defined CRAY && ! defined CRAY2
2004-07-27 13:29:18 +00:00
webecray
#else
wenotbecray
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "webecray" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
ac_cv_os_cray=yes
else
ac_cv_os_cray=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF
break
fi
done
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_c_stack_direction+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_c_stack_direction=0
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
$ac_includes_default
2004-07-27 13:29:18 +00:00
int
find_stack_direction ()
{
static char *addr = 0;
auto char dummy;
if (addr == 0)
{
addr = &dummy;
return find_stack_direction ();
}
else
return (&dummy > addr) ? 1 : -1;
}
int
main ()
{
2009-01-12 13:36:28 +00:00
return find_stack_direction () < 0;
2004-07-27 13:29:18 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
ac_cv_c_stack_direction=1
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_c_stack_direction=-1
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_getpgrp_void+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
# Use it with a single arg.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
getpgrp (0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_func_getpgrp_void=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_getpgrp_void=yes
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
$as_echo "$ac_cv_func_getpgrp_void" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_getpgrp_void = yes; then
cat >>confdefs.h <<\_ACEOF
#define GETPGRP_VOID 1
_ACEOF
fi
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
ac_cv_func_setvbuf_reversed=no
fi
2004-07-27 13:29:18 +00:00
for ac_func in vprintf
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
$as_echo_n "checking for _doprnt... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func__doprnt+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define _doprnt innocuous__doprnt
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char _doprnt (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef _doprnt
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
extern "C"
2004-07-27 13:29:18 +00:00
#endif
char _doprnt ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub__doprnt || defined __stub____doprnt
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return _doprnt ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func__doprnt=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func__doprnt=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
$as_echo "$ac_cv_func__doprnt" >&6; }
if test "x$ac_cv_func__doprnt" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_DOPRNT 1
_ACEOF
fi
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
$as_echo_n "checking for working strcoll... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_strcoll_works+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_func_strcoll_works=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
return (strcoll ("abc", "def") >= 0 ||
2004-07-27 13:29:18 +00:00
strcoll ("ABC", "DEF") >= 0 ||
strcoll ("123", "456") >= 0)
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
ac_cv_func_strcoll_works=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_func_strcoll_works=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
$as_echo "$ac_cv_func_strcoll_works" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_strcoll_works = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRCOLL 1
_ACEOF
fi
if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
MALLOC_TARGET=alloca
MALLOC_SRC=alloca.c
MALLOC_LIB='-lmalloc'
MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
MALLOC_DEP='$(MALLOC_LIBRARY)'
fi
if test "$ac_cv_func_vprintf" = no; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdio.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
ac_cv_func_vprintf=yes
fi
rm -f conftest*
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
$as_echo "$ac_cv_func_vprintf" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_vprintf = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_VPRINTF 1
_ACEOF
fi
fi
if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" vprint.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS vprint.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_type_signal+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <signal.h>
int
main ()
{
2009-01-12 13:36:28 +00:00
return *(signal (0, 0)) (0) == 1;
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_signal=int
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_type_signal=void
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for __setostype" >&5
$as_echo_n "checking for __setostype... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func___setostype+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define __setostype innocuous___setostype
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char __setostype (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef __setostype
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char __setostype ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub___setostype || defined __stub_____setostype
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return __setostype ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func___setostype=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func___setostype=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
$as_echo "$ac_cv_func___setostype" >&6; }
if test "x$ac_cv_func___setostype" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_SETOSTYPE 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wait3" >&5
$as_echo_n "checking for wait3... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_wait3+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wait3 innocuous_wait3
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char wait3 (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wait3
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char wait3 ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_wait3 || defined __stub___wait3
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return wait3 ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_wait3=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_wait3=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
$as_echo "$ac_cv_func_wait3" >&6; }
if test "x$ac_cv_func_wait3" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_WAIT3 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for isinf" >&5
$as_echo_n "checking for isinf... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_isinf+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define isinf innocuous_isinf
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char isinf (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef isinf
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char isinf ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_isinf || defined __stub___isinf
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return isinf ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_isinf=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_isinf=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
$as_echo "$ac_cv_func_isinf" >&6; }
if test "x$ac_cv_func_isinf" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISINF_IN_LIBC 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for isnan" >&5
$as_echo_n "checking for isnan... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_func_isnan+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define isnan innocuous_isnan
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char isnan (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef isnan
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
extern "C"
#endif
char isnan ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_isnan || defined __stub___isnan
2006-10-10 14:15:34 +00:00
choke me
#endif
int
main ()
{
2009-01-12 13:36:28 +00:00
return isnan ();
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
ac_cv_func_isnan=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_isnan=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
$as_echo "$ac_cv_func_isnan" >&6; }
if test "x$ac_cv_func_isnan" = x""yes; then
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISNAN_IN_LIBC 1
_ACEOF
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
$as_echo_n "checking for mkfifo... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_mkfifo+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define mkfifo innocuous_mkfifo
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char mkfifo (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef mkfifo
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char mkfifo ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_mkfifo || defined __stub___mkfifo
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return mkfifo ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_mkfifo=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_mkfifo=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
$as_echo "$ac_cv_func_mkfifo" >&6; }
if test "x$ac_cv_func_mkfifo" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_MKFIFO 1
_ACEOF
else
cat >>confdefs.h <<\_ACEOF
#define MKFIFO_MISSING 1
_ACEOF
fi
2005-12-07 14:08:12 +00:00
2009-01-12 13:36:28 +00:00
2005-12-07 14:08:12 +00:00
2006-10-10 14:15:34 +00:00
for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
getpagesize getpeername getrlimit getrusage gettimeofday \
kill killpg lstat readlink sbrk select setdtablesize \
2009-01-12 13:36:28 +00:00
setitimer tcgetpgrp uname ulimit waitpid
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2005-12-07 14:08:12 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2005-12-07 14:08:12 +00:00
choke me
2004-07-27 13:29:18 +00:00
#endif
2005-12-07 14:08:12 +00:00
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2005-12-07 14:08:12 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2005-12-07 14:08:12 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2005-12-07 14:08:12 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2005-12-07 14:08:12 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2005-12-07 14:08:12 +00:00
_ACEOF
fi
done
for ac_func in rename
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2005-12-07 14:08:12 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2005-12-07 14:08:12 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2005-12-07 14:08:12 +00:00
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2005-12-07 14:08:12 +00:00
;
return 0;
2004-07-27 13:29:18 +00:00
}
2005-12-07 14:08:12 +00:00
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2005-12-07 14:08:12 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2005-12-07 14:08:12 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2005-12-07 14:08:12 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2005-12-07 14:08:12 +00:00
_ACEOF
else
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" $ac_func.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2005-12-07 14:08:12 +00:00
fi
done
2011-11-21 20:51:19 -05:00
2005-12-07 14:08:12 +00:00
for ac_func in bcopy bzero confstr faccessat fnmatch \
2005-12-07 14:08:12 +00:00
getaddrinfo gethostbyname getservbyname getservent inet_aton \
memmove pathconf putenv raise regcomp regexec \
setenv setlinebuf setlocale setvbuf siginterrupt strchr \
2011-11-21 20:51:19 -05:00
sysconf syslog tcgetattr times ttyname tzset unsetenv
2005-12-07 14:08:12 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2005-12-07 14:08:12 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2005-12-07 14:08:12 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2005-12-07 14:08:12 +00:00
#ifdef __cplusplus
extern "C"
2004-07-27 13:29:18 +00:00
#endif
2005-12-07 14:08:12 +00:00
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2005-12-07 14:08:12 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2005-12-07 14:08:12 +00:00
2011-11-21 20:51:19 -05:00
for ac_func in vasprintf asprintf
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2005-12-07 14:08:12 +00:00
for ac_func in isascii isblank isgraph isprint isspace isxdigit
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2005-12-07 14:08:12 +00:00
for ac_func in getpwent getpwnam getpwuid
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2011-11-21 20:51:19 -05:00
for ac_func in getcwd memset
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
fi
done
2004-07-27 13:29:18 +00:00
2005-12-07 14:08:12 +00:00
2011-11-21 20:51:19 -05:00
for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
else
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" $ac_func.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2004-07-27 13:29:18 +00:00
fi
done
for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
2009-01-12 13:36:28 +00:00
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
fi
done
for ac_func in dprintf
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
fi
done
for ac_func in strchrnul
2009-01-12 13:36:28 +00:00
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
2004-07-27 13:29:18 +00:00
#else
2009-01-12 13:36:28 +00:00
# include <assert.h>
2006-10-10 14:15:34 +00:00
#endif
2009-01-12 13:36:28 +00:00
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
2009-01-12 13:36:28 +00:00
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
2004-07-27 13:29:18 +00:00
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
else
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" $ac_func.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2004-07-27 13:29:18 +00:00
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
$as_echo_n "checking whether confstr is declared... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_have_decl_confstr+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
#ifndef confstr
2009-01-12 13:36:28 +00:00
(void) confstr;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_have_decl_confstr=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_confstr=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
$as_echo "$ac_cv_have_decl_confstr" >&6; }
if test "x$ac_cv_have_decl_confstr" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CONFSTR 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CONFSTR 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
$as_echo_n "checking whether printf is declared... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_have_decl_printf+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
#ifndef printf
2009-01-12 13:36:28 +00:00
(void) printf;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_have_decl_printf=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_printf=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
$as_echo "$ac_cv_have_decl_printf" >&6; }
if test "x$ac_cv_have_decl_printf" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PRINTF 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PRINTF 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
$as_echo_n "checking whether sbrk is declared... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_have_decl_sbrk+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
#ifndef sbrk
2009-01-12 13:36:28 +00:00
(void) sbrk;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_have_decl_sbrk=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_sbrk=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
$as_echo "$ac_cv_have_decl_sbrk" >&6; }
if test "x$ac_cv_have_decl_sbrk" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SBRK 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SBRK 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
$as_echo_n "checking whether setregid is declared... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_have_decl_setregid+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2006-10-10 14:15:34 +00:00
#ifndef setregid
2009-01-12 13:36:28 +00:00
(void) setregid;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
ac_cv_have_decl_setregid=yes
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_setregid=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
$as_echo "$ac_cv_have_decl_setregid" >&6; }
if test "x$ac_cv_have_decl_setregid" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2006-10-10 14:15:34 +00:00
#define HAVE_DECL_SETREGID 1
2004-07-27 13:29:18 +00:00
_ACEOF
else
cat >>confdefs.h <<_ACEOF
2006-10-10 14:15:34 +00:00
#define HAVE_DECL_SETREGID 0
2004-07-27 13:29:18 +00:00
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
$as_echo_n "checking whether strcpy is declared... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_have_decl_strcpy+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
2006-10-10 14:15:34 +00:00
int
main ()
{
#ifndef strcpy
2009-01-12 13:36:28 +00:00
(void) strcpy;
2005-12-07 14:08:12 +00:00
#endif
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
ac_cv_have_decl_strcpy=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_strcpy=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
$as_echo "$ac_cv_have_decl_strcpy" >&6; }
if test "x$ac_cv_have_decl_strcpy" = x""yes; then
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRCPY 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRCPY 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
$as_echo_n "checking whether strsignal is declared... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_have_decl_strsignal+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2004-07-27 13:29:18 +00:00
int
main ()
{
#ifndef strsignal
2009-01-12 13:36:28 +00:00
(void) strsignal;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_have_decl_strsignal=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_strsignal=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
$as_echo "$ac_cv_have_decl_strsignal" >&6; }
if test "x$ac_cv_have_decl_strsignal" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRSIGNAL 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRSIGNAL 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
$as_echo_n "checking whether strtold is declared... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_have_decl_strtold+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
#ifndef strtold
2009-01-12 13:36:28 +00:00
(void) strtold;
2004-07-27 13:29:18 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_have_decl_strtold=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_strtold=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
$as_echo "$ac_cv_have_decl_strtold" >&6; }
if test "x$ac_cv_have_decl_strtold" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRTOLD 1
_ACEOF
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
$as_echo_n "checking for broken strtold... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_strtold_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdlib.h>
int
main ()
{
int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
bash_cv_strtold_broken=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_strtold_broken=yes
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
$as_echo "$bash_cv_strtold_broken" >&6; }
2004-07-27 13:29:18 +00:00
if test "$bash_cv_strtold_broken" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define STRTOLD_BROKEN 1
_ACEOF
fi
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRTOLD 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
$as_echo_n "checking for declaration of strtoimax... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtoimax+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtoimax;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtoimax=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtoimax=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
$as_echo "$bash_cv_decl_strtoimax" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtoimax = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
$as_echo_n "checking for declaration of strtol... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtol+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtol;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtol=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtol=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
$as_echo "$bash_cv_decl_strtol" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtol = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
$as_echo_n "checking for declaration of strtoll... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtoll+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtoll;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtoll=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtoll=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
$as_echo "$bash_cv_decl_strtoll" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtoll = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
$as_echo_n "checking for declaration of strtoul... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtoul+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtoul;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtoul=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtoul=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
$as_echo "$bash_cv_decl_strtoul" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtoul = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
$as_echo_n "checking for declaration of strtoull... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtoull+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtoull;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtoull=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtoull=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
$as_echo "$bash_cv_decl_strtoull" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtoull = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
$as_echo_n "checking for declaration of strtoumax... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_decl_strtoumax+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#if STDC_HEADERS
# include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
int
main ()
{
return !strtoumax;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
bash_cv_decl_strtoumax=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_strtoumax=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
$as_echo "$bash_cv_decl_strtoumax" >&6; }
2004-07-27 13:29:18 +00:00
bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
if test $bash_cv_decl_strtoumax = yes; then
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define $bash_tr_func 0
_ACEOF
fi
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
for ac_header in $ac_header_list
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
for ac_func in $ac_func_list
2004-07-27 13:29:18 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
$as_echo_n "checking for working mktime... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_working_mktime+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_func_working_mktime=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
/* Test program from Paul Eggert and Tony Leneis. */
2009-01-12 13:36:28 +00:00
#ifdef TIME_WITH_SYS_TIME
2004-07-27 13:29:18 +00:00
# include <sys/time.h>
# include <time.h>
#else
2009-01-12 13:36:28 +00:00
# ifdef HAVE_SYS_TIME_H
2004-07-27 13:29:18 +00:00
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
2009-01-12 13:36:28 +00:00
#include <limits.h>
#include <stdlib.h>
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
#ifdef HAVE_UNISTD_H
2004-07-27 13:29:18 +00:00
# include <unistd.h>
#endif
2009-01-12 13:36:28 +00:00
#ifndef HAVE_ALARM
2004-07-27 13:29:18 +00:00
# define alarm(X) /* empty */
#endif
2002-07-17 14:10:11 +00:00
/* Work around redefinition to rpl_putenv by other config tests. */
#undef putenv
2004-07-27 13:29:18 +00:00
static time_t time_t_max;
2006-10-10 14:15:34 +00:00
static time_t time_t_min;
2004-07-27 13:29:18 +00:00
/* Values we'll use to set the TZ environment variable. */
2006-10-10 14:15:34 +00:00
static char *tz_strings[] = {
(char *) 0, "TZ=GMT0", "TZ=JST-9",
2004-07-27 13:29:18 +00:00
"TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
};
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
2009-01-12 13:36:28 +00:00
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
2004-07-27 13:29:18 +00:00
Based on a problem report from Andreas Jaeger. */
2009-01-12 13:36:28 +00:00
static int
2004-07-27 13:29:18 +00:00
spring_forward_gap ()
{
/* glibc (up to about 1998-10-07) failed this test. */
struct tm tm;
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
instead of "TZ=America/Vancouver" in order to detect the bug even
on systems that don't support the Olson extension, or don't have the
full zoneinfo tables installed. */
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
tm.tm_year = 98;
tm.tm_mon = 3;
tm.tm_mday = 5;
tm.tm_hour = 2;
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_isdst = -1;
2009-01-12 13:36:28 +00:00
return mktime (&tm) != (time_t) -1;
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
static int
2006-10-10 14:15:34 +00:00
mktime_test1 (now)
2004-07-27 13:29:18 +00:00
time_t now;
{
struct tm *lt;
2009-01-12 13:36:28 +00:00
return ! (lt = localtime (&now)) || mktime (lt) == now;
2006-10-10 14:15:34 +00:00
}
2009-01-12 13:36:28 +00:00
static int
2006-10-10 14:15:34 +00:00
mktime_test (now)
time_t now;
{
2009-01-12 13:36:28 +00:00
return (mktime_test1 (now)
&& mktime_test1 ((time_t) (time_t_max - now))
&& mktime_test1 ((time_t) (time_t_min + now)));
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
static int
2004-07-27 13:29:18 +00:00
irix_6_4_bug ()
{
/* Based on code from Ariel Faigon. */
struct tm tm;
tm.tm_year = 96;
tm.tm_mon = 3;
tm.tm_mday = 0;
tm.tm_hour = 0;
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_isdst = -1;
mktime (&tm);
2009-01-12 13:36:28 +00:00
return tm.tm_mon == 2 && tm.tm_mday == 31;
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
static int
2004-07-27 13:29:18 +00:00
bigtime_test (j)
int j;
{
struct tm tm;
time_t now;
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
now = mktime (&tm);
if (now != (time_t) -1)
{
struct tm *lt = localtime (&now);
if (! (lt
&& lt->tm_year == tm.tm_year
&& lt->tm_mon == tm.tm_mon
&& lt->tm_mday == tm.tm_mday
&& lt->tm_hour == tm.tm_hour
&& lt->tm_min == tm.tm_min
&& lt->tm_sec == tm.tm_sec
&& lt->tm_yday == tm.tm_yday
&& lt->tm_wday == tm.tm_wday
&& ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
== (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
2009-01-12 13:36:28 +00:00
return 0;
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
static int
year_2050_test ()
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
/* The correct answer for 2050-02-01 00:00:00 in Pacific time,
ignoring leap seconds. */
unsigned long int answer = 2527315200UL;
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
struct tm tm;
time_t t;
tm.tm_year = 2050 - 1900;
tm.tm_mon = 2 - 1;
tm.tm_mday = 1;
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
tm.tm_isdst = -1;
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
instead of "TZ=America/Vancouver" in order to detect the bug even
on systems that don't support the Olson extension, or don't have the
full zoneinfo tables installed. */
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
t = mktime (&tm);
/* Check that the result is either a failure, or close enough
to the correct answer that we can assume the discrepancy is
due to leap seconds. */
return (t == (time_t) -1
|| (0 < t && answer - 120 <= t && t <= answer + 120));
}
int
main ()
{
time_t t, delta;
int i, j;
/* This test makes some buggy mktime implementations loop.
Give up after 60 seconds; a mktime slower than that
isn't worth using anyway. */
alarm (60);
for (;;)
{
t = (time_t_max << 1) + 1;
if (t <= time_t_max)
break;
time_t_max = t;
}
time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
delta = time_t_max / 997; /* a suitable prime number */
for (i = 0; i < N_STRINGS; i++)
2004-07-27 13:29:18 +00:00
{
if (tz_strings[i])
putenv (tz_strings[i]);
for (t = 0; t <= time_t_max - delta; t += delta)
2009-01-12 13:36:28 +00:00
if (! mktime_test (t))
return 1;
if (! (mktime_test ((time_t) 1)
&& mktime_test ((time_t) (60 * 60))
&& mktime_test ((time_t) (60 * 60 * 24))))
return 1;
for (j = 1; ; j <<= 1)
if (! bigtime_test (j))
return 1;
else if (INT_MAX / 2 < j)
break;
if (! bigtime_test (INT_MAX))
return 1;
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
2004-07-27 13:29:18 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
ac_cv_func_working_mktime=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_func_working_mktime=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
$as_echo "$ac_cv_func_working_mktime" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_working_mktime = no; then
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" mktime.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS mktime.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2004-07-27 13:29:18 +00:00
fi
for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
for ac_header in stdlib.h unistd.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
for ac_func in getpagesize
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
$as_echo_n "checking for working mmap... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_func_mmap_fixed_mapped=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc
/* Thanks to Mike Haertel and Jim Avera for this test.
Here is a matrix of mmap possibilities:
mmap private not fixed
mmap private fixed at somewhere currently unmapped
mmap private fixed at somewhere already mapped
mmap shared not fixed
mmap shared fixed at somewhere currently unmapped
mmap shared fixed at somewhere already mapped
For private mappings, we should verify that changes cannot be read()
back from the file, nor mmap's back from the file at a different
address. (There have been systems where private was not correctly
implemented like the infamous i386 svr4.0, and systems where the
VM page cache was not coherent with the file system buffer cache
like early versions of FreeBSD and possibly contemporary NetBSD.)
For shared mappings, we should conversely verify that changes get
propagated back to all the places they're supposed to be.
Grep wants private fixed already mapped.
The main things grep needs to know about mmap are:
* does it exist and is it safe to write into the mmap'd area
* how to use it (BSD variants) */
#include <fcntl.h>
#include <sys/mman.h>
2009-01-12 13:36:28 +00:00
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
2004-07-27 13:29:18 +00:00
char *malloc ();
#endif
/* This mess was copied from the GNU getpagesize.h. */
2009-01-12 13:36:28 +00:00
#ifndef HAVE_GETPAGESIZE
2004-07-27 13:29:18 +00:00
/* Assume that all systems that can run configure have sys/param.h. */
2009-01-12 13:36:28 +00:00
# ifndef HAVE_SYS_PARAM_H
2004-07-27 13:29:18 +00:00
# define HAVE_SYS_PARAM_H 1
# endif
# ifdef _SC_PAGESIZE
# define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
2009-01-12 13:36:28 +00:00
# ifdef HAVE_SYS_PARAM_H
2004-07-27 13:29:18 +00:00
# include <sys/param.h>
# ifdef EXEC_PAGESIZE
# define getpagesize() EXEC_PAGESIZE
# else /* no EXEC_PAGESIZE */
# ifdef NBPG
# define getpagesize() NBPG * CLSIZE
# ifndef CLSIZE
# define CLSIZE 1
# endif /* no CLSIZE */
# else /* no NBPG */
# ifdef NBPC
# define getpagesize() NBPC
# else /* no NBPC */
# ifdef PAGESIZE
# define getpagesize() PAGESIZE
# endif /* PAGESIZE */
# endif /* no NBPC */
# endif /* no NBPG */
# endif /* no EXEC_PAGESIZE */
# else /* no HAVE_SYS_PARAM_H */
# define getpagesize() 8192 /* punt totally */
# endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
int
main ()
{
char *data, *data2, *data3;
int i, pagesize;
int fd;
pagesize = getpagesize ();
/* First, make a file with some known garbage in it. */
data = (char *) malloc (pagesize);
if (!data)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
*(data + i) = rand ();
umask (0);
fd = creat ("conftest.mmap", 0600);
if (fd < 0)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
if (write (fd, data, pagesize) != pagesize)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
close (fd);
/* Next, try to mmap the file at a fixed address which already has
something else allocated at it. If we can, also make sure that
we see the same garbage. */
fd = open ("conftest.mmap", O_RDWR);
if (fd < 0)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
data2 = (char *) malloc (2 * pagesize);
if (!data2)
2009-01-12 13:36:28 +00:00
return 1;
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
2004-07-27 13:29:18 +00:00
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
2006-10-10 14:15:34 +00:00
MAP_PRIVATE | MAP_FIXED, fd, 0L))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data2 + i))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
/* Finally, make sure that changes to the mapped area do not
percolate back to the file as seen by read(). (This is a bug on
some variants of i386 svr4.0.) */
for (i = 0; i < pagesize; ++i)
*(data2 + i) = *(data2 + i) + 1;
data3 = (char *) malloc (pagesize);
if (!data3)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
if (read (fd, data3, pagesize) != pagesize)
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data3 + i))
2009-01-12 13:36:28 +00:00
return 1;
2004-07-27 13:29:18 +00:00
close (fd);
2009-01-12 13:36:28 +00:00
return 0;
2004-07-27 13:29:18 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
ac_cv_func_mmap_fixed_mapped=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
2004-07-27 13:29:18 +00:00
if test $ac_cv_func_mmap_fixed_mapped = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
_ACEOF
fi
rm -f conftest.mmap
for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
munmap stpcpy strcspn strdup
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
fi
done
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
INTL_DEP= INTL_INC= LIBINTL_H=
if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
INTL_DEP='${INTL_LIBDIR}/libintl.a'
INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
fi
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
for ac_header in wctype.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
done
for ac_header in wchar.h
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
else
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2004-07-27 13:29:18 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2004-07-27 13:29:18 +00:00
done
for ac_header in langinfo.h
2002-07-17 14:10:11 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2002-07-17 14:10:11 +00:00
else
2004-07-27 13:29:18 +00:00
# Is the header compilable?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_header_compiler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_header_compiler=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2004-07-27 13:29:18 +00:00
# Is the header present?
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-07-17 14:10:11 +00:00
#include <$ac_header>
_ACEOF
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-07-17 14:10:11 +00:00
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2004-07-27 13:29:18 +00:00
ac_header_preproc=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
ac_header_preproc=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
2002-07-17 14:10:11 +00:00
rm -f conftest.err conftest.$ac_ext
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2004-07-27 13:29:18 +00:00
# So? What about this header?
2006-10-10 14:15:34 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2006-10-10 14:15:34 +00:00
ac_header_preproc=yes
;;
no:yes:* )
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
2006-10-10 14:15:34 +00:00
## ------------------------------- ##
## Report this to bug-bash@gnu.org ##
## ------------------------------- ##
_ASBOX
2009-01-12 13:36:28 +00:00
) | sed "s/^/$as_me: WARNING: /" >&2
2006-10-10 14:15:34 +00:00
;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
2006-10-10 14:15:34 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2004-07-27 13:29:18 +00:00
2002-07-17 14:10:11 +00:00
done
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
$as_echo_n "checking for mbrlen... " >&6; }
if test "${ac_cv_func_mbrlen+set}" = set; then
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-01-12 13:36:28 +00:00
/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
2006-10-10 14:15:34 +00:00
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2009-01-12 13:36:28 +00:00
#define mbrlen innocuous_mbrlen
2006-10-10 14:15:34 +00:00
2002-07-17 14:10:11 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2009-01-12 13:36:28 +00:00
which can conflict with char mbrlen (); below.
2006-10-10 14:15:34 +00:00
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2009-01-12 13:36:28 +00:00
#undef mbrlen
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-07-17 14:10:11 +00:00
#ifdef __cplusplus
extern "C"
#endif
2009-01-12 13:36:28 +00:00
char mbrlen ();
2002-07-17 14:10:11 +00:00
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_mbrlen || defined __stub___mbrlen
2002-07-17 14:10:11 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return mbrlen ();
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_func_mbrlen=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_mbrlen=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
$as_echo "$ac_cv_func_mbrlen" >&6; }
if test "x$ac_cv_func_mbrlen" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2009-01-12 13:36:28 +00:00
#define HAVE_MBRLEN 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
$as_echo_n "checking for mbscasecmp... " >&6; }
if test "${ac_cv_func_mbscasecmp+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2011-11-21 20:51:19 -05:00
/* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
2006-10-10 14:15:34 +00:00
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011-11-21 20:51:19 -05:00
#define mbscasecmp innocuous_mbscasecmp
2006-10-10 14:15:34 +00:00
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2011-11-21 20:51:19 -05:00
which can conflict with char mbscasecmp (); below.
2006-10-10 14:15:34 +00:00
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2011-11-21 20:51:19 -05:00
#undef mbscasecmp
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-07-17 14:10:11 +00:00
#ifdef __cplusplus
extern "C"
#endif
2011-11-21 20:51:19 -05:00
char mbscasecmp ();
2004-07-27 13:29:18 +00:00
/* 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. */
2011-11-21 20:51:19 -05:00
#if defined __stub_mbscasecmp || defined __stub___mbscasecmp
2004-07-27 13:29:18 +00:00
choke me
2009-01-12 13:36:28 +00:00
#endif
int
main ()
{
2011-11-21 20:51:19 -05:00
return mbscasecmp ();
2009-01-12 13:36:28 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2011-11-21 20:51:19 -05:00
ac_cv_func_mbscasecmp=yes
2009-01-12 13:36:28 +00:00
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2011-11-21 20:51:19 -05:00
ac_cv_func_mbscasecmp=no
2009-01-12 13:36:28 +00:00
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
$as_echo "$ac_cv_func_mbscasecmp" >&6; }
if test "x$ac_cv_func_mbscasecmp" = x""yes; then
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_MBSCMP 1
_ACEOF
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
$as_echo_n "checking for mbscmp... " >&6; }
if test "${ac_cv_func_mbscmp+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2011-11-21 20:51:19 -05:00
/* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
2009-01-12 13:36:28 +00:00
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011-11-21 20:51:19 -05:00
#define mbscmp innocuous_mbscmp
2009-01-12 13:36:28 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2011-11-21 20:51:19 -05:00
which can conflict with char mbscmp (); below.
2009-01-12 13:36:28 +00:00
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
2004-07-27 13:29:18 +00:00
#else
2009-01-12 13:36:28 +00:00
# include <assert.h>
2006-10-10 14:15:34 +00:00
#endif
2009-01-12 13:36:28 +00:00
2011-11-21 20:51:19 -05:00
#undef mbscmp
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
2009-01-12 13:36:28 +00:00
extern "C"
#endif
2011-11-21 20:51:19 -05:00
char mbscmp ();
2009-01-12 13:36:28 +00:00
/* 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. */
2011-11-21 20:51:19 -05:00
#if defined __stub_mbscmp || defined __stub___mbscmp
2009-01-12 13:36:28 +00:00
choke me
2004-07-27 13:29:18 +00:00
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2011-11-21 20:51:19 -05:00
return mbscmp ();
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2011-11-21 20:51:19 -05:00
ac_cv_func_mbscmp=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2011-11-21 20:51:19 -05:00
ac_cv_func_mbscmp=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
$as_echo "$ac_cv_func_mbscmp" >&6; }
if test "x$ac_cv_func_mbscmp" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2011-11-21 20:51:19 -05:00
#define HAVE_MBSCMP 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
{ $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
$as_echo_n "checking for mbsnrtowcs... " >&6; }
if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define mbsnrtowcs innocuous_mbsnrtowcs
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char mbsnrtowcs (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef mbsnrtowcs
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char mbsnrtowcs ();
/* 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_mbsnrtowcs || defined __stub___mbsnrtowcs
choke me
#endif
int
main ()
{
return mbsnrtowcs ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_func_mbsnrtowcs=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_func_mbsnrtowcs=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
$as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MBSNRTOWCS 1
_ACEOF
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
$as_echo_n "checking for mbsrtowcs... " >&6; }
if test "${ac_cv_func_mbsrtowcs+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2011-11-21 20:51:19 -05:00
/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
2006-10-10 14:15:34 +00:00
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011-11-21 20:51:19 -05:00
#define mbsrtowcs innocuous_mbsrtowcs
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2011-11-21 20:51:19 -05:00
which can conflict with char mbsrtowcs (); below.
2006-10-10 14:15:34 +00:00
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2011-11-21 20:51:19 -05:00
#undef mbsrtowcs
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
2011-11-21 20:51:19 -05:00
char mbsrtowcs ();
2001-11-13 17:56:06 +00:00
/* 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. */
2011-11-21 20:51:19 -05:00
#if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
2001-11-13 17:56:06 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2011-11-21 20:51:19 -05:00
return mbsrtowcs ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2011-11-21 20:51:19 -05:00
ac_cv_func_mbsrtowcs=yes
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2011-11-21 20:51:19 -05:00
ac_cv_func_mbsrtowcs=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
$as_echo "$ac_cv_func_mbsrtowcs" >&6; }
if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2011-11-21 20:51:19 -05:00
#define HAVE_MBSRTOWCS 1
2002-07-17 14:10:11 +00:00
_ACEOF
fi
2011-11-21 20:51:19 -05:00
2011-11-21 20:51:19 -05:00
for ac_func in mbschr
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2011-11-21 20:51:19 -05:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2006-10-10 14:15:34 +00:00
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011-11-21 20:51:19 -05:00
#define $ac_func innocuous_$ac_func
2006-10-10 14:15:34 +00:00
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2011-11-21 20:51:19 -05:00
which can conflict with char $ac_func (); below.
2006-10-10 14:15:34 +00:00
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2011-11-21 20:51:19 -05:00
#undef $ac_func
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
2011-11-21 20:51:19 -05:00
char $ac_func ();
2004-07-27 13:29:18 +00:00
/* 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. */
2011-11-21 20:51:19 -05:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2004-07-27 13:29:18 +00:00
choke me
#endif
2002-07-17 14:10:11 +00:00
2006-10-10 14:15:34 +00:00
int
main ()
{
2011-11-21 20:51:19 -05:00
return $ac_func ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
2002-07-17 14:10:11 +00:00
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2011-11-21 20:51:19 -05:00
eval "$as_ac_var=yes"
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2011-11-21 20:51:19 -05:00
eval "$as_ac_var=no"
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2011-11-21 20:51:19 -05:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
2011-11-21 20:51:19 -05:00
else
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
2002-07-17 14:10:11 +00:00
fi
2011-11-21 20:51:19 -05:00
done
2002-07-17 14:10:11 +00:00
2011-11-21 20:51:19 -05:00
{ $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
$as_echo_n "checking for wcrtomb... " >&6; }
if test "${ac_cv_func_wcrtomb+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wcrtomb innocuous_wcrtomb
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char wcrtomb (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wcrtomb
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char wcrtomb ();
/* 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_wcrtomb || defined __stub___wcrtomb
choke me
#endif
int
main ()
{
return wcrtomb ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_func_wcrtomb=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_func_wcrtomb=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
$as_echo "$ac_cv_func_wcrtomb" >&6; }
if test "x$ac_cv_func_wcrtomb" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCRTOMB 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
$as_echo_n "checking for wcscoll... " >&6; }
if test "${ac_cv_func_wcscoll+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wcscoll innocuous_wcscoll
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char wcscoll (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wcscoll
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char wcscoll ();
/* 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_wcscoll || defined __stub___wcscoll
choke me
#endif
int
main ()
{
return wcscoll ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_func_wcscoll=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_func_wcscoll=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
$as_echo "$ac_cv_func_wcscoll" >&6; }
if test "x$ac_cv_func_wcscoll" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCSCOLL 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
$as_echo_n "checking for wcsdup... " >&6; }
if test "${ac_cv_func_wcsdup+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wcsdup innocuous_wcsdup
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char wcsdup (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wcsdup
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-07-17 14:10:11 +00:00
#ifdef __cplusplus
extern "C"
#endif
2006-10-10 14:15:34 +00:00
char wcsdup ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_wcsdup || defined __stub___wcsdup
2006-10-10 14:15:34 +00:00
choke me
2005-12-07 14:08:12 +00:00
#endif
2006-10-10 14:15:34 +00:00
2005-12-07 14:08:12 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return wcsdup ();
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
ac_cv_func_wcsdup=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_wcsdup=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
$as_echo "$ac_cv_func_wcsdup" >&6; }
if test "x$ac_cv_func_wcsdup" = x""yes; then
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCSDUP 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
$as_echo_n "checking for wcwidth... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_func_wcwidth+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wcwidth innocuous_wcwidth
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char wcwidth (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wcwidth
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
extern "C"
#endif
char wcwidth ();
2002-07-17 14:10:11 +00:00
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_wcwidth || defined __stub___wcwidth
2002-07-17 14:10:11 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return wcwidth ();
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_wcwidth=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_wcwidth=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
$as_echo "$ac_cv_func_wcwidth" >&6; }
if test "x$ac_cv_func_wcwidth" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCWIDTH 1
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wctype" >&5
$as_echo_n "checking for wctype... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_func_wctype+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define wctype innocuous_wctype
2002-07-17 14:10:11 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char wctype (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef wctype
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-07-17 14:10:11 +00:00
#ifdef __cplusplus
extern "C"
#endif
2006-10-10 14:15:34 +00:00
char wctype ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_wctype || defined __stub___wctype
2006-10-10 14:15:34 +00:00
choke me
#endif
2005-12-07 14:08:12 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return wctype ();
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
ac_cv_func_wctype=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_wctype=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
$as_echo "$ac_cv_func_wctype" >&6; }
if test "x$ac_cv_func_wctype" = x""yes; then
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCTYPE 1
_ACEOF
fi
for ac_func in wcswidth
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
fi
done
{ $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
if test "${ac_cv_func_mbrtowc+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <wchar.h>
int
main ()
{
wchar_t wc;
char const s[] = "";
size_t n = 1;
mbstate_t state;
return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
;
return 0;
}
2006-10-10 14:15:34 +00:00
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
ac_cv_func_mbrtowc=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_mbrtowc=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
$as_echo "$ac_cv_func_mbrtowc" >&6; }
2006-10-10 14:15:34 +00:00
if test $ac_cv_func_mbrtowc = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MBRTOWC 1
_ACEOF
fi
if test $ac_cv_func_mbrtowc = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MBSTATE_T 1
_ACEOF
fi
for ac_func in iswlower iswupper towlower towupper iswctype
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-10-10 14:15:34 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
2002-07-17 14:10:11 +00:00
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-07-17 14:10:11 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2006-10-10 14:15:34 +00:00
_ACEOF
fi
done
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${bash_cv_langinfo_codeset+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2006-10-10 14:15:34 +00:00
bash_cv_langinfo_codeset=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_langinfo_codeset=no
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
$as_echo "$bash_cv_langinfo_codeset" >&6; }
2006-10-10 14:15:34 +00:00
if test $bash_cv_langinfo_codeset = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LANGINFO_CODESET 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${bash_cv_type_wchar_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2006-10-10 14:15:34 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <wchar.h>
int
main ()
{
wchar_t foo;
foo = 0;
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
2006-10-10 14:15:34 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
bash_cv_type_wchar_t=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_type_wchar_t=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
$as_echo "$bash_cv_type_wchar_t" >&6; }
2006-10-10 14:15:34 +00:00
if test $bash_cv_type_wchar_t = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCHAR_T 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${bash_cv_type_wctype_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <wctype.h>
2002-07-17 14:10:11 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
wctype_t foo;
foo = 0;
2004-07-27 13:29:18 +00:00
;
2002-07-17 14:10:11 +00:00
return 0;
}
_ACEOF
2004-07-27 13:29:18 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
bash_cv_type_wctype_t=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_type_wctype_t=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
$as_echo "$bash_cv_type_wctype_t" >&6; }
2006-10-10 14:15:34 +00:00
if test $bash_cv_type_wctype_t = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCTYPE_T 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
$as_echo_n "checking for wint_t in wctype.h... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${bash_cv_type_wint_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <wctype.h>
2002-07-17 14:10:11 +00:00
int
main ()
{
2006-10-10 14:15:34 +00:00
wint_t foo;
foo = 0;
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
2006-10-10 14:15:34 +00:00
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
bash_cv_type_wint_t=yes
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_type_wint_t=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
$as_echo "$bash_cv_type_wint_t" >&6; }
2006-10-10 14:15:34 +00:00
if test $bash_cv_type_wint_t = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WINT_T 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2011-11-21 20:51:19 -05:00
if test "$am_cv_func_iconv" = yes; then
OLDLIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
for ac_func in locale_charset
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
LIBS="$OLDLIBS"
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
if test "$opt_static_link" != yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return dlopen ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_dl_dlopen=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_dl_dlopen=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_LIBDL 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
LIBS="-ldl $LIBS"
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
for ac_func in dlopen dlclose dlsym
2000-03-17 21:46:59 +00:00
do
2009-01-12 13:36:28 +00:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2001-11-13 17:56:06 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2009-01-12 13:36:28 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2001-11-13 17:56:06 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return $ac_func ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
eval "$as_ac_var=yes"
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
eval "$as_ac_var=no"
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
done
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
$as_echo_n "checking whether sys_siglist is declared... " >&6; }
2006-10-10 14:15:34 +00:00
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-12-07 14:08:12 +00:00
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h. */
2009-01-12 13:36:28 +00:00
#ifdef HAVE_UNISTD_H
2005-12-07 14:08:12 +00:00
# include <unistd.h>
#endif
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
int
main ()
{
2006-10-10 14:15:34 +00:00
#ifndef sys_siglist
2009-01-12 13:36:28 +00:00
(void) sys_siglist;
2006-10-10 14:15:34 +00:00
#endif
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
ac_cv_have_decl_sys_siglist=yes
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_sys_siglist=no
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SYS_SIGLIST 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SYS_SIGLIST 0
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
fi
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
2006-10-10 14:15:34 +00:00
2000-03-17 21:46:59 +00:00
if test "$ac_cv_func_inet_aton" != 'yes'; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
$as_echo_n "checking for inet_aton... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_func_inet_aton+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-03-17 21:46:59 +00:00
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
struct in_addr ap;
2001-11-13 17:56:06 +00:00
int
main ()
{
inet_aton("127.0.0.1", &ap);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2000-03-17 21:46:59 +00:00
bash_cv_func_inet_aton=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_func_inet_aton=no
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
$as_echo "$bash_cv_func_inet_aton" >&6; }
2000-03-17 21:46:59 +00:00
if test $bash_cv_func_inet_aton = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define HAVE_INET_ATON 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" inet_aton.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
2000-03-17 21:46:59 +00:00
fi
fi
case "$host_os" in
2001-11-13 17:56:06 +00:00
irix4*)
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
$as_echo_n "checking for getpwent in -lsun... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_sun_getpwent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
2000-03-17 21:46:59 +00:00
LIBS="-lsun $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char getpwent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return getpwent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_sun_getpwent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_sun_getpwent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
$as_echo "$ac_cv_lib_sun_getpwent" >&6; }
if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_LIBSUN 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
LIBS="-lsun $LIBS"
fi
;;
esac
1996-12-23 17:02:34 +00:00
1997-06-05 14:59:13 +00:00
if test "$ac_cv_func_getpeername" = no; then
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
if test "X$bash_cv_have_socklib" = "X"; then
_bash_needmsg=
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for socket library" >&5
$as_echo_n "checking for socket library... " >&6; }
1996-12-23 17:02:34 +00:00
_bash_needmsg=yes
fi
2001-11-13 17:56:06 +00:00
if test "${bash_cv_have_socklib+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
$as_echo_n "checking for getpeername in -lsocket... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_socket_getpeername+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
1996-12-23 17:02:34 +00:00
LIBS="-lsocket -lnsl $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char getpeername ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return getpeername ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_socket_getpeername=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_socket_getpeername=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
$as_echo "$ac_cv_lib_socket_getpeername" >&6; }
if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
1996-12-23 17:02:34 +00:00
bash_cv_have_socklib=yes
else
2001-11-13 17:56:06 +00:00
bash_cv_have_socklib=no
1996-12-23 17:02:34 +00:00
fi
fi
if test "X$_bash_needmsg" = Xyes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
$as_echo "$bash_cv_have_socklib" >&6; }
1996-12-23 17:02:34 +00:00
_bash_needmsg=
fi
if test $bash_cv_have_socklib = yes; then
# check for libnsl, add it to LIBS if present
if test "X$bash_cv_have_libnsl" = "X"; then
_bash_needmsg=
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for libnsl" >&5
$as_echo_n "checking for libnsl... " >&6; }
1996-12-23 17:02:34 +00:00
_bash_needmsg=yes
fi
2001-11-13 17:56:06 +00:00
if test "${bash_cv_have_libnsl+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
$as_echo_n "checking for t_open in -lnsl... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
1996-12-23 17:02:34 +00:00
LIBS="-lnsl $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char t_open ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return t_open ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_nsl_t_open=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_nsl_t_open=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
1996-12-23 17:02:34 +00:00
bash_cv_have_libnsl=yes
else
2001-11-13 17:56:06 +00:00
bash_cv_have_libnsl=no
1996-12-23 17:02:34 +00:00
fi
fi
if test "X$_bash_needmsg" = Xyes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
$as_echo "$bash_cv_have_libnsl" >&6; }
1996-12-23 17:02:34 +00:00
_bash_needmsg=
fi
if test $bash_cv_have_libnsl = yes; then
LIBS="-lsocket -lnsl $LIBS"
else
LIBS="-lsocket $LIBS"
fi
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_LIBSOCKET 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_GETPEERNAME 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2000-03-17 21:46:59 +00:00
fi
if test "$ac_cv_func_gethostbyname" = no; then
if test "X$bash_cv_have_gethostbyname" = "X"; then
_bash_needmsg=yes
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
$as_echo_n "checking for gethostbyname in socket library... " >&6; }
2000-03-17 21:46:59 +00:00
_bash_needmsg=
fi
2001-11-13 17:56:06 +00:00
if test "${bash_cv_have_gethostbyname+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-03-17 21:46:59 +00:00
#include <netdb.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2000-03-17 21:46:59 +00:00
struct hostent *hp;
hp = gethostbyname("localhost");
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2000-03-17 21:46:59 +00:00
bash_cv_have_gethostbyname=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_have_gethostbyname=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
if test "X$_bash_needmsg" = Xyes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
$as_echo_n "checking for gethostbyname in socket library... " >&6; }
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
$as_echo "$bash_cv_have_gethostbyname" >&6; }
2001-11-13 17:56:06 +00:00
if test "$bash_cv_have_gethostbyname" = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_GETHOSTBYNAME 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_uid_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "uid_t" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_type_uid_t=yes
else
ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_type_uid_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define uid_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define gid_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
$as_echo_n "checking type of array argument to getgroups... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_getgroups+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_type_getgroups=cross
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
/* Thanks to Mike Rendell for this test. */
2009-01-12 13:36:28 +00:00
$ac_includes_default
2001-11-13 17:56:06 +00:00
#define NGID 256
#undef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y))
int
main ()
{
gid_t gidset[NGID];
int i, n;
2009-01-12 13:36:28 +00:00
union { gid_t gval; long int lval; } val;
2001-11-13 17:56:06 +00:00
val.lval = -1;
for (i = 0; i < NGID; i++)
gidset[i] = val.gval;
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2006-10-10 14:15:34 +00:00
gidset);
2001-11-13 17:56:06 +00:00
/* Exit non-zero if getgroups seems to require an array of ints. This
2009-01-12 13:36:28 +00:00
happens when gid_t is short int but getgroups modifies an array
of ints. */
return n > 0 && gidset[n] != val.gval;
2001-11-13 17:56:06 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_type_getgroups=gid_t
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
ac_cv_type_getgroups=int
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
if test $ac_cv_type_getgroups = cross; then
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_type_getgroups=gid_t
else
ac_cv_type_getgroups=int
2000-03-17 21:46:59 +00:00
fi
rm -f conftest*
fi
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
$as_echo "$ac_cv_type_getgroups" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define GETGROUPS_T $ac_cv_type_getgroups
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
$as_echo_n "checking for off_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_off_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_off_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (off_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((off_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_type_off_t=yes
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
$as_echo "$ac_cv_type_off_t" >&6; }
if test "x$ac_cv_type_off_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define off_t long int
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
$as_echo_n "checking for mode_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_mode_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_mode_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (mode_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((mode_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_mode_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
$as_echo "$ac_cv_type_mode_t" >&6; }
if test "x$ac_cv_type_mode_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define mode_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_uid_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "uid_t" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
ac_cv_type_uid_t=yes
else
ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
1996-12-23 17:02:34 +00:00
if test $ac_cv_type_uid_t = no; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define uid_t int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define gid_t int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
$as_echo_n "checking for pid_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_pid_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_pid_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
1996-12-23 17:02:34 +00:00
{
2001-11-13 17:56:06 +00:00
if (sizeof (pid_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
1996-12-23 17:02:34 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((pid_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_pid_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
$as_echo "$ac_cv_type_pid_t" >&6; }
if test "x$ac_cv_type_pid_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define pid_t int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
$as_echo_n "checking for size_t... " >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_size_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (size_t))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((size_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_size_t=yes
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
$as_echo "$ac_cv_type_size_t" >&6; }
if test "x$ac_cv_type_size_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
1996-12-23 17:02:34 +00:00
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define size_t unsigned int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_ssize_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (ssize_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((ssize_t)))
return 0;
;
2001-11-13 17:56:06 +00:00
return 0;
2009-01-12 13:36:28 +00:00
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ssize_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
$as_echo "$ac_cv_type_ssize_t" >&6; }
if test "x$ac_cv_type_ssize_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define ssize_t int
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for time_t" >&5
$as_echo_n "checking for time_t... " >&6; }
if test "${ac_cv_type_time_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_time_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2001-11-13 17:56:06 +00:00
if (sizeof (time_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((time_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_time_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
$as_echo "$ac_cv_type_time_t" >&6; }
if test "x$ac_cv_type_time_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define time_t long
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for long long" >&5
$as_echo_n "checking for long long... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_long_long+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
long long ll = 1; int i = 63;
int
main ()
{
long long llm = (long long) -1;
return ll << i | ll >> i | llm / ll | llm % ll;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
bash_cv_type_long_long='long long'
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_type_long_long='long'
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
$as_echo "$bash_cv_type_long_long" >&6; }
2001-11-13 17:56:06 +00:00
if test "$bash_cv_type_long_long" = 'long long'; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_LONG_LONG 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
$as_echo_n "checking for unsigned long long... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_unsigned_long_long+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
unsigned long long ull = 1; int i = 63;
int
main ()
{
unsigned long long ullmax = (unsigned long long) -1;
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
bash_cv_type_unsigned_long_long='unsigned long long'
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_type_unsigned_long_long='unsigned long'
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
$as_echo "$bash_cv_type_unsigned_long_long" >&6; }
2001-11-13 17:56:06 +00:00
if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_UNSIGNED_LONG_LONG 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_signal+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
2001-11-13 17:56:06 +00:00
#include <signal.h>
int
main ()
{
2009-01-12 13:36:28 +00:00
return *(signal (0, 0)) (0) == 1;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_type_signal=int
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_type_signal=void
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define RETSIGTYPE $ac_cv_type_signal
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-02-19 22:21:29 +00:00
{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
if test "${ac_cv_have_sig_atomic_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <signal.h>
int
main ()
{
sig_atomic_t x;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_have_sig_atomic_t=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_sig_atomic_t=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
$as_echo "$ac_cv_have_sig_atomic_t" >&6; }
if test "$ac_cv_have_sig_atomic_t" = "no"
then
{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
$as_echo_n "checking for sig_atomic_t... " >&6; }
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_sig_atomic_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (sig_atomic_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((sig_atomic_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_sig_atomic_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define sig_atomic_t int
_ACEOF
fi
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
$as_echo_n "checking size of char... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_char+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_char" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (char)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_char=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (char)); }
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (char))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (char))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (char))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_char=`cat conftest.val`
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_char" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (char)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_char=0
fi
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
rm -f conftest.val
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
$as_echo "$ac_cv_sizeof_char" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define SIZEOF_CHAR $ac_cv_sizeof_char
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_short" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (short)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_short=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (short)); }
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (short))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (short))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (short))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_short=`cat conftest.val`
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_short" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (short)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_short=0
fi
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
2001-11-13 17:56:06 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_int+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_int" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (int)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_int=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (int)); }
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (int))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (int))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (int))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_int=`cat conftest.val`
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_int" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (int)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_int=0
fi
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
2001-11-13 17:56:06 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_long+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_long=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
2000-03-17 21:46:59 +00:00
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (long))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (long))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (long))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
2000-03-17 21:46:59 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_long=`cat conftest.val`
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_long=0
fi
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
2001-11-13 17:56:06 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_char_p+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_char_p=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_char_p" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (char *)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_char_p=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (char *)); }
static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
2000-03-17 21:46:59 +00:00
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (char *))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (char *))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (char *))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
2000-03-17 21:46:59 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_char_p=`cat conftest.val`
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_char_p" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (char *)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_char_p=0
fi
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2001-11-13 17:56:06 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_double+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
1998-04-17 19:52:44 +00:00
if test "$cross_compiling" = yes; then
2001-11-13 17:56:06 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
1998-04-17 19:52:44 +00:00
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
1998-04-17 19:52:44 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_double=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (double)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_double=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
1998-04-17 19:52:44 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (double)); }
static unsigned long int ulongval () { return (long int) (sizeof (double)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
1998-04-17 19:52:44 +00:00
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (double))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (double))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (double))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
1998-04-17 19:52:44 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_double=`cat conftest.val`
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (double)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_double=0
fi
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }
1998-04-17 19:52:44 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
2001-11-13 17:56:06 +00:00
_ACEOF
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sizeof_long_long+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
1998-04-17 19:52:44 +00:00
if test "$cross_compiling" = yes; then
2001-11-13 17:56:06 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
1998-04-17 19:52:44 +00:00
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
1998-04-17 19:52:44 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_hi=-1 ac_mid=-1
2001-11-13 17:56:06 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_lo=$ac_mid; break
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
2004-07-27 13:29:18 +00:00
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_hi=$ac_mid
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
done
2004-07-27 13:29:18 +00:00
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
2009-01-12 13:36:28 +00:00
'') if test "$ac_cv_type_long_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (long long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_long_long=0
fi ;;
2004-07-27 13:29:18 +00:00
esac
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
2009-01-12 13:36:28 +00:00
static long int longval () { return (long int) (sizeof (long long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
int
main ()
2000-03-17 21:46:59 +00:00
{
2004-07-27 13:29:18 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2009-01-12 13:36:28 +00:00
return 1;
if (((long int) (sizeof (long long))) < 0)
2004-07-27 13:29:18 +00:00
{
2009-01-12 13:36:28 +00:00
long int i = longval ();
if (i != ((long int) (sizeof (long long))))
return 1;
fprintf (f, "%ld", i);
2004-07-27 13:29:18 +00:00
}
else
{
2009-01-12 13:36:28 +00:00
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (long long))))
return 1;
fprintf (f, "%lu", i);
2004-07-27 13:29:18 +00:00
}
2009-01-12 13:36:28 +00:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
2000-03-17 21:46:59 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
ac_cv_sizeof_long_long=`cat conftest.val`
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2009-01-12 13:36:28 +00:00
if test "$ac_cv_type_long_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: error: cannot compute sizeof (long long)
2006-10-10 14:15:34 +00:00
See \`config.log' for more details." >&2;}
2009-01-12 13:36:28 +00:00
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_long_long=0
fi
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
rm -f conftest.val
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for u_int" >&5
$as_echo_n "checking for u_int... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_u_int+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_u_int=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (u_int))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((u_int)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_int=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
$as_echo "$ac_cv_type_u_int" >&6; }
if test "x$ac_cv_type_u_int" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define u_int unsigned int
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for u_long" >&5
$as_echo_n "checking for u_long... " >&6; }
if test "${ac_cv_type_u_long+set}" = set; then
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_u_long=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (u_long))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((u_long)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_long=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
$as_echo "$ac_cv_type_u_long" >&6; }
if test "x$ac_cv_type_u_long" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define u_long unsigned long
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
if test "$ac_cv_sizeof_short" = 2; then
{ $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
$as_echo_n "checking for bits16_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_bits16_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (bits16_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits16_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
$as_echo "$ac_cv_type_bits16_t" >&6; }
if test "x$ac_cv_type_bits16_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define bits16_t short
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
fi
2000-03-17 21:46:59 +00:00
elif test "$ac_cv_sizeof_char" = 2; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
$as_echo_n "checking for bits16_t... " >&6; }
if test "${ac_cv_type_bits16_t+set}" = set; then
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (bits16_t))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits16_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
$as_echo "$ac_cv_type_bits16_t" >&6; }
if test "x$ac_cv_type_bits16_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define bits16_t char
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
1999-02-19 17:11:39 +00:00
fi
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
$as_echo_n "checking for bits16_t... " >&6; }
if test "${ac_cv_type_bits16_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (bits16_t))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits16_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
$as_echo "$ac_cv_type_bits16_t" >&6; }
if test "x$ac_cv_type_bits16_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define bits16_t short
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
fi
if test "$ac_cv_sizeof_short" = 2; then
{ $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
$as_echo_n "checking for u_bits16_t... " >&6; }
if test "${ac_cv_type_u_bits16_t+set}" = set; then
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_u_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (u_bits16_t))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((u_bits16_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
$as_echo "$ac_cv_type_u_bits16_t" >&6; }
if test "x$ac_cv_type_u_bits16_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define u_bits16_t unsigned short
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
elif test "$ac_cv_sizeof_char" = 2; then
{ $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
$as_echo_n "checking for u_bits16_t... " >&6; }
if test "${ac_cv_type_u_bits16_t+set}" = set; then
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_u_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof (u_bits16_t))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((u_bits16_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
$as_echo "$ac_cv_type_u_bits16_t" >&6; }
if test "x$ac_cv_type_u_bits16_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define u_bits16_t unsigned char
_ACEOF
fi
else
{ $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
$as_echo_n "checking for u_bits16_t... " >&6; }
if test "${ac_cv_type_u_bits16_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_u_bits16_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (u_bits16_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((u_bits16_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits16_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
$as_echo "$ac_cv_type_u_bits16_t" >&6; }
if test "x$ac_cv_type_u_bits16_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define u_bits16_t unsigned short
_ACEOF
fi
fi
if test "$ac_cv_sizeof_int" = 4; then
{ $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
$as_echo_n "checking for bits32_t... " >&6; }
if test "${ac_cv_type_bits32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((bits32_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
$as_echo "$ac_cv_type_bits32_t" >&6; }
if test "x$ac_cv_type_bits32_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define bits32_t int
_ACEOF
fi
elif test "$ac_cv_sizeof_long" = 4; then
{ $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
$as_echo_n "checking for bits32_t... " >&6; }
if test "${ac_cv_type_bits32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((bits32_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
$as_echo "$ac_cv_type_bits32_t" >&6; }
if test "x$ac_cv_type_bits32_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define bits32_t long
_ACEOF
fi
else
{ $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
$as_echo_n "checking for bits32_t... " >&6; }
if test "${ac_cv_type_bits32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((bits32_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
$as_echo "$ac_cv_type_bits32_t" >&6; }
if test "x$ac_cv_type_bits32_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define bits32_t int
_ACEOF
fi
fi
if test "$ac_cv_sizeof_int" = 4; then
{ $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
$as_echo_n "checking for u_bits32_t... " >&6; }
if test "${ac_cv_type_u_bits32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_u_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (u_bits32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((u_bits32_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
$as_echo "$ac_cv_type_u_bits32_t" >&6; }
if test "x$ac_cv_type_u_bits32_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define u_bits32_t unsigned int
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
elif test "$ac_cv_sizeof_long" = 4; then
{ $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
$as_echo_n "checking for u_bits32_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_u_bits32_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_u_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (u_bits32_t))
2009-01-12 13:36:28 +00:00
return 0;
;
2001-11-13 17:56:06 +00:00
return 0;
2009-01-12 13:36:28 +00:00
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((u_bits32_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
$as_echo "$ac_cv_type_u_bits32_t" >&6; }
if test "x$ac_cv_type_u_bits32_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define u_bits32_t unsigned long
_ACEOF
fi
else
{ $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
$as_echo_n "checking for u_bits32_t... " >&6; }
if test "${ac_cv_type_u_bits32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_u_bits32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (u_bits32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((u_bits32_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_u_bits32_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
$as_echo "$ac_cv_type_u_bits32_t" >&6; }
if test "x$ac_cv_type_u_bits32_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2000-03-17 21:46:59 +00:00
#define u_bits32_t unsigned int
2004-07-27 13:29:18 +00:00
_ACEOF
1999-02-19 17:11:39 +00:00
fi
1998-04-17 19:52:44 +00:00
1999-02-19 17:11:39 +00:00
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
if test "$ac_cv_sizeof_char_p" = 8; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
$as_echo_n "checking for bits64_t... " >&6; }
if test "${ac_cv_type_bits64_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits64_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((bits64_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits64_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
$as_echo "$ac_cv_type_bits64_t" >&6; }
if test "x$ac_cv_type_bits64_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define bits64_t char *
_ACEOF
fi
elif test "$ac_cv_sizeof_double" = 8; then
{ $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
$as_echo_n "checking for bits64_t... " >&6; }
if test "${ac_cv_type_bits64_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_bits64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits64_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((bits64_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits64_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
$as_echo "$ac_cv_type_bits64_t" >&6; }
if test "x$ac_cv_type_bits64_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define bits64_t double
_ACEOF
fi
elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
{ $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
$as_echo_n "checking for bits64_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_bits64_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_bits64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (bits64_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits64_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits64_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
$as_echo "$ac_cv_type_bits64_t" >&6; }
if test "x$ac_cv_type_bits64_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define bits64_t long long
2004-07-27 13:29:18 +00:00
_ACEOF
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
elif test "$ac_cv_sizeof_long" = 8; then
{ $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
$as_echo_n "checking for bits64_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_bits64_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_bits64_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (bits64_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits64_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits64_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
$as_echo "$ac_cv_type_bits64_t" >&6; }
if test "x$ac_cv_type_bits64_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2009-01-12 13:36:28 +00:00
#define bits64_t long
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
1998-04-17 19:52:44 +00:00
fi
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
else
{ $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
$as_echo_n "checking for bits64_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_bits64_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_bits64_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (bits64_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
2009-01-12 13:36:28 +00:00
if (sizeof ((bits64_t)))
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bits64_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-02-19 17:11:39 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
$as_echo "$ac_cv_type_bits64_t" >&6; }
if test "x$ac_cv_type_bits64_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
1999-02-19 17:11:39 +00:00
#define bits64_t double
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
fi
fi
2004-07-27 13:29:18 +00:00
2000-03-17 21:46:59 +00:00
if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_ptrdiff_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (ptrdiff_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((ptrdiff_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2000-03-17 21:46:59 +00:00
#define ptrdiff_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_ptrdiff_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (ptrdiff_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((ptrdiff_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2000-03-17 21:46:59 +00:00
#define ptrdiff_t long
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_ptrdiff_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (ptrdiff_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((ptrdiff_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define ptrdiff_t long long
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2000-03-17 21:46:59 +00:00
fi
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
ac_cv_type_ptrdiff_t=no
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
if (sizeof (ptrdiff_t))
2009-01-12 13:36:28 +00:00
return 0;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof ((ptrdiff_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
2001-11-13 17:56:06 +00:00
:
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2000-03-17 21:46:59 +00:00
#define ptrdiff_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_header_stat_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/stat.h>
2009-01-12 13:36:28 +00:00
#if defined S_ISBLK && defined S_IFDIR
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
1996-12-23 17:02:34 +00:00
#endif
2009-01-12 13:36:28 +00:00
#if defined S_ISBLK && defined S_IFCHR
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
1996-12-23 17:02:34 +00:00
#endif
2009-01-12 13:36:28 +00:00
#if defined S_ISLNK && defined S_IFREG
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
1996-12-23 17:02:34 +00:00
#endif
2009-01-12 13:36:28 +00:00
#if defined S_ISSOCK && defined S_IFREG
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
2001-11-13 17:56:06 +00:00
#endif
_ACEOF
2009-01-12 13:36:28 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-11-13 17:56:06 +00:00
ac_cv_header_stat_broken=no
2009-01-12 13:36:28 +00:00
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stat_broken=yes
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
$as_echo "$ac_cv_header_stat_broken" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_header_stat_broken = yes; then
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define STAT_MACROS_BROKEN 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
$as_echo_n "checking whether #! works in shell scripts... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_interpreter+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
echo '#! /bin/cat
exit 69
2001-11-13 17:56:06 +00:00
' >conftest
1996-12-23 17:02:34 +00:00
chmod u+x conftest
2009-01-12 13:36:28 +00:00
(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
1996-12-23 17:02:34 +00:00
if test $? -ne 69; then
ac_cv_sys_interpreter=yes
else
ac_cv_sys_interpreter=no
fi
rm -f conftest
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
$as_echo "$ac_cv_sys_interpreter" >&6; }
2001-11-13 17:56:06 +00:00
interpval=$ac_cv_sys_interpreter
1996-12-23 17:02:34 +00:00
if test $ac_cv_sys_interpreter = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_HASH_BANG_EXEC 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test "$ac_cv_func_lstat" = "no"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for lstat" >&5
$as_echo_n "checking for lstat... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_func_lstat+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/stat.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
lstat(".",(struct stat *)0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1996-12-23 17:02:34 +00:00
bash_cv_func_lstat=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_func_lstat=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
$as_echo "$bash_cv_func_lstat" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_func_lstat = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_LSTAT 1
2004-07-27 13:29:18 +00:00
_ACEOF
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_func_ctype_nonascii+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
2004-07-27 13:29:18 +00:00
bash_cv_func_ctype_nonascii=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#include <stdio.h>
#include <ctype.h>
main(c, v)
int c;
char *v[];
{
char *deflocale;
unsigned char x;
int r1, r2;
#ifdef HAVE_SETLOCALE
/* We take a shot here. If that locale is not known, try the
system default. We try this one because '\342' (226) is
known to be a printable character in that locale. */
deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
if (deflocale == 0)
deflocale = setlocale(LC_ALL, "");
#endif
x = '\342';
r1 = isprint(x);
x -= 128;
r2 = isprint(x);
exit (r1 == 0 || r2 == 0);
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2004-07-27 13:29:18 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-07-27 13:29:18 +00:00
(exit $ac_status); }; }; then
bash_cv_func_ctype_nonascii=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
bash_cv_func_ctype_nonascii=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
2004-07-27 13:29:18 +00:00
if test $bash_cv_func_ctype_nonascii = yes; then
cat >>confdefs.h <<\_ACEOF
#define CTYPE_NON_ASCII 1
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_dup2_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_dup2_broken=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <fcntl.h>
main()
{
int fd1, fd2, fl;
fd1 = open("/dev/null", 2);
if (fcntl(fd1, 2, 1) < 0)
exit(1);
fd2 = dup2(fd1, 1);
if (fd2 < 0)
exit(2);
fl = fcntl(fd2, 1, 0);
/* fl will be 1 if dup2 did not reset the close-on-exec flag. */
exit(fl != 1);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_dup2_broken=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_dup2_broken=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
$as_echo "$bash_cv_dup2_broken" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_dup2_broken = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define DUP2_BROKEN 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
$as_echo_n "checking whether pgrps need synchronization... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_pgrp_pipe+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_pgrp_pipe=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
main()
{
# ifdef GETPGRP_VOID
# define getpgID() getpgrp()
# else
# define getpgID() getpgrp(0)
# define setpgid(x,y) setpgrp(x,y)
# endif
int pid1, pid2, fds[2];
int status;
char ok;
switch (pid1 = fork()) {
case -1:
exit(1);
case 0:
setpgid(0, getpid());
exit(0);
}
setpgid(pid1, pid1);
sleep(2); /* let first child die */
if (pipe(fds) < 0)
exit(2);
switch (pid2 = fork()) {
case -1:
exit(3);
case 0:
setpgid(0, pid1);
ok = getpgID() == pid1;
write(fds[1], &ok, 1);
exit(0);
}
setpgid(pid2, pid1);
close(fds[1]);
if (read(fds[0], &ok, 1) != 1)
exit(4);
wait(&status);
wait(&status);
exit(ok ? 0 : 5);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_pgrp_pipe=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_pgrp_pipe=yes
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
$as_echo "$bash_cv_pgrp_pipe" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_pgrp_pipe = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define PGRP_PIPE 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
$as_echo_n "checking for type of signal functions... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_signal_vintage+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <signal.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
sigset_t ss;
struct sigaction sa;
sigemptyset(&ss); sigsuspend(&ss);
sigaction(SIGINT, &sa, (struct sigaction *) 0);
sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1997-06-05 14:59:13 +00:00
bash_cv_signal_vintage=posix
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <signal.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
int mask = sigmask(SIGINT);
sigsetmask(mask); sigblock(mask); sigpause(mask);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1997-06-05 14:59:13 +00:00
bash_cv_signal_vintage=4.2bsd
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <signal.h>
RETSIGTYPE foo() { }
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
int mask = sigmask(SIGINT);
sigset(SIGINT, foo); sigrelse(SIGINT);
sighold(SIGINT); sigpause(SIGINT);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1997-06-05 14:59:13 +00:00
bash_cv_signal_vintage=svr3
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_signal_vintage=v7
2001-11-13 17:56:06 +00:00
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
$as_echo "$bash_cv_signal_vintage" >&6; }
1997-06-05 14:59:13 +00:00
if test "$bash_cv_signal_vintage" = posix; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_POSIX_SIGNALS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_BSD_SIGNALS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
elif test "$bash_cv_signal_vintage" = svr3; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_USG_SIGHOLD 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_sys_errlist+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1998-04-17 19:52:44 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <errno.h>
int
1998-04-17 19:52:44 +00:00
main ()
{
1997-06-05 14:59:13 +00:00
extern char *sys_errlist[];
extern int sys_nerr;
char *msg = sys_errlist[sys_nerr - 1];
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1997-06-05 14:59:13 +00:00
bash_cv_sys_errlist=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_sys_errlist=no
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
$as_echo "$bash_cv_sys_errlist" >&6; }
1997-06-05 14:59:13 +00:00
if test $bash_cv_sys_errlist = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_SYS_ERRLIST 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
$as_echo_n "checking for sys_siglist in system C library... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_sys_siglist+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_sys_siglist=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
2009-01-12 13:36:28 +00:00
#if !HAVE_DECL_SYS_SIGLIST
1996-12-23 17:02:34 +00:00
extern char *sys_siglist[];
#endif
main()
{
char *msg = sys_siglist[2];
exit(msg == 0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_sys_siglist=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_sys_siglist=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
1998-04-17 19:52:44 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
$as_echo "$bash_cv_sys_siglist" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_sys_siglist = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_SYS_SIGLIST 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-09-22 20:22:27 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-09-22 20:22:27 +00:00
#include <sys/types.h>
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
2001-11-13 17:56:06 +00:00
int
main ()
{
char *msg = _sys_siglist[2];
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1997-09-22 20:22:27 +00:00
bash_cv_decl_under_sys_siglist=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_decl_under_sys_siglist=no
1997-09-22 20:22:27 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997-09-22 20:22:27 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
$as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
1997-09-22 20:22:27 +00:00
if test $bash_cv_decl_under_sys_siglist = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-09-22 20:22:27 +00:00
#define UNDER_SYS_SIGLIST_DECLARED 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-09-22 20:22:27 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
$as_echo_n "checking for _sys_siglist in system C library... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_under_sys_siglist+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_under_sys_siglist=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
1997-09-22 20:22:27 +00:00
#ifndef UNDER_SYS_SIGLIST_DECLARED
1996-12-23 17:02:34 +00:00
extern char *_sys_siglist[];
#endif
main()
{
1997-09-22 20:22:27 +00:00
char *msg = (char *)_sys_siglist[2];
1996-12-23 17:02:34 +00:00
exit(msg == 0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_under_sys_siglist=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_under_sys_siglist=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
1998-04-17 19:52:44 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
$as_echo "$bash_cv_under_sys_siglist" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_under_sys_siglist = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_UNDER_SYS_SIGLIST 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
$as_echo_n "checking whether signal handlers are of type void... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_void_sighandler+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
int i;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_void_sighandler=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_void_sighandler=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
$as_echo "$bash_cv_void_sighandler" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_void_sighandler = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define VOID_SIGHANDLER 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
$as_echo_n "checking for clock_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_clock_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
1996-12-23 17:02:34 +00:00
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
1996-12-23 17:02:34 +00:00
#include <sys/times.h>
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "clock_t" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
bash_cv_type_clock_t=yes
else
bash_cv_type_clock_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
$as_echo "$bash_cv_type_clock_t" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_type_clock_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
1996-12-23 17:02:34 +00:00
#define clock_t long
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
$as_echo_n "checking for sigset_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_sigset_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
1996-12-23 17:02:34 +00:00
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
1996-12-23 17:02:34 +00:00
#include <signal.h>
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "sigset_t" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
bash_cv_type_sigset_t=yes
else
bash_cv_type_sigset_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
$as_echo "$bash_cv_type_sigset_t" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_type_sigset_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
1996-12-23 17:02:34 +00:00
#define sigset_t int
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for quad_t" >&5
$as_echo_n "checking for quad_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_quad_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
2001-11-13 17:56:06 +00:00
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
1996-12-23 17:02:34 +00:00
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "quad_t" >/dev/null 2>&1; then
1996-12-23 17:02:34 +00:00
bash_cv_type_quad_t=yes
else
bash_cv_type_quad_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
$as_echo "$bash_cv_type_quad_t" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_type_quad_t = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_QUAD_T 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
if test $bash_cv_type_quad_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
1996-12-23 17:02:34 +00:00
#define quad_t long
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
$as_echo_n "checking for intmax_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_intmax_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "intmax_t" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
bash_cv_type_intmax_t=yes
else
bash_cv_type_intmax_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
$as_echo "$bash_cv_type_intmax_t" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_type_intmax_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define intmax_t $bash_cv_type_long_long
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
$as_echo_n "checking for uintmax_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_uintmax_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "uintmax_t" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
bash_cv_type_uintmax_t=yes
else
bash_cv_type_uintmax_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
$as_echo "$bash_cv_type_uintmax_t" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_type_uintmax_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define uintmax_t $bash_cv_type_unsigned_long_long
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
if test "$ac_cv_header_sys_socket_h" = "yes"; then
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
$as_echo_n "checking for socklen_t... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_socklen_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
2011-11-21 20:51:19 -05:00
#if HAVE_STDINT_H
#include <stdint.h>
#endif
2001-11-13 17:56:06 +00:00
#include <sys/socket.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "socklen_t" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
bash_cv_type_socklen_t=yes
else
bash_cv_type_socklen_t=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
$as_echo "$bash_cv_type_socklen_t" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_type_socklen_t = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_SOCKLEN_T 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
if test $bash_cv_type_socklen_t = no; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define socklen_t int
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
$as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_type_rlimit+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
1998-04-17 19:52:44 +00:00
#include <sys/resource.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
rlim_t xxx;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_type_rlimit=rlim_t
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_type_rlimit=long
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main()
{
#ifdef HAVE_QUAD_T
struct rlimit rl;
if (sizeof(rl.rlim_cur) == sizeof(quad_t))
exit(0);
#endif
exit(1);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_type_rlimit=quad_t
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_type_rlimit=long
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
$as_echo "$bash_cv_type_rlimit" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_type_rlimit = quad_t; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define RLIMTYPE quad_t
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
elif test $bash_cv_type_rlimit = rlim_t; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define RLIMTYPE rlim_t
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
$as_echo_n "checking size of intmax_t... " >&6; }
if test "${ac_cv_sizeof_intmax_t+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2001-11-13 17:56:06 +00:00
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2006-10-10 14:15:34 +00:00
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
test_array [0] = 0
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
1996-12-23 17:02:34 +00:00
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2001-11-13 17:56:06 +00:00
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
test_array [0] = 0
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2006-10-10 14:15:34 +00:00
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
test_array [0] = 0
2006-10-10 14:15:34 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=$ac_mid; break
2004-07-27 13:29:18 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_lo= ac_hi=
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_intmax_t=$ac_lo;;
'') if test "$ac_cv_type_intmax_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_intmax_t=0
fi ;;
esac
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
static long int longval () { return (long int) (sizeof (intmax_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
if (((long int) (sizeof (intmax_t))) < 0)
{
long int i = longval ();
if (i != ((long int) (sizeof (intmax_t))))
return 1;
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (intmax_t))))
return 1;
fprintf (f, "%lu", i);
}
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_intmax_t=`cat conftest.val`
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
if test "$ac_cv_type_intmax_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_intmax_t=0
fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
_ACEOF
{ $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
$as_echo_n "checking for struct termios.c_line... " >&6; }
if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <termios.h>
int
main ()
{
static struct termios ac_aggr;
if (ac_aggr.c_line)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_termios_c_line=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <termios.h>
int
main ()
{
static struct termios ac_aggr;
if (sizeof ac_aggr.c_line)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_termios_c_line=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_member_struct_termios_c_line=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
$as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define TERMIOS_LDISC 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
$as_echo_n "checking for struct termio.c_line... " >&6; }
if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <termio.h>
int
main ()
{
static struct termio ac_aggr;
if (ac_aggr.c_line)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_termio_c_line=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <termio.h>
int
main ()
{
static struct termio ac_aggr;
if (sizeof ac_aggr.c_line)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_termio_c_line=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_member_struct_termio_c_line=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
$as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define TERMIO_LDISC 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
$as_echo_n "checking for struct dirent.d_ino... " >&6; }
if test "${bash_cv_dirent_has_dino+set}" = set; then
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
struct dirent d; int z; z = d.d_ino;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_dirent_has_dino=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_dirent_has_dino=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
$as_echo "$bash_cv_dirent_has_dino" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_dirent_has_dino = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_DIRENT_D_INO 1
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-06-05 14:59:13 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
struct dirent d; int z; z = d.d_fileno;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1997-06-05 14:59:13 +00:00
bash_cv_dirent_has_d_fileno=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_dirent_has_d_fileno=no
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
1997-06-05 14:59:13 +00:00
if test $bash_cv_dirent_has_d_fileno = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_DIRENT_D_FILENO 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
$as_echo_n "checking for struct dirent.d_namlen... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */
int
main ()
{
struct dirent d; int z; z = d.d_namlen;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
bash_cv_dirent_has_d_namlen=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_dirent_has_d_namlen=no
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
$as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
2004-07-27 13:29:18 +00:00
if test $bash_cv_dirent_has_d_namlen = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
_ACEOF
1997-06-05 14:59:13 +00:00
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_struct_winsize_header+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-06-05 14:59:13 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <sys/types.h>
#include <sys/ioctl.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
struct winsize x;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1998-04-17 19:52:44 +00:00
bash_cv_struct_winsize_header=ioctl_h
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-04-17 19:52:44 +00:00
#include <sys/types.h>
#include <termios.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1998-04-17 19:52:44 +00:00
struct winsize x;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1998-04-17 19:52:44 +00:00
bash_cv_struct_winsize_header=termios_h
1997-06-05 14:59:13 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_struct_winsize_header=other
1998-04-17 19:52:44 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998-04-17 19:52:44 +00:00
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
1998-04-17 19:52:44 +00:00
if test $bash_cv_struct_winsize_header = ioctl_h; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
$as_echo "sys/ioctl.h" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
1998-04-17 19:52:44 +00:00
elif test $bash_cv_struct_winsize_header = termios_h; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: termios.h" >&5
$as_echo "termios.h" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1998-04-17 19:52:44 +00:00
#define STRUCT_WINSIZE_IN_TERMIOS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1998-04-17 19:52:44 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_struct_timeval+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-03-17 21:46:59 +00:00
#include <sys/time.h>
2001-11-13 17:56:06 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "struct timeval" >/dev/null 2>&1; then
2000-03-17 21:46:59 +00:00
bash_cv_struct_timeval=yes
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-03-17 21:46:59 +00:00
#include <time.h>
2001-11-13 17:56:06 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "struct timeval" >/dev/null 2>&1; then
2000-03-17 21:46:59 +00:00
bash_cv_struct_timeval=yes
else
bash_cv_struct_timeval=no
fi
rm -f conftest*
fi
rm -f conftest*
2004-07-27 13:29:18 +00:00
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
$as_echo "$bash_cv_struct_timeval" >&6; }
2000-03-17 21:46:59 +00:00
if test $bash_cv_struct_timeval = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define HAVE_TIMEVAL 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
$as_echo_n "checking for struct stat.st_blocks... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_blocks)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
ac_cv_member_struct_stat_st_blocks=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blocks)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_member_struct_stat_st_blocks=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_member_struct_stat_st_blocks=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
fi
1997-06-05 14:59:13 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
2002-07-17 14:10:11 +00:00
if test "${ac_cv_struct_tm+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-07-17 14:10:11 +00:00
#include <sys/types.h>
#include <time.h>
int
main ()
{
2009-01-12 13:36:28 +00:00
struct tm tm;
int *p = &tm.tm_sec;
return !p;
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-07-17 14:10:11 +00:00
ac_cv_struct_tm=time.h
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_struct_tm=sys/time.h
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
2002-07-17 14:10:11 +00:00
if test $ac_cv_struct_tm = sys/time.h; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define TM_IN_SYS_TIME 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
$as_echo_n "checking for struct tm.tm_zone... " >&6; }
2002-07-17 14:10:11 +00:00
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
2004-07-27 13:29:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2006-10-10 14:15:34 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-10-10 14:15:34 +00:00
ac_cv_member_struct_tm_tm_zone=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2004-07-27 13:29:18 +00:00
ac_cv_member_struct_tm_tm_zone=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_member_struct_tm_tm_zone=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-10-10 14:15:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
2002-07-17 14:10:11 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_STRUCT_TM_TM_ZONE 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_TM_ZONE 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
$as_echo_n "checking whether tzname is declared... " >&6; }
if test "${ac_cv_have_decl_tzname+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
int
main ()
{
#ifndef tzname
(void) tzname;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_tzname=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_tzname=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
$as_echo "$ac_cv_have_decl_tzname" >&6; }
if test "x$ac_cv_have_decl_tzname" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 0
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for tzname" >&5
$as_echo_n "checking for tzname... " >&6; }
2002-07-17 14:10:11 +00:00
if test "${ac_cv_var_tzname+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-07-17 14:10:11 +00:00
#include <time.h>
2009-01-12 13:36:28 +00:00
#if !HAVE_DECL_TZNAME
extern char *tzname[];
2002-07-17 14:10:11 +00:00
#endif
int
main ()
{
2009-01-12 13:36:28 +00:00
return tzname[0][0];
2002-07-17 14:10:11 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-07-17 14:10:11 +00:00
ac_cv_var_tzname=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_var_tzname=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
$as_echo "$ac_cv_var_tzname" >&6; }
2002-07-17 14:10:11 +00:00
if test $ac_cv_var_tzname = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_TZNAME 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_struct_timezone+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <sys/time.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "struct timezone" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
bash_cv_struct_timezone=yes
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-07-27 13:29:18 +00:00
#include <time.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "struct timezone" >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
bash_cv_struct_timezone=yes
else
bash_cv_struct_timezone=no
fi
rm -f conftest*
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
$as_echo "$bash_cv_struct_timezone" >&6; }
2004-07-27 13:29:18 +00:00
if test $bash_cv_struct_timezone = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TIMEZONE 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
$as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
if test "${bash_cv_wexitstatus_offset+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
$as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
bash_cv_wexitstatus_offset=0
else
cat >conftest.$ac_ext <<_ACEOF
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
main(c, v)
int c;
char **v;
{
pid_t pid, p;
int s, i, n;
s = 0;
pid = fork();
if (pid == 0)
exit (42);
/* wait for the process */
p = wait(&s);
if (p != pid)
exit (255);
/* crack s */
for (i = 0; i < (sizeof(s) - 8); i++)
{
n = (s >> i) & 0xff;
if (n == 42)
exit (i);
}
exit (254);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_wexitstatus_offset=0
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_wexitstatus_offset=$?
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
{ $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
$as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
bash_cv_wexitstatus_offset=0
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
$as_echo "$bash_cv_wexitstatus_offset" >&6; }
cat >>confdefs.h <<_ACEOF
#define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
_ACEOF
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
$as_echo_n "checking for the existence of strsignal... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_have_strsignal+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <signal.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
char *s = (char *)strsignal(2);
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
1996-12-23 17:02:34 +00:00
bash_cv_have_strsignal=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_have_strsignal=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
$as_echo "$bash_cv_have_strsignal" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_have_strsignal = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_STRSIGNAL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
$as_echo_n "checking if opendir() opens non-directories... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_opendir_not_robust+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_opendir_not_robust=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */
main()
{
DIR *dir;
2000-03-17 21:46:59 +00:00
int fd, err;
2009-01-12 13:36:28 +00:00
err = mkdir("bash-aclocal", 0700);
2000-03-17 21:46:59 +00:00
if (err < 0) {
perror("mkdir");
exit(1);
}
2009-01-12 13:36:28 +00:00
unlink("bash-aclocal/not_a_directory");
fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
1996-12-23 17:02:34 +00:00
write(fd, "\n", 1);
close(fd);
2009-01-12 13:36:28 +00:00
dir = opendir("bash-aclocal/not_a_directory");
unlink("bash-aclocal/not_a_directory");
rmdir("bash-aclocal");
1996-12-23 17:02:34 +00:00
exit (dir == 0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_opendir_not_robust=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_opendir_not_robust=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
$as_echo "$bash_cv_opendir_not_robust" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_opendir_not_robust = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define OPENDIR_NOT_ROBUST 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_ulimit_maxfds+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_ulimit_maxfds=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
main()
{
long maxfds = ulimit(4, 0L);
exit (maxfds == -1L);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_ulimit_maxfds=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_ulimit_maxfds=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
$as_echo "$bash_cv_ulimit_maxfds" >&6; }
if test $bash_cv_ulimit_maxfds = yes; then
cat >>confdefs.h <<\_ACEOF
#define ULIMIT_MAXFDS 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
$as_echo_n "checking whether fpurge is declared... " >&6; }
if test "${ac_cv_have_decl_fpurge+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
int
main ()
{
#ifndef fpurge
(void) fpurge;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_fpurge=yes
else
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_have_decl_fpurge=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
$as_echo "$ac_cv_have_decl_fpurge" >&6; }
if test "x$ac_cv_have_decl_fpurge" = x""yes; then
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_FPURGE 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_FPURGE 0
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
$as_echo_n "checking to see if getenv can be redefined... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_getenv_redef+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_getenv_redef=yes
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifndef __STDC__
# ifndef const
# define const
# endif
#endif
char *
getenv (name)
#if defined (__linux__) || defined (__bsdi__) || defined (convex)
const char *name;
#else
char const *name;
#endif /* !__linux__ && !__bsdi__ && !convex */
{
return "42";
}
main()
{
char *s;
/* The next allows this program to run, but does not allow bash to link
when it redefines getenv. I'm not really interested in figuring out
why not. */
#if defined (NeXT)
exit(1);
#endif
s = getenv("ABCDE");
exit(s == 0); /* force optimizer to leave getenv in */
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_getenv_redef=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_getenv_redef=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
$as_echo "$bash_cv_getenv_redef" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_getenv_redef = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define CAN_REDEFINE_GETENV 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2002-07-17 14:10:11 +00:00
if test "$ac_cv_func_getcwd" = "yes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${bash_cv_getcwd_malloc+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
2004-07-27 13:29:18 +00:00
bash_cv_getcwd_malloc=no
1998-04-17 19:52:44 +00:00
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
main()
{
2004-07-27 13:29:18 +00:00
char *xpwd;
xpwd = getcwd(0, 0);
exit (xpwd == 0);
1996-12-23 17:02:34 +00:00
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
2004-07-27 13:29:18 +00:00
bash_cv_getcwd_malloc=yes
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
bash_cv_getcwd_malloc=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
$as_echo "$bash_cv_getcwd_malloc" >&6; }
2004-07-27 13:29:18 +00:00
if test $bash_cv_getcwd_malloc = no; then
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define GETCWD_BROKEN 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
case " $LIBOBJS " in
2006-10-10 14:15:34 +00:00
*" getcwd.$ac_objext "* ) ;;
2009-01-12 13:36:28 +00:00
*) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
;;
2006-10-10 14:15:34 +00:00
esac
1996-12-23 17:02:34 +00:00
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_func_sigsetjmp+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_func_sigsetjmp=missing
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <signal.h>
#include <setjmp.h>
main()
{
#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
exit (1);
#else
int code;
sigset_t set, oset;
sigjmp_buf xx;
/* get the mask */
sigemptyset(&set);
sigemptyset(&oset);
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
/* save it */
code = sigsetjmp(xx, 1);
if (code)
exit(0); /* could get sigmask and compare to oset here. */
/* change it */
sigaddset(&set, SIGINT);
sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
/* and siglongjmp */
siglongjmp(xx, 10);
exit(1);
#endif
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_func_sigsetjmp=present
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_func_sigsetjmp=missing
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
$as_echo "$bash_cv_func_sigsetjmp" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_func_sigsetjmp = present; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_POSIX_SIGSETJMP 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_func_strcoll_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-06-05 14:59:13 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_func_strcoll_broken=no
1997-06-05 14:59:13 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <stdio.h>
#if defined (HAVE_LOCALE_H)
#include <locale.h>
#endif
main(c, v)
int c;
char *v[];
{
int r1, r2;
char *deflocale, *defcoll;
#ifdef HAVE_SETLOCALE
deflocale = setlocale(LC_ALL, "");
defcoll = setlocale(LC_COLLATE, "");
#endif
#ifdef HAVE_STRCOLL
/* These two values are taken from tests/glob-test. */
r1 = strcoll("abd", "aXd");
#else
r1 = 0;
#endif
r2 = strcmp("abd", "aXd");
/* These two should both be greater than 0. It is permissible for
a system to return different values, as long as the sign is the
same. */
/* Exit with 1 (failure) if these two values are both > 0, since
this tests whether strcoll(3) is broken with respect to strcmp(3)
in the default locale. */
exit (r1 > 0 && r2 > 0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1997-06-05 14:59:13 +00:00
bash_cv_func_strcoll_broken=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_func_strcoll_broken=no
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
$as_echo "$bash_cv_func_strcoll_broken" >&6; }
1997-06-05 14:59:13 +00:00
if test $bash_cv_func_strcoll_broken = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define STRCOLL_BROKEN 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
fi
2004-07-27 13:29:18 +00:00
2011-11-21 20:51:19 -05:00
if test X$ac_cv_func_snprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
$as_echo_n "checking for standard-conformant snprintf... " >&6; }
if test "${bash_cv_func_snprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
bash_cv_func_snprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
main()
{
int n;
n = snprintf (0, 0, "%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_snprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_snprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
$as_echo "$bash_cv_func_snprintf" >&6; }
if test $bash_cv_func_snprintf = no; then
ac_cv_func_snprintf=no
fi
fi
if test $ac_cv_func_snprintf = no; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_SNPRINTF 0
_ACEOF
fi
if test X$ac_cv_func_vsnprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
if test "${bash_cv_func_vsnprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
bash_cv_func_vsnprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include <stdio.h>
#include <stdlib.h>
static int
#if HAVE_STDARG_H
foo(const char *fmt, ...)
#else
foo(format, va_alist)
const char *format;
va_dcl
#endif
{
va_list args;
int n;
#if HAVE_STDARG_H
va_start(args, fmt);
#else
va_start(args);
#endif
n = vsnprintf(0, 0, fmt, args);
va_end (args);
return n;
}
main()
{
int n;
n = foo("%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_vsnprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_vsnprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
$as_echo "$bash_cv_func_vsnprintf" >&6; }
if test $bash_cv_func_vsnprintf = no; then
ac_cv_func_vsnprintf=no
fi
fi
if test $ac_cv_func_vsnprintf = no; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_VSNPRINTF 0
_ACEOF
fi
2002-07-17 14:10:11 +00:00
if test "$ac_cv_func_putenv" = "yes"; then
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
$as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
2002-07-17 14:10:11 +00:00
if test "${bash_cv_std_putenv+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-07-17 14:10:11 +00:00
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifndef __STDC__
# ifndef const
# define const
# endif
#endif
#ifdef PROTOTYPES
extern int putenv (char *);
#else
extern int putenv ();
#endif
int
main ()
{
return (putenv == 0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-07-17 14:10:11 +00:00
bash_cv_std_putenv=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_std_putenv=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
$as_echo "$bash_cv_std_putenv" >&6; }
2002-07-17 14:10:11 +00:00
if test $bash_cv_std_putenv = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_STD_PUTENV 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_STD_PUTENV 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
if test "$ac_cv_func_unsetenv" = "yes"; then
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
2002-07-17 14:10:11 +00:00
if test "${bash_cv_std_unsetenv+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2002-07-17 14:10:11 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-07-17 14:10:11 +00:00
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifndef __STDC__
# ifndef const
# define const
# endif
#endif
#ifdef PROTOTYPES
extern int unsetenv (const char *);
#else
extern int unsetenv ();
#endif
int
main ()
{
return (unsetenv == 0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2002-07-17 14:10:11 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-07-17 14:10:11 +00:00
bash_cv_std_unsetenv=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_std_unsetenv=no
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
$as_echo "$bash_cv_std_unsetenv" >&6; }
2002-07-17 14:10:11 +00:00
if test $bash_cv_std_unsetenv = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_STD_UNSETENV 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
else
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2002-07-17 14:10:11 +00:00
#define HAVE_STD_UNSETENV 1
2004-07-27 13:29:18 +00:00
_ACEOF
2002-07-17 14:10:11 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
$as_echo_n "checking for printf floating point output in hex notation... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_printf_a_format+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
2001-11-13 17:56:06 +00:00
bash_cv_printf_a_format=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <stdio.h>
#include <string.h>
int
main()
{
double y = 0.0;
char abuf[1024];
sprintf(abuf, "%A", y);
exit(strchr(abuf, 'P') == (char *)0);
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
bash_cv_printf_a_format=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_printf_a_format=no
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
fi
1997-06-05 14:59:13 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
$as_echo "$bash_cv_printf_a_format" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_printf_a_format = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-11-13 17:56:06 +00:00
#define HAVE_PRINTF_A_FORMAT 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_must_reinstall_sighandlers=no
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
typedef RETSIGTYPE sigfunc();
int nsigint;
#ifdef HAVE_POSIX_SIGNALS
sigfunc *
set_signal_handler(sig, handler)
int sig;
sigfunc *handler;
{
struct sigaction act, oact;
act.sa_handler = handler;
act.sa_flags = 0;
sigemptyset (&act.sa_mask);
sigemptyset (&oact.sa_mask);
sigaction (sig, &act, &oact);
return (oact.sa_handler);
}
#else
#define set_signal_handler(s, h) signal(s, h)
#endif
RETSIGTYPE
sigint(s)
int s;
{
nsigint++;
}
main()
{
nsigint = 0;
set_signal_handler(SIGINT, sigint);
kill((int)getpid(), SIGINT);
kill((int)getpid(), SIGINT);
exit(nsigint != 2);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_must_reinstall_sighandlers=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_must_reinstall_sighandlers=yes
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_must_reinstall_sighandlers = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define MUST_REINSTALL_SIGHANDLERS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
$as_echo_n "checking for presence of necessary job control definitions... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_job_control_missing+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_job_control_missing=missing
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <signal.h>
/* Add more tests in here as appropriate. */
main()
{
/* signal type */
#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
exit(1);
#endif
/* signals and tty control. */
#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
exit (1);
#endif
/* process control */
2001-11-13 17:56:06 +00:00
#if !defined (WNOHANG) || !defined (WUNTRACED)
1996-12-23 17:02:34 +00:00
exit(1);
#endif
/* Posix systems have tcgetpgrp and waitpid. */
#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
exit(1);
#endif
#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
exit(1);
#endif
/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
exit(1);
#endif
exit(0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_job_control_missing=present
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_job_control_missing=missing
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
$as_echo "$bash_cv_job_control_missing" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_job_control_missing = missing; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define JOB_CONTROL_MISSING 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
$as_echo_n "checking for presence of named pipes... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_sys_named_pipes+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
1998-04-17 19:52:44 +00:00
bash_cv_sys_named_pipes=missing
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* Add more tests in here as appropriate. */
main()
{
2000-03-17 21:46:59 +00:00
int fd, err;
1996-12-23 17:02:34 +00:00
#if defined (HAVE_MKFIFO)
exit (0);
#endif
#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
exit (1);
#endif
#if defined (NeXT)
exit (1);
#endif
2009-01-12 13:36:28 +00:00
err = mkdir("bash-aclocal", 0700);
2000-03-17 21:46:59 +00:00
if (err < 0) {
perror ("mkdir");
exit(1);
}
2009-01-12 13:36:28 +00:00
fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
2000-03-17 21:46:59 +00:00
if (fd == -1) {
2009-01-12 13:36:28 +00:00
rmdir ("bash-aclocal");
1996-12-23 17:02:34 +00:00
exit (1);
2000-03-17 21:46:59 +00:00
}
1996-12-23 17:02:34 +00:00
close(fd);
2009-01-12 13:36:28 +00:00
unlink ("bash-aclocal/sh-np-autoconf");
rmdir ("bash-aclocal");
1996-12-23 17:02:34 +00:00
exit(0);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
1996-12-23 17:02:34 +00:00
bash_cv_sys_named_pipes=present
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_sys_named_pipes=missing
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
$as_echo "$bash_cv_sys_named_pipes" >&6; }
2006-10-10 14:15:34 +00:00
if test $bash_cv_sys_named_pipes = missing; then
cat >>confdefs.h <<\_ACEOF
#define NAMED_PIPES_MISSING 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
#include <sys/types.h>
#include <termios.h>
#ifdef TIOCGWINSZ
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "yes" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_sys_tiocgwinsz_in_termios_h=yes
else
ac_cv_sys_tiocgwinsz_in_termios_h=no
fi
rm -f conftest*
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
1997-06-05 14:59:13 +00:00
2001-11-13 17:56:06 +00:00
if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/ioctl.h>
2001-11-13 17:56:06 +00:00
#ifdef TIOCGWINSZ
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "yes" >/dev/null 2>&1; then
2001-11-13 17:56:06 +00:00
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
1996-12-23 17:02:34 +00:00
fi
rm -f conftest*
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
2001-11-13 17:56:06 +00:00
if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define GWINSZ_IN_SYS_IOCTL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
fi
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/ioctl.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
int x = TIOCSTAT;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_tiocstat_in_ioctl=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_tiocstat_in_ioctl=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_tiocstat_in_ioctl = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define TIOCSTAT_IN_SYS_IOCTL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_fionread_in_ioctl+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/ioctl.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
int x = FIONREAD;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_fionread_in_ioctl=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_fionread_in_ioctl=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_fionread_in_ioctl = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define FIONREAD_IN_SYS_IOCTL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2004-07-27 13:29:18 +00:00
2005-12-07 14:08:12 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
2005-12-07 14:08:12 +00:00
if test "${bash_cv_wcontinued_broken+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2005-12-07 14:08:12 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
2005-12-07 14:08:12 +00:00
bash_cv_wcontinued_broken=no
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-12-07 14:08:12 +00:00
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <errno.h>
#ifndef errno
extern int errno;
#endif
main()
{
int x;
x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
if (x == -1 && errno == EINVAL)
exit (1);
else
exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2005-12-07 14:08:12 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005-12-07 14:08:12 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2005-12-07 14:08:12 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005-12-07 14:08:12 +00:00
(exit $ac_status); }; }; then
bash_cv_wcontinued_broken=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2005-12-07 14:08:12 +00:00
( exit $ac_status )
bash_cv_wcontinued_broken=yes
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
2005-12-07 14:08:12 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
$as_echo "$bash_cv_wcontinued_broken" >&6; }
2005-12-07 14:08:12 +00:00
if test $bash_cv_wcontinued_broken = yes; then
cat >>confdefs.h <<\_ACEOF
#define WCONTINUED_BROKEN 1
_ACEOF
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-06-05 14:59:13 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1997-06-05 14:59:13 +00:00
#include <sys/types.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1997-06-05 14:59:13 +00:00
speed_t x;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1997-06-05 14:59:13 +00:00
bash_cv_speed_t_in_sys_types=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_speed_t_in_sys_types=no
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
2001-11-13 17:56:06 +00:00
if test $bash_cv_speed_t_in_sys_types = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define SPEED_T_IN_SYS_TYPES 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_getpw_declared+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-04-06 19:14:31 +00:00
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
2001-04-06 19:14:31 +00:00
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
1996-12-23 17:02:34 +00:00
#include <pwd.h>
2001-04-06 19:14:31 +00:00
2001-11-13 17:56:06 +00:00
_ACEOF
2001-04-06 19:14:31 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006-10-10 14:15:34 +00:00
$EGREP "getpwuid" >/dev/null 2>&1; then
2001-04-06 19:14:31 +00:00
bash_cv_getpw_declared=yes
1996-12-23 17:02:34 +00:00
else
2001-04-06 19:14:31 +00:00
bash_cv_getpw_declared=no
1996-12-23 17:02:34 +00:00
fi
rm -f conftest*
2001-04-06 19:14:31 +00:00
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
$as_echo "$bash_cv_getpw_declared" >&6; }
2001-04-06 19:14:31 +00:00
if test $bash_cv_getpw_declared = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define HAVE_GETPW_DECLS 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
$as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_unusable_rtsigs+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-04-06 19:14:31 +00:00
else
if test "$cross_compiling" = yes; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
2001-04-06 19:14:31 +00:00
bash_cv_unusable_rtsigs=yes
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-04-06 19:14:31 +00:00
#include <sys/types.h>
#include <signal.h>
#ifndef NSIG
# define NSIG 64
#endif
main ()
{
int n_sigs = 2 * NSIG;
#ifdef SIGRTMIN
int rtmin = SIGRTMIN;
#else
int rtmin = 0;
#endif
exit(rtmin < n_sigs);
}
2001-11-13 17:56:06 +00:00
_ACEOF
rm -f conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-01-12 13:36:28 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2001-11-13 17:56:06 +00:00
ac_status=$?
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-11-13 17:56:06 +00:00
(exit $ac_status); }; }; then
2001-04-06 19:14:31 +00:00
bash_cv_unusable_rtsigs=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2004-07-27 13:29:18 +00:00
( exit $ac_status )
2001-11-13 17:56:06 +00:00
bash_cv_unusable_rtsigs=no
2001-04-06 19:14:31 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-04-06 19:14:31 +00:00
fi
2009-01-12 13:36:28 +00:00
2001-04-06 19:14:31 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
$as_echo "$bash_cv_unusable_rtsigs" >&6; }
2001-04-06 19:14:31 +00:00
if test $bash_cv_unusable_rtsigs = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2001-04-06 19:14:31 +00:00
#define UNUSABLE_RT_SIGNALS 1
2004-07-27 13:29:18 +00:00
_ACEOF
2001-04-06 19:14:31 +00:00
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
SIGLIST_O=siglist.o
else
SIGLIST_O=
fi
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
case "$host_os" in
2009-01-12 13:36:28 +00:00
hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_kernel_rlimit+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
#include <sys/types.h>
#include <sys/resource.h>
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
int f;
f = RLIMIT_DATA;
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_kernel_rlimit=no
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
1998-04-17 19:52:44 +00:00
#include <sys/types.h>
#define _KERNEL
#include <sys/resource.h>
#undef _KERNEL
2001-11-13 17:56:06 +00:00
int
main ()
{
1996-12-23 17:02:34 +00:00
int f;
f = RLIMIT_DATA;
1998-04-17 19:52:44 +00:00
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1996-12-23 17:02:34 +00:00
bash_cv_kernel_rlimit=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
bash_cv_kernel_rlimit=no
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
$as_echo "$bash_cv_kernel_rlimit" >&6; }
1996-12-23 17:02:34 +00:00
if test $bash_cv_kernel_rlimit = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define RLIMIT_NEEDS_KERNEL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
fi
;;
esac
if test "$opt_readline" = yes; then
1997-06-05 14:59:13 +00:00
case "$host_os" in
aix*) prefer_curses=yes ;;
esac
1996-12-23 17:02:34 +00:00
if test "X$bash_cv_termcap_lib" = "X"; then
_bash_needmsg=yes
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
$as_echo_n "checking which library has the termcap functions... " >&6; }
1996-12-23 17:02:34 +00:00
_bash_needmsg=
fi
2001-11-13 17:56:06 +00:00
if test "${bash_cv_termcap_lib+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent" >&5
$as_echo_n "checking for tgetent... " >&6; }
2004-07-27 13:29:18 +00:00
if test "${ac_cv_func_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2004-07-27 13:29:18 +00:00
else
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define tgetent innocuous_tgetent
2004-07-27 13:29:18 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-10-10 14:15:34 +00:00
which can conflict with char tgetent (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef tgetent
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2004-07-27 13:29:18 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
/* 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. */
2009-01-12 13:36:28 +00:00
#if defined __stub_tgetent || defined __stub___tgetent
2004-07-27 13:29:18 +00:00
choke me
#endif
2006-10-10 14:15:34 +00:00
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2004-07-27 13:29:18 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2004-07-27 13:29:18 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2004-07-27 13:29:18 +00:00
ac_cv_func_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_func_tgetent=no
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-07-27 13:29:18 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
$as_echo "$ac_cv_func_tgetent" >&6; }
if test "x$ac_cv_func_tgetent" = x""yes; then
2004-07-27 13:29:18 +00:00
bash_cv_termcap_lib=libc
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
1996-12-23 17:02:34 +00:00
LIBS="-ltermcap $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_termcap_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_termcap_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
1996-12-23 17:02:34 +00:00
bash_cv_termcap_lib=libtermcap
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltinfo $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_tinfo_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_tinfo_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
2002-07-17 14:10:11 +00:00
bash_cv_termcap_lib=libtinfo
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
$as_echo_n "checking for tgetent in -lcurses... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2001-11-13 17:56:06 +00:00
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcurses $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_curses_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_curses_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
1996-12-23 17:02:34 +00:00
bash_cv_termcap_lib=libcurses
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
$as_echo_n "checking for tgetent in -lncurses... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
ac_check_lib_save_LIBS=$LIBS
1996-12-23 17:02:34 +00:00
LIBS="-lncurses $LIBS"
2001-11-13 17:56:06 +00:00
cat >conftest.$ac_ext <<_ACEOF
2006-10-10 14:15:34 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-11-13 17:56:06 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
2009-01-12 13:36:28 +00:00
return tgetent ();
2001-11-13 17:56:06 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2009-01-12 13:36:28 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
2001-11-13 17:56:06 +00:00
ac_status=$?
2006-10-10 14:15:34 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-01-12 13:36:28 +00:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2001-11-13 17:56:06 +00:00
ac_cv_lib_ncurses_tgetent=yes
else
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: failed program was:" >&5
2006-10-10 14:15:34 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-01-12 13:36:28 +00:00
ac_cv_lib_ncurses_tgetent=no
2001-11-13 17:56:06 +00:00
fi
2009-01-12 13:36:28 +00:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-10-10 14:15:34 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-11-13 17:56:06 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
2001-11-13 17:56:06 +00:00
bash_cv_termcap_lib=libncurses
1996-12-23 17:02:34 +00:00
else
2001-11-13 17:56:06 +00:00
bash_cv_termcap_lib=gnutermcap
1996-12-23 17:02:34 +00:00
fi
fi
fi
fi
fi
2004-07-27 13:29:18 +00:00
fi
1996-12-23 17:02:34 +00:00
if test "X$_bash_needmsg" = "Xyes"; then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
$as_echo_n "checking which library has the termcap functions... " >&6; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
$as_echo "using $bash_cv_termcap_lib" >&6; }
1998-04-17 19:52:44 +00:00
if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
1996-12-23 17:02:34 +00:00
LDFLAGS="$LDFLAGS -L./lib/termcap"
TERMCAP_LIB="./lib/termcap/libtermcap.a"
TERMCAP_DEP="./lib/termcap/libtermcap.a"
1997-06-05 14:59:13 +00:00
elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
1996-12-23 17:02:34 +00:00
TERMCAP_LIB=-ltermcap
TERMCAP_DEP=
2001-11-13 17:56:06 +00:00
elif test $bash_cv_termcap_lib = libtinfo; then
TERMCAP_LIB=-ltinfo
TERMCAP_DEP=
1996-12-23 17:02:34 +00:00
elif test $bash_cv_termcap_lib = libncurses; then
TERMCAP_LIB=-lncurses
TERMCAP_DEP=
2004-07-27 13:29:18 +00:00
elif test $bash_cv_termcap_lib = libc; then
TERMCAP_LIB=
TERMCAP_DEP=
1996-12-23 17:02:34 +00:00
else
TERMCAP_LIB=-lcurses
TERMCAP_DEP=
fi
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
$as_echo_n "checking whether /dev/fd is available... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_dev_fd+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1997-06-05 14:59:13 +00:00
else
2006-10-10 14:15:34 +00:00
bash_cv_dev_fd=""
2009-01-12 13:36:28 +00:00
if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
2005-12-07 14:08:12 +00:00
# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
2009-01-12 13:36:28 +00:00
if (exec test -r /dev/fd/3 3</dev/null) ; then
2005-12-07 14:08:12 +00:00
bash_cv_dev_fd=standard
else
bash_cv_dev_fd=absent
fi
2006-10-10 14:15:34 +00:00
fi
if test -z "$bash_cv_dev_fd" ; then
2009-01-12 13:36:28 +00:00
if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
2006-10-10 14:15:34 +00:00
bash_cv_dev_fd=whacky
else
bash_cv_dev_fd=absent
fi
fi
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
$as_echo "$bash_cv_dev_fd" >&6; }
1997-06-05 14:59:13 +00:00
if test $bash_cv_dev_fd = "standard"; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_DEV_FD 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define DEV_FD_PREFIX "/dev/fd/"
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
elif test $bash_cv_dev_fd = "whacky"; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define HAVE_DEV_FD 1
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1997-06-05 14:59:13 +00:00
#define DEV_FD_PREFIX "/proc/self/fd/"
2004-07-27 13:29:18 +00:00
_ACEOF
1997-06-05 14:59:13 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_dev_stdin+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
2000-03-17 21:46:59 +00:00
else
2009-01-12 13:36:28 +00:00
if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
2000-03-17 21:46:59 +00:00
bash_cv_dev_stdin=present
2009-01-12 13:36:28 +00:00
elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
2000-03-17 21:46:59 +00:00
bash_cv_dev_stdin=present
else
bash_cv_dev_stdin=absent
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
$as_echo "$bash_cv_dev_stdin" >&6; }
2000-03-17 21:46:59 +00:00
if test $bash_cv_dev_stdin = "present"; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
2000-03-17 21:46:59 +00:00
#define HAVE_DEV_STDIN 1
2004-07-27 13:29:18 +00:00
_ACEOF
2000-03-17 21:46:59 +00:00
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
$as_echo_n "checking for default mail directory... " >&6; }
2001-11-13 17:56:06 +00:00
if test "${bash_cv_mail_dir+set}" = set; then
2009-01-12 13:36:28 +00:00
$as_echo_n "(cached) " >&6
1996-12-23 17:02:34 +00:00
else
if test -d /var/mail; then
bash_cv_mail_dir=/var/mail
elif test -d /var/spool/mail; then
bash_cv_mail_dir=/var/spool/mail
2002-07-17 14:10:11 +00:00
elif test -d /usr/mail; then
bash_cv_mail_dir=/usr/mail
1997-09-22 20:22:27 +00:00
elif test -d /usr/spool/mail; then
bash_cv_mail_dir=/usr/spool/mail
1996-12-23 17:02:34 +00:00
else
bash_cv_mail_dir=unknown
fi
fi
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
$as_echo "$bash_cv_mail_dir" >&6; }
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<_ACEOF
#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
_ACEOF
1996-12-23 17:02:34 +00:00
if test "$bash_cv_job_control_missing" = missing; then
opt_job_control=no
fi
if test "$opt_job_control" = yes; then
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define JOB_CONTROL 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
JOBS_O=jobs.o
else
JOBS_O=nojobs.o
fi
2004-07-27 13:29:18 +00:00
1997-06-05 14:59:13 +00:00
LOCAL_DEFS=-DSHELL
2004-07-27 13:29:18 +00:00
1999-02-19 17:11:39 +00:00
case "${host_os}" in
2004-07-27 13:29:18 +00:00
sysv4.2*) cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define SVR4_2 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2004-07-27 13:29:18 +00:00
cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define SVR4 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
;;
2004-07-27 13:29:18 +00:00
sysv4*) cat >>confdefs.h <<\_ACEOF
1996-12-23 17:02:34 +00:00
#define SVR4 1
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
;;
2004-07-27 13:29:18 +00:00
sysv5*) cat >>confdefs.h <<\_ACEOF
1999-02-19 17:11:39 +00:00
#define SVR5 1
2004-07-27 13:29:18 +00:00
_ACEOF
1999-02-19 17:11:39 +00:00
;;
hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
1996-12-23 17:02:34 +00:00
hpux*) LOCAL_CFLAGS=-DHPUX ;;
dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
2000-03-17 21:46:59 +00:00
isc*) LOCAL_CFLAGS=-Disc386 ;;
rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
2001-11-13 17:56:06 +00:00
darwin*) LOCAL_CFLAGS=-DMACOSX ;;
2002-07-17 14:10:11 +00:00
sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
1996-12-23 17:02:34 +00:00
sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
1997-06-05 14:59:13 +00:00
sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
2008-11-18 13:15:12 +00:00
solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
2009-02-19 22:21:29 +00:00
solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
2008-11-18 13:15:12 +00:00
solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
1999-02-19 17:11:39 +00:00
lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
2005-12-07 14:08:12 +00:00
linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
case "`uname -r`" in
2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
#define PGRP_PIPE 1
_ACEOF
;;
esac ;;
*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
2002-07-17 14:10:11 +00:00
*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
1999-02-19 17:11:39 +00:00
powerux*) LOCAL_LIBS="-lgen" ;;
2004-07-27 13:29:18 +00:00
cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
2011-11-21 20:51:19 -05:00
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
1999-02-19 17:11:39 +00:00
esac
case "${host_os}-${CC}" in
aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
1996-12-23 17:02:34 +00:00
esac
2000-03-17 21:46:59 +00:00
case "${host_os}" in
2001-04-06 19:14:31 +00:00
freebsd[3-9]*)
if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
2000-03-17 21:46:59 +00:00
LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
fi ;;
2001-04-06 19:14:31 +00:00
freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
2005-12-07 14:08:12 +00:00
dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
2000-03-17 21:46:59 +00:00
esac
1996-12-23 17:02:34 +00:00
case "$host_cpu" in
*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
esac
case "$host_cpu-$host_os" in
ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
esac
case "$host_cpu-$host_vendor-$host_os" in
m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
esac
1999-02-19 17:11:39 +00:00
#
# Shared object configuration section. These values are generated by
# ${srcdir}/support/shobj-conf
#
if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
then
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
2001-04-06 19:14:31 +00:00
eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
2001-11-13 17:56:06 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
$as_echo "$SHOBJ_STATUS" >&6; }
1999-02-19 17:11:39 +00:00
fi
1996-12-23 17:02:34 +00:00
# try to create a directory tree if the source is elsewhere
# this should be packaged into a script accessible via ${srcdir}/support
case "$srcdir" in
.) ;;
1998-04-17 19:52:44 +00:00
*) for d in doc tests support lib examples; do # dirs
1996-12-23 17:02:34 +00:00
test -d $d || mkdir $d
done
1998-04-17 19:52:44 +00:00
for ld in readline glob tilde malloc sh termcap; do # libdirs
1996-12-23 17:02:34 +00:00
test -d lib/$ld || mkdir lib/$ld
done
1998-04-17 19:52:44 +00:00
test -d examples/loadables || mkdir examples/loadables # loadable builtins
2000-03-17 21:46:59 +00:00
test -d examples/loadables/perl || mkdir examples/loadables/perl
1996-12-23 17:02:34 +00:00
;;
esac
BUILD_DIR=`pwd`
2005-12-07 14:08:12 +00:00
case "$BUILD_DIR" in
*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
*) ;;
esac
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
if test -z "$localedir"; then
localedir='${datarootdir}/locale'
fi
if test -z "$datarootdir"; then
datarootdir='${prefix}/share'
fi
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# Some versions of autoconf don't substitute these automatically
2004-07-27 13:29:18 +00:00
1997-06-05 14:59:13 +00:00
#AC_SUBST(ALLOCA_SOURCE)
#AC_SUBST(ALLOCA_OBJECT)
2009-01-12 13:36:28 +00:00
ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
ac_config_commands="$ac_config_commands default"
2001-11-13 17:56:06 +00:00
cat >confcache <<\_ACEOF
1996-12-23 17:02:34 +00:00
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
2001-11-13 17:56:06 +00:00
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
1996-08-26 18:22:31 +00:00
#
2001-11-13 17:56:06 +00:00
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
1996-12-23 17:02:34 +00:00
#
2006-10-10 14:15:34 +00:00
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2001-11-13 17:56:06 +00:00
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
1996-12-23 17:02:34 +00:00
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
2009-01-12 13:36:28 +00:00
# So, we kill variables containing newlines.
1996-12-23 17:02:34 +00:00
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
2009-01-12 13:36:28 +00:00
(
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
done
2001-11-13 17:56:06 +00:00
(set) 2>&1 |
2009-01-12 13:36:28 +00:00
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2001-11-13 17:56:06 +00:00
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
2006-10-10 14:15:34 +00:00
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2009-01-12 13:36:28 +00:00
;; #(
2001-11-13 17:56:06 +00:00
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
2009-01-12 13:36:28 +00:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001-11-13 17:56:06 +00:00
;;
2009-01-12 13:36:28 +00:00
esac |
sort
) |
2001-11-13 17:56:06 +00:00
sed '
2009-01-12 13:36:28 +00:00
/^ac_cv_env_/b end
2001-11-13 17:56:06 +00:00
t clear
2009-01-12 13:36:28 +00:00
:clear
2001-11-13 17:56:06 +00:00
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
2009-01-12 13:36:28 +00:00
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then
test "x$cache_file" != "x/dev/null" &&
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
2001-11-13 17:56:06 +00:00
cat confcache >$cache_file
1996-12-23 17:02:34 +00:00
else
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1996-12-23 17:02:34 +00:00
fi
fi
rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
2006-10-10 14:15:34 +00:00
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
2009-01-12 13:36:28 +00:00
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2006-10-10 14:15:34 +00:00
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
1996-12-23 17:02:34 +00:00
: ${CONFIG_STATUS=./config.status}
2009-01-12 13:36:28 +00:00
ac_write_fail=0
2001-11-13 17:56:06 +00:00
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2009-01-12 13:36:28 +00:00
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2001-11-13 17:56:06 +00:00
#! $SHELL
2004-07-27 13:29:18 +00:00
# Generated by $as_me.
1996-12-23 17:02:34 +00:00
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
2001-11-13 17:56:06 +00:00
# configure, is in config.log if it exists.
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
debug=false
2006-10-10 14:15:34 +00:00
ac_cs_recheck=false
ac_cs_silent=false
2001-11-13 17:56:06 +00:00
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2004-07-27 13:29:18 +00:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
2009-01-12 13:36:28 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2001-11-13 17:56:06 +00:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-01-12 13:36:28 +00:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2006-10-10 14:15:34 +00:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2009-01-12 13:36:28 +00:00
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
2001-11-13 17:56:06 +00:00
fi
2004-07-27 13:29:18 +00:00
# Support unset when possible.
2006-10-10 14:15:34 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2004-07-27 13:29:18 +00:00
as_unset=unset
else
as_unset=false
fi
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
{ (exit 1); exit 1; }
fi
2006-10-10 14:15:34 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
2009-01-12 13:36:28 +00:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2006-10-10 14:15:34 +00:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2009-01-12 13:36:28 +00:00
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
2006-10-10 14:15:34 +00:00
# Required to use basename.
2009-01-12 13:36:28 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2006-10-10 14:15:34 +00:00
as_expr=expr
else
as_expr=false
fi
2009-01-12 13:36:28 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2006-10-10 14:15:34 +00:00
as_basename=basename
else
as_basename=false
fi
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
# Name of the executable.
2009-01-12 13:36:28 +00:00
as_me=`$as_basename -- "$0" ||
2004-07-27 13:29:18 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2009-01-12 13:36:28 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# CDPATH.
$as_unset CDPATH
2004-07-27 13:29:18 +00:00
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2009-01-12 13:36:28 +00:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2004-07-27 13:29:18 +00:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2009-01-12 13:36:28 +00:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2004-07-27 13:29:18 +00:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2009-01-12 13:36:28 +00:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2004-07-27 13:29:18 +00:00
sed '
2009-01-12 13:36:28 +00:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2004-07-27 13:29:18 +00:00
N
2009-01-12 13:36:28 +00:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2004-07-27 13:29:18 +00:00
t loop
2009-01-12 13:36:28 +00:00
s/-\n.*//
2004-07-27 13:29:18 +00:00
' >$as_me.lineno &&
2009-01-12 13:36:28 +00:00
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2004-07-27 13:29:18 +00:00
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
2009-01-12 13:36:28 +00:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2004-07-27 13:29:18 +00:00
# Exit status is that of the last command.
exit
}
2009-01-12 13:36:28 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2001-11-13 17:56:06 +00:00
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
2009-01-12 13:36:28 +00:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
2001-11-13 17:56:06 +00:00
as_ln_s='ln -s'
2009-01-12 13:36:28 +00:00
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
2001-11-13 17:56:06 +00:00
fi
else
as_ln_s='cp -p'
fi
2009-01-12 13:36:28 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2001-11-13 17:56:06 +00:00
2006-10-10 14:15:34 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
2009-01-12 13:36:28 +00:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
2004-07-27 13:29:18 +00:00
# Sed expression to map a string onto a valid CPP name.
2006-10-10 14:15:34 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2004-07-27 13:29:18 +00:00
# Sed expression to map a string onto a valid variable name.
2006-10-10 14:15:34 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
exec 6>&1
2009-01-12 13:36:28 +00:00
# Save the log message, to keep $[0] and so on meaningful, and to
2004-07-27 13:29:18 +00:00
# report actual input values of CONFIG_FILES etc. instead of their
2009-01-12 13:36:28 +00:00
# values after options handling.
ac_log="
This file was extended by bash $as_me 4.2-release, which was
2009-01-12 13:36:28 +00:00
generated by GNU Autoconf 2.63. Invocation command line was
2004-07-27 13:29:18 +00:00
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
2009-01-12 13:36:28 +00:00
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
2001-11-13 17:56:06 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2001-11-13 17:56:06 +00:00
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
2009-01-12 13:36:28 +00:00
Usage: $0 [OPTION]... [FILE]...
2001-11-13 17:56:06 +00:00
-h, --help print this help, then exit
2009-01-12 13:36:28 +00:00
-V, --version print version number and configuration settings, then exit
-q, --quiet, --silent
do not print progress messages
2001-11-13 17:56:06 +00:00
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
2009-01-12 13:36:28 +00:00
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
2001-11-13 17:56:06 +00:00
Configuration files:
$config_files
Configuration headers:
$config_headers
Configuration commands:
$config_commands
Report bugs to <bug-autoconf@gnu.org>."
2009-01-12 13:36:28 +00:00
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2001-11-13 17:56:06 +00:00
ac_cs_version="\\
bash config.status 4.2-release
2009-01-12 13:36:28 +00:00
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
Copyright (C) 2008 Free Software Foundation, Inc.
2001-11-13 17:56:06 +00:00
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
2009-01-12 13:36:28 +00:00
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
test -n "\$AWK" || AWK=awk
2004-07-27 13:29:18 +00:00
_ACEOF
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
2001-11-13 17:56:06 +00:00
ac_need_defaults=:
while test $# != 0
1996-12-23 17:02:34 +00:00
do
2001-11-13 17:56:06 +00:00
case $1 in
--*=*)
2009-01-12 13:36:28 +00:00
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2006-10-10 14:15:34 +00:00
ac_shift=:
;;
2009-01-12 13:36:28 +00:00
*)
2006-10-10 14:15:34 +00:00
ac_option=$1
ac_optarg=$2
ac_shift=shift
2001-11-13 17:56:06 +00:00
;;
esac
2006-10-10 14:15:34 +00:00
case $ac_option in
2001-11-13 17:56:06 +00:00
# Handling of the options.
2006-10-10 14:15:34 +00:00
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
2009-01-12 13:36:28 +00:00
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
2001-11-13 17:56:06 +00:00
debug=: ;;
--file | --fil | --fi | --f )
2006-10-10 14:15:34 +00:00
$ac_shift
2009-01-12 13:36:28 +00:00
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2001-11-13 17:56:06 +00:00
ac_need_defaults=false;;
--header | --heade | --head | --hea )
2006-10-10 14:15:34 +00:00
$ac_shift
2009-01-12 13:36:28 +00:00
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2001-11-13 17:56:06 +00:00
ac_need_defaults=false;;
2009-01-12 13:36:28 +00:00
--he | --h)
# Conflict between --help and --header
{ $as_echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
$as_echo "$ac_cs_usage"; exit ;;
2006-10-10 14:15:34 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
2001-11-13 17:56:06 +00:00
# This is an error.
2009-01-12 13:36:28 +00:00
-*) { $as_echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; } ;;
2009-01-12 13:36:28 +00:00
*) ac_config_targets="$ac_config_targets $1"
ac_need_defaults=false ;;
2001-11-13 17:56:06 +00:00
1996-12-23 17:02:34 +00:00
esac
2001-11-13 17:56:06 +00:00
shift
1996-12-23 17:02:34 +00:00
done
2006-10-10 14:15:34 +00:00
ac_configure_extra_args=
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
_ACEOF
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2006-10-10 14:15:34 +00:00
if \$ac_cs_recheck; then
2009-01-12 13:36:28 +00:00
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
shift
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
CONFIG_SHELL='$SHELL'
export CONFIG_SHELL
exec "\$@"
2006-10-10 14:15:34 +00:00
fi
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
$as_echo "$ac_log"
} >&5
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2004-07-27 13:29:18 +00:00
#
2009-01-12 13:36:28 +00:00
# INIT-COMMANDS
2004-07-27 13:29:18 +00:00
#
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
# POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
# from automake.
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
# Capture the value of LINGUAS because we need it to compute CATALOGS.
LINGUAS="${LINGUAS-%UNSET%}"
2001-11-13 17:56:06 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
# Handling of arguments.
2001-11-13 17:56:06 +00:00
for ac_config_target in $ac_config_targets
do
2009-01-12 13:36:28 +00:00
case $ac_config_target in
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
"lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
"lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
"lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
"lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
"lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
"lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
"lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
"examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
"examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; };;
esac
done
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
2006-10-10 14:15:34 +00:00
# Have a temporary directory for convenience. Make it in the build tree
2009-01-12 13:36:28 +00:00
# simply because there is no reason against having it here, and in addition,
2006-10-10 14:15:34 +00:00
# creating and moving files from /tmp can sometimes cause problems.
2009-01-12 13:36:28 +00:00
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
2001-11-13 17:56:06 +00:00
$debug ||
{
2009-01-12 13:36:28 +00:00
tmp=
trap 'exit_status=$?
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
2001-11-13 17:56:06 +00:00
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
2006-10-10 14:15:34 +00:00
2001-11-13 17:56:06 +00:00
{
2009-01-12 13:36:28 +00:00
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2001-11-13 17:56:06 +00:00
test -n "$tmp" && test -d "$tmp"
} ||
{
2009-01-12 13:36:28 +00:00
tmp=./conf$$-$RANDOM
(umask 077 && mkdir "$tmp")
2001-11-13 17:56:06 +00:00
} ||
{
2009-01-12 13:36:28 +00:00
$as_echo "$as_me: cannot create a temporary directory in ." >&2
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }
}
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then
ac_cr=' '
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'
else
ac_cs_awk_cr=$ac_cr
fi
echo 'BEGIN {' >"$tmp/subs1.awk" &&
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
{
echo "cat >conf$$subs.awk <<_ACEOF" &&
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
echo "_ACEOF"
} >conf$$subs.sh ||
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
. ./conf$$subs.sh ||
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
2001-11-13 17:56:06 +00:00
2009-01-12 13:36:28 +00:00
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
if test $ac_delim_n = $ac_delim_num; then
break
elif $ac_last_try; then
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
done
rm -f conf$$subs.sh
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
N
s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
for (key in S) S_is_set[key] = 1
FS = ""
}
{
line = $ 0
nfields = split(line, field, "@")
substed = 0
len = length(field[1])
for (i = 2; i < nfields; i++) {
key = field[i]
keylen = length(key)
if (S_is_set[key]) {
value = S[key]
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
len += length(value) + length(field[++i])
substed = 1
} else
len += 1 + keylen
}
print line
}
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
{ (exit 1); exit 1; }; }
_ACEOF
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[ ]*\):*/\1/
s/:*$//
s/^[^=]*=[ ]*$//
}'
fi
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2001-11-13 17:56:06 +00:00
fi # test -n "$CONFIG_FILES"
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.
# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
if test -z "$ac_t"; then
break
elif $ac_last_try; then
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any. Preserve backslash
# newline sequences.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[ ]*#[ ]*define[ ][ ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
for (key in D) D_is_set[key] = 1
FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
line = \$ 0
split(line, arg, " ")
if (arg[1] == "#") {
defundef = arg[2]
mac1 = arg[3]
} else {
defundef = substr(arg[1], 2)
mac1 = arg[2]
}
split(mac1, mac2, "(") #)
macro = mac2[1]
prefix = substr(line, 1, index(line, defundef) - 1)
if (D_is_set[macro]) {
# Preserve the white space surrounding the "#".
print prefix "define", macro P[macro] D[macro]
next
} else {
# Replace #undef with comments. This is necessary, for example,
# in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
if (defundef == "undef") {
print "/*", prefix defundef, macro, "*/"
next
}
}
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
{ (exit 1); exit 1; }; }
fi # test -n "$CONFIG_HEADERS"
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
shift
for ac_tag
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
{ (exit 1); exit 1; }; };;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
ac_save_IFS=$IFS
IFS=:
set x $ac_tag
IFS=$ac_save_IFS
shift
ac_file=$1
shift
case $ac_mode in
:L) ac_source=$1;;
:[FH])
ac_file_inputs=
for ac_f
do
case $ac_f in
-) ac_f="$tmp/stdin";;
*) # Look for the file first in the build tree, then in the source tree
# (if the path is not absolute). The absolute path cannot be DOS-style,
# because $ac_f cannot contain `:'.
test -f "$ac_f" ||
case $ac_f in
[\\/$]*) false;;
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
esac ||
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
{ (exit 1); exit 1; }; };;
esac
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
ac_file_inputs="$ac_file_inputs '$ac_f'"
done
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
configure_input='Generated from '`
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
`' by configure.'
if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input"
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
fi
# Neutralize special characters interpreted by sed in replacement strings.
case $configure_input in #(
*\&* | *\|* | *\\* )
ac_sed_conf_input=`$as_echo "$configure_input" |
sed 's/[\\\\&|]/\\\\&/g'`;; #(
*) ac_sed_conf_input=$configure_input;;
esac
case $ac_tag in
*:-:* | *:-) cat >"$tmp/stdin" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
;;
1996-12-23 17:02:34 +00:00
esac
2009-01-12 13:36:28 +00:00
ac_dir=`$as_dirname -- "$ac_file" ||
2004-07-27 13:29:18 +00:00
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-10-10 14:15:34 +00:00
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
2009-01-12 13:36:28 +00:00
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
{ as_dir="$ac_dir"
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2006-10-10 14:15:34 +00:00
as_dirs=
2009-01-12 13:36:28 +00:00
while :; do
case $as_dir in #(
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
2006-10-10 14:15:34 +00:00
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
2009-01-12 13:36:28 +00:00
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
test -d "$as_dir" && break
2006-10-10 14:15:34 +00:00
done
2009-01-12 13:36:28 +00:00
test -z "$as_dirs" || eval "mkdir $as_dirs"
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2006-10-10 14:15:34 +00:00
{ (exit 1); exit 1; }; }; }
2004-07-27 13:29:18 +00:00
ac_builddir=.
2009-01-12 13:36:28 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
2004-07-27 13:29:18 +00:00
case $srcdir in
2009-01-12 13:36:28 +00:00
.) # We are building in place.
2004-07-27 13:29:18 +00:00
ac_srcdir=.
2009-01-12 13:36:28 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2004-07-27 13:29:18 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2009-01-12 13:36:28 +00:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2004-07-27 13:29:18 +00:00
esac
2009-01-12 13:36:28 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2006-10-10 14:15:34 +00:00
2004-07-27 13:29:18 +00:00
2009-01-12 13:36:28 +00:00
case $ac_mode in
:F)
#
# CONFIG_FILE
#
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
case $INSTALL in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2009-01-12 13:36:28 +00:00
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1996-12-23 17:02:34 +00:00
esac
2009-01-12 13:36:28 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
p
q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
s&\\\${datarootdir}&$datarootdir&g' ;;
esac
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
2001-11-13 17:56:06 +00:00
$extrasub
2004-07-27 13:29:18 +00:00
_ACEOF
2009-01-12 13:36:28 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2001-11-13 17:56:06 +00:00
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2009-01-12 13:36:28 +00:00
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined." >&2;}
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
rm -f "$tmp/stdin"
2001-11-13 17:56:06 +00:00
case $ac_file in
2009-01-12 13:36:28 +00:00
-) cat "$tmp/out" && rm -f "$tmp/out";;
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
esac \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
2001-11-13 17:56:06 +00:00
{ (exit 1); exit 1; }; }
2009-01-12 13:36:28 +00:00
;;
:H)
#
# CONFIG_HEADER
#
2001-11-13 17:56:06 +00:00
if test x"$ac_file" != x-; then
2009-01-12 13:36:28 +00:00
{
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
} >"$tmp/config.h" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
rm -f "$ac_file"
mv "$tmp/config.h" "$ac_file" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
fi
2001-11-13 17:56:06 +00:00
else
2009-01-12 13:36:28 +00:00
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
$as_echo "$as_me: error: could not create -" >&2;}
{ (exit 1); exit 1; }; }
1996-12-23 17:02:34 +00:00
fi
2009-01-12 13:36:28 +00:00
;;
2006-10-10 14:15:34 +00:00
2009-01-12 13:36:28 +00:00
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
;;
esac
2004-07-27 13:29:18 +00:00
1996-12-23 17:02:34 +00:00
2009-01-12 13:36:28 +00:00
case $ac_file$ac_mode in
"default-1":C)
2004-07-27 13:29:18 +00:00
for ac_file in $CONFIG_FILES; do
# Support "outfile[:infile[:infile...]]"
case "$ac_file" in
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
esac
# PO directories have a Makefile.in generated from Makefile.in.in.
case "$ac_file" in */Makefile.in)
# Adjust a relative srcdir.
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
# In autoconf-2.13 it is called $ac_given_srcdir.
# In autoconf-2.50 it is called $srcdir.
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
case "$ac_given_srcdir" in
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
/*) top_srcdir="$ac_given_srcdir" ;;
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
rm -f "$ac_dir/POTFILES"
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
POMAKEFILEDEPS="POTFILES.in"
# ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
# on $ac_dir but don't depend on user-specified configuration
# parameters.
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
# The LINGUAS file contains the set of available languages.
if test -n "$OBSOLETE_ALL_LINGUAS"; then
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
fi
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
# Hide the ALL_LINGUAS assigment from automake.
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
else
# The set of available languages was given in configure.in.
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
fi
case "$ac_given_srcdir" in
.) srcdirpre= ;;
*) srcdirpre='$(srcdir)/' ;;
esac
POFILES=
GMOFILES=
UPDATEPOFILES=
DUMMYPOFILES=
for lang in $ALL_LINGUAS; do
POFILES="$POFILES $srcdirpre$lang.po"
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
done
# CATALOGS depends on both $ac_dir and the user's LINGUAS
# environment variable.
INST_LINGUAS=
if test -n "$ALL_LINGUAS"; then
for presentlang in $ALL_LINGUAS; do
useit=no
if test "%UNSET%" != "$LINGUAS"; then
desiredlanguages="$LINGUAS"
else
desiredlanguages="$ALL_LINGUAS"
fi
for desiredlang in $desiredlanguages; do
# Use the presentlang catalog if desiredlang is
# a. equal to presentlang, or
# b. a variant of presentlang (because in this case,
# presentlang can be used as a fallback for messages
# which are not translated in the desiredlang catalog).
case "$desiredlang" in
"$presentlang"*) useit=yes;;
esac
done
if test $useit = yes; then
INST_LINGUAS="$INST_LINGUAS $presentlang"
fi
done
fi
CATALOGS=
if test -n "$INST_LINGUAS"; then
for lang in $INST_LINGUAS; do
CATALOGS="$CATALOGS $lang.gmo"
done
fi
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
if test -f "$f"; then
case "$f" in
*.orig | *.bak | *~) ;;
*) cat "$f" >> "$ac_dir/Makefile" ;;
esac
fi
done
fi
;;
esac
done ;;
2009-01-12 13:36:28 +00:00
"default":C)
1996-12-23 17:02:34 +00:00
# Makefile uses this timestamp file to record whether config.h is up to date.
echo timestamp > stamp-h
2001-11-13 17:56:06 +00:00
;;
2009-01-12 13:36:28 +00:00
2001-11-13 17:56:06 +00:00
esac
2009-01-12 13:36:28 +00:00
done # for ac_tag
1996-12-23 17:02:34 +00:00
2001-11-13 17:56:06 +00:00
{ (exit 0); exit 0; }
2004-07-27 13:29:18 +00:00
_ACEOF
1996-12-23 17:02:34 +00:00
chmod +x $CONFIG_STATUS
2001-11-13 17:56:06 +00:00
ac_clean_files=$ac_clean_files_save
2009-01-12 13:36:28 +00:00
test $ac_write_fail = 0 ||
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
2004-07-27 13:29:18 +00:00
2001-11-13 17:56:06 +00:00
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
2006-10-10 14:15:34 +00:00
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
2001-11-13 17:56:06 +00:00
exec 5>/dev/null
2006-10-10 14:15:34 +00:00
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2001-11-13 17:56:06 +00:00
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
2009-01-12 13:36:28 +00:00
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
1996-12-23 17:02:34 +00:00