[gnome-color-manager] Search for sane/sane.h as well as the pkgconfig file
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Search for sane/sane.h as well as the pkgconfig file
- Date: Wed, 24 Mar 2010 18:00:23 +0000 (UTC)
commit 37275a20505747d0d6c55f684d940cde314b7404
Author: Richard Hughes <richard hughsie com>
Date: Wed Mar 24 18:00:15 2010 +0000
Search for sane/sane.h as well as the pkgconfig file
configure.ac | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c8cf3c1..7be400b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,7 +157,15 @@ PKG_CHECK_MODULES(X11, x11)
AC_SUBST(X11_CFLAGS)
AC_SUBST(X11_LIBS)
-PKG_CHECK_MODULES(SANE, sane-backends)
+PKG_CHECK_MODULES(SANE, sane-backends, has_sane=yes, has_sane=no)
+if test $has_sane = "no"; then
+ AC_CHECK_HEADER(sane/sane.h, has_sane=yes, has_sane=no)
+ if test $has_sane = "no"; then
+ AC_MSG_ERROR([Cannot fine SANE])
+ fi
+ SANE_CFLAGS=""
+ SANE_LIBS="-lsane"
+fi
AC_SUBST(SANE_CFLAGS)
AC_SUBST(SANE_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]