summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-17 15:25:07 -0700
committerCarl Worth <cworth@cworth.org>2010-06-23 16:13:31 -0700
commit60c67e46b1b0c69171929be5915bb5468a7faff6 (patch)
tree1b1c95cf6224e972bc74a25269bcbe15f4b09393
parenta32305a8bd28e19b2e97d430a9f61587b7222bd5 (diff)
configure: Ensure that config.h can be safely included multiple times.
Use AH_TOP and AH_BOTTOM macros so that the standard include guard mechanisms are emitted by autoheader into the generated config.h file.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 74dd661..73ce67d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for library functions.
AC_HEADER_STDC
+AH_TOP([#ifndef GLSL_CONFIG_H
+#define GLSL_CONFIG_H])
+AH_BOTTOM([#endif /* GLSL_CONFIG_H */])
+
PKG_CHECK_MODULES([talloc], [talloc >= 2.0])
AC_ARG_ENABLE([debug],