Skip to content

Commit

Permalink
BuildSystem: In OpenBSD, xmlstarlet is xml.
Browse files Browse the repository at this point in the history
ASTERISK-27593

Change-Id: I1c7087f7f7582e40b3312c690d912c9a86466805
  • Loading branch information
traud committed Jan 17, 2018
1 parent 2f392be commit 7e7a206
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.moddir_rules
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ifneq ($(findstring :,$(XMLSTARLET)$(BASH)),:)
@if [ -f .moduleinfo ] ; then \
declare -A DISABLED_MODS ;\
for x in $(MENUSELECT_$(MENUSELECT_CATEGORY)) ; do DISABLED_MODS[$${x}]=1 ; done ;\
EXTERNAL_MODS=$$(xmlstarlet sel -t -m "/category/member[support_level = 'external']" -v "@name" -n .moduleinfo) ;\
EXTERNAL_MODS=$$($(XMLSTARLET) sel -t -m "/category/member[support_level = 'external']" -v "@name" -n .moduleinfo) ;\
for x in $${EXTERNAL_MODS} ; do \
if [ -z "$${DISABLED_MODS[$${x}]}" ] ; then \
$(ASTTOPDIR)/build_tools/download_externals $${x} ;\
Expand Down
11 changes: 8 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7604,8 +7604,10 @@ $as_echo "no" >&6; }
fi


# Extract the first word of "xmlstarlet", so it can be a program name with args.
set dummy xmlstarlet; ac_word=$2
for ac_prog in xmlstarlet xml
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_XMLSTARLET+:} false; then :
Expand All @@ -7631,7 +7633,6 @@ done
done
IFS=$as_save_IFS

test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
;;
esac
fi
Expand All @@ -7645,6 +7646,10 @@ $as_echo "no" >&6; }
fi


test -n "$XMLSTARLET" && break
done
test -n "$XMLSTARLET" || XMLSTARLET=":"

# Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ AC_PATH_PROG([RUBBER], [rubber], :)
AC_PATH_PROG([CATDVI], [catdvi], :)
AC_PATH_PROG([KPATHSEA], [kpsewhich], :)
AC_PATH_PROG([XMLLINT], [xmllint], :)
AC_PATH_PROG([XMLSTARLET], [xmlstarlet], :)
AC_PATH_PROGS([XMLSTARLET], [xmlstarlet xml], :)
AC_PATH_PROG([BASH], [bash], :)
AC_PATH_PROG([GIT], [git], :)
AC_PATH_PROG([ALEMBIC], [alembic], :)
Expand Down

0 comments on commit 7e7a206

Please sign in to comment.