1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#!/bin/sh
#
# $Id: 163cf5b94b7319af72bd94742ae232744add868e $
#
MY_CFLAGS="@CFLAGS@"
MY_LDFLAGS="@LDFLAGS@"
MY_VERSION="@MAJOR@.@MINOR@.@BUILD@"
if test -z "$1"; then
cat <<EOF
Usage: pike-config [--cflags] [--ldflags] [--version]
--cflags Print the compiler flags required to compile a module
--ldflags Print the linker flags required to link a module
--version Print the pike version for which the compilation is taking
place
EOF
exit 1
fi
while true; do
if test -z "$1"; then
break
fi
case $1 in
--cflags) echo -n "${MY_CFLAGS} " ;;
--ldflags) echo -n "${MY_LDFLAGS} " ;;
--version) echo -n "${MY_VERSION} " ;;
esac
shift
done
echo
|