Skip to content

Commit

Permalink
Check if $with_libxml2/bin/xml2-config exists and is executable
Browse files Browse the repository at this point in the history
Otherwise we rely on it and fail to get data from it. Not all our
builds provide xml2-config even when they use
'--with-libxml2=/var/cfengine'.

Ticket: ENT-9070
Changelog: None
  • Loading branch information
vpodzime committed Aug 15, 2022
1 parent 59a4e50 commit 1c7eac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ if test "x$with_libxml2" != "xno"; then
fi

if test "x$have_libxml2" = "xno"; then
if test "x$with_libxml2" != "xyes" && test "x$with_libxml2" != "xcheck"
if test "x$with_libxml2" != "xyes" &&
test "x$with_libxml2" != "xcheck" &&
test -x "$with_libxml2/bin/xml2-config"
then
XML2_CONFIG=$with_libxml2/bin/xml2-config
else
Expand Down

0 comments on commit 1c7eac9

Please sign in to comment.