getopt-posix: avoid spurious failure on Solaris
[pspp] / m4 / fcntl-safer.m4
index e2080dfa5df3c3187e133bc4823c9acbe97e6ce6..1a739b093264a6161d2dc441b66a3c7e11fa16fe 100644 (file)
@@ -1,5 +1,5 @@
-#serial 6
-dnl Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc.
+#serial 7
+dnl Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, 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.
@@ -11,3 +11,9 @@ AC_DEFUN([gl_FCNTL_SAFER],
   # Prerequisites of lib/open-safer.c.
   AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T])
 ])
+
+AC_DEFUN([gl_OPENAT_SAFER],
+[
+  AC_REQUIRE([gl_FCNTL_SAFER])
+  AC_LIBOBJ([openat-safer])
+])