www.pudn.com > opensrc-sipstack-phone.rar > sipX-config.in
#! /bin/sh
##
## @PACKAGE@-config
##
## Copyright (C) 2004 SIPfoundry Inc.
## Licensed by SIPfoundry under the LGPL license.
##
## Copyright (C) 2004, 2005 Pingtel Corp.
##
##
Action=PRINT
Info=""
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@
while [ $# -ne 0 ]
do
case ${1} in
--bin)
Info="${Info} @SIPX_BINDIR@"
;;
--include)
Info="${Info} @SIPX_INCDIR@"
;;
--lib)
Info="${Info} @SIPX_LIBDIR@"
;;
--host)
Info="${Info} @host@"
;;
--version)
Info="${Info} @VERSION@"
;;
--build)
Info="${Info} @SIPX_BUILDSTAMP@"
;;
--conf)
Info="${Info} @SIPX_CONFDIR@"
;;
--data)
Info="${Info} @SIPX_DATADIR@"
;;
--log)
Info="${Info} @SIPX_LOGDIR@"
;;
--run)
Info="${Info} @SIPX_RUNDIR@"
;;
--db)
Info="${Info} @SIPX_DBDIR@"
;;
--all)
Action=ALL
break
;;
--configopts)
Info="${Info} @CONFIGURE_OPTIONS@"
;;
--help)
Action=USAGE
break
;;
##
## handle an unknown switch
##
-*)
echo "Unknown switch '${1}'" 1>&2
Action=USAGE
;;
esac
shift # always consume 1
done
if [ "${Action}" = "PRINT" -a "${Info}" = "" ]
then
Action=USAGE
fi
case ${Action} in
USAGE)
cat <