diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2014-12-20 11:35:51 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2014-12-20 11:35:51 +0300 |
commit | 7729edf7224e39628bd342c3a3bb44c1753bdfb0 (patch) | |
tree | 8c56ace25782c8ee05dcd5291d838831e11eed7c /configure.in | |
parent | 9b05974022da69c12b8b190c6ad100402771e5ad (diff) | |
download | nasm-7729edf7224e39628bd342c3a3bb44c1753bdfb0.tar.gz |
configure.in: Move AC_C_INLINE and friends to be checked before PA_ADD_CFLAGS
Looks like -Werror=missing-declarations revealed problem in
configure: the "inline" support has not been detected properly
leading to problem in building procedure.
Lets move AC_C_INLINE and etc to be tested before gcc flags.
Reported-by: NAKAI Yuta <nak5124@live.jp>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/configure.in b/configure.in index 572dee1c..b40c62b4 100644 --- a/configure.in +++ b/configure.in @@ -60,6 +60,19 @@ else fi AC_PROG_INSTALL +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_RESTRICT +AC_TYPE_SIZE_T +PA_WORKING_BOOL +AC_C_BIGENDIAN(AC_DEFINE(WORDS_BIGENDIAN),AC_DEFINE(WORDS_LITTLEENDIAN)) +AH_TEMPLATE(WORDS_BIGENDIAN, +[Define to 1 if your processor stores words with the most significant +byte first (like Motorola and SPARC, unlike Intel and VAX).]) +AH_TEMPLATE(WORDS_LITTLEENDIAN, +[Define to 1 if your processor stores words with the least significant +byte first (like Intel and VAX, unlike Motorola and SPARC).]) + dnl If we have gcc, add appropriate options PA_ADD_CFLAGS([-W]) PA_ADD_CFLAGS([-Wall]) @@ -112,20 +125,6 @@ AC_CHECK_HEADERS(strings.h) dnl Look for <stdbool.h> AC_CHECK_HEADERS(stdbool.h) -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_C_INLINE -AC_C_RESTRICT -AC_TYPE_SIZE_T -PA_WORKING_BOOL -AC_C_BIGENDIAN(AC_DEFINE(WORDS_BIGENDIAN),AC_DEFINE(WORDS_LITTLEENDIAN)) -AH_TEMPLATE(WORDS_BIGENDIAN, -[Define to 1 if your processor stores words with the most significant -byte first (like Motorola and SPARC, unlike Intel and VAX).]) -AH_TEMPLATE(WORDS_LITTLEENDIAN, -[Define to 1 if your processor stores words with the least significant -byte first (like Intel and VAX, unlike Motorola and SPARC).]) - dnl Checks for library functions. AC_SUBST(XOBJS) |