changeset 35928:67c0f68b3370

configure: Only add _POSIX_C_SOURCE and _XOPEN_SOURCE to CFLAGS for glibc.
author diego
date Wed, 20 Mar 2013 12:18:37 +0000
parents e43fa34e33cf
children 39e518664273
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Mar 19 17:23:41 2013 +0000
+++ b/configure	Wed Mar 20 12:18:37 2013 +0000
@@ -2721,7 +2721,10 @@
   warn_cflags=yes
 fi
 
-CFLAGS="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS"
+CFLAGS="-D_ISOC99_SOURCE $CFLAGS"
+
+cpp_condition_check features.h "defined __GLIBC__" &&
+  CFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS"
 
 if test "$cc_vendor" = "gnu" ; then
   cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize"