Bug 61780

Summary: do not compile kdeaddons plugin when kdenetwork is not installed
Product: [Applications] kontact Reporter: Emma <emma1985x>
Component: generalAssignee: KDE PIM Developers <kde-pim>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Emma 2003-07-28 23:04:46 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The configure script of kdeaddons does not check if kontact is installed. If kdenetwork is not installed (or the kdenetwork header files are not installed), compilation of kdeaddons will fail.
Solution:
* Create a file kdeaddons/kontact/configure.in.in (yes, .in.in) with this content:
KONTACT_SUBDIR=
KDE_CHECK_HEADER(kontact/core.h, KONTACT_SUBDIR=kontact)

if test -z "$KONTACT_SUBDIR"; then
  dnl dir will only be compiled conditionally
  DO_NOT_COMPILE="$DO_NOT_COMPILE kontact"
fi
* Run make -f Makefile.cvs
Comment 1 Dirk Mueller 2003-07-28 23:27:29 UTC
Subject: kdeaddons

CVS commit by mueller: 

check if kdepim is compiled before compiling kontact plugins
CCMAIL:61780-done@bugs.kde.org


  A            kontact/configure.in.in   1.1
  M +9 -0      configure.in.bot   1.4


--- kdeaddons/configure.in.bot  #1.3:1.4
@@ -18,2 +18,11 @@
   all_tests=bad
 fi
+
+if test "x$kontact_available" != "xyes"; then
+  echo ""
+  echo "You're missing the Kontact header files, therefore"
+  echo "the Kontact plugins cannot be compiled. If you want them,"
+  echo "you should install kdepim first."
+  echo ""
+  all_tests=bad
+fi