Use autoconf to request feature macros

This commit is contained in:
H. Peter Anvin 2007-10-03 17:40:12 -07:00
parent 476d2864b0
commit 8f303505ea
2 changed files with 4 additions and 10 deletions

View file

@ -24,14 +24,6 @@
# include "config.h"
#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__
# if __GNUC__ >= 4
# define HAVE_GNUC_4

View file

@ -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.
AC_PREREQ(2.53)
AC_PREREQ(2.59)
AC_INIT(config.h.in)
AC_CONFIG_HEADERS(config.h)
@ -47,6 +47,8 @@ fi
AC_PREFIX_PROGRAM(nasm)
dnl Checks for programs.
AC_USE_SYSTEM_EXTENSIONS
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET