AC_SUBST(LCMS_CFLAGS)
AC_SUBST(LCMS_LIBS)
+ # libjpeg support
+ # ----------------------------------------------------------------------
+
+ AC_ARG_ENABLE([jpeg],
+ AC_HELP_STRING([--disable-jpeg], [disable direct jpeg support]),
+ [libjpeg=$enableval], [libjpeg=auto])
+
+ if test "x${libjpeg}" != "xno"; then
+ AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
+ HAVE_JPEG=yes
+ JPEG_LIBS=-ljpeg
+ AC_DEFINE(HAVE_JPEG, 1, [define to enable use of custom jpeg loader]),
+ HAVE_JPEG=no)
+ else
+ HAVE_JPEG=disabled
+ fi
+
+ AM_CONDITIONAL(HAVE_JPEG, [test "x$HAVE_JPEG" = xyes])
+ AC_SUBST(JPEG_CFLAGS)
+ AC_SUBST(JPEG_LIBS)
+
+
+ # libtiff support
+ # ----------------------------------------------------------------------
+
+ AC_ARG_ENABLE([tiff],
+ AC_HELP_STRING([--disable-tiff], [disable direct tiff support]),
+ [libtiff=$enableval], [libtiff=auto])
+
+ if test "x${libtiff}" != "xno"; then
+ AC_CHECK_LIB(tiff, TIFFClientOpen,
+ HAVE_TIFF=yes
+ TIFF_LIBS=-ltiff
+ AC_DEFINE(HAVE_TIFF, 1, [define to enable use of custom tiff loader]),
+ HAVE_TIFF=no)
+ else
+ HAVE_TIFF=disabled
+ fi
+
+ AM_CONDITIONAL(HAVE_TIFF, [test "x$HAVE_TIFF" = xyes])
+ AC_SUBST(TIFF_CFLAGS)
+ AC_SUBST(TIFF_LIBS)
+
# Exiv2 support
# ----------------------------------------------------------------------
AC_SUBST(LIBCHAMPLAIN_GTK_CFLAGS)
AC_SUBST(LIBCHAMPLAIN_GTK_LIBS)
+# Lua support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([lua],
+ AC_HELP_STRING([--disable-lua], [disable lua support]),
+ [liblua=$enableval], [liblua=auto])
+
+if test "x${liblua}" != "xno"; then
+ PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1,
+ [
+ HAVE_LUA=yes
+ AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
+ ],
+ [
+ HAVE_LUA=no
+ AC_MSG_WARN([$LUA_PKG_ERRORS])
+ ])
+else
+ HAVE_LUA=disabled
+fi
+
+AM_CONDITIONAL(HAVE_LUA, [test "x$HAVE_LUA" = xyes])
+AC_SUBST(LUA_CFLAGS)
+AC_SUBST(LUA_LIBS)
+
+# ----------------------------------------------------------------------
+
AH_TOP([
/** \file
* \short autogenerated definition by autoheader.
Gtk: $GTK_CFLAGS
Glib: $GLIB_CFLAGS
Thread: $GTHREAD_LIBS
- Others: $LCMS_LIBS $EXIV2_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS
- Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS
++ Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS
Localization:
NLS support: $USE_NLS
Lirc: $HAVE_LIRC
Libchamplain: $HAVE_LIBCHAMPLAIN
Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK
+ Lua: $HAVE_LUA
Documentation:
Doxygen: $DOXYGEN
#include "exif.h"
#include "histogram.h"
#include "pixbuf_util.h"
+#include "glua.h"
#ifdef HAVE_LIBCHAMPLAIN
#ifdef HAVE_LIBCHAMPLAIN_GTK
{
if (!*path) *path = remove_level_from_path(path_parsed);
if (!*file) *file = g_strdup(path_parsed);
- *list = g_list_prepend(*list, file_data_new_simple(path_parsed));
+ *list = g_list_prepend(*list, file_data_new_group(path_parsed));
}
}
path_parsed = g_strdup(dir);
parse_out_relatives(path_parsed);
- dir_fd = file_data_new_simple(path_parsed);
+ dir_fd = file_data_new_dir(path_parsed);
if (filelist_read(dir_fd, &files, NULL))
g_thread_init(NULL);
gdk_threads_init();
gdk_threads_enter();
+ debug_mutex = g_mutex_new();
+
#endif
/* init execution time counter (debug only) */
#endif
exif_init();
-
+
+#ifdef HAVE_LUA
+ lua_init();
+#endif
+
/* setup random seed for random slideshow */
srand(time(NULL));