Debian Codegraph @

scripts/avfs-config.in

raw
1 #!/bin/sh
2
3 # based on glib-config
4
5 prefix=@prefix@
6 exec_prefix=@exec_prefix@
7 exec_prefix_set=no
8
9 usage()
10 {
11 cat <<EOF
12 Usage: avfs-config [OPTIONS]
13 Options:
14 [--prefix[=DIR]]
15 [--exec-prefix[=DIR]]
16 [--version]
17 [--libs]
18 [--cflags]
19 EOF
20 exit $1
21 }
22
23 if test $# -eq 0; then
24 usage 1 1>&2
25 fi
26
27 while test $# -gt 0; do
28 case "$1" in
29 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
30 *) optarg= ;;
31 esac
32
33 case $1 in
34 --prefix=*)
35 prefix=$optarg
36 if test $exec_prefix_set = no ; then
37 exec_prefix=$optarg
38 fi
39 ;;
40 --prefix)
41 echo_prefix=yes
42 ;;
43 --exec-prefix=*)
44 exec_prefix=$optarg
45 exec_prefix_set=yes
46 ;;
47 --exec-prefix)
48 echo_exec_prefix=yes
49 ;;
50 --version)
51 echo @VERSION@
52 exit 0
53 ;;
54 --cflags)
55 echo_cflags=yes
56 ;;
57 --libs)
58 echo_libs=yes
59 ;;
60 *)
61 usage 1 1>&2
62 ;;
63 esac
64 shift
65 done
66
67 if test "$echo_prefix" = "yes"; then
68 echo $prefix
69 fi
70 if test "$echo_exec_prefix" = "yes"; then
71 echo $exec_prefix
72 fi
73 if test "$echo_cflags" = "yes"; then
74 echo -I@includedir@ @CPPFLAGS@
75 fi
76 if test "$echo_libs" = "yes"; then
77 echo -L@libdir@ -lavfs
78 fi