diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 8367a68af..35bdd954b 100644 --- a/configure.ac +++ b/configure.ac @@ -1859,7 +1859,7 @@ if test "x$enable_vcd" = "xyes"; then AC_MSG_CHECKING([bitfield ordering in structs]) dnl basic compile test for all platforms - AC_COMPILE_IFELSE([ + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ int main() { struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; } #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) @@ -1869,11 +1869,11 @@ int main() { switch (0) case 0: case sizeof(bf) == 1:; return 0; } -], [], AC_MSG_ERROR([compiler doesn't support bitfield structs])) +])], [], AC_MSG_ERROR([compiler doesn't support bitfield structs])) dnl run test - AC_RUN_IFELSE([ + AC_RUN_IFELSE([AC_LANG_SOURCE([ int main() { struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; } #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) @@ -1882,8 +1882,8 @@ int main() { bf = { 1,1,1,1 }; if (sizeof (bf) != 1) return 1; return *((unsigned char*) &bf) != 0x4b; } -], bf_lsbf=1, [ - AC_RUN_IFELSE([ +])], bf_lsbf=1, [ + AC_RUN_IFELSE([AC_LANG_SOURCE([ int main() { struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; } #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) @@ -1892,7 +1892,7 @@ int main() { bf = { 1,1,1,1 }; if (sizeof (bf) != 1) return 1; return *((unsigned char*) &bf) != 0xa5; } -], bf_lsbf=0, AC_MSG_ERROR([unsupported bitfield ordering])) +])], bf_lsbf=0, AC_MSG_ERROR([unsupported bitfield ordering])) ], [case "$host" in *-*-mingw32* | *-*-cygwin*) @@ -2248,10 +2248,10 @@ AC_CHECK_HEADERS(assert.h byteswap.h malloc.h execinfo.h ucontext.h sys/mman.h s AC_REPLACE_FUNCS(asprintf basename gettimeofday setenv strcasestr strndup strpbrk strsep strtok_r timegm unsetenv memmem) AC_LIBSOURCE(hstrerror.c) -AC_LINK_IFELSE([#include <netdb.h> +AC_LINK_IFELSE([AC_LANG_SOURCE([#include <netdb.h> int main(void) { hstrerror(0); -}], ac_cv_function_system_hstrerror="yes") +}])], ac_cv_function_system_hstrerror="yes") AC_CHECK_LIB([resolv], [hstrerror], [ ac_cv_function_system_hstrerror="yes" NET_LIBS="-lresolv $NET_LIBS" |
