annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
[pspp] / modules / poll
index 03304154a4ebd8dddc8e61bc2f69bd6c72f10851..9a3ec49647ce282c966ea0ece4ca5dcacbe34a96 100644 (file)
@@ -3,12 +3,15 @@ poll() function: wait for some event on a set of file descriptors.
 
 Files:
 lib/poll.c
-lib/poll_.h
+lib/poll.in.h
 m4/poll.m4
 
 Depends-on:
+alloca
+select
 sys_select
 sys_time
+errno
 
 configure.ac:
 gl_FUNC_POLL
@@ -18,10 +21,11 @@ BUILT_SOURCES += $(POLL_H)
 
 # We need the following in order to create <poll.h> when the system
 # doesn't have one.
-poll.h: poll_.h
+poll.h: poll.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         cat $(srcdir)/poll_.h; \
-       } > $@-t
+         cat $(srcdir)/poll.in.h; \
+       } > $@-t && \
        mv -f $@-t $@
 MOSTLYCLEANFILES += poll.h poll.h-t
 
@@ -29,7 +33,7 @@ Include:
 #include <poll.h>
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Paolo Bonzini  <bonzini@gnu.org>