annotate m4/gift-pkgconfig.m4 @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
rev   line source
paulo@0 1 ###############################################################################
paulo@0 2 ## $Id: gift-pkgconfig.m4,v 1.4 2003/09/04 06:56:24 hipnod Exp $
paulo@0 3 ###############################################################################
paulo@0 4
paulo@0 5 AC_DEFUN([GIFT_PLUGIN_PKGCONFIG],
paulo@0 6 [AC_PATH_PROG(PKG_CONFIG, pkg-config)
paulo@0 7
paulo@0 8 if test x$prefix != xNONE; then
paulo@0 9 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"
paulo@0 10 fi
paulo@0 11
paulo@0 12 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
paulo@0 13 export PKG_CONFIG_PATH
paulo@0 14
paulo@0 15 PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3)
paulo@0 16
paulo@0 17 # fudge libgiftproto in there which doesnt have any pkg-config entry
paulo@0 18 AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto")
paulo@0 19
paulo@0 20 # hack to set libgift_version
paulo@0 21 libgift_version=`pkg-config libgift --modversion`
paulo@0 22
paulo@0 23 AC_SUBST($1_CFLAGS)
paulo@0 24 AC_SUBST($1_LIBS)
paulo@0 25 ])