Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check for pkg-config and disable external ffmpeg when it was not foun…

…d. closes #66
  • Loading branch information...
commit 8fc9b126f9a6cef81012848c765c5afb7a284cfb 1 parent 05e432c
@opdenkamp opdenkamp authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 configure.ac
View
8 configure.ac
@@ -14,7 +14,7 @@ AC_PROG_CXX
AC_PROG_CPP
AC_PROG_LIBTOOL
-AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR("required library 'pthread' is missing"))
+AC_SEARCH_LIBS([pthread_create],[pthread],, AC_MSG_ERROR([required library 'pthread' is missing]))
AC_ARG_ENABLE([release],
[AS_HELP_STRING([--enable-release],
@@ -34,6 +34,12 @@ if test "$use_release" = "yes"; then
BUILD_TYPE="release"
fi
+AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
+if test "x$HAVE_PKG_CONFIG" != "xyes" ; then
+ AC_MSG_WARN([pkg-config was not found on your system. external ffmpeg will be disabled])
+ use_external_ffmpeg="no"
+fi
+
OS="unknown"
ARCHITECTURE="unknown"
HOST_INCLUDES=""
Please sign in to comment.
Something went wrong with that request. Please try again.