More robust libsane check.
This commit is contained in:
parent
4ae929784c
commit
96328b372e
12
configure.ac
12
configure.ac
|
@ -373,11 +373,13 @@ else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
CPPFLAGS="$CPPFLAGS $SANEINCL"
|
CPPFLAGS="$CPPFLAGS $SANEINCL"
|
||||||
LIBS="$LIBS $SANELIBS"
|
LIBS="$LIBS $SANELIBS"
|
||||||
AC_CHECK_HEADER(sane/sane.h,[
|
AC_CHECK_HEADER(sane/sane.h,
|
||||||
AC_CHECK_LIB(sane,sane_open,[AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
|
[AC_CHECK_LIB(sane,sane_open,
|
||||||
SANELIBS=""
|
[AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
|
||||||
])
|
[SANELIBS=""
|
||||||
)
|
SANEINCL=""])],
|
||||||
|
[SANELIBS=""
|
||||||
|
SANEINCL=""])
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
CPPFLAGS="$ac_save_CPPFLAGS"
|
CPPFLAGS="$ac_save_CPPFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue