You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Joe Orton <jo...@manyfish.co.uk> on 2003/03/07 13:31:15 UTC
Re: cvs commit: apr/build apr_common.m4
On Fri, Mar 07, 2003 at 12:12:43PM -0000, Jeff Trawick wrote:
> -dnl APR_CHECK_APR_DEFINE( symbol, path_to_apr )
> +dnl APR_CHECK_APR_DEFINE( symbol )
> dnl
> AC_DEFUN(APR_CHECK_APR_DEFINE,[
> - AC_EGREP_CPP(YES_IS_DEFINED, [
> -#include "$2/include/apr.h"
> -#if $1
> -YES_IS_DEFINED
> -#endif
> - ], ac_cv_define_$1=yes, ac_cv_define_$1=no)
> +apr_old_cppflags=$CPPFLAGS
> +CPPFLAGS="$CPPFLAGS $INCLUDES"
> +AC_TRY_COMPILE([#include <apr.h>], [
Hi - does this really need to use AC_TRY_COMPILE not AC_EGREP_CPP? The
latter can be much faster.
Regards,
joe