Improve error reporting on init
[ocaml-augeas.git] / configure.ac
index e0b0f7a..48a1b07 100644 (file)
@@ -43,7 +43,13 @@ dnl Check for libxml2.
 PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])
 
 dnl Check for Augeas C library.
-PKG_CHECK_MODULES([AUGEAS], [augeas])
+PKG_CHECK_MODULES([AUGEAS], [augeas >= 1.2.0])
+
+dnl Check for aug_source function, added in Augeas 1.8.0.
+old_LIBS="$LIBS"
+LIBS="$AUGEAS_LIBS $LIBS"
+AC_CHECK_FUNCS([aug_source])
+LIBS="$old_LIBS"
 
 dnl Produce output files.
 AC_CONFIG_HEADERS([config.h])