summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-04-23 09:53:18 +0100
committerJosep Torra <n770galaxy@gmail.com>2013-05-10 10:14:17 +0200
commit19619228823ccc02cf07df4f156a95720d8cf0f4 (patch)
treef2a7e980d9621af31feca681b075ee44103e432c
parent65a2e69936b08df8136dd4600f07c8d4c7d0bd09 (diff)
downloadgst-omx-19619228823ccc02cf07df4f156a95720d8cf0f4.tar.gz
configure: error out if no OMX target has been set explicitly with --with-omx-target=x
Avoids people building for e.g. the Raspberry Pi and then wondering why things don't work as expected (since structs are packed differently there).
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 05b971c..16c7428 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,7 +188,7 @@ AC_ARG_ENABLE(Bsymbolic,
AC_ARG_WITH([omx-target],
AS_HELP_STRING([--with-omx-target],[Use this OpenMAX IL target (generic, bellagio, rpi)]),
- [ac_cv_omx_target="$withval"], [ac_cv_omx_target="generic"])
+ [ac_cv_omx_target="$withval"], [ac_cv_omx_target="none"])
ac_cv_omx_target_struct_packing="none"
AC_MSG_NOTICE([Using $ac_cv_omx_target as OpenMAX IL target])
@@ -203,8 +203,8 @@ case "${ac_cv_omx_target}" in
bellagio)
AC_DEFINE(USE_OMX_TARGET_BELLAGIO, 1, [Use Bellagio OpenMAX IL target])
;;
- *)
- AC_ERROR([invalid OpenMAX IL target])
+ none|*)
+ AC_ERROR([invalid OpenMAX IL target, you must specify one of --with-omx-target={generic,rpi,bellagio}])
;;
esac
AM_CONDITIONAL(USE_OMX_TARGET_GENERIC, test "x$ac_cv_omx_target" = "xgeneric")