lstat, openat: Respect rules for use of AC_LIBOBJ.
[gnulib.git] / modules / lstat
index a945a11..dbe7e11 100644 (file)
@@ -12,6 +12,10 @@ stat            [test $REPLACE_LSTAT = 1]
 
 configure.ac:
 gl_FUNC_LSTAT
+if test $REPLACE_LSTAT = 1; then
+  AC_LIBOBJ([lstat])
+  gl_PREREQ_LSTAT
+fi
 gl_SYS_STAT_MODULE_INDICATOR([lstat])
 
 Makefile.am: