Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 68 lines (60 sloc) 1.19 KB
#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
datarootdir="@datarootdir@"
bindir="@bindir@"
datadir="@datadir@"
CXX="@CXX@"
CXXFLAGS="@CPPFLAGS@ @MODFLAGS@ -I@prefix@/include"
MODLINK="@MODLINK@"
# LIBS="@LIBS@"
# No libs needed, ZNC links against $LIBS and thus modules don't need to.
LIBS=""
MODDIR="@MODDIR@"
DATADIR="@DATADIR@"
VERSION="@PACKAGE_VERSION@"
# Ugly cygwin stuff :(
LIBZNC="@LIBZNC@"
LIBZNCDIR="@LIBZNCDIR@"
if test "x" = "x$LIBZNC"; then
LIBZNCFLAGS=""
else
LIBZNCFLAGS="-L\"$LIBZNCDIR\" -lznc"
fi
if test -z "$1"; then
echo "USAGE: $0 <flag>"
echo " --cxx [$CXX]"
echo " --cflags [$CXXFLAGS]"
echo " --modlink [$MODLINK]"
echo " --libs [$LIBS]"
echo " --moddir [$MODDIR]"
echo " --datadir [$DATADIR]"
echo " --version [$VERSION]"
echo " --prefix [$prefix]"
echo " --libznc [$LIBZNCFLAGS]"
exit 1
fi
case $1 in
--cxx)
echo $CXX;;
--cflags)
echo $CXXFLAGS;;
--modlink)
echo $MODLINK;;
--include)
# Left here for backwards compatibility
;;
--libs)
echo $LIBS;;
--moddir)
echo $MODDIR;;
--datadir)
echo $DATADIR;;
--version)
echo $VERSION;;
--prefix)
echo $prefix;;
--libznc)
echo $LIBZNCFLAGS;;
esac
exit 0