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