pinball-config.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #! /bin/sh
  2. # @configure_input@
  3. #
  4. prefix=@prefix@
  5. exec_prefix=@exec_prefix@
  6. usage()
  7. {
  8. cat <<EOF
  9. Usage: pinball-config [OPTION]
  10. Options:
  11. [--version]
  12. [--libs]
  13. [--cflags]
  14. [--datadir]
  15. [--libdir]
  16. [--prefix]
  17. [--exec-prefix]
  18. EOF
  19. exit $1
  20. }
  21. if test $# -eq 0; then
  22. usage 1 1>&2
  23. fi
  24. while test $# -gt 0; do
  25. case $1 in
  26. --version)
  27. echo @PACKAGE_VERSION@
  28. ;;
  29. --cflags)
  30. echo_cflags=yes
  31. ;;
  32. --libs)
  33. echo_libs=yes
  34. ;;
  35. --datadir)
  36. echo_datadir=yes
  37. ;;
  38. --libdir)
  39. echo_libdir=yes
  40. ;;
  41. --prefix)
  42. echo_prefix=yes
  43. ;;
  44. --exec-prefix)
  45. echo_execprefix=yes
  46. ;;
  47. *)
  48. usage 1 1>&2
  49. ;;
  50. esac
  51. shift
  52. done
  53. if test "$echo_cflags" = "yes"; then
  54. echo -I@includedir@/pinball
  55. fi
  56. if test "$echo_libs" = "yes"; then
  57. echo -L@libdir@/pinball
  58. fi
  59. if test "$echo_datadir" = "yes"; then
  60. echo @datadir@/pinball
  61. fi
  62. if test "$echo_libdir" = "yes"; then
  63. echo @EM_LIBDIR@
  64. fi
  65. if test "$echo_prefix" = "yes"; then
  66. echo @prefix@
  67. fi
  68. if test "$echo_execprefix" = "yes"; then
  69. echo @execprefix@
  70. fi