|
version 1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:05
|
|
Line 1
|
Line 1
|
| #!/bin/sh |
#!/bin/sh |
| # Run this to generate all the initial makefiles, etc. |
# Run this to generate all the initial makefiles, etc. |
| |
|
| if which glibtoolize >/dev/null 2>&1; then |
|
| LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} |
|
| else |
|
| LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} |
|
| fi |
|
| ACLOCAL=${ACLOCAL:-aclocal} |
|
| AUTOHEADER=${AUTOHEADER:-autoheader} |
|
| AUTOMAKE=${AUTOMAKE:-automake} |
|
| AUTOCONF=${AUTOCONF:-autoconf} |
|
| |
|
| ARGV0=$0 |
|
| |
|
| set -e |
set -e |
| |
|
| |
if [ ! -f configure.ac -o ! -f COPYING ]; then |
| |
echo "Doesn't look like you're in the source directory" >&2 |
| |
exit 1 |
| |
fi |
| |
|
| run() { | # old autoreconf/aclocal versions fail hard if m4 doesn't exist |
| echo "$ARGV0: running \`$@'" | mkdir -p m4 |
| "$@" | autoreconf --force --install |
| } | |
| |
| run $LIBTOOLIZE --copy --force | |
| run $ACLOCAL $ACLOCAL_FLAGS | |
| run $AUTOHEADER | |
| run $AUTOMAKE --add-missing --copy --foreign --force-missing | |
| run $AUTOCONF | |
| echo "Now type './configure ...' and 'make' to compile." |
echo "Now type './configure ...' and 'make' to compile." |