1 # Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(fapg, 0.44)
14 --enable-xspf enable XSPF support (default)
15 --disable-xspf disable XSPF support], [
21 if test "${FAPG_XSPF}" = "1"; then
22 AC_MSG_NOTICE(XSPF support enabled (configure with --disable-xspf to disable))
24 AC_MSG_NOTICE(XSPF support disabled)
29 AC_ARG_WITH(uriparser, [ --with-uriparser=DIR override path of uriparser
30 ("/lib" and "/include" is appended)], [
31 if test "x${withval}" = "x"; then
32 AC_MSG_ERROR([No path given for option --with-uriparser])
34 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
35 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
38 AC_ARG_WITH(uriparser-inc, [ --with-uriparser-inc=D override include path of uriparser], [
39 if test "x${withval}" = "x"; then
40 AC_MSG_ERROR([No path given for option --with-uriparser-inc])
42 CPPFLAGS="-I${withval} ${CPPFLAGS}"
45 AC_ARG_WITH(uriparser-lib, [ --with-uriparser-lib=D override library path of uriparser], [
46 if test "x${withval}" = "x"; then
47 AC_MSG_ERROR([No path given for option --with-uriparser-lib])
49 LDFLAGS="-L${withval} ${LDFLAGS}"
54 if test "${FAPG_XSPF}" = "1"; then
55 URIPARSER_MISSING="Please install uriparser 0.6.3 or later.
56 On a Debian-based system enter 'sudo apt-get install liburiparser-dev'."
57 AC_CHECK_LIB(uriparser, uriParseUriA,, AC_MSG_ERROR(${URIPARSER_MISSING}))
58 AC_CHECK_HEADER(uriparser/Uri.h,, AC_MSG_ERROR(${URIPARSER_MISSING}))
60 URIPARSER_TOO_OLD="uriparser 0.6.3 or later is required, your copy is too old."
62 #include <uriparser/Uri.h>
63 #if (defined(URI_VER_MAJOR) && defined(URI_VER_MINOR) && defined(URI_VER_RELEASE) \
64 && ((URI_VER_MAJOR > 0) \
65 || ((URI_VER_MAJOR == 0) && (URI_VER_MINOR > 6)) \
66 || ((URI_VER_MAJOR == 0) && (URI_VER_MINOR == 6) && (URI_VER_RELEASE >= 3)) \
70 # error uriparser not recent enough
72 ],,AC_MSG_ERROR(${URIPARSER_TOO_OLD}))