classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Re: build failure - problems detecting freetype2 header


From: Christian Thalinger
Subject: Re: [cp-patches] Re: build failure - problems detecting freetype2 headers
Date: Wed, 02 Nov 2005 19:38:52 +0100

On Tue, 2005-11-01 at 13:14 +0100, Mark Wielaard wrote:
> Sorry. Since Tom committed it after you sent this message I assumed he
> checked and thought it not a problem. Tom?

Thix patch should fix the issue.  Indenting is also fixed.  Should go in
before release.  Ok?

TWISTI


2005-11-02  Christian Thalinger  <address@hidden>

        * configure.ac: Check for cairo, pangoft2 and freetype2 only 
        when gtk peers are enabled.


Index: configure.ac
===================================================================
RCS file: /cvsroot/classpath/classpath/configure.ac,v
retrieving revision 1.114
diff -u -3 -p -r1.114 configure.ac
--- configure.ac        26 Oct 2005 19:35:53 -0000      1.114
+++ configure.ac        2 Nov 2005 18:22:52 -0000
@@ -338,17 +338,31 @@ if test "x${COMPILE_JNI}" = xyes; then
 
   dnl Check for AWT related gthread/gtk
   if test "x${COMPILE_GTK_PEER}" = xyes; then
-     AC_PATH_XTRA
-     if test "$no_x" = yes; then
-         AC_MSG_ERROR([GTK+ peers requested but no X library available])
-     fi
-     dnl We explicitly want the XTest Extension for Robot support.
-     AC_CHECK_LIB([Xtst], [XTestQueryExtension], [true],
-                 [AC_MSG_ERROR([libXtst NOT found, required for GdkRobot])],
-                 [${X_LIBS}])
-     PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0)
-     AC_SUBST(GTK_CFLAGS)
-     AC_SUBST(GTK_LIBS)
+    AC_PATH_XTRA
+    if test "$no_x" = yes; then
+        AC_MSG_ERROR([GTK+ peers requested but no X library available])
+    fi
+    dnl We explicitly want the XTest Extension for Robot support.
+    AC_CHECK_LIB([Xtst], [XTestQueryExtension], [true],
+                 [AC_MSG_ERROR([libXtst NOT found, required for GdkRobot])],
+                 [${X_LIBS}])
+    PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0)
+
+    if test "x${enable_gtk_cairo}" = xyes; then
+      PKG_CHECK_MODULES(CAIRO, cairo >= 0.5.0)
+    fi
+
+    PKG_CHECK_MODULES(PANGOFT2, pangoft2)
+    PKG_CHECK_MODULES(FREETYPE2, freetype2)
+  
+    AC_SUBST(GTK_CFLAGS)
+    AC_SUBST(GTK_LIBS)
+    AC_SUBST(CAIRO_LIBS)
+    AC_SUBST(CAIRO_CFLAGS)
+    AC_SUBST(PANGOFT2_LIBS)
+    AC_SUBST(PANGOFT2_CFLAGS)
+    AC_SUBST(FREETYPE2_LIBS)
+    AC_SUBST(FREETYPE2_CFLAGS)
   fi
 
   dnl Check for AWT related Qt4
@@ -366,53 +380,39 @@ if test "x${COMPILE_JNI}" = xyes; then
        AC_MSG_WARN([QWidget not found])))
        AC_CHECK_PROG(MOC, [moc], [moc])
     fi
-  if test "x$HAVE_QT4" = "xno"; then
-    AC_MSG_NOTICE([Looking for QT_CFLAGS and QT_LIBS without pkg-config])
-    case "$host_os" in
-      darwin*)
-       AC_ARG_WITH([qt4dir],
-         [AS_HELP_STRING([--with-qt4dir=DIR],
-         [Qt4 installation directory used for OS-X.
-         For other systems use pkg-config.])],
-         [QT4DIR=$withval]
-         )
-       if test x"$QT4DIR" = x ; then
-         AC_MSG_ERROR([*** No path for Qt4 --with-qt4dir option given])
-       fi
-       AC_MSG_RESULT([QT4DIR... $QT4DIR])
-       AC_CHECK_PROG(MOC, [moc], [$QT4DIR/bin/moc], [], $QT4DIR/bin)
-       if test x"$MOC" = x; then
-         AC_MSG_ERROR([*** This is not the right Qt installation])
-       fi
-       QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
-       QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
-       QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
-       QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
-       ;;
-      *)
-       AC_MSG_ERROR([*** Please check PKG_CONFIG_PATH or the version
-       of your installed Qt4 installation.])
-       ;;
-    esac
-  fi
-  AC_MSG_NOTICE([Set QT_CFLAGS... $QT_CFLAGS])
-  AC_SUBST(QT_CFLAGS)
-  AC_SUBST(QT_LIBS)
-fi
-
-  if test "x${enable_gtk_cairo}" = xyes; then
-    PKG_CHECK_MODULES(CAIRO, cairo >= 0.5.0)
+    if test "x$HAVE_QT4" = "xno"; then
+      AC_MSG_NOTICE([Looking for QT_CFLAGS and QT_LIBS without pkg-config])
+      case "$host_os" in
+       darwin*)
+         AC_ARG_WITH([qt4dir],
+           [AS_HELP_STRING([--with-qt4dir=DIR],
+           [Qt4 installation directory used for OS-X.
+           For other systems use pkg-config.])],
+           [QT4DIR=$withval]
+           )
+         if test x"$QT4DIR" = x ; then
+           AC_MSG_ERROR([*** No path for Qt4 --with-qt4dir option given])
+         fi
+         AC_MSG_RESULT([QT4DIR... $QT4DIR])
+         AC_CHECK_PROG(MOC, [moc], [$QT4DIR/bin/moc], [], $QT4DIR/bin)
+         if test x"$MOC" = x; then
+           AC_MSG_ERROR([*** This is not the right Qt installation])
+         fi
+         QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
+         QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
+         QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
+         QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
+         ;;
+       *)
+         AC_MSG_ERROR([*** Please check PKG_CONFIG_PATH or the version
+         of your installed Qt4 installation.])
+         ;;
+      esac
+    fi
+    AC_MSG_NOTICE([Set QT_CFLAGS... $QT_CFLAGS])
+    AC_SUBST(QT_CFLAGS)
+    AC_SUBST(QT_LIBS)
   fi
-
-  PKG_CHECK_MODULES(PANGOFT2, pangoft2)
-  PKG_CHECK_MODULES(FREETYPE2, freetype2)
-
-  AC_SUBST(CAIRO_LIBS)
-  AC_SUBST(CAIRO_CFLAGS)
-  AC_SUBST(PANGOFT2_LIBS)
-  AC_SUBST(PANGOFT2_CFLAGS)
-  AC_SUBST(FREETYPE2_LIBS)
-  AC_SUBST(FREETYPE2_CFLAGS)
 fi
 
 CLASSPATH_WITH_JAVAH






reply via email to

[Prev in Thread] Current Thread [Next in Thread]