2000-01-31 06:46:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
|
|
|
exec_prefix_set=no
|
|
|
|
|
|
|
|
usage="\
|
|
|
|
Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
|
|
|
|
|
|
|
|
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 `echo $prefix | grep -v -q '^/'` ; then
|
|
|
|
prefix=`pwd`/$prefix
|
|
|
|
fi
|
|
|
|
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 @VERSION@
|
|
|
|
;;
|
|
|
|
--cflags)
|
|
|
|
if test $prefix -ef @builddir@ ; then
|
2000-08-18 20:35:48 +00:00
|
|
|
includes=-I@builddir@
|
2000-01-31 06:46:18 +00:00
|
|
|
elif test @includedir@ != /usr/include ; then
|
2000-09-09 16:36:10 +00:00
|
|
|
includes=-I@includedir@
|
2000-01-31 06:46:18 +00:00
|
|
|
fi
|
2001-02-23 00:55:14 +00:00
|
|
|
echo $includes @CORE_CFLAGS@
|
2000-01-31 06:46:18 +00:00
|
|
|
;;
|
|
|
|
--libs)
|
|
|
|
if test $prefix -ef @builddir@ ; then
|
2001-02-23 00:55:14 +00:00
|
|
|
echo @builddir@/libgst.la @CORE_LIBS@
|
2000-01-31 06:46:18 +00:00
|
|
|
else
|
|
|
|
libdirs=-L@libdir@
|
2001-02-23 00:55:14 +00:00
|
|
|
echo $libdirs -lgst @CORE_LIBS@
|
2000-01-31 06:46:18 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "${usage}" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|