Cross Reference: libusb-config
xref
: /
solaris-userland
/
components
/
libusb
/
wrapper
/
src
/
libusb-config
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
229
N/A
#!/
bin
/
sh
229
N/A
229
N/A
prefix
=/
usr
229
N/A
exec_prefix
=${
prefix
}
229
N/A
exec_prefix_set
=
no
229
N/A
229
N/A
usage
()
229
N/A
{
229
N/A
cat
<<EOF
229
N/A
Usage: libusb-config [OPTIONS] [LIBRARIES]
229
N/A
Options:
229
N/A
[--prefix[=DIR]]
229
N/A
[--exec-prefix[=DIR]]
229
N/A
[--version]
229
N/A
[--libs]
229
N/A
[--cflags]
229
N/A
EOF
229
N/A
exit
$
1
229
N/A
}
229
N/A
229
N/A
if
test
$# -
eq
0
;
then
229
N/A
usage
1
1
>&
2
229
N/A
fi
229
N/A
229
N/A
while
test
$# -
gt
0
;
do
229
N/A
case
"$1"
in
229
N/A
-*=*)
optarg
=
`
echo
"$1"
|
sed
's/[-_a-zA-Z0-9]*=//'
`
;;
229
N/A
*)
optarg
= ;;
229
N/A
esac
229
N/A
229
N/A
case
$
1
in
229
N/A
--
prefix
=*)
229
N/A
prefix
=
$optarg
229
N/A
if
test
$exec_prefix_set
=
no
;
then
229
N/A
exec_prefix
=
$optarg
229
N/A
fi
229
N/A
;;
229
N/A
--
prefix
)
229
N/A
echo_prefix
=
yes
229
N/A
;;
229
N/A
--
exec
-
prefix
=*)
229
N/A
exec_prefix
=
$optarg
229
N/A
exec_prefix_set
=
yes
229
N/A
;;
229
N/A
--
exec
-
prefix
)
229
N/A
echo_exec_prefix
=
yes
229
N/A
;;
229
N/A
--
version
)
229
N/A
echo
0.1
.
7
229
N/A
exit
0
229
N/A
;;
229
N/A
--
cflags
)
229
N/A
if
test
"${prefix}/include"
!= /
usr
/
include
;
then
229
N/A
includes
=
"-I${prefix}/include"
229
N/A
fi
229
N/A
echo_cflags
=
yes
229
N/A
;;
229
N/A
--
libs
)
229
N/A
echo_libs
=
yes
229
N/A
;;
229
N/A
*)
229
N/A
usage
1
1
>&
2
229
N/A
;;
229
N/A
esac
229
N/A
shift
229
N/A
done
229
N/A
229
N/A
if
test
"
$echo_prefix
"
=
"yes"
;
then
229
N/A
echo
$prefix
229
N/A
fi
229
N/A
if
test
"
$echo_exec_prefix
"
=
"yes"
;
then
229
N/A
echo
$exec_prefix
229
N/A
fi
229
N/A
if
test
"
$echo_cflags
"
=
"yes"
;
then
229
N/A
echo
$includes
229
N/A
fi
229
N/A
if
test
"
$echo_libs
"
=
"yes"
;
then
229
N/A
echo
-L${
exec_prefix
}/
lib
-
lusb
229
N/A
fi