kopia lustrzana https://gitlab.com/sane-project/backends
Disable gphoto2 backend if gphoto2 binary is not found
rodzic
d56ab68164
commit
0785164f3b
Plik diff jest za duży
Load Diff
14
configure.in
14
configure.in
|
@ -170,6 +170,8 @@ AC_CHECK_LIB(usb, usb_open)
|
||||||
|
|
||||||
SANE_CHECK_JPEG
|
SANE_CHECK_JPEG
|
||||||
|
|
||||||
|
SANE_CHECK_GPHOTO2
|
||||||
|
|
||||||
dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want
|
dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want
|
||||||
dnl to use them!
|
dnl to use them!
|
||||||
if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then
|
if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then
|
||||||
|
@ -219,6 +221,18 @@ fi
|
||||||
AC_SUBST(DC210)
|
AC_SUBST(DC210)
|
||||||
AC_SUBST(DC240)
|
AC_SUBST(DC240)
|
||||||
AC_SUBST(DJPEG)
|
AC_SUBST(DJPEG)
|
||||||
|
|
||||||
|
|
||||||
|
if test "${GPHOTO2_BIN}" != "gphoto2" \
|
||||||
|
-o "${sane_cv_use_libjpeg}" != "yes"; then
|
||||||
|
echo "disabling GPHOTO2 backend (failed to find gphoto2 or JPEG lib)"
|
||||||
|
GPHOTO2=
|
||||||
|
else
|
||||||
|
echo "enabling GPHOTO2 backend"
|
||||||
|
GPHOTO2=gphoto2
|
||||||
|
fi
|
||||||
|
AC_SUBST(GPHOTO2)
|
||||||
|
|
||||||
if test "${ac_cv_header_sys_scanio_h}" = "no"; then
|
if test "${ac_cv_header_sys_scanio_h}" = "no"; then
|
||||||
echo "disabling PINT backend"
|
echo "disabling PINT backend"
|
||||||
PINT=
|
PINT=
|
||||||
|
|
Ładowanie…
Reference in New Issue