diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-08-11 07:25:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-08-11 07:25:08 +0000 |
commit | 9d84442409a283b9b0ce8b9db85523912530a9b2 (patch) | |
tree | 140b3c348b78e438a11089edce9ba9d9745e9b15 | |
parent | 5ab9d72e45e00b7631f86d2cfa0086b87aaa9ea8 (diff) |
define the _XOPEN_SOURCE define in the config.h file instead, and also added a
decent quote about the define, taken from
http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 00633e242..9bd061a1e 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,17 @@ case $host in mips-sgi-irix*) if test "$GCC" != "yes"; then xopen="yes" - CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" + + # "Applications should ensure that the feature test macro _XOPEN_SOURCE + # is defined with the value 500 before inclusion of any header. This is + # needed to enable the functionality described in this specification, + # and possibly to enable functionality defined elsewhere in the Common + # Applications Environment." + + # So far, we've only detected this to be strictly necessary if not using + # gcc on SGI IRIX. And this only to avoid warnings. + + AC_DEFINE(_XOPEN_SOURCE, 500, [ensure SUSV2 compatibility]) fi ;; *) |