[Gdal-dev] Can't configure GDAL for FreeBSD 5.5

vic at telerem.ru vic at telerem.ru
Sat Dec 16 17:35:26 EST 2006


Hello Mateusz Loskot,

Saturday, December 16, 2006, 11:11:45 PM, you wrote:

ML> vic at telerem.ru wrote:
>> I have not PostgreSQL on my computer. How I can change options for
>> configure to it process work fine?
>> 
>> Or what I need to change in configure source?

ML> I'd say it's strange, because --with-pg=no should work well.
ML> In the configure.in, following code is executed if --with-pg=no is passed:

ML> if test "x$PG_CONFIG" = "xno" ; then

ML>   HAVE_PG=no
ML>   PG_LIB=
ML>   PG_INC=

ML>   AC_MSG_RESULT([no])

ML> else
ML> ...

ML> I'm not sure, but may be there are some differences in FreeBSD in
ML> handling empty variables, so it should be changed to:

ML>   PG_LIB=""
ML>   PG_INC=""

ML> Cheers

To find place with error I put code to 'configure':

------------------------ start code
echo $ECHO_N "checking my 1 ... $ECHO_C" >&6
HAVE_PG="no"
echo $ECHO_N "checking my 2 ... $ECHO_C" >&6
PG_LIB=""
echo $ECHO_N "checking my 3 ... $ECHO_C" >&6
PG_INC=""
echo $ECHO_N "checking my 4 ... $ECHO_C" >&6
echo "$as_me:$LINENO: result: no" >&5
echo $ECHO_N "checking my 5 ... $ECHO_C" >&6
echo "${ECHO_T}no" >&6LIBZ
echo $ECHO_N "checking my 6 ... $ECHO_C" >&6

if test "123" = "456" ; then
------------------------ end code

and have next results:

checking for PostgreSQL... checking my 1 ... checking my 2 ...
checking my 3 ... checking my 4 ... checking my 5 ...
./configure.lineno: 21547: Syntax error: Bad fd number

So line ' echo "${ECHO_T}no" >&6LIBZ ' has error.
What I have to correct in it?

I try to find some string with '>&6' and only 3 lines have different
end:

aip2# grep -E ">&6\B"  configure
echo "${ECHO_T}no" >&6LIBZ
  echo "${ECHO_T}no" >&6LIBZ
echo "${ECHO_T}setting DODS root directory to $with_sqlite" >&6_


Other lines with '>&6' have only '>&6' without any symbols on the end.

I think I need to correct these strings. But I don't know how to do
this correct.



Victor




More information about the Gdal-dev mailing list