Skip to content

Commit

Permalink
Use glibtool on Darwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
schoenw committed Feb 19, 2010
1 parent ccbc5eb commit aad0849
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
DIE=true
PROJECT="gsnmp"

case `uname -s` in
Darwin)
libtool=glibtool
libtoolize=glibtoolize
;;
*)
libtool=libtool
libtoolize=libtoolize
;;
esac

VER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'`
case "$VER" in
Expand Down Expand Up @@ -37,9 +47,26 @@ _EOF_
;;
esac

VER=`${libtool} --version | grep ' libtool)' | \
sed 's/.*) \([0-9][0-9.]*\) .*/\1/' `
case "$VER" in
0* | 1\.[0-2] | 1\.[0-2][a-z]* | \
1\.3\.[0-2] | 1\.3\.[0-2][a-z]* )

cat >&2 <<_EOF_
You must have libtool 1.3.3 or later installed to compile $PROJECT.
Download the appropriate package for your distribution/OS,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
_EOF_
DIE="exit 1"
;;
esac

$DIE

${libtoolize} --copy --force || exit 1

if test -z "$*"; then
echo "Running ./configure with no arguments. If you wish to pass any,"
echo "please specify them on the $0 command line."
Expand Down

0 comments on commit aad0849

Please sign in to comment.