aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-30 02:27:44 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-30 02:27:44 +0000
commite820e3f4597d52bf0d7f5e53800703001e356d17 (patch)
tree0851a908f3934ea1dd7b1bece877e01699bb35a4 /configure
parentada24f846650ad2e64c92178d233e380db141427 (diff)
Make sure bluez programs (cross-)compile, add missing statics.
Spotted by Blue Swirl. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5358 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 826da7c01a..53ad5d6c38 100755
--- a/configure
+++ b/configure
@@ -900,8 +900,18 @@ if test "$bluez" = "yes" ; then
`pkg-config bluez` || bluez="no"
fi
if test "$bluez" = "yes" ; then
+ cat > $TMPC << EOF
+#include <bluetooth/bluetooth.h>
+int main(void) { return bt_error(0); }
+EOF
bluez_cflags=`pkg-config --cflags bluez`
bluez_libs=`pkg-config --libs bluez`
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_FLAGS} $bluez_cflags $TMPC \
+ $bluez_libs 2> /dev/null ; then
+ :
+ else
+ bluez="no"
+ fi
fi
##########################################