diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-03-28 19:23:48 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-03-28 19:23:48 +0200 |
commit | 8d1a0de849794f640ae78ff854b1d0a3b8a24e5c (patch) | |
tree | 6b1970431b3200c6aacce87e1b442b0339a579e6 /configure.ac | |
parent | 07a1217d6c1aaa3eaab568d74bb417c0a0a3a173 (diff) | |
download | connman-8d1a0de849794f640ae78ff854b1d0a3b8a24e5c.tar.gz connman-8d1a0de849794f640ae78ff854b1d0a3b8a24e5c.tar.bz2 connman-8d1a0de849794f640ae78ff854b1d0a3b8a24e5c.zip |
build: Improve D-Bus checks for cross-compilation
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ac66406d..7772e726 100644 --- 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) |