]> Savannah Git Hosting - gnulib.git/commitdiff
openmp-init: New module.
authorBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2019 09:03:25 +0000 (11:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2019 09:04:14 +0000 (11:04 +0200)
* modules/openmp-init: New file.
* modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
the changes from 2019-04-09.

ChangeLog
modules/openmp
modules/openmp-init [new file with mode: 0644]

index 641224193efd2ecf4c1f2024f44f358c48c1f7ef..469003a5b96c6c8ee308c20b1e5535679a6cc559 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-04-13  Bruno Haible  <bruno@clisp.org>
+
+       openmp-init: New module.
+       * modules/openmp-init: New file.
+       * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
+       the changes from 2019-04-09.
+
 2019-04-12  Bruno Haible  <bruno@clisp.org>
 
        signbit: Fix compilation error when gnulib's math.h exists twice.
index ef8e605fe88dbbac13f1890c4b015866e1b324f1..7c627ed64975490ec0039a059f83026b4f4bb79d 100644 (file)
@@ -2,38 +2,13 @@ Description:
 Detection of OpenMP support.
 
 Files:
-lib/omp.in.h
-lib/omp-init.c
-m4/omp_h.m4
 
 Depends-on:
-include_next
-c-ctype
-setenv
 
 configure.ac:
 AC_OPENMP
-gl_OMP_H
 
 Makefile.am:
-BUILT_SOURCES += omp.h
-
-# We need the following in order to create <omp.h> when the system
-# doesn't have one that works with the given compiler.
-omp.h: omp.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
-  $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_GEN)rm -f $@-t $@ && \
-       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
-         sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|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_OMP_H''@|$(NEXT_OMP_H)|g' \
-             < $(srcdir)/omp.in.h; \
-       } > $@-t && \
-       mv $@-t $@
-MOSTLYCLEANFILES += omp.h omp.h-t
-lib_SOURCES += omp-init.c
 
 Include:
 #ifdef _OPENMP
diff --git a/modules/openmp-init b/modules/openmp-init
new file mode 100644 (file)
index 0000000..e3975ca
--- /dev/null
@@ -0,0 +1,47 @@
+Description:
+Initialization of OpenMP support.
+
+Files:
+lib/omp.in.h
+lib/omp-init.c
+m4/omp_h.m4
+
+Depends-on:
+include_next
+c-ctype
+setenv
+
+configure.ac:
+gl_OMP_H
+
+Makefile.am:
+BUILT_SOURCES += omp.h
+
+# We need the following in order to create <omp.h> when the system
+# doesn't have one that works with the given compiler.
+omp.h: omp.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
+  $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
+         sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|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_OMP_H''@|$(NEXT_OMP_H)|g' \
+             < $(srcdir)/omp.in.h; \
+       } > $@-t && \
+       mv $@-t $@
+MOSTLYCLEANFILES += omp.h omp.h-t
+
+lib_SOURCES += omp-init.c
+
+Include:
+#ifdef _OPENMP
+# include <omp.h>
+#endif
+
+License:
+LGPL
+
+Maintainer:
+all