bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bootstrap fails on Darwin for `libtool'


From: Werner LEMBERG
Subject: bootstrap fails on Darwin for `libtool'
Date: Sat, 19 Nov 2016 14:44:37 +0100 (CET)

Folks,


I got the following report for groff

  https://savannah.gnu.org/bugs/?49651

  The groff build from repository source fails in the ./bootstrap
  phase on MacOS X systems.  GNU libtool conflicts with the Xcode
  libtool. The attached patch [below] checks for a Darwin build and
  uses glibtool/glibtoolize when detected.

This looks reasonable to me.  Is this the right fix?  If yes, please
incorporate it into gnulib.


    Werner


======================================================================


diff --git a/bootstrap b/bootstrap
index ce90bc4..a9cb5e5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -435,7 +435,10 @@ 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*) app=glibtoolize ;;
+      *) app=libtoolize ;;
+      esac
     fi
     # Exempt git if --no-git is in effect.
     if test "$app" = git; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]