source: branches/samba-3.3.x/source/autogen.sh@ 689

Last change on this file since 689 was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 1.3 KB
Line 
1#!/bin/sh
2
3# Run this script to build samba from GIT.
4
5## insert all possible names (only works with
6## autoconf 2.x)
7TESTAUTOHEADER="autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253"
8TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
9
10AUTOHEADERFOUND="0"
11AUTOCONFFOUND="0"
12
13
14##
15## Look for autoheader
16##
17for i in $TESTAUTOHEADER; do
18 if which $i > /dev/null 2>&1; then
19 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
20 AUTOHEADER=$i
21 AUTOHEADERFOUND="1"
22 break
23 fi
24 fi
25done
26
27##
28## Look for autoconf
29##
30
31for i in $TESTAUTOCONF; do
32 if which $i > /dev/null 2>&1; then
33 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
34 AUTOCONF=$i
35 AUTOCONFFOUND="1"
36 break
37 fi
38 fi
39done
40
41
42##
43## do we have it?
44##
45if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
46 echo "$0: need autoconf 2.53 or later to build samba from GIT" >&2
47 exit 1
48fi
49
50echo "$0: running script/mkversion.sh"
51./script/mkversion.sh || exit 1
52
53rm -rf autom4te*.cache
54rm -f configure include/config.h*
55
56IPATHS="-Im4 -Ilib/replace"
57
58echo "$0: running $AUTOHEADER $IPATHS"
59$AUTOHEADER $IPATHS || exit 1
60
61echo "$0: running $AUTOCONF $IPATHS"
62$AUTOCONF $IPATHS || exit 1
63
64rm -rf autom4te*.cache
65
66echo "Now run ./configure and then make."
67exit 0
68
Note: See TracBrowser for help on using the repository browser.