Commit dceb7f19 authored by Lynn Garren's avatar Lynn Garren
Browse files

adding clhep-config

parent fe69ea71
......@@ -6,7 +6,7 @@ SUBDIRS = Units Vector Evaluator GenericFunctions Geometry \
Random Matrix RandomObjects HepPDT HepMC StdHep \
RefCount Cast Exceptions
bin_SCRIPTS = clheplib
bin_SCRIPTS = clheplib clhep-config
CLEANFILES = clheplib library-list $(LTCLHEPLIB)
......
#! /bin/sh
# @configure_input@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
usage()
{
cat <<EOF
Usage: clhep-config [OPTION]
Known values for OPTION are:
--prefix show installation prefix
--cxx print C++ compilation command
--cc print C compilation command
--cpp print pre-processor commands
--include print include path
--ldflags print linker flags
--libs print libraries to link against
--help display this help and exit
--version output version information
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
-*=*)
optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
;;
*)
optarg=
;;
esac
case "$1" in
--prefix)
echo @prefix@
;;
--version)
echo @PACKAGE_NAME@ @VERSION@
exit 0
;;
--help)
usage 0
;;
--cxx)
echo @CXX@ @AM_CXXFLAGS@ @CXXFLAGS@
;;
--cc)
echo @CC@ @CFLAGS@
;;
--cpp)
echo "CPP: " @CPP@ @CPPFLAGS@
echo "CXXCPP: " @CXXCPP@ @CPPFLAGS@
;;
--include)
echo -I@prefix@/include
;;
--ldflags)
echo @LDFLAGS@
;;
--libs)
echo -L@prefix@/lib -lCLHEP-@VERSION@ @LIBS@
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0
......@@ -48,6 +48,9 @@ AC_CONFIG_FILES([makeBinaryTar], [chmod +x makeBinaryTar])
# build clheplib
AC_CONFIG_FILES([build-clheplib], [chmod +x build-clheplib])
# Configuration inquiry program/script:
AC_CONFIG_FILES([clhep-config], [chmod +x clhep-config])
# ----------------------------------------------------------------------
# Capture post-install information:
# ----------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment