kopia lustrzana https://gitlab.com/sane-project/frontends
configure: allow configure if no GTK and/or no GIMP
rodzic
15a4071c7d
commit
5e01e1768a
|
@ -50,11 +50,11 @@ PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0], HAVE_SANE=yes)
|
|||
|
||||
GUI_PROGS=
|
||||
if test "${USE_GTK}" = "yes"; then
|
||||
PKG_CHECK_MODULES([GTK], [gtk+-3.0], HAVE_GTK=yes)
|
||||
PKG_CHECK_MODULES([GTK], [gtk+-3.0], HAVE_GTK=yes, HAVE_GTK=no)
|
||||
if test "x${HAVE_GTK}" = "xyes"; then
|
||||
GUI_PROGS="xscanimage xcam"
|
||||
if test "${USE_GIMP}" = "yes"; then
|
||||
PKG_CHECK_MODULES([GIMP], [gimp-2.0], HAVE_GIMP=yes)
|
||||
PKG_CHECK_MODULES([GIMP], [gimp-2.0], HAVE_GIMP=yes, HAVE_GIMP=no)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -78,9 +78,9 @@ echo "* *"
|
|||
echo "* SANE-FRONTENDS configure status: *"
|
||||
echo "* -------------------------------- *"
|
||||
|
||||
if test "x${HAVE_GTK}" != "x"; then
|
||||
if test "x${HAVE_GTK}" = "xyes"; then
|
||||
echo "* - GUIs activated (building: xcam xscanimage scanadf) *"
|
||||
if test "x${GIMP_LIBS}" != "x"; then
|
||||
if test "x${GIMP_LIBS}" = "xyes"; then
|
||||
echo "* - GIMP plugin activated for xscanimage *"
|
||||
else
|
||||
echo "* - GIMP plugin deactivated for xscanimage *"
|
||||
|
|
Ładowanie…
Reference in New Issue