Merge branch '41-configure-script-should-exit-with-a-non-zero-code-if-a-problem-occurs' into 'master'

Resolve "configure script should exit with a non-zero code if a problem occurs"

Closes #41

See merge request sane-project/frontends!15
master
Ralph Little 2024-10-23 05:07:08 +00:00
commit 5c148771d2
1 zmienionych plików z 0 dodań i 14 usunięć

Wyświetl plik

@ -109,20 +109,6 @@ AC_CHECK_TOOL(RANLIB, ranlib, :)
PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0], HAVE_SANE=yes) PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0], HAVE_SANE=yes)
PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix]) PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix])
PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags]) PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags])
dnl Print error message if sane is missing
if test "x${HAVE_SANE}" = "x"; then
echo "**********************************************************************"
echo "ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons:"
echo " - sane-backends isn't installed (install sane-backends before"
echo " sane-frontends)"
echo " - the SANE header files aren't installed (if you installed"
echo " SANE as RPM make sure you also included the sane-devel RPM)"
echo " - the SANE libraries can't be found because /usr/local/lib/ isn't"
echo " searched by the dynamic linker (see INSTALL for details)"
echo "**********************************************************************"
echo ""
exit
fi
# check for GTK3 # check for GTK3
if test "${USE_GUI}" = "yes"; then if test "${USE_GUI}" = "yes"; then