You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
997 B

AC_INIT([liblutjanus], [0.0.0], [stefan@debxwoody.de])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile liblutjanus.pc])
LT_INIT
AC_PROG_CC
PKG_PROG_PKG_CONFIG
# glib 2.58.3
PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.58.3],
[LIBS="$glib_LIBS $LIBS" CFLAGS="$CFLAGS $glib_CFLAGS"],
[AC_MSG_ERROR([glib >= 2.58.3 not found - Install libglib2.0-dev])])
# libstrophe 0.10.0
PKG_CHECK_MODULES([libstrophe], [libstrophe >= 0.10.0],
[LIBS="$libstrophe_LIBS $LIBS" CFLAGS="$CFLAGS $libstrophe_CFLAGS" AC_DEFINE([HAVE_LIBSTROPHE], [1], [libstrophe])],
[AC_MSG_ERROR([libstrophe in version >= 0.10.0 not found - Install libstrophe-dev])])
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
[AC_ARG_WITH([pkgconfigdir],
[AS_HELP_STRING([--with-pkgconfigdir],
[install directory for liblutjanus.pc pkg-config file])],
[], [with_pkgconfigdir='$(libdir)/pkgconfig'])
AC_SUBST([pkgconfigdir], [${with_pkgconfigdir}])])
AC_OUTPUT