diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-06-18 18:39:52 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-06-18 18:39:52 +0200 |
commit | 509b93b58fc2f216b90ecb1ce3336398d5d2a717 (patch) | |
tree | 270f8a0f90d49e36b090136ab3e436365a502fd6 /m4 | |
parent | 57369452db81b288fca6aeafc846444175bc5b12 (diff) |
autoconf: proper extra CFLAG check/handling e.g. -f* and inter-library-dependency checks, snprintf m4 should not fail if xcompiling
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/snprintf.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index e66b1c3..b1dda79 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -50,7 +50,7 @@ AC_DEFUN([HW_FUNC_VA_COPY], [[va_list ap, aq; va_copy(aq, ap);]])], [hw_cv_func_va_copy=yes], [hw_cv_func_va_copy=no], - [hw_cv_func_va_copy=no])]) + [hw_cv_func_va_copy=yes])]) AS_IF([test "$hw_cv_func_va_copy" = yes], [AC_DEFINE([HAVE_VA_COPY], [1], [Define to 1 if you have the `va_copy' function or macro.])]) @@ -76,7 +76,7 @@ AC_DEFUN([HW_FUNC___VA_COPY], [[va_list ap, aq; __va_copy(aq, ap);]])], [hw_cv_func___va_copy=yes], [hw_cv_func___va_copy=no], - [hw_cv_func___va_copy=no])]) + [hw_cv_func___va_copy=yes])]) AS_IF([test "$hw_cv_func___va_copy" = yes], [AC_DEFINE([HAVE___VA_COPY], [1], [Define to 1 if you have the `__va_copy' function or macro.])]) @@ -124,7 +124,7 @@ AC_DEFUN([HW_FUNC_VSNPRINTF], return 1;]])], [hw_cv_func_vsnprintf_c99=yes], [hw_cv_func_vsnprintf_c99=no], - [hw_cv_func_vsnprintf_c99=no])])], + [hw_cv_func_vsnprintf_c99=yes])])], [hw_cv_func_snprintf_c99=no]) AS_IF([test "$hw_cv_func_vsnprintf_c99" = yes], [AC_DEFINE([HAVE_VSNPRINTF], [1], @@ -179,7 +179,7 @@ AC_DEFUN([HW_FUNC_SNPRINTF], return 1;]])], [hw_cv_func_snprintf_c99=yes], [hw_cv_func_snprintf_c99=no], - [hw_cv_func_snprintf_c99=no])])], + [hw_cv_func_snprintf_c99=yes])])], [hw_cv_func_snprintf_c99=no]) else hw_cv_func_snprintf_c99=no |