diff --git a/configure.ac b/configure.ac
index 266bfa398c5451e3b180c641d60e9684e1bf06fc..872e89ea923dad82c9c1d3de4959186e0e82599b 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_SUBST(LIBOPING_PATCH)
# ABI version
-LIBOPING_CURRENT=2
-LIBOPING_REVISION=11
-LIBOPING_AGE=2
+LIBOPING_CURRENT=3
+LIBOPING_REVISION=0
+LIBOPING_AGE=3
AC_SUBST(LIBOPING_CURRENT)
AC_SUBST(LIBOPING_REVISION)
AC_SUBST(LIBOPING_AGE)
LT_INIT([dlopen])
# pkg-config interface
-PKG_INSTALLDIR
+# PKG_INSTALLDIR is only available for pkg-config >= 0.27
+m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [])
AC_ARG_WITH(pkgconfigdir,
AC_HELP_STRING([--with-pkgconfigdir], [Use the specified pkgconfig dir (default is libdir/pkgconfig)]),
AC_SEARCH_LIBS([nanosleep],[rt],[],
[AC_MSG_ERROR([cannot find nanosleep])])
-AC_SEARCH_LIBS([clock_gettime],[rt],[],
- [AC_MSG_ERROR([cannot find clock_gettime])])
AC_ARG_WITH(ncurses, AS_HELP_STRING([--with-ncurses], [Build oping CLI tool with ncurses support]))
AS_IF([test "x$with_ncurses" != "xno"], [