diff options
author | Jeff Trawick <trawick@apache.org> | 2003-03-07 12:41:26 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-03-07 12:41:26 +0000 |
commit | 191db0c1b2fcc8611b2bb073a3661dd45b3a1985 (patch) | |
tree | 02f53e6a968a2fbba5383da1ab84fe938fe8fb3f /build/apr_common.m4 | |
parent | 56b1bc8f14c33c574ed0d43b59dcdfaf3549b64c (diff) | |
download | apr-191db0c1b2fcc8611b2bb073a3661dd45b3a1985.tar.gz |
don't compile for a test when preprocessing is sufficient
Submitted by: Joe Orton
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_common.m4')
-rw-r--r-- | build/apr_common.m4 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 8cc16b37a..8dbe89423 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -276,10 +276,12 @@ dnl AC_DEFUN(APR_CHECK_APR_DEFINE,[ apr_old_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $INCLUDES" -AC_TRY_COMPILE([#include <apr.h>], [ -#if !$1 -#error APR does not have $1 -#endif], ac_cv_define_$1=yes, ac_cv_define_$1=no) +AC_EGREP_CPP(YES_IS_DEFINED, [ +#include <apr.h> +#if $1 +YES_IS_DEFINED +#endif +], ac_cv_define_$1=yes, ac_cv_define_$1=no) CPPFLAGS=$apr_old_cppflags ]) |