build: Print configure warning when trying --with-api=eo
authorStefan Schmidt <s.schmidt@samsung.com>
Thu, 30 Oct 2014 08:14:48 +0000 (09:14 +0100)
committerStefan Schmidt <s.schmidt@samsung.com>
Thu, 30 Oct 2014 08:17:13 +0000 (09:17 +0100)
Our code base simply do not work with the EO API alone right now. Leave the
option for testing but hide the knob to turn it on behind the beloved "I
know what I do" option.

Fixes T1558

configure.ac

index c5d1268..783ca4e 100644 (file)
@@ -40,6 +40,7 @@ case "$efl_api" in
     eo)
         EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
         EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
+        CFOPT_WARNING="xyes"
         ;;
     legacy)
         EFL_API_LEGACY_DEF=""
@@ -4902,6 +4903,16 @@ if test -n "$CFOPT_WARNING"; then
     echo "that, as opposed to compiling it out."
     echo "_____________________________________________________________________"
   fi
+  if test "x${efl_api}" = "xeo"; then
+    echo "_____________________________________________________________________"
+    echo "Using the EO based EFL API only does not work at the moment. We still"
+    echo "have a lot code that depends on the legacy interfaces. We provide"
+    echo "this option for testing once we are able to migrate to the EO based"
+    echo "API."
+    echo "If you are not working on this migration please leave the option set"
+    echo "to both as it will break your build if set to eo."
+    echo "_____________________________________________________________________"
+  fi
   echo "_____________________________________________________________________"
   echo ""
   echo "==-- WARNING --=="