2004-11-24 19:37:45 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
|
|
|
exec_prefix_set=no
|
|
|
|
|
|
|
|
usage="\
|
2004-11-25 12:21:09 -08:00
|
|
|
Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
|
2004-11-24 19:37:45 -08:00
|
|
|
|
|
|
|
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 @VERSION@
|
|
|
|
;;
|
|
|
|
--cflags)
|
2006-07-08 07:59:10 -07:00
|
|
|
includes="-I@prefix@/include/enlightenment"
|
2005-09-03 16:31:19 -07:00
|
|
|
echo $includes @e_cflags@
|
2004-11-24 19:37:45 -08:00
|
|
|
;;
|
|
|
|
--libs)
|
2006-07-08 07:59:10 -07:00
|
|
|
libdirs="-L@libdir@"
|
2004-11-24 19:37:45 -08:00
|
|
|
echo $libdirs
|
|
|
|
;;
|
2005-03-30 05:49:10 -08:00
|
|
|
--module-dir)
|
2005-06-09 15:24:36 -07:00
|
|
|
dir="@libdir@/@PACKAGE@/modules_extra"
|
|
|
|
echo $dir
|
|
|
|
;;
|
|
|
|
--config-apps-dir)
|
2006-06-11 03:23:49 -07:00
|
|
|
dir="@prefix@/share/@PACKAGE@/config-apps"
|
2005-03-30 05:49:10 -08:00
|
|
|
echo $dir
|
|
|
|
;;
|
2004-11-24 19:37:45 -08:00
|
|
|
*)
|
|
|
|
echo "${usage}" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|