|
Revision 431, 0.8 kB
(checked in by nextime, 1 year ago)
|
--
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
check_for_app() { |
|---|
| 4 |
$1 --version 2>&1 >/dev/null |
|---|
| 5 |
if [ $? != 0 ] |
|---|
| 6 |
then |
|---|
| 7 |
echo "Please install $1 and run bootstrap.sh again!" |
|---|
| 8 |
exit 1 |
|---|
| 9 |
fi |
|---|
| 10 |
} |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
uname -s | grep -q FreeBSD |
|---|
| 16 |
if [ $? = 0 ] ; then |
|---|
| 17 |
MY_AC_VER=259 |
|---|
| 18 |
MY_AM_VER=19 |
|---|
| 19 |
else |
|---|
| 20 |
MY_AC_VER= |
|---|
| 21 |
MY_AM_VER= |
|---|
| 22 |
AUTOCONF_VERSION=2.60 |
|---|
| 23 |
AUTOMAKE_VERSION=1.9 |
|---|
| 24 |
export AUTOCONF_VERSION |
|---|
| 25 |
export AUTOMAKE_VERSION |
|---|
| 26 |
fi |
|---|
| 27 |
|
|---|
| 28 |
check_for_app autoconf${MY_AC_VER} |
|---|
| 29 |
check_for_app autoheader${MY_AC_VER} |
|---|
| 30 |
check_for_app automake${MY_AM_VER} |
|---|
| 31 |
check_for_app aclocal${MY_AM_VER} |
|---|
| 32 |
|
|---|
| 33 |
echo "Generating the configure script ..." |
|---|
| 34 |
|
|---|
| 35 |
aclocal${MY_AM_VER} 2>/dev/null |
|---|
| 36 |
autoconf${MY_AC_VER} |
|---|
| 37 |
autoheader${MY_AC_VER} |
|---|
| 38 |
automake${MY_AM_VER} --add-missing --copy 2>/dev/null |
|---|
| 39 |
|
|---|
| 40 |
exit 0 |
|---|