summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-18 18:15:18 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-18 19:14:08 -0700
commit8088815922a1c8fb185f4e4a7b57ddaf0f13f340 (patch)
tree9fc38f52621c7edde527a7ebb23e30ad992d92ee /configure.in
parent684f98b6360558eb4a2ddf061378ae0f90584259 (diff)
downloadnasm-8088815922a1c8fb185f4e4a7b57ddaf0f13f340.tar.gz
nasm-8088815922a1c8fb185f4e4a7b57ddaf0f13f340.tar.bz2
nasm-8088815922a1c8fb185f4e4a7b57ddaf0f13f340.zip
configure: Undefine __STRICT_ANSI__ for mingw's benefit
mingw makes a bunch of prototypes unavailable if __STRICT_ANSI__ is defined. However, they are still detected by configure, which causes us pain.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 93759fd..8cbde3c 100644
--- a/configure.in
+++ b/configure.in
@@ -67,6 +67,9 @@ PA_ADD_CFLAGS([-W])
PA_ADD_CFLAGS([-Wall])
PA_ADD_CFLAGS([-std=c99])
PA_ADD_CFLAGS([-pedantic])
+dnl mingw disables a bunch of features if __STRICT_ANSI__ is defined,
+dnl and -std=c99 defines __STRICT_ANSI__
+PA_ADD_CFLAGS([-U__STRICT_ANSI__])
dnl Look for "nroff" or "groff"
AC_CHECK_PROGS(NROFF, nroff, echo)