From 8f303505eada73f6c70ae19b98b3ac44e0cf0480 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 3 Oct 2007 17:40:12 -0700 Subject: [PATCH] Use autoconf to request feature macros --- compiler.h | 8 -------- configure.in | 6 ++++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/compiler.h b/compiler.h index 0f7261c8..5f35490e 100644 --- a/compiler.h +++ b/compiler.h @@ -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 diff --git a/configure.in b/configure.in index 009720a2..c43d39ca 100644 --- a/configure.in +++ b/configure.in @@ -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