From 0b2f5791f04993bd2081cf04155a721a1bb4df8f Mon Sep 17 00:00:00 2001 From: "Zhao, Halley" Date: Mon, 24 Mar 2014 15:33:26 +0800 Subject: [PATCH] configure: add --with-omx-header-path option for external omx headers https://bugzilla.gnome.org/show_bug.cgi?id=726957 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 5f26b43aef..624bbaf4f7 100644 --- a/configure.ac +++ b/configure.ac @@ -159,6 +159,13 @@ GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`" AC_SUBST(GLIB_PREFIX) AC_SUBST(GST_PREFIX) +AC_ARG_WITH([omx-header-path], + AS_HELP_STRING([--with-omx-header-path],[path of external OpenMAX IL header files]), + [omx_header_path="$withval"], [omx_header_path="none"]) + +if test x"$omx_header_path" != x"none"; then + CPPFLAGS="$CPPFLAGS -I$omx_header_path" +fi dnl Check for external OpenMAX IL headers AC_CHECK_HEADER([OMX_Core.h], [HAVE_EXTERNAL_OMX=yes], [HAVE_EXTERNAL_OMX=no], [AC_INCLUDES_DEFAULT]) AM_CONDITIONAL(HAVE_EXTERNAL_OMX, test "x$HAVE_EXTERNAL_OMX" = "xyes")