Bug 61780 - do not compile kdeaddons plugin when kdenetwork is not installed
Summary: do not compile kdeaddons plugin when kdenetwork is not installed
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDE PIM Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 23:04 UTC by Emma
Modified: 2003-07-28 23:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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