diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /umbrello/configure.in.in | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/configure.in.in')
-rw-r--r-- | umbrello/configure.in.in | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/umbrello/configure.in.in b/umbrello/configure.in.in new file mode 100644 index 00000000..81e4fd59 --- /dev/null +++ b/umbrello/configure.in.in @@ -0,0 +1,112 @@ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Not GPL compatible +dnl AC_PATH_PROG(DOT_FOUND, dot, no) +dnl KDE_CHECK_HEADER(graphviz/pathgeom.h, +dnl [kde_have_graphviz=yes], +dnl [kde_have_graphviz=no]) +dnl +dnl if test "$DOT_FOUND" != "no" -a "$kde_have_graphviz" = "yes"; then +dnl CXXFLAGS="$CXXFLAGS -DHAVE_DOT" +dnl GRAPHVIZ_LIB=`pkg-config --libs libgraph` +dnl AUTOLAYOUT_DIR="autolayout" +dnl AUTOLAYOUT_LIBS="autolayout/libautolayout.la $GRAPHVIZ_LIB -ldotgen -lgvc" +dnl else +dnl AUTOLAYOUT_DIR="" +dnl AUTOLAYOUT_LIBS="" +dnl fi +dnl AC_SUBST(AUTOLAYOUT_DIR) +dnl AC_SUBST(AUTOLAYOUT_LIBS) +dnl End of Not GPL compatible + +AC_LANG_RESTORE + + +AC_CHECK_FUNCS(setenv) + +dnl AH_BOTTOM( +dnl [#if !defined(HAVE_SETENV) +dnl #ifdef __cplusplus +dnl extern "C" +dnl #endif +dnl int setenv(const char *name, const char *value, int overwrite); +dnl #endif +dnl ]) + +HAVE_XSLT=yes + +KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [ + AC_MSG_WARN([Could not find libxml2 anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. (we also keep a version of it in kdesupport for CVS users' convience)]) + HELP_SUBDIR= + DO_NOT_COMPILE="$DO_NOT_COMPILE umbrello" +]) + +if test -n "$XML_CONFIG"; then + vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test -n "$vers" && test "$vers" -ge 2004008 + then + LIBXML_LIBS="`$XML_CONFIG --libs`" + LIBXML_RPATH= + for args in $LIBXML_LIBS; do + case $args in + -L*) + LIBXML_RPATH="$LIBXML_RPATH $args" + ;; + esac + done + LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"` + LIBXML_CFLAGS="`$XML_CONFIG --cflags`" + + KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""]) + AC_DEFINE_UNQUOTED(XMLLINT, "$XMLLINT", [Defines the executable of xmllint]) + else + AC_MSG_WARN([You need at least libxml 2.4.8]) + HAVE_XSLT=no + DO_NOT_COMPILE="$DO_NOT_COMPILE umbrello" + fi +fi + +if test "$HAVE_XSLT" = yes; then + + KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [ + AC_MSG_WARN([Could not find libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7. (we also keep a version of it in kdesupport for CVS users' convience)]) + HAVE_XSLT=no + DO_NOT_COMPILE="$DO_NOT_COMPILE umbrello" + ]) + + if test -n "$XSLT_CONFIG"; then + vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test -n "$vers" && test "$vers" -ge 1000007; then + LIBXSLT_LIBS="`$XSLT_CONFIG --libs`" + LIBXSLT_RPATH= + for args in $LIBXSLT_LIBS; do + case $args in + -L*) + LIBXSLT_RPATH="$LIBXSLT_RPATH $args" + ;; + esac + done + LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"` + LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`" + + else + AC_MSG_WARN([You need at least libxslt 1.0.7]) + HAVE_XSLT=no + DO_NOT_COMPILE="$DO_NOT_COMPILE umbrello" + fi + fi +fi + +if test "$have_libxslt" = "no"; then + DO_NOT_COMPILE="$DO_NOT_COMPILE umbrello" +fi + +AC_SUBST(LIBXSLT_LIBS) +AC_SUBST(LIBXSLT_CFLAGS) +AC_SUBST(LIBXSLT_RPATH) + +AC_SUBST(LIBXML_LIBS) +AC_SUBST(LIBXML_CFLAGS) +AC_SUBST(LIBXML_RPATH) + |