dnl GNU General Public License for more details.
AC_PREREQ(2.57)
-AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short HEAD), [geeqie@freelists.org], [], [http://www.geeqie.org/])
+AC_INIT([geeqie], m4_translit(m4_esyscmd([if [ $(git tag --list 'v[1-9]*' --points-at HEAD | wc -c) -gt 0 ]; then git tag --list v[1-9]* --points-at HEAD | tail -n 1 | tr -d 'v' ; else git tag --list v[1-9]* | tail -n 1 | tr -d 'v' && echo "+git" && git log --max-count=1 --date=format:"%Y%m%d" --format="%ad" && echo "-" && git rev-parse --quiet --verify --short HEAD; fi ]), m4_newline), [geeqie@freelists.org], [], [http://www.geeqie.org/])
# Add -Werror to the default CFLAGS
CFLAGS+=" -Werror -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=return-type"
AC_CONFIG_AUX_DIR(auxdir)
# Require Automake 1.14 for %reldir% support
-AM_INIT_AUTOMAKE([1.14.1 subdir-objects foreign dist-xz no-dist-gzip])
+AM_INIT_AUTOMAKE([1.14.1 subdir-objects foreign dist-xz no-dist-gzip tar-ustar])
AC_CONFIG_HEADER([config.h])
AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
AC_SUBST(WINDRES)
+AM_CONDITIONAL([EXTERNAL_PREFIX], [test "x$prefix" != "xNONE"])
+
dnl reasonable guesses for where stuff is installed
if test "x$prefix" = "xNONE"; then
prefix="/usr/local"
AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
-AC_PATH_PROG(GNOME_DOC_TOOL, gnome-doc-tool)
+AC_PATH_PROG(GNOME_DOC_TOOL, yelp-build)
AC_SUBST(readmedir)
AC_SUBST(htmldir)
AC_SUBST(TIFF_CFLAGS)
AC_SUBST(TIFF_LIBS)
+# libraw support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([raw],
+ AC_HELP_STRING([--disable-raw], [disable LibRaw support]),
+ [libraw=$enableval], [libraw=auto])
+
+if test "x${libraw}" != "xno"; then
+ PKG_CHECK_MODULES(RAW, [libraw >= 0.20],
+ [
+ HAVE_RAW=yes
+ AC_DEFINE(HAVE_RAW, 1, [define to enable libraw support])
+ ],
+ [
+ HAVE_RAW=no
+ AC_MSG_WARN([$RAW_PKG_ERRORS])
+ ])
+else
+ HAVE_RAW=disabled
+fi
+
+AM_CONDITIONAL(HAVE_RAW, [test "x$HAVE_RAW" = xyes])
+AC_SUBST(RAW_CFLAGS)
+AC_SUBST(RAW_LIBS)
+
# libffmpegthumbnailer support
# ----------------------------------------------------------------------
AC_SUBST(WEBP_CFLAGS)
AC_SUBST(WEBP_LIBS)
+# J2K support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([j2k],
+ AC_HELP_STRING([--disable-j2k], [disable j2k support]),
+ [libopenjp2=$enableval], [libopenjp2=auto])
+
+if test "x${libopenjp2}" != "xno"; then
+ PKG_CHECK_MODULES(J2K, libopenjp2 >= 2.3.0,
+ [
+ HAVE_J2K=yes
+ AC_DEFINE(HAVE_J2K, 1, [define to enable j2k support])
+ ],
+ [
+ HAVE_J2K=no
+ AC_MSG_WARN([$J2K_PKG_ERRORS])
+ ])
+else
+ HAVE_J2K=disabled
+fi
+
+AM_CONDITIONAL(HAVE_J2K, [test "x$HAVE_J2K" = xyes])
+AC_SUBST(J2K_CFLAGS)
+AC_SUBST(J2K_LIBS)
+
# DjVu support
# ----------------------------------------------------------------------
plugins/camera-import/Makefile
plugins/image-crop/Makefile
plugins/random-image/Makefile
+ plugins/lens/Makefile
geeqie.spec
])
Gtk: $GTK_CFLAGS
Glib: $GLIB_CFLAGS
Thread: $GTHREAD_LIBS
- Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $CLUTTER_LIBS $CLUTTER_GTK_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS
+ Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $CLUTTER_LIBS $CLUTTER_GTK_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS $RAW_LIBS
Localization:
NLS support: $USE_NLS
HEIF: $HAVE_HEIF
WebP: $HAVE_WEBP
DjVu: $HAVE_DJVU
+ J2K: $HAVE_J2K
+ LibRaw: $HAVE_RAW
Documentation:
Doxygen: $DX_DOXYGEN