Skip to content
This repository
Browse code

[fix] gsed: not in GNU coreutils on Mac

  • Loading branch information...
commit 29f30388ea648b997b1a1d217a154096bd245c28 1 parent 98cd561
Hugo Venturini authored

Showing 1 changed file with 12 additions and 1 deletion. Show diff stats Hide diff stats

  1. +12 1 configure
13 configure
@@ -131,8 +131,19 @@ trap lastresort_hint ERR
131 131
132 132 # specific platform checks
133 133 if [ -n "${IS_MAC:-}" ]; then
  134 + echo-check for gsed
  135 + if which gsed > /dev/null 2>&1; then echo-ok ok
  136 + else
  137 + echo-err Not found
  138 + echo "gsed is needed to build OPA."
  139 + if which port >/dev/null 2>&1; then
  140 + echo -e " You should run:\n\tsudo port install gsed"
  141 + # else #todo# [add useful suggestion here]
  142 + fi
  143 + exit 1
  144 + fi >&2
134 145 echo-check for GNU coreutils
135   - if which gsed gtail gmktemp gsort greadlink >/dev/null 2>&1; then echo-ok ok
  146 + if which gtail gmktemp gsort greadlink >/dev/null 2>&1; then echo-ok ok
136 147 else
137 148 echo-err Not found
138 149 echo "GNU coreutils are needed to build OPA."

0 comments on commit 29f3038

Please sign in to comment.
Something went wrong with that request. Please try again.