Added expat header check

This commit is contained in:
James Booth
2015-05-17 23:03:04 +01:00
parent e2a86ed678
commit da6bf143c7

View File

@@ -15,7 +15,9 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.26], [],
[AC_MSG_ERROR([glib 2.26 or higher is required])])
PKG_CHECK_MODULES([expat], [expat >= 2.0.0], [],
[AC_MSG_ERROR([expat 2.0.0 or higher is required])])
[AC_CHECK_HEADER([expat.h],
[expat_LIBS="-lexpat"],
[AC_MSG_ERROR([expat 2.0.0 or higher is required])])])
AC_CHECK_LIB([pthread], [main], [],
[AC_MSG_ERROR([pthread is required])])