jemalloc-config.in 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #!/bin/sh
  2. usage() {
  3. cat <<EOF
  4. Usage:
  5. @BINDIR@/jemalloc-config <option>
  6. Options:
  7. --help | -h : Print usage.
  8. --version : Print jemalloc version.
  9. --revision : Print shared library revision number.
  10. --config : Print configure options used to build jemalloc.
  11. --prefix : Print installation directory prefix.
  12. --bindir : Print binary installation directory.
  13. --datadir : Print data installation directory.
  14. --includedir : Print include installation directory.
  15. --libdir : Print library installation directory.
  16. --mandir : Print manual page installation directory.
  17. --cc : Print compiler used to build jemalloc.
  18. --cflags : Print compiler flags used to build jemalloc.
  19. --cppflags : Print preprocessor flags used to build jemalloc.
  20. --ldflags : Print library flags used to build jemalloc.
  21. --libs : Print libraries jemalloc was linked against.
  22. EOF
  23. }
  24. prefix="@prefix@"
  25. exec_prefix="@exec_prefix@"
  26. case "$1" in
  27. --help | -h)
  28. usage
  29. exit 0
  30. ;;
  31. --version)
  32. echo "@jemalloc_version@"
  33. ;;
  34. --revision)
  35. echo "@rev@"
  36. ;;
  37. --config)
  38. echo "@CONFIG@"
  39. ;;
  40. --prefix)
  41. echo "@PREFIX@"
  42. ;;
  43. --bindir)
  44. echo "@BINDIR@"
  45. ;;
  46. --datadir)
  47. echo "@DATADIR@"
  48. ;;
  49. --includedir)
  50. echo "@INCLUDEDIR@"
  51. ;;
  52. --libdir)
  53. echo "@LIBDIR@"
  54. ;;
  55. --mandir)
  56. echo "@MANDIR@"
  57. ;;
  58. --cc)
  59. echo "@CC@"
  60. ;;
  61. --cflags)
  62. echo "@CFLAGS@"
  63. ;;
  64. --cppflags)
  65. echo "@CPPFLAGS@"
  66. ;;
  67. --ldflags)
  68. echo "@LDFLAGS@ @EXTRA_LDFLAGS@"
  69. ;;
  70. --libs)
  71. echo "@LIBS@"
  72. ;;
  73. *)
  74. usage
  75. exit 1
  76. esac