xref: /aosp_15_r20/external/iperf3/bootstrap.sh (revision 7ab6e6ace082586527a400463bc693a412a40341)
1*7ab6e6acSAndroid Build Coastguard Worker#! /bin/sh
2*7ab6e6acSAndroid Build Coastguard Worker#
3*7ab6e6acSAndroid Build Coastguard Worker# iperf, Copyright (c) 2014, The Regents of the University of
4*7ab6e6acSAndroid Build Coastguard Worker# California, through Lawrence Berkeley National Laboratory (subject
5*7ab6e6acSAndroid Build Coastguard Worker# to receipt of any required approvals from the U.S. Dept. of
6*7ab6e6acSAndroid Build Coastguard Worker# Energy).  All rights reserved.
7*7ab6e6acSAndroid Build Coastguard Worker#
8*7ab6e6acSAndroid Build Coastguard Worker# If you have questions about your rights to use or distribute this
9*7ab6e6acSAndroid Build Coastguard Worker# software, please contact Berkeley Lab's Technology Transfer
10*7ab6e6acSAndroid Build Coastguard Worker# Department at [email protected].
11*7ab6e6acSAndroid Build Coastguard Worker#
12*7ab6e6acSAndroid Build Coastguard Worker# NOTICE.  This software is owned by the U.S. Department of Energy.
13*7ab6e6acSAndroid Build Coastguard Worker# As such, the U.S. Government has been granted for itself and others
14*7ab6e6acSAndroid Build Coastguard Worker# acting on its behalf a paid-up, nonexclusive, irrevocable,
15*7ab6e6acSAndroid Build Coastguard Worker# worldwide license in the Software to reproduce, prepare derivative
16*7ab6e6acSAndroid Build Coastguard Worker# works, and perform publicly and display publicly.  Beginning five
17*7ab6e6acSAndroid Build Coastguard Worker# (5) years after the date permission to assert copyright is obtained
18*7ab6e6acSAndroid Build Coastguard Worker# from the U.S. Department of Energy, and subject to any subsequent
19*7ab6e6acSAndroid Build Coastguard Worker# five (5) year renewals, the U.S. Government is granted for itself
20*7ab6e6acSAndroid Build Coastguard Worker# and others acting on its behalf a paid-up, nonexclusive,
21*7ab6e6acSAndroid Build Coastguard Worker# irrevocable, worldwide license in the Software to reproduce,
22*7ab6e6acSAndroid Build Coastguard Worker# prepare derivative works, distribute copies to the public, perform
23*7ab6e6acSAndroid Build Coastguard Worker# publicly and display publicly, and to permit others to do so.
24*7ab6e6acSAndroid Build Coastguard Worker#
25*7ab6e6acSAndroid Build Coastguard Worker# This code is distributed under a BSD style license, see the LICENSE
26*7ab6e6acSAndroid Build Coastguard Worker# file for complete information.
27*7ab6e6acSAndroid Build Coastguard Worker#
28*7ab6e6acSAndroid Build Coastguard Worker
29*7ab6e6acSAndroid Build Coastguard Worker# When changes are made to the build infrastructure, invoke this
30*7ab6e6acSAndroid Build Coastguard Worker# script to regenerate all of the autotools-built files.
31*7ab6e6acSAndroid Build Coastguard Worker# Normally, this is only of use to developers.
32*7ab6e6acSAndroid Build Coastguard Worker
33*7ab6e6acSAndroid Build Coastguard Worker# Figure out how to invoke libtoolize.  On MacOS (with MacPorts)
34*7ab6e6acSAndroid Build Coastguard Worker# it's invoked as glibtoolize.
35*7ab6e6acSAndroid Build Coastguard Workerif libtoolize --version >/dev/null 2>&1; then
36*7ab6e6acSAndroid Build Coastguard Worker  libtoolize=libtoolize
37*7ab6e6acSAndroid Build Coastguard Workerelif glibtoolize --version >/dev/null 2>&1; then
38*7ab6e6acSAndroid Build Coastguard Worker  libtoolize=glibtoolize
39*7ab6e6acSAndroid Build Coastguard Workerelse
40*7ab6e6acSAndroid Build Coastguard Worker  libtoolize=""
41*7ab6e6acSAndroid Build Coastguard Workerfi
42*7ab6e6acSAndroid Build Coastguard Workerif [ "x$libtoolize" = "x" ]; then
43*7ab6e6acSAndroid Build Coastguard Worker  echo "Can't find libtoolize, exiting."
44*7ab6e6acSAndroid Build Coastguard Worker  exit 1
45*7ab6e6acSAndroid Build Coastguard Workerfi
46*7ab6e6acSAndroid Build Coastguard Worker
47*7ab6e6acSAndroid Build Coastguard Worker# Execute the various autotools commands in the correct order.
48*7ab6e6acSAndroid Build Coastguard Workerset -x
49*7ab6e6acSAndroid Build Coastguard Worker$libtoolize --copy --force --automake
50*7ab6e6acSAndroid Build Coastguard Workeraclocal -I config
51*7ab6e6acSAndroid Build Coastguard Workerautoheader
52*7ab6e6acSAndroid Build Coastguard Workerautomake --add-missing --copy
53*7ab6e6acSAndroid Build Coastguard Workerautoconf
54*7ab6e6acSAndroid Build Coastguard Workerrm -rf config.cache
55