More robust libsane check.

This commit is contained in:
Alexandre Julliard 2002-03-31 19:23:41 +00:00
parent 4ae929784c
commit 96328b372e
2 changed files with 462 additions and 458 deletions

908
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -373,11 +373,13 @@ else
ac_save_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $SANEINCL"
LIBS="$LIBS $SANELIBS"
AC_CHECK_HEADER(sane/sane.h,[
AC_CHECK_LIB(sane,sane_open,[AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
SANELIBS=""
])
)
AC_CHECK_HEADER(sane/sane.h,
[AC_CHECK_LIB(sane,sane_open,
[AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
[SANELIBS=""
SANEINCL=""])],
[SANELIBS=""
SANEINCL=""])
LIBS="$ac_save_LIBS"
CPPFLAGS="$ac_save_CPPFLAGS"
fi