geos-config 681 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. usage()
  3. {
  4. cat <<EOF
  5. Usage: geos-config [OPTIONS]
  6. Options:
  7. [--prefix]
  8. [--libs]
  9. [--cflags]
  10. [--ldflags]
  11. [--includes]
  12. EOF
  13. exit $1
  14. }
  15. if test $# -eq 0; then
  16. usage 1 1>&2
  17. fi
  18. while test $# -gt 0; do
  19. case "$1" in
  20. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  21. *) optarg= ;;
  22. esac
  23. case $1 in
  24. --prefix)
  25. echo $OSGEO4W_ROOT_MSYS
  26. ;;
  27. --cflags)
  28. echo -I$OSGEO4W_ROOT_MSYS/include
  29. ;;
  30. --libs)
  31. echo $OSGEO4W_ROOT_MSYS/lib/geos_c.lib
  32. ;;
  33. --ldflags)
  34. echo
  35. ;;
  36. --includes)
  37. echo $OSGEO4W_ROOT_MSYS/include
  38. ;;
  39. *)
  40. usage 1 1>&2
  41. ;;
  42. esac
  43. shift
  44. done