From dff35e7a6694acbd14c6222363b3e69f1bd1b96c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 31 Jul 2022 23:28:40 +0300
Subject: [PATCH] regenerated configure scripts
---
autogen.sh | 8 +++-----
configure | 40 +++++++++++++++++++++-------------------
test/autogen.sh | 8 +++-----
3 files changed, 27 insertions(+), 29 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index daf160de..dffcf415 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
echo "Generating build information using autoconf"
echo "This may take a while ..."
@@ -10,11 +12,7 @@ cd "$srcdir"
# Regenerate configuration files
cat acinclude/* >aclocal.m4
-if test "$AUTOCONF"x = x; then
- AUTOCONF=autoconf
-fi
-
-$AUTOCONF || exit 1
+"${AUTOCONF:-autoconf}"
rm aclocal.m4
rm -rf autom4te.cache
diff --git a/configure b/configure
index 9c6e349d..d696daf8 100755
--- a/configure
+++ b/configure
@@ -11045,21 +11045,22 @@ unsigned short int ascii_mm[] =
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;
-}
+ int
+ main (int argc, char **argv)
+ {
+ /* Intimidate the compiler so that it does not
+ optimize the arrays away. */
+ char *p = argv[0];
+ ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
+ ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
+ return use_ascii (argc) == use_ebcdic (*p);
+ }
_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
+if ac_fn_c_try_link "$LINENO"; then :
+ if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
ac_cv_c_bigendian=yes
fi
- if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
@@ -11068,7 +11069,8 @@ if ac_fn_c_try_compile "$LINENO"; then :
fi
fi
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -14104,11 +14106,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14107: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:14111: \$? = $ac_status" >&5
+ echo "$as_me:14113: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -14203,11 +14205,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14206: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14208: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14210: \$? = $ac_status" >&5
+ echo "$as_me:14212: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -14255,11 +14257,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14258: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14260: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14262: \$? = $ac_status" >&5
+ echo "$as_me:14264: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/test/autogen.sh b/test/autogen.sh
index 988d4176..f1716a59 100755
--- a/test/autogen.sh
+++ b/test/autogen.sh
@@ -1,11 +1,9 @@
#!/bin/sh
-cp acinclude.m4 aclocal.m4
+set -e
-if test "$AUTOCONF"x = x; then
- AUTOCONF=autoconf
-fi
+cp acinclude.m4 aclocal.m4
-$AUTOCONF || exit 1
+"${AUTOCONF:-autoconf}"
rm aclocal.m4
rm -rf autom4te.cache