mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-11 04:28:09 -05:00
Make expat a dependency to the scanner
This commit is contained in:
parent
4c260db68c
commit
f2665e21ce
1 changed files with 7 additions and 5 deletions
12
configure.ac
12
configure.ac
|
|
@ -40,11 +40,13 @@ AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
|
|||
[ expat=$withval
|
||||
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
||||
LDFLAGS="$LDFLAGS -L$withval/lib" ] )
|
||||
AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
|
||||
[AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
|
||||
AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
|
||||
[AC_MSG_ERROR([Can't find expat library. Please install expat.])])
|
||||
AC_SUBST(EXPAT_LIBS)
|
||||
if test "x$enable_scanner" = "xyes"; then
|
||||
AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
|
||||
[AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
|
||||
AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
|
||||
[AC_MSG_ERROR([Can't find expat library. Please install expat.])])
|
||||
AC_SUBST(EXPAT_LIBS)
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
wayland-scanner.m4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue