[Gdal-dev] configure problem on FreeBSD
John Hay
jhay at icomtek.csir.co.za
Wed Mar 2 07:30:37 EST 2005
Hi,
I have tried both version 1.2.5 and 1.2.6b3 on FreeBSD and it looks
like the configure script is using a bash specific feature which
isn't available in the FreeBSD /bin/sh. It is the two lines:
if test ${MYSQL_VERSION:0:1} -ge 4 ; then
if test "${VERSION:0:1}" -lt 2 ; then
The FreeBSD /bin/sh does not know how to handle the ${variable:0:1}.
What about rather using a case statement for it? Something like:
####################
case ${MYSQL_VERSION} in
[0-3]*) echo too old
;;
*) echo great that is new enough
;;
esac
####################
PS. Yes I know I can install bash on FreeBSD, but that is yet one more
package needed. :-)
John
--
John Hay -- John.Hay at icomtek.csir.co.za / jhay at FreeBSD.org
More information about the Gdal-dev
mailing list