X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fpthread;h=e29016a447c13d92ab41f70adc7aab4d585b08bd;hb=4b7ece979775e13ba4f1db1e6d9cfe400eff0f01;hp=51d5dbb9d9e8d99814c648e1a61d183e084e6d7c;hpb=7ba06c8ff37d8725cb824c64b94be41b9294ffb7;p=gnulib.git diff --git a/modules/pthread b/modules/pthread index 51d5dbb9d..e29016a44 100644 --- a/modules/pthread +++ b/modules/pthread @@ -18,9 +18,19 @@ 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 - $(AM_V_GEN)ln -f $(srcdir)/pthread.in.h $@ \ - || cp $(srcdir)/pthread.in.h $@ -MOSTLYCLEANFILES += pthread.h + $(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 $@ +MOSTLYCLEANFILES += pthread.h pthread.h-t Include: