File: autogen.sh

package info (click to toggle)
blcr 0.8.5-2.3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 10,740 kB
  • sloc: ansic: 31,999; sh: 12,633; makefile: 929; perl: 401; cpp: 79; java: 9
file content (54 lines) | stat: -rwxr-xr-x 2,032 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/sh 
#
#   Berkeley Lab Checkpoint/Restart (BLCR) for Linux is Copyright (c)
#   2008, The Regents of the University of California, through Lawrence
#   Berkeley National Laboratory (subject to receipt of any required
#   approvals from the U.S. Dept. of Energy).  All rights reserved.
#
#   Portions may be copyrighted by others, as may be noted in specific
#   copyright notices within specific files.
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#  $Id: autogen.sh,v 1.7.38.3 2012/12/21 23:32:49 phargrov Exp $

set -e

mkdir -p config
for dir in . ./config; do
  ( cd $dir && rm -f config.guess config.sub depcomp install-sh libtool ltmain.sh missing mkinstalldirs )
done
rm -rf autom4te.cache
aclocal
autoheader
touch blcr_config.h.in
autoconf
libtoolize --automake --copy
if [ -f ./ltmain.sh ]; then
	# older libtool didn't find AC_CONFIG_AUX_DIR in configure.ac
	mv ltmain.sh config/
	rm -f config.sub config.guess
fi
automake --include-deps --add-missing --copy

if [ -x config.status ]; then
    echo "################################################################"
    echo "# You appear to have already configured the build environment. #"
    echo "# Trying to update your configuration.                         #"
    echo "################################################################"
    ./config.status
    make clean
fi