<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [Gdal-dev] configure problem on FreeBSD</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>On Wed, 2 Mar 2005 14:30:37 +0200, John Hay <jhay@icomtek.csir.co.za> wrote:</FONT>
<BR><FONT SIZE=2>> Hi,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I have tried both version 1.2.5 and 1.2.6b3 on FreeBSD and it looks</FONT>
<BR><FONT SIZE=2>> like the configure script is using a bash specific feature which</FONT>
<BR><FONT SIZE=2>> isn't available in the FreeBSD /bin/sh. It is the two lines:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> if test ${MYSQL_VERSION:0:1} -ge 4 ; then</FONT>
<BR><FONT SIZE=2>> if test "${VERSION:0:1}" -lt 2 ; then</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> The FreeBSD /bin/sh does not know how to handle the ${variable:0:1}.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> What about rather using a case statement for it? Something like:</FONT>
</P>
<P><FONT SIZE=2>John,</FONT>
</P>
<P><FONT SIZE=2>Patched as suggested, though it took a few tries to escape the [ and ] </FONT>
<BR><FONT SIZE=2>properly since they are spectial quotes to autoconf. Test on Mysql 3</FONT>
<BR><FONT SIZE=2>and 4. </FONT>
</P>
<P><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>---------------------------------------+--------------------------------------</FONT>
<BR><FONT SIZE=2>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com</FONT>
<BR><FONT SIZE=2>light and sound - activate the windows | <A HREF="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</A></FONT>
<BR><FONT SIZE=2>and watch the world go round - Rush | Geospatial Programmer for Rent</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Gdal-dev mailing list</FONT>
<BR><FONT SIZE=2>Gdal-dev@xserve.flids.com</FONT>
<BR><FONT SIZE=2><A HREF="http://xserve.flids.com/mailman/listinfo/gdal-dev">http://xserve.flids.com/mailman/listinfo/gdal-dev</A></FONT>
</P>
</BODY>
</HTML>