diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-03-17 16:43:33 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-03-17 16:43:33 +0000 |
| commit | 8fe79ba2f6ea1cb50225d7e9343ec9cd47632cd0 (patch) | |
| tree | e78ffbde7909fbf564cdbca43deac8a462df89d9 /acinclude.m4 | |
| parent | a7cfb0cd7b847b559309202f7c06fe1f8f3117b5 (diff) | |
| download | enigma2-8fe79ba2f6ea1cb50225d7e9343ec9cd47632cd0.tar.gz enigma2-8fe79ba2f6ea1cb50225d7e9343ec9cd47632cd0.zip | |
fix: gstreamer is supposed to be optional.
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e58d2751..a2a623c4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -246,6 +246,18 @@ AC_SUBST($1_CFLAGS) AC_SUBST($1_LIBS) ]) +AC_DEFUN(_TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL,[ +PKG_CHECK_MODULES($1,$2,$3="yes",$3="no") +if test "x$3" = "xyes"; then + AC_DEFINE($3, 1, [$2 available]) +else + $1_CFLAGS="" + $1_LIBS="" +fi +AC_SUBST($1_CFLAGS) +AC_SUBST($1_LIBS) +]) + AC_DEFUN(TUXBOX_APPS_LIB_PKGCONFIG,[ _TUXBOX_APPS_LIB_PKGCONFIG($1,$2) if test -z "$$1_CFLAGS" ; then |
