diff options
author | Byron Ellacott <bje@apnic.net> | 2012-02-06 19:57:00 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-02-09 13:19:45 +0100 |
commit | 3a90edbd194140eef51c245edfcf9afc0ecb2d13 (patch) | |
tree | 8e51fb2e3f03f672fb345848e9e617d7d0efba15 | |
parent | dc7be6d078ba106f9b0de12f3e879c3561c3c537 (diff) | |
download | openvpn-3a90edbd194140eef51c245edfcf9afc0ecb2d13.tar.gz openvpn-3a90edbd194140eef51c245edfcf9afc0ecb2d13.tar.xz openvpn-3a90edbd194140eef51c245edfcf9afc0ecb2d13.zip |
autoconf fixes for building on OSX
[DS: a few whitespace fixes was added as well during the merge]
Signed-off-by: Byron Ellacott <bje@apnic.net>
Acked-by: Gilles Espinasse <g.esp@free.fr>
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | acinclude.m4 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index acfc01d..58e2a35 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -17,16 +17,16 @@ dnl @author James Yonan <jim@yonan.net> AC_DEFUN([AX_EMPTY_ARRAY], [ AC_MSG_RESULT([checking for C compiler empty array support]) - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([AC_LANG_SOURCE( [ struct { int foo; int bar[[0]]; } mystruct; - ], [ + ])], [ AC_DEFINE_UNQUOTED(EMPTY_ARRAY_SIZE, 0, [Dimension to use for empty array declaration]) ], [ - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([AC_LANG_SOURCE( [ struct { int foo; int bar[[]]; } mystruct; - ], [ + ])], [ AC_DEFINE_UNQUOTED(EMPTY_ARRAY_SIZE,, [Dimension to use for empty array declaration]) ], [ AC_MSG_ERROR([C compiler is unable to creaty empty arrays]) @@ -45,13 +45,13 @@ dnl @author James Yonan <jim@yonan.net>, Matthias Andree <matthias.andree@web.de AC_DEFUN([AX_CPP_VARARG_MACRO_GCC], [dnl AS_VAR_PUSHDEF([VAR],[ax_cv_cpp_vararg_macro_gcc])dnl AC_CACHE_CHECK([for GNU GCC vararg macro support], VAR, [dnl - AC_COMPILE_IFELSE([ + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #define macro(a, b...) func(a, b) int func(int a, int b, int c); int test() { return macro(1, 2, 3); } - ], [ VAR=yes ], [VAR=no])]) + ])], [ VAR=yes ], [VAR=no])]) if test $VAR = yes ; then - AC_DEFINE([HAVE_CPP_VARARG_MACRO_GCC], 1, + AC_DEFINE([HAVE_CPP_VARARG_MACRO_GCC], 1, [Define to 1 if your compiler supports GNU GCC-style variadic macros]) fi AS_VAR_POPDEF([VAR])dnl @@ -67,13 +67,13 @@ dnl @author James Yonan <jim@yonan.net>, Matthias Andree <matthias.andree@web.de AC_DEFUN([AX_CPP_VARARG_MACRO_ISO], [dnl AS_VAR_PUSHDEF([VAR],[ax_cv_cpp_vararg_macro_iso])dnl AC_CACHE_CHECK([for ISO C 1999 vararg macro support], VAR, [dnl - AC_COMPILE_IFELSE([ + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #define macro(a, ...) func(a, __VA_ARGS__) int func(int a, int b, int c); int test() { return macro(1, 2, 3); } - ], [ VAR=yes ], [VAR=no])]) + ])], [ VAR=yes ], [VAR=no])]) if test $VAR = yes ; then - AC_DEFINE([HAVE_CPP_VARARG_MACRO_ISO], 1, + AC_DEFINE([HAVE_CPP_VARARG_MACRO_ISO], 1, [Define to 1 if your compiler supports ISO C99 variadic macros]) fi AS_VAR_POPDEF([VAR])dnl |