]> Pileus Git - ~andy/gtk/blob - gtk-config.in
Added trailing newline, hopefully will fix the problem with esac
[~andy/gtk] / gtk-config.in
1 #!/bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 libdir=@libdir@
6
7 usage="\
8 Usage: gtk-config [--version] [--libs] [--cflags]"
9
10 if test $# -ne 1 ; then
11    echo "${usage}" 1>&2
12    exit 1
13 fi
14
15 case $1 in 
16   --version)
17     echo @GTK_VERSION@
18     ;;
19   --cflags)
20     echo -I$libdir/glib/include -I@includedir@ @x_cflags@
21     ;;
22   --libs)
23     echo -L@libdir@ @x_ldflags@ -lgtk -lgdk -lglib @x_libs@ -lm
24     ;;
25   *)
26     echo "${usage}" 1>&2
27     exit 1
28     ;;
29 esac