rendered paste body#!/bin/sh
prefix=/opt/e17
exec_prefix=${prefix}
exec_prefix_set=no
source_dir=/home/paul/cvs/e17/libs/etk
usage="\
Usage: etk-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--build-dir]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 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=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo 0.1.0.003
;;
--cflags)
if test /opt/e17/include != /usr/include ; then
includes="-I/opt/e17/include"
fi
echo $includes -I/opt/e17/include -I/opt/e17/include -I/opt/e17/include -I$prefix/include/etk
;;
--libs)
libdirs=-L/opt/e17/lib
echo $libdirs -letk -L/opt/e17/lib -ledje -levas -L/opt/e17/lib -lecore_file -lecore -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn -ldl -lssl -lcrypto -lz -L/opt/e17/lib -levas
;;
--build-dir)
echo $source_dir
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
exit 0