X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fpoll;h=f1f22bfd814efc5520f08130ab9f7f08a7098206;hb=c6f9e663d25b0980c51f609a3fe237deca168461;hp=9a3ec49647ce282c966ea0ece4ca5dcacbe34a96;hpb=47a8dd64accd4e522331866a73bb79adc2d6ca78;p=gnulib.git diff --git a/modules/poll b/modules/poll index 9a3ec4964..f1f22bfd8 100644 --- a/modules/poll +++ b/modules/poll @@ -3,34 +3,28 @@ poll() function: wait for some event on a set of file descriptors. Files: lib/poll.c -lib/poll.in.h m4/poll.m4 Depends-on: -alloca -select -sys_select -sys_time -errno +poll-h +alloca [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1] +select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1] +sys_select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1] +sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1] +errno [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1] configure.ac: gl_FUNC_POLL +if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then + AC_LIBOBJ([poll]) + gl_PREREQ_POLL +fi +gl_POLL_MODULE_INDICATOR([poll]) Makefile.am: -BUILT_SOURCES += $(POLL_H) - -# We need the following in order to create when the system -# doesn't have one. -poll.h: poll.in.h - $(AM_V_GEN)rm -f $@-t $@ && \ - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/poll.in.h; \ - } > $@-t && \ - mv -f $@-t $@ -MOSTLYCLEANFILES += poll.h poll.h-t Include: -#include + License: LGPLv2+