add guards in config.h to avoid multiple inclusions
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Jan 2011 18:13:54 +0000 (18:13 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Jan 2011 18:13:54 +0000 (18:13 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@55937 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 9b082ac..e18edce 100644 (file)
@@ -22,10 +22,13 @@ AC_INIT([eina], [v_ver.beta3], [enlightenment-devel@lists.sourceforge.net])
 AC_PREREQ([2.59])
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_MACRO_DIR([m4])
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-AC_ISC_POSIX
-AC_GNU_SOURCE
+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([config.h])
@@ -53,8 +56,12 @@ AC_SUBST(release_info)
 VMAJ=v_maj
 AC_SUBST(VMAJ)
 
+
 ### Needed information
 
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+
 requirement_eina=""
 
 case "$host_os" in
@@ -344,6 +351,7 @@ AC_C_BIGENDIAN
 AC_C_INLINE
 AC_C___ATTRIBUTE__
 AC_PROG_CC_STDC
+AC_GNU_SOURCE
 
 have_win32="no"
 EINA_CPPFLAGS=""
@@ -405,6 +413,7 @@ EFL_LINKER_FLAG([-fno-strict-aliasing])
 
 
 ### Checks for library functions
+AC_ISC_POSIX
 AC_FUNC_ALLOCA
 AC_CHECK_FUNCS(strlcpy)