2 AC_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(geeqie, 1.0alpha1)
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_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
25 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
26 AC_ARG_WITH(htmldir, [ --with-htmldir=DIR install path for html files],
27 htmldir=$withval, htmldir="$readmedir/html")
29 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
30 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
35 dnl Check for LIRC client support
36 AC_ARG_ENABLE(lirc, AC_HELP_STRING([--disable-lirc], [do not use lirc support (auto)]),
38 if test x"${enableval}" = x"yes" -a x"$GCC" = x"yes"; then
44 fi], AC_MSG_RESULT(no))
47 AC_ARG_WITH(lirc-prefix,
48 [ --with-lirc-prefix=PATH Prefix where LIRC is installed],
50 for dir in `echo "$withval" | tr : ' '`; do
51 if test -d $dir/lib; then CPPFLAGS="$CPPFLAGS -L$dir/lib"; fi
52 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
56 if test x$lirc != x"no" ; then
57 AC_CHECK_HEADER(lirc/lirc_client.h,
58 [AC_CHECK_LIB(lirc_client,lirc_init,[LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
61 dnl checks for functions
62 AC_CHECK_FUNCS(strverscmp access fsync fflush)
64 dnl check for little cms (lcms, this test pulled from gimp)
65 AC_ARG_WITH(lcms, [ --without-lcms build without lcms support])
68 if test "x$with_lcms" != "xno"; then
69 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
70 AC_CHECK_HEADER(lcms.h,
72 AC_CHECK_HEADER(lcms/lcms.h,
74 AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
75 [Define to 1 if the lcms header must be included as lcms/lcms.h]))
78 if test "$have_lcms" = "yes"; then
80 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
82 have_lcms="no (lcms not found or unusable)"
85 have_lcms="no (lcms support disabled)"
88 AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
90 AC_ARG_WITH(exiv2, [ --without-exiv2 build without exiv2 support])
94 if test "x$with_exiv2" != "xno"; then
95 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
97 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
98 [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
102 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"
103 GETTEXT_PACKAGE=$PACKAGE
104 AC_SUBST(GETTEXT_PACKAGE)
106 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
108 #Always use -Wall with gcc
109 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
110 CFLAGS="$CFLAGS -Wall"
111 CPPFLAGS="$CPPFLAGS -Wall"
122 src/icons/svg/Makefile