ta-lib-config.in 414 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. usage="\
  3. Usage: ta-lib-config [--version] [--libs] [--cflags]"
  4. if test $# -eq 0; then
  5. echo "${usage}" 1>&2
  6. exit 1
  7. fi
  8. while test $# -gt 0; do
  9. case $1 in
  10. --version)
  11. echo @VERSION@
  12. ;;
  13. --cflags)
  14. echo -I@includedir@/ta-lib @DEFS@
  15. ;;
  16. --libs)
  17. echo -L@libdir@ @LIBS@
  18. ;;
  19. *)
  20. echo "${usage}" 1>&2
  21. exit 1
  22. ;;
  23. esac
  24. shift
  25. done