#!/bin/sh
CONFIG_LIBS="-L/opt/anaconda1anaconda2anaconda3/lib -lgdal"
CONFIG_DEP_LIBS="  -L/opt/anaconda1anaconda2anaconda3/lib -lproj -L/opt/anaconda1anaconda2anaconda3/lib -lpoppler -ljson-c -L/opt/anaconda1anaconda2anaconda3/lib -L/opt/anaconda1anaconda2anaconda3/lib -lfreexl -L/opt/anaconda1anaconda2anaconda3/lib -lgeos_c -L/opt/anaconda1anaconda2anaconda3/lib -lsqlite3 -L/opt/anaconda1anaconda2anaconda3/lib -lkmlbase -lkmldom -lkmlengine -lkmlxsd -lkmlregionator -L/opt/anaconda1anaconda2anaconda3/lib -lexpat -L/opt/anaconda1anaconda2anaconda3/lib -lxerces-c -lpthread -L/opt/anaconda1anaconda2anaconda3/lib -lopenjp2 -L/opt/anaconda1anaconda2anaconda3//opt/anaconda1anaconda2anaconda3/lib -lnetcdf -lmfhdf -ldf -lhdf5_hl -lhdf5 -lpthread -lz -ldl -lm -lcurl -L/opt/anaconda1anaconda2anaconda3/lib -lhdf5  -L/opt/anaconda1anaconda2anaconda3/lib -lmfhdf -ldf -lgif -L/opt/anaconda1anaconda2anaconda3 -L/opt/anaconda1anaconda2anaconda3/lib -ljpeg -L/opt/anaconda1anaconda2anaconda3/lib -ltiff -L/opt/anaconda1anaconda2anaconda3 -L/opt/anaconda1anaconda2anaconda3/lib -lpng -L/opt/anaconda1anaconda2anaconda3/lib -lpq -llzma -lz -L/opt/anaconda1anaconda2anaconda3 -L/opt/anaconda1anaconda2anaconda3/lib -lpthread -ldl  -L/opt/anaconda1anaconda2anaconda3/lib64 -L/opt/anaconda1anaconda2anaconda3/lib -ldap -ldapserver -ldapclient -L/opt/anaconda1anaconda2anaconda3/lib -lcurl -lssh2 -lssl -lcrypto -lssl -lcrypto -lz -L/opt/anaconda1anaconda2anaconda3/lib -lxml2 -L/opt/anaconda1anaconda2anaconda3/lib -lz -L/opt/anaconda1anaconda2anaconda3/lib -llzma -lpthread -L/opt/anaconda1anaconda2anaconda3/lib -liconv -L/opt/anaconda1anaconda2anaconda3/lib -licui18n -licuuc -licudata -lm -lpthread -luuid  -L/opt/anaconda1anaconda2anaconda3/lib -lspatialite -lpcre   -L/opt/anaconda1anaconda2anaconda3/lib -lcurl -lssh2 -lssl -lcrypto -lssl -lcrypto -lz           -liconv  -L/opt/anaconda1anaconda2anaconda3/lib -lxml2 -L/opt/anaconda1anaconda2anaconda3/lib -lz -L/opt/anaconda1anaconda2anaconda3/lib -llzma -lpthread -L/opt/anaconda1anaconda2anaconda3/lib -liconv -L/opt/anaconda1anaconda2anaconda3/lib -licui18n -licuuc -licudata -lm   -L/opt/anaconda1anaconda2anaconda3/lib -lkea -L/opt/anaconda1anaconda2anaconda3/lib -lhdf5 -lhdf5_hl -lhdf5_cpp "
CONFIG_PREFIX="/opt/anaconda1anaconda2anaconda3"
CONFIG_CFLAGS="-I/opt/anaconda1anaconda2anaconda3/include"
CONFIG_DATA="/opt/anaconda1anaconda2anaconda3/share/gdal"
CONFIG_VERSION="2.2.2"
CONFIG_OGR_ENABLED=yes
CONFIG_GNM_ENABLED=yes
CONFIG_FORMATS=" gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map cals safe sentinel2 derived prf mrf wcs wms plmosaic wmts dods grib bsb openjpeg netcdf kea hdf5 hdf4 gif jpeg png pcraster  pcidsk rik ozi pdf rasterlite mbtiles postgisraster arg"
usage()
{
	cat <<EOF
Usage: gdal-config [OPTIONS]
Options:
	[--prefix[=DIR]]
	[--libs]
	[--dep-libs]
	[--cflags]
	[--datadir]
	[--version]
	[--ogr-enabled]
	[--gnm-enabled]
	[--formats]
EOF
	exit $1
}

if test $# -eq 0; then
	usage 1 1>&2
fi

case $1 in
  --libs)
    echo $CONFIG_LIBS
    ;;

  --dep-libs)
    echo $CONFIG_DEP_LIBS
    ;;

  --cflags)
    echo $CONFIG_CFLAGS
    ;;

  --datadir)
    echo $CONFIG_DATA
    ;;

  --prefix)
    echo $CONFIG_PREFIX
    ;;

  --version)
    echo $CONFIG_VERSION
    ;;

  --ogr-enabled)
    echo yes
    ;;

  --gnm-enabled)
    echo $CONFIG_GNM_ENABLED
    ;;

  --formats)
    echo $CONFIG_FORMATS
    ;;

  *)
    usage 1 1>&2
    ;;

esac
