Hi,

I've recently started playing around with directfb and found a small
configure problem. Please apologize the I don't use the bug tracker,
but I couldn't register yet.

Assume the following:
- cross compiling
- freetype-config is not in the path
- path to freetype-config is given by setting the environment variable:
FREETYPE_CONFIG=$DESTDIR/bin/freetype-config
- freetype-config will befound in this directory by the configure script
- but it will not be used for getting the cflags and the libs, because
the command line for getting the flags is:
`freetype-config --libs`
- because of this the freetype-config of the PATH is used and not the
one which was specified by the environment variable

After I applied the following patch, it works in both cases
(FREETYPE_CONFIG set and not set)

Please have a look at this patch and if it makes sense, please apply it to CVS.

Thank you very much in advance,
Christian

Index: configure.in
===================================================================
RCS file: /cvs/directfb/DirectFB/configure.in,v
retrieving revision 1.277
diff -u -r1.277 configure.in
--- configure.in        20 Mar 2006 01:26:50 -0000      1.277
+++ configure.in        27 Mar 2006 23:09:33 -0000
@@ -752,8 +752,8 @@
 *** freetype-config not found -- FreeType font provider will not be built.])
     else
       FREETYPE=yes
-      FREETYPE_CFLAGS=`freetype-config --cflags`
-      FREETYPE_LIBS=`freetype-config --libs`
+      FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
+      FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
     fi
   fi
 fi

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to