-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfigure.ac
48 lines (39 loc) · 1.27 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AC_INIT([MTPfs], [1.1], [Chris Debenham <chris@adebenham.com>],[mtpfs])
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
PKG_CHECK_MODULES(FUSE, fuse >= 2.2)
AC_SUBST(FUSE_CFLAGS)
AC_SUBST(FUSE_LIBS)
PKG_CHECK_MODULES(MTP, libmtp >= 1.1.0)
AC_SUBST(MTP_CFLAGS)
AC_SUBST(MTP_LIBS)
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 \
gthread-2.0 >= 1.2 \
gio-2.0 >= 2.6)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_ARG_ENABLE([mad],
[AS_HELP_STRING([--disable-mad], [disable libmad handling of mp3 files])])
AS_IF([test "x$enable_mad" != "xno"] , [
PKG_CHECK_MODULES(MAD, mad >= 0.15 \
id3tag >= 0.15)
AC_SUBST(MAD_CFLAGS)
AC_SUBST(MAD_LIBS)
])
AM_CONDITIONAL([USEMAD], [test "x$enable_mad" != "xno"])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[enable debugging features]),
, enable_debug=no)
if test "x$enable_debug" != xyes -a "x$enable_debug" != xno; then
AC_MSG_ERROR(You may not pass an argument to --enable-debug)
fi
if test "x$enable_debug" = xyes; then
AC_DEFINE(DEBUG,1,[Define if debug logging is enabled])
else
AC_DEFINE(DEBUG,0,[Define if debug logging is enabled])
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT