2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([libquvi-scripts], m4_esyscmd([./gen-ver.sh -c | tr -d '\n']),
7 [http://quvi.sf.net/bugs/],[],[http://quvi.sf.net/])
9 AC_CONFIG_SRCDIR([tests/lib/env.c])
10 AC_CONFIG_HEADERS([config.h])
11 AC_CONFIG_AUX_DIR([config.aux])
12 AC_CONFIG_MACRO_DIR([m4])
14 AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar])
15 AM_SILENT_RULES([yes])
18 LT_INIT([disable-static])
21 # Checks for programs.
27 pkg_libquvi=libquvi-0.9
29 [AS_HELP_STRING([--with-tests],
30 [Enable tests for scripts @<:@default=no@:>@])],
31 [PKG_CHECK_MODULES([libquvi], ["$pkg_libquvi" >= 0.9],
32 [libquvi_modver=`$PKG_CONFIG --modversion $pkg_libquvi 2>/dev/null`
33 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.24],
34 [PKG_CHECK_MODULES([libcurl], [libcurl >= 7.21], [with_tests=yes])])
37 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" = "xyes"])
41 [AS_HELP_STRING([--with-nsfw],
42 [Install scripts marked as "NSFW" @<:@default=no@:>@])],
44 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
48 [AS_HELP_STRING([--with-fixme],
49 [Install scripts marked as "FIXME" @<:@default=no@:>@])],
51 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
54 AC_ARG_WITH([geoblocked],
55 [AS_HELP_STRING([--with-geoblocked],
56 [Install scripts marked as "geoblocked" @<:@default=yes@:>@])],
57 [], [with_geoblocked=yes])
58 AM_CONDITIONAL([WITH_GEOBLOCKED], [test x"$with_geoblocked" = "xyes"])
62 [AS_HELP_STRING([--with-manual],
63 [Install manual page(s) @<:@default=yes@:>@])],
64 [], [with_manual=yes])
65 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
67 # Version: Major/minor -pair, used to symlink
69 # $prefix/share/libquvi-scripts/$version/
71 # $prefix/share/libquvi-scripts/$major.$minor/
72 VERSION_MM=`$srcdir/gen-ver.sh -c -m`
73 AC_SUBST([VERSION_MM])
75 VN_C=`$srcdir/gen-ver.sh -c` # Use this value in the .pc file
85 libquvi-scripts-0.9.pc])
96 - libquvi .pc modversion ${libquvi_modver}
99 - geoblocked ${with_geoblocked}
100 - fixme ${with_fixme}
101 - nsfw ${with_nsfw}])