-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
56 lines (48 loc) · 1.76 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
49
50
51
52
53
54
55
56
# autoreconf --install
# autoconf
#
AC_PREREQ([2.69])
AC_INIT([gpod-utils],[m4_esyscmd([git describe --tags --dirty --always | tr -d '\n'])],[https://github.com/whatdoineed2do/gpod-utils/issues],[https://github.com/whatdoineed2do/gpod-utils],[[email protected]])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
AC_CONFIG_MACRO_DIRS([m4])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_INSTALL
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(GLIB, [glib-2.0])
PKG_CHECK_MODULES(GPOD, [libgpod-1.0 >= 0.8.3])
PKG_CHECK_MODULES(JSONC, [json-c >= 0.13])
AC_ARG_ENABLE(sqlite3,
AS_HELP_STRING([--disable-sqlite3],[do not use generate db from iTunesDB]),
[ use_sqlite3="${enableval}" ], [ use_sqlite3=yes ] )
if test "x$use_sqlite3" != xno ; then
PKG_CHECK_MODULES(SQLITE3, sqlite3, [ use_sqlite3=yes ], [ use_sqlite3=no ])
AH_TEMPLATE([HAVE_SQLITE3], [generate db from iTunesDB])
AS_IF([test "x$use_sqlite3" = "xyes"], [
AC_DEFINE([HAVE_SQLITE3])
AC_SUBST(SQLITE3_CFLAGS)
AC_SUBST(SQLITE3_LIBS)
])
fi
AM_CONDITIONAL([HAVE_SQLITE3], [test "x$use_sqlite3" = xyes])
PKG_CHECK_MODULES(FFMPEG, libavformat >= 58.20.100 libavcodec >= 58.35.100 libavutil >= 56.22.100 libswresample >= 3.3.100)
PKG_CHECK_EXISTS([libavcodec >= 59.24.100],
[AC_DEFINE([HAVE_FF5_CH_LAYOUT], 1,
[Defined if ffmpeg/libavcodec defines new 5.1.x ch_layout])])
AC_SUBST(FFMPEG_CFLAGS)
AC_SUBST(FFMPEG_LIBS)
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],[enable debug code (default is no)]),
[ debug="${enableval}" ], [ debug=no ] )
if test "x$debug" = xno; then
AC_DEFINE(NDEBUG,1,[debug code])
fi
AC_CONFIG_FILES([
Makefile
src/lib/Makefile
src/Makefile
])
AC_OUTPUT