mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
Use autoconf to request feature macros
This commit is contained in:
parent
476d2864b0
commit
8f303505ea
@ -24,14 +24,6 @@
|
|||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Request as many features as we can */
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#define _ISO99_SOURCE
|
|
||||||
#define _POSIX_SOURCE
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _XOPEN_SOURCE 600
|
|
||||||
#define _XOPEN_SOURCE_EXTENDED
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# if __GNUC__ >= 4
|
# if __GNUC__ >= 4
|
||||||
# define HAVE_GNUC_4
|
# define HAVE_GNUC_4
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
dnl Process this file with autoconf 2.53 or later to produce
|
dnl Process this file with autoconf 2.59 or later to produce
|
||||||
dnl a configure script.
|
dnl a configure script.
|
||||||
AC_PREREQ(2.53)
|
AC_PREREQ(2.59)
|
||||||
AC_INIT(config.h.in)
|
AC_INIT(config.h.in)
|
||||||
AC_CONFIG_HEADERS(config.h)
|
AC_CONFIG_HEADERS(config.h)
|
||||||
|
|
||||||
@ -47,6 +47,8 @@ fi
|
|||||||
AC_PREFIX_PROGRAM(nasm)
|
AC_PREFIX_PROGRAM(nasm)
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
AC_ISC_POSIX
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
|
Loading…
Reference in New Issue
Block a user