random_r: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / random_r
index 49a791bb1ec82a7fbd2d1440de7342f22067bd46..41b9b8d4ec6e0c61ccb43eaf7f93c886dfe92383 100644 (file)
@@ -11,6 +11,10 @@ stdint
 
 configure.ac:
 gl_FUNC_RANDOM_R
+if test $HAVE_RANDOM_R = 0; then
+  AC_LIBOBJ([random_r])
+  gl_PREREQ_RANDOM_R
+fi
 gl_STDLIB_MODULE_INDICATOR([random_r])
 
 Makefile.am: