aboutsummaryrefslogtreecommitdiff
path: root/m4/ac_glibc.m4
diff options
context:
space:
mode:
authorbeber <beber>2005-12-08 23:20:44 +0000
committerbeber <beber>2005-12-08 23:20:44 +0000
commitfe4c028af9a7d54cdf4aeb1790c45e20b7dd79f4 (patch)
treec9e9fba14885bab955bec472bacf0118e7f8bc4d /m4/ac_glibc.m4
parentAnd now the check for __GNUC__ is Ok (diff)
downloadespik-fe4c028af9a7d54cdf4aeb1790c45e20b7dd79f4.tar.xz
add a m4 macro for glibc
I don't know if it's realy important
Diffstat (limited to 'm4/ac_glibc.m4')
-rw-r--r--m4/ac_glibc.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/ac_glibc.m4 b/m4/ac_glibc.m4
new file mode 100644
index 0000000..aeb9c17
--- /dev/null
+++ b/m4/ac_glibc.m4
@@ -0,0 +1,14 @@
+AC_DEFUN([AC___GLIBC__],
+[
+ AC_MSG_CHECKING(for __GLIBC__)
+ AC_CACHE_VAL(ac_cv___glibc__, [
+ AC_TRY_COMPILE([#include <stdlib.h>],
+ [#ifndef __GLIBC__
+ #error __GLIBC__ is not defined
+ #endif],
+ ac_cv___glibc__=yes, ac_cv___glibc__=no)])
+ if test "$ac_cv___glibc__" = "yes"; then
+ AC_DEFINE(_ESPIK_DEBUG_, 1, [Define to 1 if your platform is ok for debug])
+ fi
+ AC_MSG_RESULT($ac_cv___glibc__)
+])