Skip to content

Commit

Permalink
Apply changes towards a project wide common "autogen.sh" file
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyM committed Jun 9, 2020
1 parent d82ec1d commit 97f7d8a
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
#!/bin/sh
gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force
else
libtoolize --force
fi
aclocal -I m4
autoheader
automake --add-missing
autoconf

olddir=`pwd`
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

(
cd "$srcdir"

gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force
else
libtoolize --force
fi
aclocal -I m4
autoheader
automake --add-missing
autoconf

cd "$olddir"
)

if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
$srcdir/configure "$@"
fi

0 comments on commit 97f7d8a

Please sign in to comment.