source: mod_gnutls/m4/librsvg.m4 @ abce298

debian/masterdebian/stretch-backportsjessie-backportsmsvaupstream
Last change on this file since abce298 was abce298, checked in by Nokis Mavrogiannopoulos <nmav@…>, 12 years ago

added new m4 directory

  • Property mode set to 100644
File size: 850 bytes
Line 
1dnl Check for librsvg libraries
2dnl CHECK_RSVG(MINIMUM-VERSION, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
3AC_DEFUN([CHECK_RSVG],
4[dnl
5
6pname=librsvg-2.0
7
8AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
9
10if test x$PKG_CONFIG = xno ; then
11  ifelse([$3], , AC_MSG_ERROR([pkg-config not found. pkg-config is required for librsvg]), $3)
12fi
13
14AC_MSG_CHECKING(for librsvg - version >= $1)
15
16if $PKG_CONFIG --atleast-version=$1 $pname; then
17  RSVG_LDFLAGS=`$PKG_CONFIG $pname --libs-only-L`
18  RSVG_LIBS=`$PKG_CONFIG $pname --libs-only-l --libs-only-other`
19  RSVG_CFLAGS=`$PKG_CONFIG $pname --cflags`
20  RSVG_VERSION=`$PKG_CONFIG $pname --modversion`
21  AC_SUBST(RSVG_LDFLAGS)
22  AC_SUBST(RSVG_LIBS)
23  AC_SUBST(RSVG_CFLAGS)
24  AC_SUBST(RSVG_VERSION)
25  ifelse([$2], , AC_MSG_RESULT([yes]), $2)
26else
27  ifelse([$3], , AC_MSG_ERROR([librsvg >=$1 is not installed.]), $3)
28fi
29])
Note: See TracBrowser for help on using the repository browser.