Legacy patches to compile MCFM-8.3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.4 KiB

#! /usr/bin/env bash
# These variables need to exist
prefix=@prefix@
exec_prefix=@exec_prefix@
if [[ $# -eq 0 || -n $( echo $* | egrep -- "--help|-h" ) ]]; then
echo
echo "qcdloop-config: configuration tool for qcdloop"
echo
echo "Usage: qcdloop-config [[--help|-h] | [--prefix] | [--ldflags]]"
echo "Options:"
echo " --help | -h : show this help message"
echo " --prefix : show the installation prefix (cf. autoconf)"
echo " --incdir : show the path to the qcdloop header directory (for C++ interface)"
echo " --libdir : show the path to the qcdloop library directory"
echo " --cppflags : get compiler flags for use with the C preprocessor stage of C++ compilation"
echo " --ldflags : get compiler flags for use with the linker stage of any compilation"
echo " --version : returns qcdloop release version number"
fi
OUT=""
tmp=$( echo "$*" | egrep -- '--\<prefix\>')
test -n "$tmp" && OUT="$OUT @prefix@"
tmp=$( echo "$*" | egrep -- '--\<incdir\>')
test -n "$tmp" && OUT="$OUT @includedir@"
tmp=$( echo "$*" | egrep -- '--\<cppflags\>')
test -n "$tmp" && OUT="$OUT -I@includedir@"
tmp=$( echo "$*" | egrep -- '--\<libdir\>')
test -n "$tmp" && OUT="$OUT @libdir@"
tmp=$( echo "$*" | egrep -- '--\<ldflags\>')
test -n "$tmp" && OUT="$OUT -L@libdir@ -lqcdloop -lquadmath"
## Version
tmp=$( echo "$*" | egrep -- '--\<version\>')
test -n "$tmp" && OUT="$OUT @PACKAGE_VERSION@"
echo $OUT