summaryrefslogtreecommitdiffstats
path: root/lib/configure.in.mid
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /lib/configure.in.mid
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/configure.in.mid')
-rw-r--r--lib/configure.in.mid58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/configure.in.mid b/lib/configure.in.mid
new file mode 100644
index 00000000..7fc54555
--- /dev/null
+++ b/lib/configure.in.mid
@@ -0,0 +1,58 @@
+if test -s $srcdir/inst-apps ; then
+ SUBDIRLIST=`cat $srcdir/inst-apps`
+else
+ SUBDIRLIST=`cat $srcdir/subdirs`
+fi
+
+# fallback (KDE_CREATE_SUBDIRLIST has this fallback, so I have put it here too.)
+if test -z "$SUBDIRLIST" ; then
+ SUBDIRLIST=`ls -1 $srcdir`
+fi
+
+AC_MSG_CHECKING([whether only Kexi is being built])
+KEXI_ONLY=yes
+for args in $SUBDIRLIST ; do
+ case $args in
+ lib) ;;
+ kexi) ;;
+ *) if test -d $srcdir/$args ; then
+ KEXI_ONLY=no
+ fi
+ ;;
+ esac
+done
+AC_MSG_RESULT([$KEXI_ONLY])
+AM_CONDITIONAL(compile_kexionly, test "$KEXI_ONLY" = "yes" )
+
+AC_MSG_CHECKING([whether kopainter should be compiled])
+
+# first check which main application we could compile
+for args in $SUBDIRLIST ; do
+ case $args in
+ krita) COMPILE_LIB_FOR_KRITA="$args " ;;
+ karbon) COMPILE_LIB_FOR_KARBON="$args " ;;
+ kivio) COMPILE_LIB_FOR_KIVIO="$args " ;;
+ esac
+done
+
+# now remove the applications the user has asked not to compile
+COMPILE_LIB_FOR_KPRESENTER="#"
+for args in $DO_NOT_COMPILE ; do
+ case $args in
+ krita) COMPILE_LIB_FOR_KRITA= ;;
+ karbon) COMPILE_LIB_FOR_KARBON= ;;
+ kivio) COMPILE_LIB_FOR_KIVIO= ;;
+ kpresenter) COMPILE_LIB_FOR_KPRESENTER= ;;
+ esac
+done
+
+if test -n "$COMPILE_LIB_FOR_KRITA$COMPILE_LIB_FOR_KARBON$COMPILE_LIB_FOR_KIVIO$COMPILE_LIB_FOR_KPRESENTER" ; then
+ USERFEEDBACKCOMPILELIB="yes"
+else
+ USERFEEDBACKCOMPILELIB="no"
+fi
+
+AC_MSG_RESULT([$USERFEEDBACKCOMPILELIB])
+
+AM_CONDITIONAL(compile_lib_KOPAINTER, test "$USERFEEDBACKCOMPILELIB" = "yes" )
+