summaryrefslogtreecommitdiff
path: root/gtk-config.in
blob: db0f4d3d7befbad5359a0903bf123c969caa0403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@

usage="\
Usage: gtk-config [--version] [--libs] [--cflags]"

if test $# -ne 1 ; then
   echo "${usage}" 1>&2
   exit 1
fi

case $1 in 
  --version)
    echo @GTK_VERSION@
    ;;
  --cflags)
    echo -I$libdir/glib/include -I@includedir@ @x_cflags@
    ;;
  --libs)
    echo -L@libdir@ @x_ldflags@ -lgtk -lgdk -lglib @x_libs@ -lm
    ;;
  *)
    echo "${usage}" 1>&2
    exit 1
    ;;
esac