texlive[57060] delete AC_HEADER_STDC (will be no-op in next

commits+karl at tug.org commits+karl at tug.org
Thu Dec 3 23:59:24 CET 2020


Revision: 57060
          http://tug.org/svn/texlive?view=revision&revision=57060
Author:   karl
Date:     2020-12-03 23:59:23 +0100 (Thu, 03 Dec 2020)
Log Message:
-----------
delete AC_HEADER_STDC (will be no-op in next autoconf-2.70) and test of its variable; do not force -O3 if gcc

Modified Paths:
--------------
    trunk/Build/source/libs/zlib/ChangeLog
    trunk/Build/source/libs/zlib/configure
    trunk/Build/source/libs/zlib/configure.ac

Property Changed:
----------------
    trunk/Build/source/libs/zlib/configure.ac

Modified: trunk/Build/source/libs/zlib/ChangeLog
===================================================================
--- trunk/Build/source/libs/zlib/ChangeLog	2020-12-03 21:58:31 UTC (rev 57059)
+++ trunk/Build/source/libs/zlib/ChangeLog	2020-12-03 22:59:23 UTC (rev 57060)
@@ -1,3 +1,11 @@
+2020-12-03  Karl Berry  <karl at freefriends.org>
+
+	* configure.ac (CFLAGS): do not force -O3 if gcc; there are endless
+	optimization options these days.
+	(AC_HEADER_STDC): remove since it will be a no-op in the upcoming
+	autoconf-2.70, and is presumably not needed; do not explicitly test
+	$ac_cv_header_stdc since it won't be defined.
+
 2017-01-15  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Import zlib-1.2.11.

Modified: trunk/Build/source/libs/zlib/configure
===================================================================
--- trunk/Build/source/libs/zlib/configure	2020-12-03 21:58:31 UTC (rev 57059)
+++ trunk/Build/source/libs/zlib/configure	2020-12-03 22:59:23 UTC (rev 57060)
@@ -1579,48 +1579,6 @@
 
 } # ac_fn_c_try_cpp
 
-# ac_fn_c_try_run LINENO
-# ----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
-# that executables *can* be run.
-ac_fn_c_try_run ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  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:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-  ac_retval=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
-
-       ac_retval=$ac_status
-fi
-  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_run
-
 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 # -------------------------------------------------------
 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
@@ -1712,6 +1670,48 @@
 
 } # ac_fn_c_check_header_mongrel
 
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  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:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then :
+  ac_retval=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
+
+       ac_retval=$ac_status
+fi
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 # -------------------------------------------------------
 # Tests whether HEADER exists and can be compiled using the include files in
@@ -4758,10 +4758,6 @@
 fi
 
 
-if test "x$GCC" = xyes; then
-  CFLAGS=${CFLAGS-"-O3"}
-fi
-
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -5142,10 +5138,6 @@
 
 fi
 
-if test "x$ac_cv_header_stdc" != xyes; then
-  as_fn_error $? "Sorry, can't do anything for you without header_stdc" "$LINENO" 5
-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 \
 		  inttypes.h stdint.h unistd.h

Modified: trunk/Build/source/libs/zlib/configure.ac
===================================================================
--- trunk/Build/source/libs/zlib/configure.ac	2020-12-03 21:58:31 UTC (rev 57059)
+++ trunk/Build/source/libs/zlib/configure.ac	2020-12-03 22:59:23 UTC (rev 57060)
@@ -1,6 +1,7 @@
+dnl $Id$
 dnl Process this file with autoconf to produce a configure script.
 dnl
-dnl   Copyright (C) 2016 Karl Berry <tex-live at tug.org>
+dnl   Copyright (C) 2016-2020 Karl Berry <tex-live at tug.org>
 dnl   Copyright (C) 2009-2013 Peter Breitenlohner <tex-live at tug.org>
 dnl
 dnl   This file is free software; the copyright holder
@@ -26,15 +27,6 @@
 
 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
 
-if test "x$GCC" = xyes; then
-  CFLAGS=${CFLAGS-"-O3"}
-fi
-
-AC_HEADER_STDC
-if test "x$ac_cv_header_stdc" != xyes; then
-  AC_MSG_ERROR([Sorry, can't do anything for you without header_stdc])
-fi
-
 AC_CHECK_HEADER([errno.h],
                 [ZLIB_DEFINES=],
                 [ZLIB_DEFINES="-DNO_ERRNO_H"])


Property changes on: trunk/Build/source/libs/zlib/configure.ac
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property


More information about the tex-live-commits mailing list.