[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: possible configure problem for krita
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2004-12-18 15:36:56
Message-ID: 200412181637.00668.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 17 December 2004 18:18, Cyrille Berger wrote:
> > Im currently installing 1.14 which im sure will fix it, but the configure
> > script should probably take care of this.
>
> for mandrake users, I have build the rpm, you can find them here :
> http://lepi.org/~cyb/mandrakerpms

Thanks. I've been working on the configure.in.in for some time but didn't get 
it to work. Scott Wheeler has committed a patch that leaves the configure 
stuff as it is, but ifdefs the offending code in Krita. I'm not sure what's 
going wrong, but the attached configure code doesn't find lcms at all:

# Check for lcms
AC_MSG_CHECKING([for lcms >= 1.14])

have_lcms_header='no'
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])

        echo "#include <lcms/lcms.h" > conftest.$ac_ext
        echo "#if LCMS_VERSION < 114" >> conftest.$ac_ext
        echo "#error Need lcms < 1.14" >> conftest.$ac_ext
        echo "#endif" >> conftest.$ac_ext
        echo "int main() {}" >> conftest.$ac_ext

else
        # Alternative! Debian does it this way...
        KDE_CHECK_HEADER(lcms.h,have_lcms_header='yes',,)

        AC_DEFINE(LCMS_HEADER, <lcms.h>, [The correct header])

        echo "#include <lcms.h>" > conftest.$ac_ext
        echo "#if LCMS_VERSION < 114" >> conftest.$ac_ext
        echo "#error Need lcms < 1.14" >> conftest.$ac_ext
        echo "#endif" >> conftest.$ac_ext
        echo "int main() {}" >> conftest.$ac_ext
fi


ac_link='$LIBTOOL_SHELL --mode=link ${CXX-g++} -o conftest $CXXFLAGS 
$all_includes $CPPFLAGS $LDFLAGS 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)



-- 
Boudewijn Rempt | "Geef mij maar zuurtjes."
http://www.valdyas.org/fading/index.cgi

[Attachment #5 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic