diff options
author | beber <beber> | 2005-12-08 23:14:06 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-08 23:14:06 +0000 |
commit | edb0fd28cd1ced51b45d7fe1ea57408e1be03400 (patch) | |
tree | 4db4c653b2a30400b17963ea42a150788529235c | |
parent | __GNUC__ not _GNUC_ (diff) | |
download | espik-edb0fd28cd1ced51b45d7fe1ea57408e1be03400.tar.xz |
And now the check for __GNUC__ is Ok
-rw-r--r-- | config.h.in | 3 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | m4/ac_gnuc.m4 | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index fae15a4..3201e66 100644 --- a/config.h.in +++ b/config.h.in @@ -27,5 +27,8 @@ /* Version number of package */ #undef VERSION +/* Define to 1 if your platform is ok for debug */ +#undef _ESPIK_DEBUG_ + /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/configure.in b/configure.in index 303dc83..46a0372 100644 --- a/configure.in +++ b/configure.in @@ -14,7 +14,10 @@ AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_C_CONST + +dnl espik specific check (include in m4) AC_C___ATTRIBUTE__ +AC___GNUC__ AC_ARG_WITH(ecore-config, [ --with-ecore-config=ECORE_CONFIG use ecore-config specified ], diff --git a/m4/ac_gnuc.m4 b/m4/ac_gnuc.m4 index 222d7f3..76e80ae 100644 --- a/m4/ac_gnuc.m4 +++ b/m4/ac_gnuc.m4 @@ -11,7 +11,9 @@ AC_DEFUN([AC___GNUC__], AC_MSG_CHECKING(for __GNUC__) AC_CACHE_VAL(ac_cv___gnuc__, [ AC_TRY_COMPILE([#include <stdlib.h>], - [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], + [#ifndef __GNUC__ + #error __GNUC__ is not defined + #endif], ac_cv___gnuc__=yes, ac_cv___gnuc__=no)]) if test "$ac_cv___gnuc__" = "yes"; then AC_DEFINE(_ESPIK_DEBUG_, 1, [Define to 1 if your platform is ok for debug]) |