mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
- Add some features to autoconf that makes it cleaner and faster - Modernize some of the autoconf macros - Update compiler.h with some C23 features Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
23 lines
765 B
Plaintext
23 lines
765 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_PROG_CC()
|
|
dnl
|
|
dnl Similar to AC_PROG_CC, but add a prototype for main() to
|
|
dnl AC_INCLUDES_DEFAULT to avoid -Werror from breaking compilation.
|
|
dnl (Very odd!)
|
|
dnl
|
|
dnl It can optionally take lists of CFLAGS to be added. For each argument,
|
|
dnl only the *first* flag accepted is added.
|
|
dnl
|
|
dnl BUG: this expands AC_CHECK_HEADERS_ONCE() before the flags get
|
|
dnl probed. Don't know yet how to fix that.
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN_ONCE([PA_PROG_CC],
|
|
[AC_REQUIRE([AC_PROG_CC])
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
ac_includes_default="$ac_includes_default
|
|
#ifndef __cplusplus
|
|
extern int main(void);
|
|
#endif"
|
|
PA_FIND_FLAGS(CFLAGS,[$1])
|
|
])
|