From: Carl Worth Date: Thu, 17 Jun 2010 22:25:07 +0000 (-0700) Subject: configure: Ensure that config.h can be safely included multiple times. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60c67e46b1b0c69171929be5915bb5468a7faff6;p=mesa.git 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. --- diff --git a/configure.ac b/configure.ac index 74dd6618462..73ce67de3d1 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],