Bug 67992 - configure fails to detect gnokii if gnokii is built with bluetooth support
Summary: configure fails to detect gnokii if gnokii is built with bluetooth support
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 13:36 UTC by tim
Modified: 2009-08-05 16:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for kdepim configure.in.in &c to detect bluetooth libs (1.72 KB, patch)
2003-11-12 13:37 UTC, tim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tim 2003-11-12 13:36:22 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 
OS:          Linux

As per the subject. This is a compilation problem - don't see where else to file it. Patch fixing problem to follow.
Comment 1 tim 2003-11-12 13:37:43 UTC
Created attachment 3174 [details]
Patch for kdepim configure.in.in &c to detect bluetooth libs
Comment 2 Tobias Koenig 2003-11-15 16:45:15 UTC
Subject: kdepim

CVS commit by tokoe: 

Applyed patch from #67992 which adds configure check for libbluetooth which
may be requiered by libgnokii.

@Tim: Thank you very much for the patch

CCMAIL:67992-done@bugs.kde.org


  M +15 -2     configure.in.in   1.31
  M +2 -1      kaddressbook/xxport/configure.in.in   1.3


--- kdepim/configure.in.in  #1.30:1.31
@@ -24,4 +24,17 @@
 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
 
+# check for libbluetooth (Bluetooth library) because gnokii may require it
+AC_DEFUN(KDE_CHECK_BLUETOOTH,
+[
+  AC_CHECK_HEADERS(bluetooth/bluetooth.h)
+  LIB_BLUETOOTH=
+  AC_CHECK_LIB(bluetooth, hci_open_dev,
+       [ LIB_BLUETOOTH="-lbluetooth" ],
+       [],
+       [] )
+  AC_SUBST(LIB_BLUETOOTH)
+])
+
+
 # check for libgnokii (Nokia mobile phone library)
 AC_DEFUN(KDE_CHECK_GNOKII,
@@ -31,7 +44,7 @@
   LIB_GNOKII=
   AC_CHECK_LIB(gnokii, gn_cfg_read,
-       [ LIB_GNOKII="-lgnokii" ],
+       [ LIB_GNOKII="-lgnokii $LIB_BLUETOOTH" ],
        [],
-       $all_libraries -lXpm -lX11 )
+       $all_libraries -lXpm -lX11 $LIB_BLUETOOTH )
   AC_SUBST(LIB_GNOKII)
 ])

--- kdepim/kaddressbook/xxport/configure.in.in  #1.2:1.3
@@ -1,3 +1,4 @@
 # $Id$
 
+KDE_CHECK_BLUETOOTH
 KDE_CHECK_GNOKII


Comment 3 Tobias Koenig 2009-08-05 16:01:12 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.