force c99 mode when using dns.c
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jun 2012 10:27:18 +0000 (10:27 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jun 2012 10:27:18 +0000 (10:27 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71790 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/ecore_con/Makefile.am

index 3ff39e4..98fdd57 100644 (file)
@@ -1527,6 +1527,10 @@ if test "x${have_ecore_con}" = "xyes" ; then
 fi
 
 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
+if test "x${have_cares}" != "xyes" ; then
+   C99="$ac_cv_prog_cc_c99"
+   AC_SUBST(C99)
+fi
 
 # ecore_ipc
 ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
index 2113f88..f18aee8 100644 (file)
@@ -35,7 +35,7 @@ if HAVE_CARES
 libecore_con_la_SOURCES += ecore_con_ares.c
 else
 if HAVE_IPV6
-AM_CPPFLAGS += -Wno-override-init
+AM_CPPFLAGS += -Wno-override-init $(C99)
 libecore_con_la_SOURCES += ecore_con_dns.c dns.c dns.h
 else
 libecore_con_la_SOURCES += ecore_con_info.c