summaryrefslogtreecommitdiffstats
path: root/filters/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 /filters/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 'filters/configure.in.mid')
-rw-r--r--filters/configure.in.mid58
1 files changed, 58 insertions, 0 deletions
diff --git a/filters/configure.in.mid b/filters/configure.in.mid
new file mode 100644
index 00000000..a996cfb7
--- /dev/null
+++ b/filters/configure.in.mid
@@ -0,0 +1,58 @@
+AC_MSG_CHECKING([for filters to be compiled])
+
+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
+
+# first check which main apllication we could compile
+for args in $SUBDIRLIST ; do
+ case $args in
+ kword) COMPILE_FILTER_KWORD="$args " ;;
+ kspread) COMPILE_FILTER_KSPREAD="$args " ;;
+ kchart) COMPILE_FILTER_KCHART="$args " ;;
+ karbon) COMPILE_FILTER_KARBON="$args " ;;
+ kpresenter) COMPILE_FILTER_KPRESENTER="$args " ;;
+ kformula) COMPILE_FILTER_KFORMULA="$args " ;;
+ kugar) COMPILE_FILTER_KUGAR="$args " ;;
+ krita) COMPILE_FILTER_KRITA="$args " ;;
+ kivio) COMPILE_FILTER_KIVIO="$args " ;;
+ kexi) COMPILE_FILTER_KEXI="$args " ;;
+ esac
+done
+
+# now remove the applications the user has asked not to compile
+for args in $DO_NOT_COMPILE ; do
+ case $args in
+ kword) COMPILE_FILTER_KWORD= ;;
+ kspread) COMPILE_FILTER_KSPREAD= ;;
+ kchart) COMPILE_FILTER_KCHART= ;;
+ karbon) COMPILE_FILTER_KARBON= ;;
+ kpresenter) COMPILE_FILTER_KPRESENTER= ;;
+ kformula) COMPILE_FILTER_KFORMULA= ;;
+ kugar) COMPILE_FILTER_KUGAR= ;;
+ krita) COMPILE_FILTER_KRITA= ;;
+ kivio) COMPILE_FILTER_KIVIO= ;;
+ kexi) COMPILE_FILTER_KEXI= ;;
+ esac
+done
+
+USERFEEDBACKCOMPILE="$COMPILE_FILTER_KWORD$COMPILE_FILTER_KSPREAD$COMPILE_FILTER_KCHART$COMPILE_FILTER_KARBON$COMPILE_FILTER_KPRESENTER$COMPILE_FILTER_KFORMULA$COMPILE_FILTER_KUGAR"
+AC_MSG_RESULT([$USERFEEDBACKCOMPILE])
+
+AM_CONDITIONAL(compile_filter_KWORD, test -n "$COMPILE_FILTER_KWORD")
+AM_CONDITIONAL(compile_filter_KSPREAD, test -n "$COMPILE_FILTER_KSPREAD")
+AM_CONDITIONAL(compile_filter_KCHART, test -n "$COMPILE_FILTER_KCHART")
+AM_CONDITIONAL(compile_filter_KARBON, test -n "$COMPILE_FILTER_KARBON")
+AM_CONDITIONAL(compile_filter_KPRESENTER, test -n "$COMPILE_FILTER_KPRESENTER")
+AM_CONDITIONAL(compile_filter_KFORMULA, test -n "$COMPILE_FILTER_KFORMULA")
+AM_CONDITIONAL(compile_filter_KUGAR, test -n "$COMPILE_FILTER_KUGAR")
+AM_CONDITIONAL(compile_filter_KRITA, test -n "$COMPILE_FILTER_KRITA")
+AM_CONDITIONAL(compile_filter_KIVIO, test -n "$COMPILE_FILTER_KIVIO")
+AM_CONDITIONAL(compile_filter_KEXI, test -n "$COMPILE_FILTER_KEXI")