extensions: Enable extensions on MacOS X 10.5 and later.
[pspp] / m4 / vasprintf.m4
index d38c8ede59f5a212a187a731c489bce8d6aa4cc0..6db52b18b1fcb2ed9e2059ed67da177e6816ac86 100644 (file)
@@ -1,5 +1,6 @@
-# vasprintf.m4 serial 4
-dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc.
+# vasprintf.m4 serial 6
+dnl Copyright (C) 2002-2003, 2006-2007, 2009-2011 Free Software Foundation,
+dnl Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -27,11 +28,11 @@ AC_DEFUN([gl_REPLACE_VASPRINTF],
   gl_PREREQ_ASPRINTF
 ])
 
-# Prerequisites of lib/vasprintf.h.
+# Prerequisites of the vasprintf portion of lib/stdio.h.
 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
 [
   dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 ])
 
 # Prerequisites of lib/vasprintf.c.