and make it compile... :-/
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 16 Jun 2012 06:10:15 +0000 (06:10 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 16 Jun 2012 06:10:15 +0000 (06:10 +0000)
now my bad, I'm rusty enough to get it wrong without testing.

The problems were:
 * missing "_" between EFL_HAVE and ECORE_CON.
 * must declare the AM_CONDITIONAL, even if the flags were not checked.

This case was triggered if --enable-cares or --disable-ipv6.

Anyway, EFL_HAVE_ECORE_CON is never used... I have no idea why vtorri
did the macro to define this conditional.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@72213 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
m4/efl_compiler.m4

index cb87607..efb2a2e 100644 (file)
@@ -1532,6 +1532,7 @@ if test "x${have_ecore_con}" = "xyes" ; then
 
 fi
 
+AM_CONDITIONAL([EFL_HAVE_ECORE_CON], [true])
 if test "x${have_cares}" != "xyes" -a "x${have_ipv6}" = "xyes" ; then
    EFL_CHECK_COMPILER_FLAGS([ECORE_CON], [-Wno-override-init -Wno-initializer-overrides])
 fi
index ff514ca..92c57fc 100644 (file)
@@ -34,7 +34,7 @@ UPEFL[_CFLAGS]="${UPEFL[_CFLAGS]} [$2]"
 AC_ARG_VAR(UPEFL[_CFLAGS], [preprocessor flags for $2])
 AC_SUBST(UPEFL[_CFLAGS])
 
-AM_CONDITIONAL([EFL_HAVE]UPEFL, [test "x${have_flag}" = "xyes"])
+AM_CONDITIONAL([EFL_HAVE_]UPEFL, [test "x${have_flag}" = "xyes"])
 
 m4_popdef([UP])
 m4_popdef([UPEFL])