-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
34 lines (23 loc) · 907 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
AC_INIT([bluray_info], [1.15], [https://github.com/beandog/bluray_info/issues], [], [https://github.com/beandog/bluray_info])
dnl This is not a GNU package, so ignore required files / format
AM_INIT_AUTOMAKE([foreign])
dnl Check for C99 support
AC_PROG_CC_C99
dnl need math.h to do MBs calculations
AC_CHECK_HEADERS([math.h])
dnl Use pkg-config to check for libbluray
PKG_CHECK_MODULES([LIBBLURAY], [libbluray >= 1.2.0])
AC_ARG_WITH([libmpv], [AS_HELP_STRING([--with-libmpv], [Enable mpv support to build bluray_player])], [with_libmpv=${withval}], [with_libmpv=no])
dnl debugging
dnl AC_MSG_RESULT(x$with_libmpv)
dnl AC_MSG_RESULT(x$withval)
AS_IF([test "x$with_libmpv" != "xno"],
[
AC_DEFINE(HAVE_LIBMPV, [], [libmpv])
PKG_CHECK_MODULES([MPV], [mpv])
]
)
AM_CONDITIONAL([BLURAY_PLAYER], [test "x$with_libmpv" != "xno"])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT