blob: b0ffdc3c1215fbfb025fecf13e6246ac8b69d9c7 [file] [log] [blame]
Bruce A. Mah83af8bd2014-08-25 07:50:49 -07001#! /bin/sh
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +00002#
Bruce A. Mahda9f0462014-09-29 14:00:46 -07003# iperf, Copyright (c) 2014, The Regents of the University of
4# California, through Lawrence Berkeley National Laboratory (subject
5# to receipt of any required approvals from the U.S. Dept. of
6# Energy). All rights reserved.
7#
8# If you have questions about your rights to use or distribute this
9# software, please contact Berkeley Lab's Technology Transfer
10# Department at TTD@lbl.gov.
11#
12# NOTICE. This software is owned by the U.S. Department of Energy.
13# As such, the U.S. Government has been granted for itself and others
14# acting on its behalf a paid-up, nonexclusive, irrevocable,
15# worldwide license in the Software to reproduce, prepare derivative
16# works, and perform publicly and display publicly. Beginning five
17# (5) years after the date permission to assert copyright is obtained
18# from the U.S. Department of Energy, and subject to any subsequent
19# five (5) year renewals, the U.S. Government is granted for itself
20# and others acting on its behalf a paid-up, nonexclusive,
21# irrevocable, worldwide license in the Software to reproduce,
22# prepare derivative works, distribute copies to the public, perform
23# publicly and display publicly, and to permit others to do so.
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000024#
Bruce A. Mah83af8bd2014-08-25 07:50:49 -070025# This code is distributed under a BSD style license, see the LICENSE
26# file for complete information.
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000027#
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000028
Bruce A. Mah83af8bd2014-08-25 07:50:49 -070029# When changes are made to the build infrastructure, invoke this
30# script to regenerate all of the autotools-built files.
31# Normally, this is only of use to developers.
32
33# Figure out how to invoke libtoolize. On MacOS (with MacPorts)
34# it's invoked as glibtoolize.
Bruce A. Mah082157b2014-03-20 09:46:04 -070035if libtoolize --version >/dev/null 2>&1; then
36 libtoolize=libtoolize
37elif glibtoolize --version >/dev/null 2>&1; then
38 libtoolize=glibtoolize
39else
40 libtoolize=""
41fi
Bruce A. Mah082157b2014-03-20 09:46:04 -070042if [ "x$libtoolize" = "x" ]; then
43 echo "Can't find libtoolize, exiting."
44 exit 1
45fi
46
Bruce A. Mah83af8bd2014-08-25 07:50:49 -070047# Execute the various autotools commands in the correct order.
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000048set -x
Bruce A. Mah082157b2014-03-20 09:46:04 -070049$libtoolize --copy --force --automake
sethdelliott01ca9722010-07-19 20:38:40 +000050aclocal -I config
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000051autoheader
Hkf64da9b2018-07-02 13:06:42 -040052automake --add-missing --copy
AaronMatthewBrownf4a3dda2009-12-08 21:36:24 +000053autoconf
54rm -rf config.cache