synfig-config.in 1.2 KB

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