X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=87c82006912f2b29d72d84104150719462a99430;hb=52f19651f661aec496aea1ba0cfc694db848cfc3;hp=70be87c871192b595dcab64c944f53a1c70b0763;hpb=9bbc25801ddd8c30d731a7baeac46fc5e7d65881;p=sort-networks.git diff --git a/configure.ac b/configure.ac index 70be87c..87c8200 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_PREREQ([2.65]) +AC_PREREQ([2.61]) AC_INIT([libsortnetwork], [1.0.0], [ff@octo.it]) AC_CONFIG_SRCDIR([src/sn_network.c]) AC_CONFIG_HEADERS([src/config.h]) @@ -14,11 +14,10 @@ AC_PROG_INSTALL AM_PROG_CC_C_O AC_DISABLE_STATIC AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG # Libtool stuff -LT_CONFIG_LTDL_DIR([libltdl]) LT_INIT -LTDL_INIT if test "x$GCC" = "xyes" then @@ -110,6 +109,15 @@ AC_SUBST(LIBPOPULATION_LIBS) AM_CONDITIONAL(BUILD_WITH_LIBPOPULATION, test "x$with_libpopulation" = "xyes") # }}} --with-libpopulation +PKG_CHECK_MODULES([glib], [glib-2.0], + [have_libglib="yes"], + [have_libglib="no"]) + +if test "x$have_libglib" != "xyes" +then + AC_MSG_ERROR([The GLib library could not be found. It is required when building libsortnetwork!]) +fi + AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT