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])
11 # Checks for libraries.
13 # Checks for header files.
16 # Checks for typedefs, structures, and compiler characteristics.
19 # Checks for library functions.
20 #AC_PROG_GCC_TRADITIONAL
23 if test "x$have_qt" = "xno"
25 AC_MSG_ERROR("Qt library is required to compile QComicBook!", 1)
29 # custom test for correct Qt version
31 #save_CPPFLAGS="$CPPFLAGS"
32 #CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS $QT_LIBS"
33 #AC_MSG_CHECKING([for correct version of Qt (>=3.3.1)])
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"
39 PKG_CHECK_MODULES(Imlib2,imlib2,ac_imlib=yes,ac_imlib=no)
40 if test "x$ac_imlib" = "xno"
42 AC_MSG_ERROR("Imlib2 not found!", 1)
44 AC_SUBST(Imlib2_CFLAGS)
47 AC_CONFIG_FILES([Makefile src/Makefile icons/Makefile help/Makefile help/en/Makefile])