Add posix macros in configure.ac, not in Makefile, so that they will be honored by the configure tests

darcs-hash:20060801013123-ac50b-0c561ad5afd6e71230e29a25d467ed63c47b9f17.gz
This commit is contained in:
axel 2006-08-01 11:31:23 +10:00
parent 696b4df1c6
commit dc3634dc94
2 changed files with 3 additions and 1 deletions

View file

@ -49,7 +49,7 @@ prefix = @prefix@
optbindirs = @optbindirs@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\" -D_POSIX_C_SOURCE=200112L
MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\"
CFLAGS=@CFLAGS@ $(MACROS)
CPPFLAGS=@CPPFLAGS@
LDFLAGS= @LIBS@ @LDFLAGS@

View file

@ -72,6 +72,8 @@ for i in /usr/pkg /sw /opt /opt/local; do
done
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L"
AC_SUBST( optbindirs, $optbindirs )
# Tell autoconf to create config.h header