mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Check for libtoolize instead of libtool on Linux
autogen.sh has a check for the libtool binary as a mean to check if libtool is available. But distributions like Debian and Ubuntu are splitting the libtool package, and the libtool binary is now in a separate package. What autoconf actually need is not the libtool binary, but libtoolize and other macro files. So check for libtoolize instead. On the other hand, OSX only ships libtool, not libtoolize, and uses a pre-generated libtool script to build. So check for libtoolize first and then for libtool, and fail if neither can be found.
This commit is contained in:
parent
a656b399cc
commit
89fa904b2d
@ -20,11 +20,15 @@
|
||||
|
||||
# Script to generate all required files from fresh git checkout.
|
||||
|
||||
# Debian and Ubuntu do not shipt libtool anymore, but OSX does not ship libtoolize.
|
||||
command -v libtoolize >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
command -v libtool >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "autogen.sh: error: could not find libtool. libtool is required to run autogen.sh." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
command -v autoreconf >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user