1 dnl Process this file with autoconf to produce a configure script. -*- Autoconf
4 dnl This file is a part of Geeqie project (https://www.geeqie.org/).
5 dnl Copyright (C) 2008 - 2018 The Geeqie Team
7 dnl This program is free software; you can redistribute it and/or modify
8 dnl it under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation; either version 2 of the License, or
10 dnl (at your option) any later version.
12 dnl This program is distributed in the hope that it will be useful,
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 dnl GNU General Public License for more details.
18 AC_INIT([geeqie], m4_translit(m4_esyscmd([./version.sh]), m4_newline), [geeqie@freelists.org], [], [https://www.geeqie.org/])
20 # Add -Werror to the default CFLAGS
21 CFLAGS+=" -Werror -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=return-type"
23 # Check for rightly dirs
24 AC_CONFIG_SRCDIR([src/main.c])
26 AC_CONFIG_AUX_DIR(auxdir)
27 # Require Automake 1.14 for %reldir% support
28 AM_INIT_AUTOMAKE([1.14.1 subdir-objects foreign dist-xz no-dist-gzip tar-ustar])
30 AC_CONFIG_HEADER([config.h])
35 # Silent build for automake >= 1.11
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
38 AC_ARG_ENABLE(developer, [
40 AC_HELP_STRING([--enable-developer], [turn on developers mode [default=no]])],
45 if test "x${enable_developer}" != "xyes"
62 DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen.conf, doc/doxygen)
65 # ----------------------------------------------------------------------
68 dnl FIXME: official release convert default to 'no'
71 AC_ARG_ENABLE([debug-flags], [
73 AC_HELP_STRING([--enable-debug-flags], [use compiler flags for debugging [default=no]])], [],
75 if test "x${enable_developer}" != "xyes"
77 enable_debug_flags="no"
79 enable_debug_flags="yes"
83 AC_ARG_ENABLE([debug-log], [
85 AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])], [], [enable_debug_log="yes"])
87 if test "x${enable_debug_flags}" != "xno"
89 if test "x${enable_developer}" = "xyes"
91 CXXFLAGS="${CXXFLAGS} -Wall"
92 CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
94 __COMMONFLAGS="-g -O0 -Wextra -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wno-unused-parameter -Wformat -Wformat-security -DGQ_DEBUG_PATH_UTF8=1"
95 CXXFLAGS="${CXXFLAGS} ${__COMMONFLAGS}"
96 CFLAGS="${CFLAGS} ${__COMMONFLAGS} -Wimplicit-int -Werror-implicit-function-declaration"
102 if test "x${enable_debug_log}" != "xno"
104 AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging messages support])
110 AM_CONDITIONAL(DEBUG, test x$enable_debug_flags = xyes)
112 AC_ARG_ENABLE(deprecated, [
113 AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [],
115 if test "x${enable_developer}" != "xyes"
117 enable_deprecated="no"
119 enable_deprecated="yes"
123 if test "x${enable_deprecated}" != "xno"
125 CXXFLAGS="${CXXFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
126 CFLAGS="${CFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
140 IT_PROG_INTLTOOL([0.35.0])
143 dnl checks for functions
144 AC_CHECK_FUNCS(strverscmp access fsync fflush)
147 # Check target architecture
150 AC_MSG_CHECKING([for some Win32 platform])
154 AC_DEFINE(PLATFORM_WIN32, 1, [Build on win32 OS])
160 AC_MSG_RESULT([$platform_win32])
161 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
163 AC_MSG_CHECKING([for native Win32])
167 AC_DEFINE(OS_WIN32, 1, [Build on native win32 OS])
177 AC_MSG_RESULT([$os_win32])
179 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
180 AM_CONDITIONAL(OS_UNIX, test "$os_unix" = "yes")
182 if test "$os_win32" = "yes"; then
183 AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
184 AC_CHECK_TOOL(WINDRES, windres, :)
189 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
190 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
193 AM_CONDITIONAL([EXTERNAL_PREFIX], [test "x$prefix" != "xNONE"])
195 dnl reasonable guesses for where stuff is installed
196 if test "x$prefix" = "xNONE"; then
202 AM_PATH_GLIB_2_0(2.52.0,,AC_MSG_ERROR(GLIB >= 2.52.0 not installed.))
203 AC_ARG_ENABLE([gtk3], AC_HELP_STRING([--disable-gtk3], [use gtk2 instead of gtk3]),[gtk3="${enableval}"], [gtk3=m4_ifdef([AM_PATH_GTK_3_0], [auto], [no])])
205 if test x$gtk3 = xyes; then
206 AC_MSG_WARN("Gtk3 enabled")
207 m4_ifdef([AM_PATH_GTK_3_0], [AM_PATH_GTK_3_0(3.0.0,,AC_MSG_ERROR(GTK+ >= 3.0.0 not installed.))])
209 if test x$gtk3 != xno; then
210 AC_MSG_WARN("Gtk3 is preferred...")
211 m4_ifdef([AM_PATH_GTK_3_0], [AM_PATH_GTK_3_0(3.0.0,,[gtk3=no])])
215 if test x$gtk3 = xno; then
216 m4_ifdef([AM_PATH_GTK_2_0], [AM_PATH_GTK_2_0(2.20.0,,AC_MSG_ERROR(GTK+ >= 2.20.0 not installed.))])
221 AC_ARG_ENABLE([threads],
222 AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"])
225 if test "x${threads}" != "xno" ; then
226 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
229 if test "x$have_gthread" != "xno"; then
230 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
231 GLIB_CFLAGS="$GTHREAD_CFLAGS"
232 GLIB_LIBS="$GTHREAD_LIBS"
236 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
237 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
239 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
240 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
241 AC_ARG_WITH(htmldir, [ --with-htmldir=DIR install path for html files],
242 htmldir=$withval, htmldir="$readmedir/html")
244 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
245 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
247 AC_PATH_PROG(GNOME_DOC_TOOL, yelp-build)
252 eval "eval appdir=${datadir}/${PACKAGE}"
253 AC_DEFINE_UNQUOTED([GQ_APP_DIR], "$appdir", [Location of application data])
256 eval "eval gq_bindir=${prefix}/lib/${PACKAGE}"
257 AC_DEFINE_UNQUOTED([GQ_BIN_DIR], "$gq_bindir", [Location of helper scripts and executables])
261 # ----------------------------------------------------------------------
263 dnl Check for LIRC client support
264 AC_MSG_CHECKING(if LIRC support is enabled)
266 AC_ARG_ENABLE([lirc],
267 AC_HELP_STRING([--disable-lirc], [disable lirc support (auto)]),
269 if test "x${enableval}" = "xyes" -a "x$GCC" = "xyes"; then
275 fi], AC_MSG_RESULT(no))
278 AC_ARG_WITH(lirc-prefix,
279 [ --with-lirc-prefix=PATH Prefix where LIRC is installed],
281 for dir in `echo "$withval" | tr : ' '`; do
282 if test -d $dir/lib; then CXXFLAGS="$CXXFLAGS -L$dir/lib"; fi
283 if test -d $dir/include; then CXXFLAGS="$CXXFLAGS -I$dir/include"; fi
288 if test "x${lirc}" != "xno" ; then
289 AC_CHECK_HEADER(lirc/lirc_client.h,
290 [AC_CHECK_LIB(lirc_client,lirc_init,[HAVE_LIRC=yes;LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
292 AM_CONDITIONAL(HAVE_LIRC, [test "x$HAVE_LIRC" = xyes])
296 # ----------------------------------------------------------------------
298 AC_ARG_ENABLE([lcms],
299 AC_HELP_STRING([--disable-lcms], [disable lcms support]),
300 [liblcms=$enableval], [liblcms=auto])
302 if test "x${liblcms}" != "xno"; then
303 PKG_CHECK_MODULES(LCMS, [lcms2 >= 2.0],
306 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
307 AC_DEFINE(HAVE_LCMS2, 1, [lcms2 is used])
310 PKG_CHECK_MODULES(LCMS, [lcms >= 1.14],
313 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
317 AC_MSG_WARN([$LCMS_PKG_ERRORS])
324 AM_CONDITIONAL(HAVE_LCMS, [test "x$HAVE_LCMS" = xyes])
325 AC_SUBST(LCMS_CFLAGS)
329 # ----------------------------------------------------------------------
331 AC_ARG_ENABLE([jpeg],
332 AC_HELP_STRING([--disable-jpeg], [disable direct jpeg support]),
333 [libjpeg=$enableval], [libjpeg=auto])
335 if test "x${libjpeg}" != "xno"; then
336 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
339 AC_DEFINE(HAVE_JPEG, 1, [define to enable use of custom jpeg loader]),
345 AM_CONDITIONAL(HAVE_JPEG, [test "x$HAVE_JPEG" = xyes])
346 AC_SUBST(JPEG_CFLAGS)
351 # ----------------------------------------------------------------------
353 AC_ARG_ENABLE([tiff],
354 AC_HELP_STRING([--disable-tiff], [disable direct tiff support]),
355 [libtiff=$enableval], [libtiff=auto])
357 if test "x${libtiff}" != "xno"; then
358 AC_CHECK_LIB(tiff, TIFFClientOpen,
361 AC_DEFINE(HAVE_TIFF, 1, [define to enable use of custom tiff loader]),
367 AM_CONDITIONAL(HAVE_TIFF, [test "x$HAVE_TIFF" = xyes])
368 AC_SUBST(TIFF_CFLAGS)
372 # ----------------------------------------------------------------------
375 AC_HELP_STRING([--disable-raw], [disable LibRaw support]),
376 [libraw=$enableval], [libraw=auto])
378 if test "x${libraw}" != "xno"; then
379 PKG_CHECK_MODULES(RAW, [libraw >= 0.20],
382 AC_DEFINE(HAVE_RAW, 1, [define to enable libraw support])
386 AC_MSG_WARN([$RAW_PKG_ERRORS])
392 AM_CONDITIONAL(HAVE_RAW, [test "x$HAVE_RAW" = xyes])
397 # ----------------------------------------------------------------------
399 AC_ARG_ENABLE([spell],
400 AC_HELP_STRING([--disable-spell], [disable libgspell support]),
401 [libgspell=$enableval], [libgspell=auto])
403 if test "x${libgspell}" != "xno" -a "x${gtk3}" != "xno"; then
404 PKG_CHECK_MODULES(SPELL, [gspell-1 >= 1.6],
407 AC_DEFINE(HAVE_SPELL, 1, [define to enable libgspell support])
411 AC_MSG_WARN([$SPELL_PKG_ERRORS])
417 AM_CONDITIONAL(HAVE_SPELL, [test "x$HAVE_SPELL" = xyes])
418 AC_SUBST(SPELL_CFLAGS)
421 # libffmpegthumbnailer support
422 # ----------------------------------------------------------------------
424 AC_ARG_ENABLE([ffmpegthumbnailer],
425 AC_HELP_STRING([--disable-ffmpegthumbnailer], [disable ffmpegthumbnailer support for generating thumbnails of video files]),
426 [ffmpegthumbnailer=$enableval], [ffmpegthumbnailer=auto])
428 if test "x${ffmpegthumbnailer}" != "xno"; then
429 PKG_CHECK_MODULES(FFMPEGTHUMBNAILER, [libffmpegthumbnailer >= 2.1.0],
431 HAVE_FFMPEGTHUMBNAILER=yes
432 AC_DEFINE(HAVE_FFMPEGTHUMBNAILER, 1, [define to enable ffmpegthumbnailer support])
433 AC_CHECK_MEMBER([video_thumbnailer.prefer_embedded_metadata], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_METADATA, 1, [define if ffmpegthumbnailer supports embedded metadata])], [], [[#include <libffmpegthumbnailer/videothumbnailerc.h>]])
434 AC_CHECK_MEMBER([image_data.image_data_width], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_RGB, 1, [define if ffmpegthumbnailer supports raw RGB output])], [], [[#include <libffmpegthumbnailer/videothumbnailerc.h>]])
435 AC_CHECK_LIB([ffmpegthumbnailer], [video_thumbnailer_set_size], [AC_DEFINE(HAVE_FFMPEGTHUMBNAILER_WH, 1, [define if ffmpegthumbnailer supports specifying size by width/height])])
438 HAVE_FFMPEGTHUMBNAILER=no
441 HAVE_FFMPEGTHUMBNAILER=disabled
444 AM_CONDITIONAL(HAVE_FFMPEGTHUMBNAILER, [test "x$HAVE_FFMPEGTHUMBNAILER" = xyes])
445 AC_SUBST(FFMPEGTHUMBNAILER_CFLAGS)
446 AC_SUBST(FFMPEGTHUMBNAILER_LIBS)
449 # ----------------------------------------------------------------------
451 AC_ARG_ENABLE([exiv2],
452 AC_HELP_STRING([--disable-exiv2], [disable exiv2 support]),
453 [libexiv2=$enableval], [libexiv2=auto])
455 if test "x${libexiv2}" != "xno"; then
456 PKG_CHECK_MODULES(EXIV2, [exiv2 >= 0.11],
459 AC_DEFINE(HAVE_EXIV2, 1, [define to enable exiv2 support])
463 AC_MSG_WARN([$EXIV2_PKG_ERRORS])
469 AM_CONDITIONAL(HAVE_EXIV2, [test "x$HAVE_EXIV2" = xyes])
470 AC_SUBST(EXIV2_CFLAGS)
475 # ----------------------------------------------------------------------
477 dnl Set of available languages
478 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
479 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
481 GETTEXT_PACKAGE=$PACKAGE
482 AC_SUBST(GETTEXT_PACKAGE)
483 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[Name of gettext file])
485 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
493 # clutter and champlain support
494 # ----------------------------------------------------------------------
497 AC_HELP_STRING([--disable-map], [disable map support]),
498 [libgps=$enableval], [libgps=auto])
500 AC_ARG_ENABLE([gpu-accel],
501 AC_HELP_STRING([--disable-gpu-accel], [disable GPU acceleration support - experimental]),
502 [libclutter=$enableval], [libclutter=auto])
504 if test "x${libclutter}" != "xno" -a "x${gtk3}" != "xno"; then
505 PKG_CHECK_MODULES(CLUTTER, [clutter-1.0 >= 1.0],
507 PKG_CHECK_MODULES(CLUTTER_GTK, [clutter-gtk-1.0 >= 1.0],
510 AC_DEFINE(HAVE_CLUTTER, 1, [define to enable use of clutter library])
514 AC_MSG_WARN([$CLUTTER_GTK_PKG_ERRORS])
519 AC_MSG_WARN([$CLUTTER_PKG_ERRORS])
522 HAVE_CLUTTER=disabled
525 AC_SUBST(CLUTTER_CFLAGS)
526 AC_SUBST(CLUTTER_LIBS)
527 AC_SUBST(CLUTTER_GTK_CFLAGS)
528 AC_SUBST(CLUTTER_GTK_LIBS)
531 # Libchamplain support - used for map facility
532 # ----------------------------------------------------------------------
534 if test "x${libgps}" != "xno" -a "x${HAVE_CLUTTER}" = "xyes"; then
535 if test "x${gtk3}" != "xno"; then
536 PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.12 >= 0.12],
538 HAVE_LIBCHAMPLAIN=yes
539 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of maps])
543 AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
546 HAVE_LIBCHAMPLAIN=disabled
549 HAVE_LIBCHAMPLAIN=disabled
552 if test "x${libgps}" != "xno" -a "x${HAVE_LIBCHAMPLAIN}" = "xyes" ; then
553 PKG_CHECK_MODULES(LIBCHAMPLAIN_GTK, [champlain-gtk-0.12 >= 0.12],
555 HAVE_LIBCHAMPLAIN_GTK=yes
556 AC_DEFINE(HAVE_LIBCHAMPLAIN_GTK, 1, [define to enable use of maps])
559 HAVE_LIBCHAMPLAIN_GTK=no
560 AC_MSG_WARN([$LIBCHAMPLAIN_GTK_PKG_ERRORS])
563 HAVE_LIBCHAMPLAIN_GTK=disabled
566 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN_GTK, [test "x$HAVE_LIBCHAMPLAIN_GTK" = xyes])
567 AC_SUBST(LIBCHAMPLAIN_GTK_CFLAGS)
568 AC_SUBST(LIBCHAMPLAIN_GTK_LIBS)
571 # ----------------------------------------------------------------------
574 AC_HELP_STRING([--disable-lua], [disable lua support]),
575 [liblua=$enableval], [liblua=auto])
577 if test "x${liblua}" != "xno"; then
578 PKG_CHECK_MODULES(LUA, lua5.3 >= 5.3,
581 AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
584 PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1,
587 AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
590 PKG_CHECK_MODULES(LUA, lua >= 5.1,
593 AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
597 AC_MSG_WARN([$LUA_PKG_ERRORS])
605 AM_CONDITIONAL(HAVE_LUA, [test "x$HAVE_LUA" = xyes])
610 # ----------------------------------------------------------------------
612 if test "x${gtk3}" != "xno"; then
614 AC_HELP_STRING([--disable-pdf], [disable pdf support]),
615 [libpdf=$enableval], [libpdf=auto])
617 if test "x${libpdf}" != "xno"; then
618 PKG_CHECK_MODULES(PDF, poppler-glib >= 0.62,
621 AC_DEFINE(HAVE_PDF, 1, [define to enable pdf support])
625 AC_MSG_WARN([$PDF_PKG_ERRORS])
634 AM_CONDITIONAL(HAVE_PDF, [test "x$HAVE_PDF" = xyes])
639 # ----------------------------------------------------------------------
641 AC_ARG_ENABLE([heif],
642 AC_HELP_STRING([--disable-heif], [disable heif support]),
643 [libheif=$enableval], [libheif=auto])
645 if test "x${libheif}" != "xno"; then
646 PKG_CHECK_MODULES(HEIF, libheif >= 1.3.2,
649 AC_DEFINE(HAVE_HEIF, 1, [define to enable heif support])
653 AC_MSG_WARN([$HEIF_PKG_ERRORS])
659 AM_CONDITIONAL(HAVE_HEIF, [test "x$HAVE_HEIF" = xyes])
660 AC_SUBST(HEIF_CFLAGS)
664 # ----------------------------------------------------------------------
666 AC_ARG_ENABLE([webp],
667 AC_HELP_STRING([--disable-webp], [disable webp support]),
668 [libwebp=$enableval], [libwebp=auto])
670 if test "x${libwebp}" != "xno"; then
671 PKG_CHECK_MODULES(WEBP, libwebp >= 0.6.1,
674 AC_DEFINE(HAVE_WEBP, 1, [define to enable webp support])
678 AC_MSG_WARN([$WEBP_PKG_ERRORS])
684 AM_CONDITIONAL(HAVE_WEBP, [test "x$HAVE_WEBP" = xyes])
685 AC_SUBST(WEBP_CFLAGS)
689 # ----------------------------------------------------------------------
691 AC_ARG_ENABLE([archive],
692 AC_HELP_STRING([--disable-archive], [disable archive support]),
693 [libarchive=$enableval], [libarchive=auto])
695 if test "x${libarchive}" != "xno"; then
696 PKG_CHECK_MODULES(ARCHIVE, libarchive >= 3.4.0,
699 AC_DEFINE(HAVE_ARCHIVE, 1, [define to enable archive support])
703 AC_MSG_WARN([$ARCHIVE_PKG_ERRORS])
706 HAVE_ARCHIVE=disabled
709 AM_CONDITIONAL(HAVE_ARCHIVE, [test "x$HAVE_ARCHIVE" = xyes])
710 AC_SUBST(ARCHIVE_CFLAGS)
711 AC_SUBST(ARCHIVE_LIBS)
714 # ----------------------------------------------------------------------
717 AC_HELP_STRING([--disable-j2k], [disable j2k support]),
718 [libopenjp2=$enableval], [libopenjp2=auto])
720 if test "x${libopenjp2}" != "xno"; then
721 PKG_CHECK_MODULES(J2K, libopenjp2 >= 2.3.0,
724 AC_DEFINE(HAVE_J2K, 1, [define to enable j2k support])
728 AC_MSG_WARN([$J2K_PKG_ERRORS])
734 AM_CONDITIONAL(HAVE_J2K, [test "x$HAVE_J2K" = xyes])
739 # ----------------------------------------------------------------------
741 AC_ARG_ENABLE([djvu],
742 AC_HELP_STRING([--disable-djvu], [disable djvu support]),
743 [libdjvulibre=$enableval], [libdjvulibre=auto])
745 if test "x${libdjvulibre}" != "xno"; then
746 PKG_CHECK_MODULES(DJVU, ddjvuapi >= 3.5.27,
749 AC_DEFINE(HAVE_DJVU, 1, [define to enable DjVu support])
753 AC_MSG_WARN([$DJVU_PKG_ERRORS])
759 AM_CONDITIONAL(HAVE_DJVU, [test "x$HAVE_DJVU" = xyes])
760 AC_SUBST(DJVU_CFLAGS)
764 # ----------------------------------------------------------------------
766 AC_ARG_ENABLE([jpegxl],
767 AC_HELP_STRING([--disable-jpegxl], [disable jpeg xl support]),
768 [libjxl=$enableval], [libjxl=auto])
770 if test "x${libjxl}" != "xno"; then
771 PKG_CHECK_MODULES(JPEGXL, libjxl >= 0.3.7,
774 AC_DEFINE(HAVE_JPEGXL, 1, [define to enable JPEG XL support])
778 AC_MSG_WARN([$JPEGXL_PKG_ERRORS])
784 AM_CONDITIONAL(HAVE_JPEGXL, [test "x$HAVE_JPEGXL" = xyes])
785 AC_SUBST(JPEGXL_CFLAGS)
786 AC_SUBST(JPEGXL_LIBS)
789 # ----------------------------------------------------------------------
791 AM_CONDITIONAL(HAVE_PANDOC, [ "$(command -v pandoc)" ])
793 # _NL_TIME_FIRST_WEEKDAY support
794 # note that it is an enum and not a define
795 # ----------------------------------------------------------------------
797 AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
798 AC_TRY_LINK([#include <langinfo.h>], [
800 c = *((unsigned char *) nl_langinfo(_NL_TIME_FIRST_WEEKDAY));
801 ], nl_ok=yes, nl_ok=no)
802 AC_MSG_RESULT($nl_ok)
803 if test "$nl_ok" = "yes"; then
804 AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
805 [Define if _NL_TIME_FIRST_WEEKDAY is available])
808 # ----------------------------------------------------------------------
812 * \short autogenerated definition by autoheader.
817 * This file is a part of Geeqie project (https://www.geeqie.org/).
818 * Copyright (C) 2008 - 2016 The Geeqie Team
820 * This program is free software; you can redistribute it and/or modify
821 * it under the terms of the GNU General Public License as published by
822 * the Free Software Foundation; either version 2 of the License, or
823 * (at your option) any later version.
825 * This program is distributed in the hope that it will be useful,
826 * but WITHOUT ANY WARRANTY; without even the implied warranty of
827 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
828 * GNU General Public License for more details.
831 #ifndef _INCLUDE_CONFIG_H
832 #define _INCLUDE_CONFIG_H
844 src/icons/svg/Makefile
848 plugins/symlink/Makefile
849 plugins/rotate/Makefile
850 plugins/geocode-parameters/Makefile
851 plugins/export-jpeg/Makefile
852 plugins/tethered-photography/Makefile
853 plugins/camera-import/Makefile
854 plugins/image-crop/Makefile
855 plugins/random-image/Makefile
856 plugins/lens/Makefile
861 dnl Print the results
864 cat > config.report << END
871 Version: $PACKAGE_VERSION
875 Win32: $platform_win32 (native: $os_win32)
880 CPPFLAGS: $__CPPFLAGS
885 Thread: $GTHREAD_LIBS
886 Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $CLUTTER_LIBS $CLUTTER_GTK_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS $RAW_LIBS $JPEGXL_LIBS
889 NLS support: $USE_NLS
893 Developer: $__IS_DEVELOPER
894 Debug flags: $__IS_DEBUG_FLAGS
895 Debug log: $__IS_DEBUG_LOG
896 Deprecated: $__IS_DEPRECATED
902 Clutter: $HAVE_CLUTTER
903 Libchamplain: $HAVE_LIBCHAMPLAIN
904 Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK
906 FFmpegthumbnailer: $HAVE_FFMPEGTHUMBNAILER
914 Libarchive: $HAVE_ARCHIVE
919 doc-tool: $GNOME_DOC_TOOL
926 Now you can type "make" to build Geeqie
927 (or you take blue pill and the story ends :)