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 |