image loaders m4: configure fail if not found and option is "yes" or "static"

fix T64
related to D133
This commit is contained in:
Jérémy Zurcher 2013-05-30 23:45:11 +02:00
parent 2ff44b6fac
commit 2370e968e5
1 changed files with 4 additions and 2 deletions

View File

@ -466,8 +466,10 @@ if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_
m4_default([EVAS_CHECK_LOADER_DEP_]m4_defn([UP]))(DOWN, ${want_loader}, [have_loader="yes"], [have_loader="no"])
fi
if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes"; then
AC_MSG_ERROR([$1 dependencies not found])
if test "x${have_loader}" = "xno"; then
if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic"; then
AC_MSG_ERROR([$1 dependencies not found])
fi
fi
AC_MSG_CHECKING([whether $1 image loader will be built])