VMIC not defined anymore at configure time
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Jun 2010 06:26:12 +0000 (06:26 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Jun 2010 06:26:12 +0000 (06:26 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@49476 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index adb47a3..744c96f 100644 (file)
@@ -68,7 +68,16 @@ esac
 AC_SUBST(MODULE_ARCH)
 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
 
-AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
+case "$host_os" in
+   mingw*)
+      MODULE_EXT=".dll"
+      ;;
+   *)
+      MODULE_EXT=".so"
+      ;;
+esac
+
+AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "${MODULE_EXT}", [Suffix for shared objects])
 
 EFL_CHECK_CPU_MMX([have_mmx="yes"], [have_mmx="no"])
 EFL_CHECK_CPU_SSE([have_sse="yes"], [have_sse="no"])
@@ -300,10 +309,11 @@ case "$host_os" in
       ;;
 esac
 
-if ! test "x${VMIC}" = "x" ; then
-   EFL_COMPILER_FLAG([-Wall])
-   EFL_COMPILER_FLAG([-W])
-fi
+m4_ifdef([v_mic],
+   [
+    EFL_COMPILER_FLAG([-Wall])
+    EFL_COMPILER_FLAG([-W])
+   ])
 
 EFL_COMPILER_FLAG([-Wshadow])