diff options
author | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2017-10-04 23:23:39 +0200 |
---|---|---|
committer | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2017-10-04 23:23:39 +0200 |
commit | 33bb99f90546ad15d8212a413b1e5651fdacf0d0 (patch) | |
tree | 73b5cad981734acab87db711dc379e05cc1bfce7 /bootstrap | |
parent | 50f924741b8031856fe6194c61ed65eb679fad19 (diff) | |
download | groff-git-33bb99f90546ad15d8212a413b1e5651fdacf0d0.tar.gz |
Fix build on MacOS X
See https://savannah.gnu.org/bugs/?49651
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -450,7 +450,20 @@ check_versions() { while read app req_ver; do # We only need libtoolize from the libtool package. if test "$app" = libtool; then - app=libtoolize + case `uname` in + Darwin*) + # on MacOS X systems. GNU libtool conflicts with the Xcode + # libtool, and 'libtoolize' is often installed as + # 'glibtoolize'. + if check_exists libtoolize; then + app=libtoolize + elif check_exists glibtoolize; then + app=glibtoolize + else + die 'cannot find libtoolize or glibtoolize' + fi;; + *) app=libtoolize;; + esac fi # Exempt git if --no-git is in effect. if test "$app" = git; then |