Files
libgtop/libgtop-config.in
Martin Baulig cfbe553724 This is a new generated file which will be included from <glibtop.h>. We
1999-05-12  Martin Baulig  <martin@home-of-linux.org>

	* glibtop-config.h: This is a new generated file which will be
	included from <glibtop.h>. We define things like `u_int64_t' and
	LIBGTOP_*_VERSION here so we can compile LibGTop applications with
	`libgtop-config --cflags`.

	* configure.in: Create glibtop-config.h.
	(GLIBTOP_*_INCS): Added `-I $(pkglibdir)/include'.

	* libgtop-config.h.in: Added `--cflags', `--libs' and `--extra-libs'
	parameter so you can now use LibGTop even in no-autoconf apps.

	* Makefile.am: Install `glibtop-config.h' in `$(pkglibdir)/include'.
1999-05-12 10:25:33 +00:00

47 lines
828 B
Bash

#!/bin/sh
usage="\
Usage: libgtop-config [--version] [--config] [--features-def-file] [--cflags] [--libs] [--extra-libs]"
config_file="@LIBGTOP_LIBDIR@/libgtopConf.sh"
. $config_file
features_def_file="@LIBGTOP_LIBDIR@/libgtop-features.def"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo $LIBGTOP_VERSION
;;
--config)
echo $config_file
;;
--features-def-file)
echo $features_def_file
;;
--cflags)
echo $LIBGTOP_INCS
;;
--libs)
echo $LIBGTOP_LIBS
;;
--extra-libs)
echo $LIBGTOP_EXTRA_LIBS
;;
*)
echo "${usage}" 1>&2
exit 1
esac
shift
done