summaryrefslogtreecommitdiffstats
path: root/m4/REQUIRE_HEADER.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
commite5a812082ae033afb1eed82c0f2df3d0f6bdc93f (patch)
treea6716c9275b4b413f6c9194798b34b91affb3cc7 /m4/REQUIRE_HEADER.m4
parentInitial commit. (diff)
downloadpacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.tar.xz
pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.zip
Adding upstream version 2.1.6.upstream/2.1.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/REQUIRE_HEADER.m4')
-rw-r--r--m4/REQUIRE_HEADER.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/REQUIRE_HEADER.m4 b/m4/REQUIRE_HEADER.m4
new file mode 100644
index 0000000..d723458
--- /dev/null
+++ b/m4/REQUIRE_HEADER.m4
@@ -0,0 +1,16 @@
+# REQUIRE_HEADER([HEADER])
+#
+# Error if a C header file can't be found
+#
+dnl
+dnl Copyright 2020 the Pacemaker project contributors
+dnl
+dnl The version control history for this file may have further details.
+dnl
+dnl This source code is licensed under the GNU General Public License version 2
+dnl or later (GPLv2+) WITHOUT ANY WARRANTY.
+
+dnl Usage: REQUIRE_HEADER(header-file, [prerequisite-includes])
+AC_DEFUN([REQUIRE_HEADER], [
+ AC_CHECK_HEADERS([$1], [], [AC_MSG_ERROR(Could not find required C header $1)], [$2])
+])