configure.ac

changeset 362
39cef8f37eb5
parent 341
b9715d7317c1
child 367
e54e0b24e98e
equal deleted inserted replaced
361:8ee9e23adbd2 362:39cef8f37eb5
50 # we want to support automake < 1.14, so we need this deprecated macro 50 # we want to support automake < 1.14, so we need this deprecated macro
51 # it tests, whether the compiler allows -c and -o simultaneously 51 # it tests, whether the compiler allows -c and -o simultaneously
52 # in modern versions of autoconf, this is done by AC_PROG_CC 52 # in modern versions of autoconf, this is done by AC_PROG_CC
53 AM_PROG_CC_C_O 53 AM_PROG_CC_C_O
54 54
55 # we require the current C standard 55 # we want c11, and may fall back to c99
56 AC_PROG_CC_STDC 56 AX_CHECK_COMPILE_FLAG([-std=c11],
57 [AX_APPEND_FLAG([-std=c11])],
58 [AC_PROG_CC_C99]
59 )
57 60
58 # where to place config macros 61 # where to place config macros
59 AC_CONFIG_HEADERS([config.h]) 62 AC_CONFIG_HEADERS([config.h])
60 63
61 # our Makefiles 64 # our Makefiles

mercurial