freopen-safer: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / readline
index dc324016c1ab87031982268c754b98f6f6fbce53..9cee3bb27113e2633b9555ae738005ee15558c37 100644 (file)
@@ -7,18 +7,24 @@ lib/readline.c
 m4/readline.m4
 
 Depends-on:
-getline
 havelib
+getline         [test "$gl_cv_lib_readline" = no]
 
 configure.ac:
 gl_FUNC_READLINE
+if test "$gl_cv_lib_readline" = no; then
+  AC_LIBOBJ([readline])
+  gl_PREREQ_READLINE
+fi
 
 Makefile.am:
-EXTRA_DIST += readline.h readline.c
 
 Include:
 "readline.h"
 
+Link:
+$(LTLIBREADLINE) when linking with libtool, $(LIBREADLINE) otherwise
+
 License:
 GPL