]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/libpng-config-body.in
supporting events also for root control (needed for event handling of mouse and paint...
[wxWidgets.git] / src / png / scripts / libpng-config-body.in
1
2 usage()
3 {
4 cat <<EOF
5 Usage: libpng-config [OPTION] ...
6
7 Known values for OPTION are:
8
9 --prefix print libpng prefix
10 --libs print library linking information
11 --cflags print compiler flags
12 --cppflags print pre-processor flags
13 --ldflags print loader flags
14 --rpath print path to shared library
15 --help display this help and exit
16 --version output version information
17 EOF
18
19 exit $1
20 }
21
22 if test $# -eq 0; then
23 usage 1
24 fi
25
26 while test $# -gt 0; do
27 case "$1" in
28
29 --prefix)
30 echo ${prefix}
31 ;;
32
33 --version)
34 echo ${version}
35 exit 0
36 ;;
37
38 --help)
39 usage 0
40 ;;
41
42 --cflags)
43 echo ${cflags}
44 ;;
45
46 --cppflags)
47 echo ${cppflags}
48 ;;
49
50 --libs)
51 echo ${libs}
52 ;;
53
54 --rpath)
55 echo ${rpath}
56 ;;
57
58 --ldflags)
59 echo ${ldflags}
60 ;;
61
62 *)
63 usage
64 exit 1
65 ;;
66 esac
67 shift
68 done
69
70 exit 0