Fix navigation in twoPagesSpread mode
[qcomicbook-oblomov] / configure.in
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(QComicBook, 0.3.4, pawel.stolowski@wp.pl)
3 AM_INIT_AUTOMAKE(qcomicbook, 0.3.4)
4 AC_CONFIG_HEADERS([src/config.h])
5 AC_PREFIX_DEFAULT([/usr/local])
6
7 # Checks for programs.
8 AC_PROG_CXX
9 AC_PROG_CC
10
11 # Checks for libraries.
12
13 # Checks for header files.
14 #AC_HEADER_STDC
15
16 # Checks for typedefs, structures, and compiler characteristics.
17 AC_C_CONST
18
19 # Checks for library functions.
20 #AC_PROG_GCC_TRADITIONAL
21
22 BNV_HAVE_QT
23 if test "x$have_qt" = "xno"
24 then
25         AC_MSG_ERROR("Qt library is required to compile QComicBook!", 1)
26 fi
27
28 #
29 # custom test for correct Qt version
30 AC_LANG(C++)
31 #save_CPPFLAGS="$CPPFLAGS"
32 #CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS $QT_LIBS"
33 #AC_MSG_CHECKING([for correct version of Qt (>=3.3.1)])
34 #AC_RUN_IFELSE(
35 #             [AC_LANG_PROGRAM([[#include <qglobal.h> #include <stdlib.h>]],[[exit(QT_VERSION<0x030301);]])],
36 #             [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(Too old!)],[])
37 #CPPFLAGS="$save_CPPFLAGS"
38
39 PKG_CHECK_MODULES(Imlib2,imlib2,ac_imlib=yes,ac_imlib=no)
40 if test "x$ac_imlib" = "xno"
41 then
42         AC_MSG_ERROR("Imlib2 not found!", 1)
43 fi
44 AC_SUBST(Imlib2_CFLAGS)
45 AC_SUBST(Imlib2_LIBS)
46
47 AC_CONFIG_FILES([Makefile src/Makefile icons/Makefile help/Makefile help/en/Makefile])
48 AC_OUTPUT()
49