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