mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
* configure.in: Use AC_FUNC_STRNLEN.
This commit is contained in:
90
configure
vendored
90
configure
vendored
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30j.
|
||||
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30k.
|
||||
#
|
||||
# Report bugs to <bug-bison@gnu.org>.
|
||||
#
|
||||
@@ -256,8 +256,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='GNU Bison'
|
||||
PACKAGE_TARNAME='bison'
|
||||
PACKAGE_VERSION='1.30j'
|
||||
PACKAGE_STRING='GNU Bison 1.30j'
|
||||
PACKAGE_VERSION='1.30k'
|
||||
PACKAGE_STRING='GNU Bison 1.30k'
|
||||
PACKAGE_BUGREPORT='bug-bison@gnu.org'
|
||||
|
||||
# Factoring default headers for most tests.
|
||||
@@ -760,7 +760,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures GNU Bison 1.30j to adapt to many kinds of systems.
|
||||
\`configure' configures GNU Bison 1.30k to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@@ -826,7 +826,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of GNU Bison 1.30j:";;
|
||||
short | recursive ) echo "Configuration of GNU Bison 1.30k:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@@ -921,7 +921,7 @@ fi
|
||||
test -n "$ac_init_help" && exit 0
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
GNU Bison configure 1.30j
|
||||
GNU Bison configure 1.30k
|
||||
generated by GNU Autoconf 2.52g
|
||||
|
||||
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
||||
@@ -936,7 +936,7 @@ cat >&5 <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by GNU Bison $as_me 1.30j, which was
|
||||
It was created by GNU Bison $as_me 1.30k, which was
|
||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@@ -1500,7 +1500,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE=bison
|
||||
VERSION=1.30j
|
||||
VERSION=1.30k
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE "$PACKAGE"
|
||||
@@ -5019,6 +5019,73 @@ if test $ac_cv_lib_error_at_line = no; then
|
||||
LIBOBJS="$LIBOBJS error.$ac_objext"
|
||||
fi
|
||||
|
||||
echo "$as_me:$LINENO: checking for working strnlen" >&5
|
||||
echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
|
||||
if test "${ac_cv_func_strnlen_working+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then
|
||||
ac_cv_func_strnlen_working=no
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#ifdef F77_DUMMY_MAIN
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int F77_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
#define S "foobar"
|
||||
#define S_LEN (sizeof S - 1)
|
||||
|
||||
/* At least one implementation is buggy: that of AIX 4.3 would
|
||||
give strnlen (S, 1) == 3. */
|
||||
|
||||
int i;
|
||||
for (i = 0; i < S_LEN + 1; ++i)
|
||||
{
|
||||
int expected = i <= S_LEN ? i : S_LEN;
|
||||
if (strnlen (S, i) != expected)
|
||||
exit (1);
|
||||
}
|
||||
exit (0);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest$ac_exeext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
(eval $ac_link) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_func_strnlen_working=yes
|
||||
else
|
||||
echo "$as_me: program exited with status $ac_status" >&5
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
( exit $ac_status )
|
||||
ac_cv_func_strnlen_working=no
|
||||
fi
|
||||
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
|
||||
echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
|
||||
test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
|
||||
|
||||
|
||||
|
||||
for ac_func in mkstemp setlocale
|
||||
@@ -5475,8 +5542,7 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_func in stpcpy strchr strnlen strspn memchr memrchr
|
||||
for ac_func in stpcpy strchr strspn memchr memrchr
|
||||
do
|
||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||
@@ -9311,7 +9377,7 @@ _ASBOX
|
||||
} >&5
|
||||
cat >&5 <<_CSEOF
|
||||
|
||||
This file was extended by GNU Bison $as_me 1.30j, which was
|
||||
This file was extended by GNU Bison $as_me 1.30k, which was
|
||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@@ -9373,7 +9439,7 @@ _ACEOF
|
||||
|
||||
cat >>$CONFIG_STATUS <<_ACEOF
|
||||
ac_cs_version="\\
|
||||
GNU Bison config.status 1.30j
|
||||
GNU Bison config.status 1.30k
|
||||
configured by $0, generated by GNU Autoconf 2.52g,
|
||||
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user