2 # Process this file with autoconf to produce a configure script.
6 m4_include([m4/version.m4])
8 AC_INIT([quvi], [_QUVI_VERSION],
9 [http://sourceforge.net/apps/trac/quvi/], [],
10 [http://quvi.sourceforge.net/])
12 AC_CONFIG_SRCDIR([src/quvi/quvi.c])
13 AC_CONFIG_HEADERS([config.h])
14 AC_CONFIG_AUX_DIR([config.aux])
15 AC_CONFIG_MACRO_DIR([m4])
20 AC_DEFINE_UNQUOTED([CANONICAL_TARGET], "$target", [...])
21 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [...])
23 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2 dist-xz])
24 AM_SILENT_RULES([yes])
26 # Checks for programs.
29 # Checks for libraries.
30 PKG_CHECK_MODULES([libquvi], [libquvi >= 0.4.0])
31 PKG_CHECK_MODULES([libcurl], [libcurl >= 7.18.2])
33 # Checks for header files.
34 AC_CHECK_HEADERS([stdarg.h stdlib.h string.h stddef.h])
36 # Checks for typedefs, structures, and compiler characteristics.
37 AC_CHECK_TYPES([ptrdiff_t])
40 # Checks for library functions.
41 AC_CHECK_FUNCS([memset strchr strcspn strdup strerror strspn strstr strtol])
46 AC_CHECK_FUNCS([vasprintf], [
47 AC_CHECK_FUNCS([asprintf], [have_asprintf=yes])
49 AM_CONDITIONAL([NO_ASPRINTF], [test x"$have_asprintf" != "xyes"])
52 VN=`$srcdir/gen-ver.sh $srcdir`
53 AC_DEFINE_UNQUOTED([VN],["$VN"], [We have version number from gen-ver.sh])
57 [AS_HELP_STRING([--with-manual],
58 [install manual page(s) @<:@default=yes@:>@])],
61 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
72 version: ${VERSION} (${VN})
77 install manual: ${with_manual}])