[mapserver-commits] r9008 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu May 7 16:59:38 EDT 2009
Author: dmorissette
Date: 2009-05-07 16:59:38 -0400 (Thu, 07 May 2009)
New Revision: 9008
Modified:
trunk/mapserver/configure
trunk/mapserver/configure.in
Log:
Fixed detection of freetype when installed in non-system directory (#3008)
Modified: trunk/mapserver/configure
===================================================================
--- trunk/mapserver/configure 2009-05-07 20:55:10 UTC (rev 9007)
+++ trunk/mapserver/configure 2009-05-07 20:59:38 UTC (rev 9008)
@@ -5256,12 +5256,12 @@
{ echo "$as_me:$LINENO: result: using libfreetype from $FT_LIB" >&5
echo "${ECHO_T} using libfreetype from $FT_LIB" >&6; }
- if test ""$FT_LIBDIR"" != "/usr/lib"; then
+ if test ""$FT_LIB"" != "/usr/lib"; then
- if test -z ""$FT_LIBDIR"" || echo ""$FT_LIBDIR"" | grep '^/' >/dev/null ; then
- ai_p=""$FT_LIBDIR""
+ if test -z ""$FT_LIB"" || echo ""$FT_LIB"" | grep '^/' >/dev/null ; then
+ ai_p=""$FT_LIB""
else
- ai_p="`pwd`/"$FT_LIBDIR""
+ ai_p="`pwd`/"$FT_LIB""
fi
@@ -5277,8 +5277,7 @@
fi
-else
- { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
+elif test -z "$FT_LIBDIR" -a -z "$FT_BIN" ; then { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
Modified: trunk/mapserver/configure.in
===================================================================
--- trunk/mapserver/configure.in 2009-05-07 20:55:10 UTC (rev 9007)
+++ trunk/mapserver/configure.in 2009-05-07 20:59:38 UTC (rev 9008)
@@ -164,8 +164,8 @@
if test -n "$FT_LIBDIR" -a -z "$FT_BIN" ; then
FT_LIB="-L$FT_LIBDIR $FT_TYPE"
AC_MSG_RESULT([ using libfreetype from $FT_LIB])
- AC_ADD_RUNPATH("$FT_LIBDIR")
-else
+ AC_ADD_RUNPATH("$FT_LIB")
+elif test -z "$FT_LIBDIR" -a -z "$FT_BIN" ; then dnl replaced else by elif
dnl check for lib in system libs
AC_CHECK_LIB(freetype, FT_Init_FreeType, FT_LIB="-lfreetype",,)
More information about the mapserver-commits
mailing list