fsync test: Avoid test failure on MacOS X and AIX.
[pspp] / modules / perror
index d2147b6b661a144a5839d49a3fbfc6b463e08bc8..e74300220a8735880e19451be8bcbb01c3b53a5d 100644 (file)
@@ -7,11 +7,14 @@ m4/perror.m4
 
 Depends-on:
 stdio
-errno           [test $REPLACE_PERROR = 1]
-strerror        [test $REPLACE_PERROR = 1]
+errno            [test $REPLACE_PERROR = 1]
+strerror_r-posix [test $REPLACE_PERROR = 1]
 
 configure.ac:
 gl_FUNC_PERROR
+if test $REPLACE_PERROR = 1; then
+  AC_LIBOBJ([perror])
+fi
 gl_STRING_MODULE_INDICATOR([perror])
 
 Makefile.am: