-
Notifications
You must be signed in to change notification settings - Fork 17
/
reconf
executable file
·52 lines (42 loc) · 1.26 KB
/
reconf
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
#!/bin/sh
# Copyright (C) 2011 Melissa Gymrek <[email protected]>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rm -f config.cache
rm -f aclocal.m4
rm -rf ./autom4te.cache
check_program()
{
PROG="$1"
# If the program is found in the $PATH, just return
which "$PROG" >/dev/null && return
# Otherwise, show an error with some helpful information
echo "
--- lobSTR Compilation Error ---
You are trying to compile lobSTR from a git repository.
A required program '$PROG' was not found.
To build lobSTR from a git repository, the following programs are needed:
autoconf
automake
libtool
pkg-config
A C++ compiler
As well as several libraries:
Boost, CPPUNIT, GSL
Please consult the lobSTR website for more information:
http://melissagymrek.com/lobstr-code/
---
"
exit 1
}
for PROG in autoconf autoreconf automake libtool aclocal make ;
do
check_program $PROG
done
autoreconf --force --install