summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0a7fadd..54f2542 100644
--- a/configure.in
+++ b/configure.in
@@ -368,6 +368,10 @@ if test "x$build_gphoto" != "xno"; then
LIB_GPHOTO="`$GPHOTO_CONFIG --libs` `$GPHOTO_PORT_CONFIG --libs`"
AC_SUBST(LIB_GPHOTO)
have_gphoto=yes
+ AC_CHECK_LIB(gphoto2_port, gp_port_info_get_name, have_gphoto2_5=yes, have_gphoto2_5=no)
+ if test "x$have_gphoto2_5" != "xno"; then
+ AC_DEFINE(HAVE_GPHOTO2_5, 1, [have gphoto 2.5])
+ fi
else
AC_MSG_WARN([gPhoto2 not found, some plugins will not be compiled.])
fi