acinclude/ac_check_define.m4
changeset 3342 3da232c5980a
child 3374 725b16784e96
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/acinclude/ac_check_define.m4	Sun Oct 04 20:44:04 2009 +0000
     1.3 @@ -0,0 +1,14 @@
     1.4 +define(AC_CHECK_DEFINE,[dnl
     1.5 +  AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1,
     1.6 +    AC_EGREP_CPP([YES_IS_DEFINED], [
     1.7 +#include <$2>
     1.8 +#ifdef $1
     1.9 +YES_IS_DEFINED
    1.10 +#endif
    1.11 +    ], ac_cv_define_$1=yes, ac_cv_define_$1=no)
    1.12 +  )
    1.13 +  if test "$ac_cv_define_$1" = "yes" ; then
    1.14 +    AC_DEFINE(HAVE_$1)
    1.15 +  fi
    1.16 +])dnl
    1.17 +AC_DEFINE(HAVE_$1)