diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_common.m4 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 67d004983..3be864702 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -467,9 +467,16 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING], CFLAGS="$CFLAGS -Werror" fi AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[$1]], + [AC_LANG_SOURCE( + [ +#ifndef PACKAGE_NAME +#include "confdefs.h" +#endif + ] + [[$1]] + [int main(int argc, const char *const *argv) {] [[$2]] + [ return 0; }] )], [CFLAGS=$apr_save_CFLAGS $3], [CFLAGS=$apr_save_CFLAGS $4]) |