summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBertrand Garrigues <bertrand.garrigues@laposte.net>2017-10-04 23:23:39 +0200
committerBertrand Garrigues <bertrand.garrigues@laposte.net>2017-10-04 23:23:39 +0200
commit33bb99f90546ad15d8212a413b1e5651fdacf0d0 (patch)
tree73b5cad981734acab87db711dc379e05cc1bfce7 /bootstrap
parent50f924741b8031856fe6194c61ed65eb679fad19 (diff)
downloadgroff-git-33bb99f90546ad15d8212a413b1e5651fdacf0d0.tar.gz
Fix build on MacOS X
See https://savannah.gnu.org/bugs/?49651
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap15
1 files changed, 14 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 932ff85e7..d18841237 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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