Signed-off-by: Michael Rasmussen <mir@datanom.net>
AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
enable_exif_scanner=yes
AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
enable_exif_scanner=yes
-AC_MSG_CHECKING([whether to build EXIF scanner])
+AC_MSG_CHECKING([for usable g++])
if test x"$HAVE_CXX" = xno; then
AC_MSG_RESULT(no)
if test x"$HAVE_CXX" = xno; then
AC_MSG_RESULT(no)
- AC_MSG_WARN("Auto read EXIF cannot be built; missing dependencies")
+ AC_MSG_WARN("Auto read EXIF cannot be built; missing g++")
enable_exif_scanner=no
else
enable_exif_scanner=no
else
+ AC_PATH_PROG(EXIFTOOL, exiftool, [no])
+ if test x"$EXIFTOOL" = xno; then
+ enable_exif_scanner=no
+ AC_MSG_WARN("Auto read EXIF cannot be built; missing exiftool [https://exiftool.org/]")
+ fi
+fi
+AC_MSG_CHECKING([whether to build EXIF scanner])
+if test x"$enable_exif_scanner" = xyes; then
+ AC_MSG_RESULT(yes)
+ LIBS+="-lstdc++"
+else
+ AC_MSG_RESULT(no)
+fi
AM_CONDITIONAL(BUILD_EXIF_SCANNER, test x"$enable_exif_scanner" != xno)
PKG_PROG_PKG_CONFIG
AM_CONDITIONAL(BUILD_EXIF_SCANNER, test x"$enable_exif_scanner" != xno)
PKG_PROG_PKG_CONFIG
Source code: ${ac_pwd}
Compiler: ${CC} $($CC -dumpversion)
CFLAGS: ${CFLAGS}
Source code: ${ac_pwd}
Compiler: ${CC} $($CC -dumpversion)
CFLAGS: ${CFLAGS}
"
echo ""
echo "The binary will be installed in $prefix/bin"
"
echo ""
echo "The binary will be installed in $prefix/bin"