Automake fixups

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1106897 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent 96ffb8e1e0
commit be5434018a

@ -1265,6 +1265,8 @@ KDE_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,)
if test "$have_lcms_header" = 'yes'
then
AC_DEFINE(LCMS_HEADER, <lcms/lcms.h>, [The correct header])
HAVELCMS="yes"
LCMS_LIBS="-llcms"
echo "#include <lcms/lcms.h>" > conftest.$ac_ext
echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
@ -1279,6 +1281,8 @@ else
if test "$have_lcms_header" = 'yes'
then
AC_DEFINE(LCMS_HEADER, <lcms.h>, [The correct header])
HAVELCMS="yes"
LCMS_LIBS="-llcms"
echo "#include <lcms.h>" > conftest.$ac_ext
echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
@ -1290,6 +1294,8 @@ else
# and now debian also does it this way... can't they decide for one way of doing stuff ?
AC_DEFINE(LCMS_HEADER, <liblcms1/lcms.h>, [The correct header])
HAVELCMS="yes"
LCMS_LIBS="-llcms"
echo "#include <liblcms1/lcms.h>" > conftest.$ac_ext
echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
@ -1300,20 +1306,6 @@ else
fi
fi
ac_link='$LIBTOOL_SHELL --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext -llcms 1>&5'
if AC_TRY_EVAL(ac_link) && test -s conftest; then
AC_MSG_RESULT(yes)
HAVELCMS="yes"
LCMS_LIBS="-llcms"
else
AC_MSG_RESULT(no)
HAVELCMS="no"
LCMS_LIBS=""
DO_NOT_COMPILE="$DO_NOT_COMPILE krita"
fi
AC_SUBST(LCMS_LIBS)
# IM 6.1.3 changed the number of arguments to GetMagickInfoList

Loading…
Cancel
Save