kopia lustrzana https://gitlab.com/sane-project/backends
Disable gphoto2 unless specifically requested by the user, and the
right version is foundDEVEL_2_0_BRANCH-1
rodzic
a4101b2fe5
commit
cbf1b2287b
14
acinclude.m4
14
acinclude.m4
|
@ -195,8 +195,8 @@ AC_CHECK_TYPE(u_long, unsigned long)
|
|||
AC_DEFUN(SANE_CHECK_GPHOTO2,
|
||||
[
|
||||
AC_ARG_WITH(gphoto2,
|
||||
[ --with-gphoto2[=DIR] specify the top-level GPHOTO2 directory
|
||||
[default=/usr/local]])
|
||||
[ --with-gphoto2 Include the gphoto2 backend],
|
||||
[
|
||||
|
||||
if test "$with_gphoto2" = "no" ; then
|
||||
echo disabling GPHOTO2
|
||||
|
@ -207,11 +207,19 @@ AC_DEFUN(SANE_CHECK_GPHOTO2,
|
|||
with_gphoto2=`gphoto2-config --prefix`
|
||||
fi
|
||||
|
||||
if test "`gphoto2-config --version`" != "gphoto2 2.0beta4dev8" ; then
|
||||
echo
|
||||
echo "Sorry, can't use GPHOTO2"
|
||||
echo "GPHOTO2 APIs have been changing rapidly. Only"
|
||||
echo "the current version from CVS is likely to work."
|
||||
echo
|
||||
fi
|
||||
|
||||
CPPFLAGS="${CPPFLAGS} `gphoto2-config --cflags`"
|
||||
GPHOTO2_LIBS="`gphoto2-config --libs`"
|
||||
SANE_EXTRACT_LDFLAGS(LDFLAGS, GPHOTO2_LIBS)
|
||||
LIBS="${LIBS} ${GPHOTO2_LIBS}"
|
||||
fi
|
||||
]) fi
|
||||
])
|
||||
|
||||
|
||||
|
|
|
@ -207,8 +207,8 @@ AC_CHECK_TYPE(u_long, unsigned long)
|
|||
AC_DEFUN(SANE_CHECK_GPHOTO2,
|
||||
[
|
||||
AC_ARG_WITH(gphoto2,
|
||||
[ --with-gphoto2[=DIR] specify the top-level GPHOTO2 directory
|
||||
[default=/usr/local]])
|
||||
[ --with-gphoto2 Include the gphoto2 backend],
|
||||
[
|
||||
|
||||
if test "$with_gphoto2" = "no" ; then
|
||||
echo disabling GPHOTO2
|
||||
|
@ -219,11 +219,19 @@ AC_DEFUN(SANE_CHECK_GPHOTO2,
|
|||
with_gphoto2=`gphoto2-config --prefix`
|
||||
fi
|
||||
|
||||
if test "`gphoto2-config --version`" != "gphoto2 2.0beta4dev8" ; then
|
||||
echo
|
||||
echo "Sorry, can't use GPHOTO2"
|
||||
echo "GPHOTO2 APIs have been changing rapidly. Only"
|
||||
echo "the current version from CVS is likely to work."
|
||||
echo
|
||||
fi
|
||||
|
||||
CPPFLAGS="${CPPFLAGS} `gphoto2-config --cflags`"
|
||||
GPHOTO2_LIBS="`gphoto2-config --libs`"
|
||||
SANE_EXTRACT_LDFLAGS(LDFLAGS, GPHOTO2_LIBS)
|
||||
LIBS="${LIBS} ${GPHOTO2_LIBS}"
|
||||
fi
|
||||
]) fi
|
||||
])
|
||||
|
||||
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -228,7 +228,7 @@ AC_SUBST(DJPEG)
|
|||
|
||||
if test "${HAVE_GPHOTO2}" != "gphoto2-config" \
|
||||
-o "${sane_cv_use_libjpeg}" != "yes"; then
|
||||
echo "disabling GPHOTO2 backend (failed to find gphoto2-config or JPEG lib)"
|
||||
echo "disabling GPHOTO2 backend (not requested, or failed to find gphoto2-config or JPEG lib)"
|
||||
GPHOTO2=
|
||||
else
|
||||
echo "enabling GPHOTO2 backend"
|
||||
|
|
Ładowanie…
Reference in New Issue