realloc-*: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / error
index fbeeb0d9320a69e4b041e5f6d74ed0cefc84e362..ae12b45ad4ebb48e18bfa00065a0897ceba6f3a7 100644 (file)
@@ -12,10 +12,15 @@ lib/error.c
 m4/error.m4
 
 Depends-on:
-strerror
+strerror        [test $ac_cv_lib_error_at_line = no]
+unistd          [test $ac_cv_lib_error_at_line = no]
 
 configure.ac:
 gl_ERROR
+if test $ac_cv_lib_error_at_line = no; then
+  AC_LIBOBJ([error])
+  gl_PREREQ_ERROR
+fi
 m4_ifdef([AM_XGETTEXT_OPTION],
   [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
    AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])