xref: /iperf/bootstrap.sh (revision 5d2f2cf9)
1#!/bin/sh
2#
3#      $Id: bootstrap.sh 446 2008-04-21 04:07:15Z boote $
4#
5#########################################################################
6#									#
7#			   Copyright (C)  2003				#
8#	     			Internet2				#
9#			   All Rights Reserved				#
10#									#
11#########################################################################
12#
13#	File:		bootstrap
14#
15#	Author:		Jeff Boote
16#			Internet2
17#
18#	Date:		Tue Sep 16 14:21:57 MDT 2003
19#
20#	Description:
21#			This script is used to bootstrap the autobuild
22#			process.
23#
24#			RUNNING THIS SCRIPT IS NOT RECOMMENDED
25#			(You should just use the "configure" script
26#			that was bundled with the distribution if
27#			at all possible.)
28#
29case "$1" in
30	ac257)
31		alias autoconf=autoconf257
32		alias autoheader=autoheader257
33		alias automake=automake17
34		alias aclocal=aclocal17
35		export AUTOCONF=autoconf257
36		;;
37	*)
38		;;
39esac
40
41if libtoolize --version >/dev/null 2>&1; then
42  libtoolize=libtoolize
43elif glibtoolize --version >/dev/null 2>&1; then
44  libtoolize=glibtoolize
45else
46  libtoolize=""
47fi
48
49if [ "x$libtoolize" = "x" ]; then
50  echo "Can't find libtoolize, exiting."
51  exit 1
52fi
53
54set -x
55$libtoolize --copy --force --automake
56aclocal -I config
57autoheader
58automake --foreign --add-missing --copy
59autoconf
60rm -rf config.cache
61