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

vic at telerem.ru vic at telerem.ru
Sat Dec 16 17:18:17 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=""

I can't understand anything :(

I insert next code in 'configure':
echo "$as_me:$LINENO: checking for PostgreSQL" >&5
echo $ECHO_N "checking for PostgreSQL... $ECHO_C" >&6

------------------------------ my code start
HAVE_PG=no
PG_LIB=""
PG_INC=""
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6LIBZ

if test "123" = "456" ; then
------------------------------ my code finish
if test "$PG_CONFIG" = "no" ; then

  HAVE_PG=no
  PG_LIB=""
  PG_INC=""

.........
.........
.........
.........
  PG_INC="-I`$PG_CONFIG --includedir` $PG_EXTRA_DEC"
fi
------------------------------ my code start
fi
------------------------------ my code finish

HAVE_PG=$HAVE_PG

PG_INC=$PG_INC

PG_LIB=$PG_LIB

.........
.........
.........
.........

But nothing happens. What I nave to comment in configure to switch off
test PostgreSQL?



Victor




More information about the Gdal-dev mailing list