projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a1217
)
build: Improve D-Bus checks for cross-compilation
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 28 Mar 2011 17:23:48 +0000
(19:23 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 28 Mar 2011 17:23:48 +0000
(19:23 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
ac66406
..
7772e72
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-312,9
+312,15
@@
fi
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes,
AC_MSG_ERROR(D-Bus >= 1.0 is required))
+saved_CFLAGS="$CFLAGS"
+saved_LIBS="$LIBS"
+CFLAGS="$CFLAGS $DBUS_CFLAGS"
+LIBS="$LIBS $DBUS_LIBS"
AC_CHECK_LIB(dbus-1, dbus_watch_get_unix_fd, dummy=yes,
AC_DEFINE(NEED_DBUS_WATCH_GET_UNIX_FD, 1,
[Define to 1 if you need the dbus_watch_get_unix_fd() function.]))
+CFLAGS="$saved_CFLAGS"
+LIBS="$saved_LIBS"
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)