Remove .gitignore do nothing is ignored.
[synfig.git] / gtkmm-osx / trunk / libpng-1.2.5 / libpng-config
1 #! /bin/sh
2
3 # libpng-config
4 # provides configuration info for libpng.
5
6 # Copyright (C) 2002 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=1.2.5
12 prefix=""
13 libdir=""
14 libs=""
15 I_opts=""
16 L_opts=""
17 R_opts=""
18 cppflags=""
19 ccopts=""
20 ldopts=""
21
22 prefix="/Users/darco/Projects/GTK/output"
23 I_opts="-I/Users/darco/Projects/GTK/output/include/libpng12"
24 L_opts="-L/Users/darco/Projects/GTK/output/lib"
25 libs="-lpng12 -lz"
26
27 usage()
28 {
29     cat <<EOF
30 Usage: libpng-config [OPTION] ...
31
32 Known values for OPTION are:
33
34   --prefix        print libpng prefix
35   --libdir        print path to directory containing library
36   --libs          print library linking information
37   --ccopts        print compiler options
38   --cppflags      print pre-processor flags
39   --cflags        print preprocessor flags, I_opts, and compiler options
40   --I_opts        print "-I" include options
41   --L_opts        print linker "-L" flags for dynamic linking
42   --R_opts        print dynamic linker "-R" or "-rpath" flags
43   --ldopts        print linker options
44   --ldflags       print linker flags (ldopts, L_opts, R_opts, and libs)
45   --static        revise subsequent outputs for static linking
46   --help          print this help and exit
47   --version       print version information
48 EOF
49
50     exit $1
51 }
52
53 if test $# -eq 0; then
54     usage 1
55 fi
56
57 while test $# -gt 0; do
58     case "$1" in
59
60     --prefix)
61         echo ${prefix}
62         ;;
63
64     --version)
65         echo ${version}
66         exit 0
67         ;;
68
69     --help)
70         usage 0
71         ;;
72
73     --ccopts)
74         echo ${ccopts}
75         ;;
76
77     --cppflags)
78         echo ${cppflags}
79         ;;
80
81     --cflags)
82         echo ${I_opts} ${cppflags} ${ccopts}
83         ;;
84
85     --libdir)
86         echo ${libdir}
87         ;;
88
89     --libs)
90         echo ${libs}
91         ;;
92
93     --I_opts)
94         echo ${I_opts}
95         ;;
96
97     --L_opts)
98         echo ${L_opts}
99         ;;
100
101     --R_opts)
102         echo ${R_opts}
103         ;;
104
105     --ldflags)
106         echo ${ldflags} ${L_opts} ${R_opts} ${libs}
107         ;;
108
109     --static)
110         R_opts=""
111         ;;
112
113     *)
114         usage
115         exit 1
116         ;;
117     esac
118     shift
119 done
120
121 exit 0