ETL-config.in 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/sh
  2. VERSION=@VERSION@
  3. PACKAGE=@PACKAGE@
  4. usage()
  5. {
  6. cat <<EOF
  7. Usage: ETL-config [OPTION]...
  8. Generic options
  9. --version print installed version of ETL.
  10. --help display this help and exit.
  11. Compilation support options
  12. --cflags print pre-processor and compiler flags
  13. --libs print library linking information
  14. Install directories
  15. --prefix --exec-prefix --bindir --libexecdir --datadir
  16. --sysconfdir --sharedstatedir --localstatedir --libdir --infodir
  17. --mandir --includedir
  18. EOF
  19. exit $1
  20. }
  21. if test $# -eq 0; then
  22. usage 1
  23. fi
  24. case $1 in
  25. --version)
  26. echo $PACKAGE $VERSION
  27. exit 0
  28. ;;
  29. --exec-prefix)
  30. pkg-config --variable=exec_prefix ETL
  31. exit 0
  32. ;;
  33. --prefix)
  34. pkg-config --variable=prefix ETL
  35. exit 0
  36. ;;
  37. --help)
  38. usage 0
  39. ;;
  40. --cxxflags)
  41. pkg-config --cflags ETL
  42. exit 0
  43. ;;
  44. --cflags)
  45. pkg-config --cflags ETL
  46. exit 0
  47. ;;
  48. --libs)
  49. pkg-config --libs ETL
  50. exit 0
  51. ;;
  52. esac
  53. echo Unknown option "$1"
  54. exit 4