2
0

jemalloc-config.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. --cxxflags : Print C++ compiler flags used to build jemalloc.
  21. --ldflags : Print library flags used to build jemalloc.
  22. --libs : Print libraries jemalloc was linked against.
  23. EOF
  24. }
  25. prefix="@prefix@"
  26. exec_prefix="@exec_prefix@"
  27. case "$1" in
  28. --help | -h)
  29. usage
  30. exit 0
  31. ;;
  32. --version)
  33. echo "@jemalloc_version@"
  34. ;;
  35. --revision)
  36. echo "@rev@"
  37. ;;
  38. --config)
  39. echo "@CONFIG@"
  40. ;;
  41. --prefix)
  42. echo "@PREFIX@"
  43. ;;
  44. --bindir)
  45. echo "@BINDIR@"
  46. ;;
  47. --datadir)
  48. echo "@DATADIR@"
  49. ;;
  50. --includedir)
  51. echo "@INCLUDEDIR@"
  52. ;;
  53. --libdir)
  54. echo "@LIBDIR@"
  55. ;;
  56. --mandir)
  57. echo "@MANDIR@"
  58. ;;
  59. --cc)
  60. echo "@CC@"
  61. ;;
  62. --cflags)
  63. echo "@CFLAGS@"
  64. ;;
  65. --cppflags)
  66. echo "@CPPFLAGS@"
  67. ;;
  68. --cxxflags)
  69. echo "@CXXFLAGS@"
  70. ;;
  71. --ldflags)
  72. echo "@LDFLAGS@ @EXTRA_LDFLAGS@"
  73. ;;
  74. --libs)
  75. echo "@LIBS@"
  76. ;;
  77. *)
  78. usage
  79. exit 1
  80. esac