This needs a recent version of pkg.m4. However, we provide a fallback if
not present.
Closes: #87
# Libevent
lldp_CHECK_LIBEVENT
+# Compatibility with pkg.m4 < 0.27
+m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
+ [AC_ARG_WITH([pkgconfigdir],
+ [AS_HELP_STRING([--with-pkgconfigdir],
+ [install directory for *.pc pkg-config file])],
+ [],[with_pkgconfigdir='$(libdir)/pkgconfig'])
+ AC_SUBST([pkgconfigdir], [${with_pkgconfigdir}])])
+
#######################
### Options
# -version-info format is `current`:`revision`:`age`. For more details, see:
# http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91
-pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = lldpctl.pc
TEMPLATES = lldpctl.pc