summaryrefslogtreecommitdiffstats
path: root/config.m4
blob: abff0a98c84d69fd6620dcdd0aa6a4f719781b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl config.m4 for extension rpminfo

PHP_ARG_ENABLE(rpminfo, whether to enable rpminfo support,
   [  --enable-rpminfo        Enable rpminfo support])

if test "$PHP_RPMINFO" != "no"; then

  PKG_CHECK_MODULES([LIBRPM], [rpm >= 4.13])

  PHP_EVAL_LIBLINE($LIBRPM_LIBS, RPMINFO_SHARED_LIBADD)
  PHP_EVAL_INCLINE($LIBRPM_CFLAGS)

  PHP_SUBST(RPMINFO_SHARED_LIBADD)

  PHP_NEW_EXTENSION(rpminfo, rpminfo.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi