summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/configure
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/mendexk/configure')
-rwxr-xr-xBuild/source/texk/mendexk/configure35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/texk/mendexk/configure b/Build/source/texk/mendexk/configure
index 13ed4d842d2..f0d03a1e1d6 100755
--- a/Build/source/texk/mendexk/configure
+++ b/Build/source/texk/mendexk/configure
@@ -12912,6 +12912,41 @@ fi
ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variadic macros are supported" >&5
+$as_echo_n "checking if C99 variadic macros are supported... " >&6; }
+if ${kpse_cv_have___VA_ARGS__+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+#define foo(format, ...) printf(format, __VA_ARGS__)
+int
+main ()
+{
+foo("%s\n", "Hi, there");
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ kpse_cv_have___VA_ARGS__=yes
+else
+ kpse_cv_have___VA_ARGS__=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have___VA_ARGS__" >&5
+$as_echo "$kpse_cv_have___VA_ARGS__" >&6; }
+case $kpse_cv_have___VA_ARGS__ in #(
+ yes) :
+
+$as_echo "#define HAVE___VA_ARGS__ 1" >>confdefs.h
+ ;; #(
+ *) :
+ ;;
+esac
+
kpse_save_CPPFLAGS=$CPPFLAGS
kpse_save_LIBS=$LIBS