]> git.datanom.net - lensdb.git/commitdiff
Check for exiftool
authorMichael Rasmussen <mir@datanom.net>
Sat, 26 Oct 2024 22:31:08 +0000 (00:31 +0200)
committerMichael Rasmussen <mir@datanom.net>
Sat, 26 Oct 2024 22:31:08 +0000 (00:31 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
configure.ac

index 21de1d06edb5a69784eb7f253121a3b119f7a494..b27d367a9a6da72218f60ff3a7bf53ae0e976426 100644 (file)
@@ -59,16 +59,27 @@ AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
 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)
-       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
-       LIBS+="-lstdc++"
        AC_MSG_RESULT(yes)
-fi
+       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
@@ -115,6 +126,7 @@ Configuration:
         Source code:            ${ac_pwd}
         Compiler:               ${CC} $($CC -dumpversion)
         CFLAGS:                 ${CFLAGS}
+        Exiftool:               $EXIFTOOL
 "
 echo ""
 echo "The binary will be installed in $prefix/bin"
This page took 0.442121 seconds and 5 git commands to generate.