ta-lib-config 443 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 0.4.0
  12. ;;
  13. --cflags)
  14. echo -I${prefix}/include/ta-lib -DHAVE_CONFIG_H
  15. ;;
  16. --libs)
  17. echo -L${exec_prefix}/lib -lpthread -ldl
  18. ;;
  19. *)
  20. echo "${usage}" 1>&2
  21. exit 1
  22. ;;
  23. esac
  24. shift
  25. done