#!/bin/sh
#
# Posadis configure script
#
# Copyright (C) Meilof Veeningen, 2003
#
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage()
{
cat <<EOF
Usage: posadis-config [OPTIONS] [LIBRARIES]
Options:
[--version] Print version info
[--libs] Print linker flags
[--cflags] Print compiler flags
[--libdir] Print posadis lib dir
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo @VERSION@
;;
--cflags)
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
--libdir)
echo_libdir=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
CMD=
if test "$echo_cflags" = "yes"; then
CMD="$CMD @poslib_srvcxxflags@ -I@includedir@/posadis-@VERSION@ -I@libdir@/posadis-@VERSION@/include/ -funsigned-char"
fi
if test "$echo_libdir" = "yes"; then
CMD="@LIBDIR@"
fi
#if test "$echo_libs" = "yes"; then
# CMD="$CMD"
#fi
echo $CMD
syntax highlighted by Code2HTML, v. 0.9.1