From c3d1943bae0cd1c12babe012d58305dfb8428a46 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 5 Jul 2020 21:13:46 +0000 Subject: more #include for snprintf test programs git-svn-id: svn://tug.org/texlive/trunk@55760 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 5 +++++ Build/source/texk/kpathsea/configure | 8 ++++++-- Build/source/texk/kpathsea/configure.ac | 8 ++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index e1914c68bf4..e9db1fae051 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2020-07-05 Karl Berry + + * configure.ac (snprintf): two more test programs + also need and . + 2020-07-04 Karl Berry * configure.ac (snprintf): #include to placate diff --git a/Build/source/texk/kpathsea/configure b/Build/source/texk/kpathsea/configure index 243fdad6aa7..7bfe3b4787c 100755 --- a/Build/source/texk/kpathsea/configure +++ b/Build/source/texk/kpathsea/configure @@ -14075,7 +14075,9 @@ if test "$cross_compiling" = yes; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -char buf[4] = "abc"; +#include + #include + char buf[4] = "abc"; int main () { @@ -14104,7 +14106,9 @@ else else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -char buf[4] = "abc"; +#include + #include + char buf[4] = "abc"; int main () { diff --git a/Build/source/texk/kpathsea/configure.ac b/Build/source/texk/kpathsea/configure.ac index a543c3c776e..14c204cf6f1 100644 --- a/Build/source/texk/kpathsea/configure.ac +++ b/Build/source/texk/kpathsea/configure.ac @@ -90,7 +90,9 @@ AC_CACHE_CHECK([for $snfunc and $vsnfunc], if test "x$kpse_cv_have_snfuncs" != xyes; then AC_MSG_ERROR([Sorry, you need $snfunc and $vsnfunc.]) fi -AC_RUN_IFELSE([AC_LANG_PROGRAM([[char buf[4] = "abc";]], +AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include + #include + char buf[4] = "abc";]], [[if ($snfunc (buf, 1, "%s", "x") == 0 || buf[1] != 'b') return 1;]])], [], @@ -98,7 +100,9 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[char buf[4] = "abc";]], [:]) AC_CACHE_CHECK([if we need (v)snprintf wrapper functions], [kpse_cv_wrap_snprintf], - [AC_RUN_IFELSE([AC_LANG_PROGRAM([[char buf[4] = "abc";]], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include + #include + char buf[4] = "abc";]], [[$snfunc (buf, 3, "xyz"); if (buf[2] != 0) return 1; $snfunc (buf, 2, "xyz"); -- cgit v1.2.3