Skip to content

Commit

Permalink
build: improve autogen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed May 26, 2018
1 parent 6c455de commit a859547
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@

cd $(dirname "$0")

if [ "$(uname)" = "Darwin" ]; then
libtoolBin=$(which glibtoolize)
libtoolBinDir=$(dirname "${libtoolBin}")
autoheader

if [ ! -f "${libtoolBinDir}/libtoolize" ]; then
ln -s $libtoolBin "${libtoolBinDir}/libtoolize"
fi
if [ "$(uname)" = "Darwin" ]; then
glibtoolize
else
libtoolize
fi

autoheader
libtoolize
aclocal -I m4
autoconf
automake --add-missing --copy

0 comments on commit a859547

Please sign in to comment.