summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-15 23:58:21 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-15 23:58:21 +0000
commit985e4f5f9e7d7c85cf0ef8c04f7883e8918bc83d (patch)
tree9a270b27ff203c90408da51e3a7ad49c6268ffbe /configure
parent8ff39bd9c872ec3bb3b3eb7a6f2b500c73cbb9e1 (diff)
downloads6-985e4f5f9e7d7c85cf0ef8c04f7883e8918bc83d.tar.xz
Test _XOPEN_SOURCE=700, fix include order in Makefile
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 14 insertions, 4 deletions
diff --git a/configure b/configure
index efe87d4..0647be0 100755
--- a/configure
+++ b/configure
@@ -119,7 +119,7 @@ tryldflag () {
CC_AUTO="$CC"
CFLAGS_AUTO="$CFLAGS"
-CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -O2 $CPPFLAGS"
+CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -O2 $CPPFLAGS"
LDFLAGS_AUTO="$LDFLAGS"
LDFLAGS_NOSHARED=
prefix=
@@ -344,9 +344,19 @@ if $allstatic ; then
vpathd=
fi
echo "vpath lib%.so$vpathd"
-echo
-$static || echo "STATIC_LIBS :="
-$shared || echo "SHARED_LIBS :="
+echo "STATIC_LIBS :="
+echo "SHARED_LIBS :="
+if $static ; then
+ echo "DO_STATIC := 1"
+else
+ echo "DO_STATIC :="
+fi
+if $shared ; then
+ echo "DO_SHARED := 1"
+else
+ echo "DO_SHARED :="
+fi
+
exec 1>&3 3>&-
echo " ... done."