Skip to content

Commit

Permalink
fix: remove regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonov548 committed Feb 5, 2024
1 parent 3c043c2 commit 559a2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Use pkg-config or xml2-config to get the include directories for libxml-2.0
xml2_include_paths=""
if which xml2-config >/dev/null 2>&1; then
xml2_include_paths=$(xml2-config --cflags | sed -r 's/-I([^ ]*)/-I"\1"/g')
xml2_include_paths=$(xml2-config --cflags)
elif which pkg-config >/dev/null 2>&1; then
xml2_include_paths=$(pkg-config --cflags libxml-2.0 | sed -r 's/-I([^ ]*)/-I"\1"/g')
xml2_include_paths=$(pkg-config --cflags libxml-2.0)
else
echo "Error: Neither xml2-config nor pkg-config is available"
exit 1
Expand Down

0 comments on commit 559a2db

Please sign in to comment.