229N/A#!/bin/sh
229N/A
229N/Aprefix=/usr
229N/Aexec_prefix=${prefix}
229N/Aexec_prefix_set=no
229N/A
229N/Ausage()
229N/A{
229N/A cat <<EOF
229N/AUsage: libusb-config [OPTIONS] [LIBRARIES]
229N/AOptions:
229N/A [--prefix[=DIR]]
229N/A [--exec-prefix[=DIR]]
229N/A [--version]
229N/A [--libs]
229N/A [--cflags]
229N/AEOF
229N/A exit $1
229N/A}
229N/A
229N/Aif test $# -eq 0; then
229N/A usage 1 1>&2
229N/Afi
229N/A
229N/Awhile test $# -gt 0; do
229N/A case "$1" in
229N/A -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
229N/A *) optarg= ;;
229N/A esac
229N/A
229N/A case $1 in
229N/A --prefix=*)
229N/A prefix=$optarg
229N/A if test $exec_prefix_set = no ; then
229N/A exec_prefix=$optarg
229N/A fi
229N/A ;;
229N/A --prefix)
229N/A echo_prefix=yes
229N/A ;;
229N/A --exec-prefix=*)
229N/A exec_prefix=$optarg
229N/A exec_prefix_set=yes
229N/A ;;
229N/A --exec-prefix)
229N/A echo_exec_prefix=yes
229N/A ;;
229N/A --version)
229N/A echo 0.1.7
229N/A exit 0
229N/A ;;
229N/A --cflags)
229N/A if test "${prefix}/include" != /usr/include ; then
229N/A includes="-I${prefix}/include"
229N/A fi
229N/A echo_cflags=yes
229N/A ;;
229N/A --libs)
229N/A echo_libs=yes
229N/A ;;
229N/A *)
229N/A usage 1 1>&2
229N/A ;;
229N/A esac
229N/A shift
229N/Adone
229N/A
229N/Aif test "$echo_prefix" = "yes"; then
229N/A echo $prefix
229N/Afi
229N/Aif test "$echo_exec_prefix" = "yes"; then
229N/A echo $exec_prefix
229N/Afi
229N/Aif test "$echo_cflags" = "yes"; then
229N/A echo $includes
229N/Afi
229N/Aif test "$echo_libs" = "yes"; then
229N/A echo -L${exec_prefix}/lib -lusb
229N/Afi