#!/bin/sh

usage() {
	cat <<EOF
Usage:
  /opt/anaconda1anaconda2anaconda3/bin/jemalloc-config <option>
Options:
  --help | -h  : Print usage.
  --version    : Print jemalloc version.
  --revision   : Print shared library revision number.
  --config     : Print configure options used to build jemalloc.
  --prefix     : Print installation directory prefix.
  --bindir     : Print binary installation directory.
  --datadir    : Print data installation directory.
  --includedir : Print include installation directory.
  --libdir     : Print library installation directory.
  --mandir     : Print manual page installation directory.
  --cc         : Print compiler used to build jemalloc.
  --cflags     : Print compiler flags used to build jemalloc.
  --cppflags   : Print preprocessor flags used to build jemalloc.
  --cxxflags   : Print C++ compiler flags used to build jemalloc.
  --ldflags    : Print library flags used to build jemalloc.
  --libs       : Print libraries jemalloc was linked against.
EOF
}

prefix="/opt/anaconda1anaconda2anaconda3"
exec_prefix="/opt/anaconda1anaconda2anaconda3"

case "$1" in
--help | -h)
	usage
	exit 0
	;;
--version)
	echo "5.0.1-0-g896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb"
	;;
--revision)
	echo "2"
	;;
--config)
	echo "--prefix=/opt/anaconda1anaconda2anaconda3 --build=x86_64-apple-darwin13.4.0 --host=x86_64-apple-darwin13.4.0 build_alias=x86_64-apple-darwin13.4.0 host_alias=x86_64-apple-darwin13.4.0 CC=x86_64-apple-darwin13.4.0-clang 'CFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/opt/anaconda1anaconda2anaconda3/include' 'LDFLAGS=-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/anaconda1anaconda2anaconda3/lib -L/opt/anaconda1anaconda2anaconda3/lib -Wl,-rpath,/opt/anaconda1anaconda2anaconda3/lib' 'CPPFLAGS=-D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9' CXX=x86_64-apple-darwin13.4.0-clang++ 'CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -I/opt/anaconda1anaconda2anaconda3/include'"
	;;
--prefix)
	echo "/opt/anaconda1anaconda2anaconda3"
	;;
--bindir)
	echo "/opt/anaconda1anaconda2anaconda3/bin"
	;;
--datadir)
	echo "/opt/anaconda1anaconda2anaconda3/share"
	;;
--includedir)
	echo "/opt/anaconda1anaconda2anaconda3/include"
	;;
--libdir)
	echo "/opt/anaconda1anaconda2anaconda3/lib"
	;;
--mandir)
	echo "/opt/anaconda1anaconda2anaconda3/share/man"
	;;
--cc)
	echo "x86_64-apple-darwin13.4.0-clang"
	;;
--cflags)
	echo "-std=gnu11 -Wall -Wshorten-64-to-32 -Wsign-compare -Wundef -pipe -g3 -O3 -funroll-loops -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/opt/anaconda1anaconda2anaconda3/include"
	;;
--cppflags)
	echo "-D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -D_REENTRANT"
	;;
--cxxflags)
	echo "-Wall -g3 -O3 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -I/opt/anaconda1anaconda2anaconda3/include"
	;;
--ldflags)
	echo "-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/anaconda1anaconda2anaconda3/lib -L/opt/anaconda1anaconda2anaconda3/lib -Wl,-rpath,/opt/anaconda1anaconda2anaconda3/lib "
	;;
--libs)
	echo "-lstdc++ -lpthread"
	;;
*)
	usage
	exit 1
esac
