tests: Add media/soundcloud.mk
[libquvi-scripts.git] / configure.ac
blob4a495dd7fd211a6aa839e6d58536424a6e32cd6c
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.67])
6 m4_include([m4/version.m4])
8 AC_INIT([libquvi-scripts], [libquvi_scripts_rel],
9         [http://quvi.sf.net/bugs/], [], [http://quvi.sf.net/])
11 AC_CONFIG_SRCDIR([tests/lib/env.c])
12 AC_CONFIG_HEADERS([config.h])
13 AC_CONFIG_AUX_DIR([config.aux])
14 AC_CONFIG_MACRO_DIR([m4])
16 AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar])
17 AM_SILENT_RULES([yes])
18 #AM_PROG_AR
20 LT_INIT([disable-static])
21 LT_PREREQ([2.2.6])
23 # Checks for programs.
24 AC_PROG_CC
25 AM_PROG_CC_C_O
27 # Version.
28 genver="$srcdir/gen-ver.sh"
29 AS_IF([test -x "$genver"], [VN=`"$genver" "$srcdir"`])
30 AM_CONDITIONAL([HAVE_VN], [test -n "$VN"])
32 # --with-tests
33 pkg_libquvi=libquvi-1.0
34 AC_ARG_WITH([tests],
35   [AS_HELP_STRING([--with-tests], [with tests @<:@default=no@:>@])],
36   [PKG_CHECK_MODULES([libquvi], ["$pkg_libquvi" >= 1.0],
37     [libquvi_modver=`$PKG_CONFIG --modversion $pkg_libquvi 2>/dev/null`
38       PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.24],
39       [PKG_CHECK_MODULES([libcurl], [libcurl >= 7.21], [with_tests=yes])])
40     ])
41   ], [with_tests=no])
42 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" = "xyes"])
44 # --with-nsfw
45 AC_ARG_WITH([nsfw],
46   [AS_HELP_STRING([--with-nsfw],
47     [build with adult website support @<:@default=no@:>@])],
48   [], [with_nsfw=no])
49 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
51 # --with-fixme
52 AC_ARG_WITH([fixme],
53   [AS_HELP_STRING([--with-fixme],
54     [with website scripts marked as "fixme" @<:@default=no@:>@])],
55   [], [with_fixme=no])
56 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
58 # --with-nlfy
59 AC_ARG_WITH([nlfy],
60   [AS_HELP_STRING([--with-nlfy],
61     [test scripts marked as "nlfy" @<:@default=no@:>@])],
62   [], [with_nlfy=no])
63 AM_CONDITIONAL([WITH_NLFY], [test x"$with_nlfy" != "xno"])
65 # --with-manual
66 AC_ARG_WITH([manual],
67   [AS_HELP_STRING([--with-manual],
68     [install manual pages @<:@default=yes@:>@])],
69   [], [with_manual=yes])
70 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
72 AC_CONFIG_FILES([
73   Makefile
74   doc/Makefile
75   doc/man7/Makefile
76   share/Makefile
77   share/lua/Makefile
78   tests/Makefile
79   tests/lib/Makefile
80   libquvi-scripts-1.0.pc])
81 AC_OUTPUT
83 AC_MSG_NOTICE([
84   version:    ${VERSION} (${VN})
85   prefix:     ${prefix}
86 Options:
87   with tests: ${with_tests} (libquvi, .pc modversion ${libquvi_modver})
88   with fixme: ${with_fixme}
89   with nsfw:  ${with_nsfw}
90   with nlfy:  ${with_nlfy}])