diff options
author | unknown <serg@serg.mylan> | 2005-06-05 19:38:52 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-06-05 19:38:52 +0200 |
commit | 062a1b8b4e09c6de8ab592d37567d40d13798875 (patch) | |
tree | 550377a80809b332035bbee0c834c1909c73047e /configure.in | |
parent | d6e0883b070cbb66a3dc94384816835964025aba (diff) | |
download | mariadb-git-062a1b8b4e09c6de8ab592d37567d40d13798875.tar.gz |
a compiler must see '#pragma implementation' *before*
'#pragma interface' (that comes with the #include'd header file)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index a5c2e7044fe..e685e811c2f 100644 --- a/configure.in +++ b/configure.in @@ -1837,12 +1837,23 @@ if test "$ac_cv_sizeof_off_t" -eq 0 then AC_MSG_ERROR("MySQL needs a off_t type.") fi + +# do we need #pragma interface/#pragma implementation ? +# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin +AC_MSG_CHECKING(the need for @%:@pragma interface/implementation) +# instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't +# follow any standard), we'll use well-defined preprocessor macros: +AC_TRY_CPP([ +#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3) +#error USE_PRAGMA_IMPLEMENTATION +#endif +],AC_MSG_RESULT(no) ,AC_MSG_RESULT(yes) ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION") + # This always gives a warning. Ignore it unless you are cross compiling AC_C_BIGENDIAN #---START: Used in for client configure # Check base type of last arg to accept MYSQL_TYPE_ACCEPT - #---END: # Figure out what type of struct rlimit to use with setrlimit MYSQL_TYPE_STRUCT_RLIMIT |