ftdipp/CMakeLists.txt: remove VIM modline settings
[libftdi.git] / libftdi1-config.in
bloba3e205823da566bc67e9ef1ff258670dd353332b
1 #!/bin/sh
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 exec_prefix_set=no
7 usage()
9 cat <<EOF
10 Usage: libftdi1-config [OPTIONS] [LIBRARIES]
11 Options:
12 [--prefix[=DIR]]
13 [--exec-prefix[=DIR]]
14 [--version]
15 [--libs]
16 [--cflags]
17 EOF
18 exit $1
21 if test $# -eq 0; then
22 usage 1 1>&2
25 while test $# -gt 0; do
26 case "$1" in
27 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
28 *) optarg= ;;
29 esac
31 case $1 in
32 --prefix=*)
33 prefix=$optarg
34 if test $exec_prefix_set = no ; then
35 exec_prefix=$optarg
38 --prefix)
39 echo_prefix=yes
41 --exec-prefix=*)
42 exec_prefix=$optarg
43 exec_prefix_set=yes
45 --exec-prefix)
46 echo_exec_prefix=yes
48 --version)
49 echo @VERSION@
50 exit 0
52 --cflags)
53 if test "@includedir@" != /usr/include ; then
54 includes="-I@includedir@"
56 echo_cflags=yes
58 --libs)
59 echo_libs=yes
62 usage 1 1>&2
64 esac
65 shift
66 done
68 if test "$echo_prefix" = "yes"; then
69 echo $prefix
71 if test "$echo_exec_prefix" = "yes"; then
72 echo $exec_prefix
74 if test "$echo_cflags" = "yes"; then
75 echo $includes
77 if test "$echo_libs" = "yes"; then
78 echo -L@libdir@ -lftdi1 @LIBS@