diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-02-22 08:07:00 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-02-22 08:07:00 (GMT) |
commit | 179f3b7879e28165869034255b5852b551700ad6 (patch) | |
tree | 5b397bc3460e390440e41e6d43b9ceb596818e89 /autogen.sh | |
parent | 2d760d9de6db129d9cfd2c6bcd5e17c5c1842d28 (diff) | |
download | hdf5-179f3b7879e28165869034255b5852b551700ad6.zip hdf5-179f3b7879e28165869034255b5852b551700ad6.tar.gz hdf5-179f3b7879e28165869034255b5852b551700ad6.tar.bz2 |
[svn-r26270] On OS X, the autogen.sh script will first try to use glibtoolize
and then fall back to libtoolize if not found.
Tested on OS X 10.10.2 (Yosemite) with Xcode 6.1.1 and autotools
installed via Brew
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -284,8 +284,13 @@ PATH=${AUTOCONF_DIR}:${LIBTOOL_DIR}:${M4_DIR}:${FLEX_DIR}:${BISON_DIR}:$PATH # Make libtoolize match the specified libtool case "`uname`" in Darwin*) - # libtoolize on OS-X is non-gnu + # On OS X, libtoolize could be named glibtoolize or + # libtoolize. Try the former first, then fall back + # to the latter if it's not found. HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/glibtoolize" + if [ ! -f $HDF5_LIBTOOLIZE ] ; then + HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/libtoolize" + fi ;; *) HDF5_LIBTOOLIZE="${LIBTOOL_DIR}/libtoolize" |