1 |
#! /bin/sh |
2 |
# |
3 |
# $Id: bootstrap,v 1.19 2004/06/21 10:34:07 wingman Exp $ |
4 |
# |
5 |
# Recommended development tools versions: |
6 |
# autoconf 2.59 |
7 |
# automake 1.6.3 |
8 |
# libtool 1.4.3 |
9 |
# |
10 |
# NOTE: |
11 |
# There are a couple of known bugs in libtool that will be fixed with the |
12 |
# 1.4.3 release. Meanwhile you have two options to address the problem: |
13 |
# - create these symlinks in the top dir: |
14 |
# ln -s acconfig/mkinstalldirs ./ |
15 |
# ln -s configure.ac configure.in |
16 |
# OR |
17 |
# - apply a patch to libtool 1.4.2. |
18 |
# It is avaliable here: |
19 |
# http://www.techmonkeys.org/~tothwolf/libtool/libtool-1.4.2-auxdir.patch |
20 |
# |
21 |
# Please note that it may happen that the bootstrap process reports errors. |
22 |
# This doesn't necessarily mean that something went wrong. Try if ./configure |
23 |
# and make run without any unexpected errors before reporting bugs. And of |
24 |
# course make sure you have the tool's versions above installed before |
25 |
# bootstrapping the package. If you don't have them, you can alternatively |
26 |
# download the prepackaged and already bootstrapped current CVS snapshot ( |
27 |
# daily resynched) at: |
28 |
# ftp://ftp.eggheads.org/pub/eggdrop/source/snapshot/eggdrop1.9-snapshot.tar.gz |
29 |
# |
30 |
# ITE |
31 |
|
32 |
### |
33 |
### DO NOT ADD --force to libtoolize! |
34 |
### It will overwrite config.sub and config.guess with older versions! |
35 |
### |
36 |
|
37 |
ACLOCAL=aclocal |
38 |
AUTOMAKE=automake |
39 |
|
40 |
if [ "$1" != "" ]; then |
41 |
ACLOCAL=$ACLOCAL-$1 |
42 |
AUTOMAKE=$AUTOMAKE-$1 |
43 |
fi |
44 |
|
45 |
set -x |
46 |
|
47 |
# Bring gettext files |
48 |
#gettextize --copy --force |
49 |
|
50 |
# Bring in libtool with libtdl abstraction |
51 |
libtoolize --ltdl --copy |
52 |
|
53 |
# Generate aclocal.m4 from acconfig/*.m4 files |
54 |
$ACLOCAL -I acconfig -I m4 -I libltdl |
55 |
|
56 |
# Generate configure script |
57 |
autoconf |
58 |
|
59 |
# Generate config.h.in from configure.in |
60 |
autoheader |
61 |
|
62 |
# Generate Makefile.in from Makefile.am |
63 |
$AUTOMAKE --add-missing --copy |
64 |
|
65 |
# Generate module Makefile.ins |
66 |
acconfig/config.stubs --bootstrap $AUTOMAKE |
67 |
|
68 |
# Remove previous config.cache |
69 |
#if test -f config.cache |
70 |
#then |
71 |
# rm -f config.cache |
72 |
#fi |