add guards in config.h to avoid multiple inclusions
authorVincent Torri <vincent.torri@gmail.com>
Thu, 6 Jan 2011 19:01:34 +0000 (19:01 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Thu, 6 Jan 2011 19:01:34 +0000 (19:01 +0000)
raster: may I rename elementary_config.h to config.h ? If I
add macros for all the init stuff, it would be nice to have
consistent name for that file

SVN revision: 55952

configure.ac

index d49cc23..ea729f3 100644 (file)
@@ -26,8 +26,16 @@ AC_CONFIG_MACRO_DIR([m4])
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 
+AC_CONFIG_HEADERS([elementary_config.h])
+AH_TOP([
+#ifndef EFL_CONFIG_H__
+#define EFL_CONFIG_H__
+])
+AH_BOTTOM([
+#endif /* EFL_CONFIG_H__ */
+])
+
 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
-AM_CONFIG_HEADER([elementary_config.h])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AC_GNU_SOURCE