maint: fts.c: remove __opendir2's now-unused parameter, oflag
[gnulib.git] / m4 / free.m4
index 05c3038..24bbbb1 100644 (file)
@@ -1,6 +1,6 @@
 # Check whether free (NULL) is supposed to work.
 
-# Copyright (C) 2003, 2004, 2005, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2003-2005, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -20,17 +20,16 @@ AC_DEFUN([gl_FUNC_FREE],
     [gl_cv_func_free],
     [AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM(
-         [[@%:@include <unistd.h>]],
-         [[@%:@if _POSIX_VERSION < 199009L && \
-               (defined unix || defined _unix || defined _unix_ \
-                || defined __unix || defined __unix__)
-             @%:@error "'free (NULL)' is not known to work"
-           @%:@endif]])],
+          [[@%:@include <unistd.h>]],
+          [[@%:@if _POSIX_VERSION < 199009L && \
+                (defined unix || defined _unix || defined _unix_ \
+                 || defined __unix || defined __unix__)
+              @%:@error "'free (NULL)' is not known to work"
+            @%:@endif]])],
        [gl_cv_func_free=yes],
        [gl_cv_func_free=no])])
 
   if test $gl_cv_func_free = no; then
-    AC_LIBOBJ([free])
     AC_DEFINE([free], [rpl_free],
       [Define to rpl_free if the replacement function should be used.])
   fi