You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
627 B
27 lines
627 B
15 years ago
|
AC_DEFUN([KDE_CHECK_THEORA],
|
||
|
[
|
||
|
have_theora=yes
|
||
|
|
||
|
KDE_CHECK_HEADER(theora/theora.h,
|
||
|
[], [have_theora=no])
|
||
|
|
||
|
KDE_CHECK_LIB(theora, theora_info_init,
|
||
|
[], [have_theora=no], [-lvorbis -logg])
|
||
|
])
|
||
|
|
||
|
AC_ARG_WITH(theora,
|
||
|
[AC_HELP_STRING(--with-theora,
|
||
|
[enable support for Ogg Theora @<:@default=check@:>@])],
|
||
|
[], with_theora=check)
|
||
|
|
||
|
have_theora=no
|
||
|
if test "x$with_theora" != xno; then
|
||
|
KDE_CHECK_THEORA
|
||
|
|
||
|
if test "x$with_theora" != xcheck && test "x$have_theora" != xyes; then
|
||
|
AC_MSG_ERROR([--with-theora was given, but test for Theora failed])
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
AM_CONDITIONAL(include_theora_SUBDIR, test "x$have_theora" = xyes)
|