2 AC_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(geeqie, alpha0)
14 dnl reasonable guesses for where stuff is installed
15 if test "x$prefix" = "xNONE"; then
21 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
22 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
24 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$prefix/share/doc/geeqie-$VERSION", [Location of documentation files])
25 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$prefix/share/doc/geeqie-$VERSION/html", [Location of html documentation])
27 dnl checks for functions
28 AC_CHECK_FUNCS(strverscmp access fsync fflush)
30 dnl check for little cms (lcms, this test pulled from gimp)
31 AC_ARG_WITH(lcms, [ --without-lcms build without lcms support])
34 if test "x$with_lcms" != "xno"; then
35 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
36 AC_CHECK_HEADER(lcms.h,
38 AC_CHECK_HEADER(lcms/lcms.h,
40 AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
41 [Define to 1 if the lcms header must be included as lcms/lcms.h]))
44 if test "$have_lcms" = "yes"; then
46 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
48 have_lcms="no (lcms not found or unusable)"
51 have_lcms="no (lcms support disabled)"
54 AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
56 AC_ARG_WITH(exiv2, [ --without-exiv2 build without exiv2 support])
60 if test "x$with_exiv2" != "xno"; then
61 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
63 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
64 [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
68 ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl nb pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
69 GETTEXT_PACKAGE=$PACKAGE
70 AC_SUBST(GETTEXT_PACKAGE)
72 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
74 #Always use -Wall with gcc
75 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
76 CFLAGS="$CFLAGS -Wall"
77 CPPFLAGS="$CPPFLAGS -Wall"
88 src/icons/svg/Makefile