mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 23:40:33 +01:00
build: add configure check that we have perl and xstlproc for introspection
With --enable-introspection we generate various targets that either require perl or xsltproc. Error out when building with introspection enabled but the programs are not found.
This commit is contained in:
parent
468127ca69
commit
86278ebd2e
1 changed files with 8 additions and 2 deletions
10
configure.ac
10
configure.ac
|
|
@ -1142,8 +1142,14 @@ if test -n "$INTROSPECTION_MAKEFILE"; then
|
|||
AC_MSG_ERROR(["--enable-introspection aims to build the settings documentation. This requires GObject introspection for python (pygobject)])
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(PERL, perl, no)
|
||||
AC_PATH_PROG(XSLTPROC, xsltproc, no)
|
||||
AC_PATH_PROG(PERL, perl)
|
||||
if test -z "$PERL"; then
|
||||
AC_MSG_ERROR([--enable-introspection requires perl])
|
||||
fi
|
||||
AC_PATH_PROG(XSLTPROC, xsltproc)
|
||||
if test -z "$XSLTPROC"; then
|
||||
AC_MSG_ERROR([--enable-introspection requires xsltproc])
|
||||
fi
|
||||
|
||||
have_introspection=yes
|
||||
if test "$enable_gtk_doc" = "yes"; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue