1 |
|
#!/bin/sh |
2 |
|
# |
3 |
|
# auto_gen.sh - Make the Makefile.in and configure files. |
4 |
|
# |
5 |
|
# Copyright (C) 2001, 2002 Southern Storm Software, Pty Ltd. |
6 |
|
# |
7 |
|
# This program is free software; you can redistribute it and/or modify |
8 |
|
# it under the terms of the GNU General Public License as published by |
9 |
|
# the Free Software Foundation; either version 2 of the License, or |
10 |
|
# (at your option) any later version. |
11 |
|
# |
12 |
|
# This program is distributed in the hope that it will be useful, |
13 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
# GNU General Public License for more details. |
16 |
|
# |
17 |
|
# You should have received a copy of the GNU General Public License |
18 |
|
# along with this program; if not, write to the Free Software |
19 |
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
|
|
21 |
|
# Run aclocal to update the macros. |
22 |
|
aclocal |
23 |
|
|
24 |
|
# Run autoheader to generate il_config.h.in. |
25 |
|
autoheader |
26 |
|
|
27 |
|
# Get extra options to use depending upon the automake version. |
28 |
|
AM_VERSION=`automake --version` |
29 |
|
case "$AM_VERSION" in |
30 |
|
automake*1.4*) AM_FLAGS="" ;; |
31 |
|
*) AM_FLAGS="--ignore-deps" ;; |
32 |
|
esac |
33 |
|
|
34 |
|
# Run automake and autoconf. |
35 |
|
automake --add-missing --copy $AM_FLAGS |
36 |
|
autoconf |
37 |
|
exit 0 |