]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/libpng-config.in
Store property name and value in wxPropertyGridEvent, keep track of live event instan...
[wxWidgets.git] / src / png / scripts / libpng-config.in
1 #! /bin/sh
2
3 # libpng-config
4 # provides configuration info for libpng.
5
6 # Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson
7 # For conditions of distribution and use, see copyright notice in png.h
8
9 # Modeled after libxml-config.
10
11 version="@PNGLIB_VERSION@"
12 prefix="@prefix@"
13 exec_prefix="@exec_prefix@"
14 libdir="@libdir@"
15 includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
16 libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
17 all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
18 I_opts="-I${includedir}"
19 L_opts="-L${libdir}"
20 R_opts=""
21 cppflags=""
22 ccopts="@LIBPNG_NO_MMX@"
23 ldopts=""
24
25 usage()
26 {
27 cat <<EOF
28 Usage: $0 [OPTION] ...
29
30 Known values for OPTION are:
31
32 --prefix print libpng prefix
33 --libdir print path to directory containing library
34 --libs print library linking information
35 --ccopts print compiler options
36 --cppflags print pre-processor flags
37 --cflags print preprocessor flags, I_opts, and compiler options
38 --I_opts print "-I" include options
39 --L_opts print linker "-L" flags for dynamic linking
40 --R_opts print dynamic linker "-R" or "-rpath" flags
41 --ldopts print linker options
42 --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
43 --static revise subsequent outputs for static linking
44 --help print this help and exit
45 --version print version information
46 EOF
47
48 exit $1
49 }
50
51 if test $# -eq 0; then
52 usage 1
53 fi
54
55 while test $# -gt 0; do
56 case "$1" in
57
58 --prefix)
59 echo ${prefix}
60 ;;
61
62 --version)
63 echo ${version}
64 exit 0
65 ;;
66
67 --help)
68 usage 0
69 ;;
70
71 --ccopts)
72 echo ${ccopts}
73 ;;
74
75 --cppflags)
76 echo ${cppflags}
77 ;;
78
79 --cflags)
80 echo ${I_opts} ${cppflags} ${ccopts}
81 ;;
82
83 --libdir)
84 echo ${libdir}
85 ;;
86
87 --libs)
88 echo ${libs}
89 ;;
90
91 --I_opts)
92 echo ${I_opts}
93 ;;
94
95 --L_opts)
96 echo ${L_opts}
97 ;;
98
99 --R_opts)
100 echo ${R_opts}
101 ;;
102
103 --ldopts)
104 echo ${ldopts}
105 ;;
106
107 --ldflags)
108 echo ${ldopts} ${L_opts} ${R_opts} ${libs}
109 ;;
110
111 --static)
112 R_opts=""
113 libs=${all_libs}
114 ;;
115
116 *)
117 usage
118 exit 1
119 ;;
120 esac
121 shift
122 done
123
124 exit 0