diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-09 19:33:26 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-09 19:33:26 -0700 |
commit | e1f0b35af06d03ca4b5f72d0500c51af1e487048 (patch) | |
tree | e7819d5a5195f13b36d693f9cbabd6d03872473e | |
parent | 1b9c8ec434a54b38952070c0a161a2164a9c67a3 (diff) | |
download | nasm-e1f0b35af06d03ca4b5f72d0500c51af1e487048.tar.gz |
configure.ac: also try -std=c99
If -std=c17 and -std=c11 don't work, try -std=c99 as well.
-std=c90 is unlikely to work because of the requirement for "long
long" on L32 platforms, which isn't likely to be supported on a pure
C90 compiler.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 784191ca..7b727693 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,8 @@ AC_SYS_LARGEFILE AC_PROG_CC AC_PROG_CC_STDC PA_ADD_CFLAGS([-std=c17], [], [], -[PA_ADD_CFLAGS([-std=c11])]) +[PA_ADD_CFLAGS([-std=c11], [], [], + [PA_ADD_CFLAGS([-std=c99])])]) dnl If the user did not specify a CFLAGS default, change default dnl to -O0 for debugging |