From 47d455dd55be855e4cc691c32f687f723d9247ee Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/configure.in.in | 60 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 kpovmodeler/configure.in.in (limited to 'kpovmodeler/configure.in.in') diff --git a/kpovmodeler/configure.in.in b/kpovmodeler/configure.in.in new file mode 100644 index 00000000..34ae508f --- /dev/null +++ b/kpovmodeler/configure.in.in @@ -0,0 +1,60 @@ +have_gl_headers=yes +can_link_gl=yes +KPOVMODELER_OPENGL=yes; + +KDE_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glx.h) +if test "$ac_cv_header_GL_gl_h" = "no"; then + have_gl_headers=no; +fi +if test "$ac_cv_header_GL_glu_h" = "no"; then + have_gl_headers=no; +fi +if test "$ac_cv_header_GL_glx_h" = "no"; then + have_gl_headers=no; +fi + +if test "$have_gl_headers" = "yes"; then + AC_HAVE_GL( can_link_gl=yes, can_link_gl=no ) +fi + +if test "$have_gl_headers" = "no"; then + KPOVMODELER_OPENGL=no; +fi +if test "$can_link_gl" = "no"; then + KPOVMODELER_OPENGL=no; +fi + +if test "$KPOVMODELER_OPENGL" = "no"; then + DO_NOT_COMPILE="$DO_NOT_COMPILE kpovmodeler" +fi + + +KDE_FIND_PATH(freetype-config, FREETYPE_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin]) + +if test -n "$FREETYPE_CONFIG"; then + vers=`$FREETYPE_CONFIG --version 2>/dev/null | sed -e 's/libfreetype //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test -n "$vers" && test "$vers" -ge 5000000 + then + LIBFREETYPE_LIBS="`$FREETYPE_CONFIG --libs`" + LIBFREETYPE_RPATH= + for args in $LIBFREETYPE_LIBS; do + case $args in + -L*) + LIBFREETYPE_RPATH="$LIBFREETYPE_RPATH $args" + ;; + esac + done + LIBFREETYPE_RPATH=`echo $LIBFREETYPE_RPATH | sed -e "s/-L/-R/g"` + LIBFREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`" + + AC_DEFINE_UNQUOTED(HAVE_FREETYPE, 1, [Defines if your system has the libfreetype library]) + AC_MSG_RESULT([libraries $LIBFREETYPE_LIBS, headers $LIBFREETYPE_CFLAGS]) + else + AC_MSG_WARN([You need at least libfreetype 5.0]) + fi +fi + + +AC_SUBST(LIBFREETYPE_LIBS) +AC_SUBST(LIBFREETYPE_CFLAGS) +AC_SUBST(LIBFREETYPE_RPATH) -- cgit v1.2.3