gtk/gtk-config.in
Owen Taylor 27c086bd95 Added trailing newline, hopefully will fix the problem with esac
Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk-config.in: Added trailing newline, hopefully will
	  fix the problem with esac disappearing.

	* gtk/Makefile.am (test-debug): Improved test targets
	  will work with --enable-shared
    	    [From:  Raja R Harinath  <harinath@cs.umn.edu>]

  	* gtk.m4: Not all shells understand $(...).  Use `...` instead.
    	    [From:  Raja R Harinath  <harinath@cs.umn.edu>]
	- use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
	  can specify programs not in their path.

	* Makefile.am: added gtk.m4 to EXTRA_DIST
1998-03-16 06:36:05 +00:00

30 lines
459 B
Bash

#!/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