1#! /bin/sh 2# 3# 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. 24# 25# This code is distributed under a BSD style license, see the LICENSE 26# file for complete information. 27# 28 29# 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. 35if 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 42if [ "x$libtoolize" = "x" ]; then 43 echo "Can't find libtoolize, exiting." 44 exit 1 45fi 46 47# Execute the various autotools commands in the correct order. 48set -x 49$libtoolize --copy --force --automake 50aclocal -I config 51autoheader 52automake --add-missing --copy 53autoconf 54rm -rf config.cache 55