#!/bin/sh
#
# GDAL compilation with GRASS support as plugin
#
#################################################
# GDAL/OGR debug: export CPL_DEBUG=ON
#
# Python:
# mkdir -p /usr/local/lib/python2.3
#  --with-pymoddir=/usr/local/lib/python2.3 \
# NOTE: To use gdal_merge.py etc. set
#   export PYTHONPATH=/usr/local/lib/python2.3
#################################################
# netcdf and hdf4
#    You need to set up CFLAGS=-DHAVE_NETCDF and
#    use configure --disable-fortran for HDF4
#################################################

CPPFLAGS="-g" ./configure \
  --with-pg --with-postgres-includes=/usr/include/pgsql \
  --with-netcdf=no \
  --with-mrsid=no \
  --with-hdf4=yes \
  --with-sqlite=no \
  --with-odbc=no \
  --with-pymodir=/usr/include/python2.2 \
  --without-grass \
  --without-libgrass \
  --with-geotiff=internal --with-libtiff=internal \
  --without-xerces \
  --without-geos

# now make, make install
# then
#   conf_gdal_grass.sh
# to create the GRASS plugin.


