Mesa (master): autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems
Dan Nicholson
dbn at kemper.freedesktop.org
Mon Jan 12 19:13:09 UTC 2009
Module: Mesa
Branch: master
Commit: 29f603a270da711a2a980cc9896e5883e59227cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=29f603a270da711a2a980cc9896e5883e59227cd
Author: Dan Nicholson <dbn.lists at gmail.com>
Date: Mon Jan 12 11:10:31 2009 -0800
autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems
According to feature_test_macros(7), _GNU_SOURCE encompasses all the
other feature macros we were setting, so we can just dispose of them.
---
configure.ac | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6a99f30..33c1072 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,10 +84,7 @@ DEFINES=""
AC_SUBST([DEFINES])
case "$host_os" in
*-gnu*)
-if test "x$GCC" = xyes; then
- DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
-fi
- DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS"
+ DEFINES="$DEFINES -D_GNU_SOURCE -DPTHREADS"
;;
solaris*)
DEFINES="$DEFINES -DPTHREADS -DSVR4"
More information about the mesa-commit
mailing list