gdal-config 713 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/sh
  2. CONFIG_LIBS="$OSGEO4W_ROOT_MSYS/lib/gdal_i.lib"
  3. CONFIG_DEP_LIBS="$OSGEO4W_ROOT_MSYS/lib/libpng13.lib $OSGEO4W_ROOT_MSYS/lib/zlib.lib"
  4. CONFIG_PREFIX="$OSGEO4W_ROOT_MSYS"
  5. CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
  6. CONFIG_OGR_ENABLED=yes
  7. usage()
  8. {
  9. cat <<EOF
  10. Usage: gdal-config [OPTIONS]
  11. Options:
  12. [--prefix[=DIR]]
  13. [--libs]
  14. [--dep-libs]
  15. [--cflags]
  16. [--ogr-enabled]
  17. EOF
  18. exit $1
  19. }
  20. if test $# -eq 0; then
  21. usage 1 1>&2
  22. fi
  23. case $1 in
  24. --libs)
  25. echo $CONFIG_LIBS
  26. ;;
  27. --dep-libs)
  28. echo $CONFIG_DEP_LIBS
  29. ;;
  30. --cflags)
  31. echo $CONFIG_CFLAGS
  32. ;;
  33. --prefix)
  34. echo $CONFIG_PREFIX
  35. ;;
  36. --ogr-enabled)
  37. echo $CONFIG_OGR_ENABLED
  38. ;;
  39. *)
  40. usage 1 1>&2
  41. ;;
  42. esac