autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems
authorDan Nicholson <dbn.lists@gmail.com>
Mon, 12 Jan 2009 19:10:31 +0000 (11:10 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Mon, 12 Jan 2009 19:10:31 +0000 (11:10 -0800)
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

index 6a99f3031e263ebafa0610a3e1c63344a67e4e87..33c107266a2fffe90b4c7bc85dd9e2801f8e955c 100644 (file)
@@ -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"