1998-03-12 23:23:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
1998-03-14 06:42:39 +00:00
|
|
|
libdir=@libdir@
|
1998-03-12 23:23:43 +00:00
|
|
|
|
|
|
|
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)
|
1998-03-14 06:42:39 +00:00
|
|
|
echo -I$libdir/glib/include -I@includedir@ @x_cflags@
|
1998-03-12 23:23:43 +00:00
|
|
|
;;
|
|
|
|
--libs)
|
|
|
|
echo -L@libdir@ @x_ldflags@ -lgtk -lgdk -lglib @x_libs@ -lm
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "${usage}" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|