X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fpthread;h=3a00c772140225727c9d01832ac1678d3678f508;hb=02923aada23a2fa2122b415f313730f2e5e266ec;hp=6e061cec05741896475ad037c39fd46a01bbe395;hpb=6a9b156fdf9c71c0bbc8bb0b3aa0262df5674dda;p=gnulib.git diff --git a/modules/pthread b/modules/pthread index 6e061cec0..3a00c7721 100644 --- a/modules/pthread +++ b/modules/pthread @@ -6,6 +6,8 @@ lib/pthread.in.h m4/pthread.m4 Depends-on: +sched +time configure.ac: gl_PTHREAD_CHECK @@ -15,13 +17,32 @@ BUILT_SOURCES += $(PTHREAD_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -pthread.h: pthread.in.h - ln -f pthread.in.h $@ || cp pthread.in.h $@ -MOSTLYCLEANFILES += pthread.h +if GL_GENERATE_PTHREAD_H +pthread.h: pthread.in.h $(top_builddir)/config.status + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ + -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \ + -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \ + -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \ + < $(srcdir)/pthread.in.h; \ + } > $@-t && \ + mv $@-t $@ +else +pthread.h: $(top_builddir)/config.status + rm -f $@ +endif +MOSTLYCLEANFILES += pthread.h pthread.h-t Include: +Link: +$(LIB_PTHREAD) + License: LGPLv2+