forked from naemon/naemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure
executable file
·38 lines (33 loc) · 929 Bytes
/
configure
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
#!/bin/sh
[ ! -z $BASH ] && set -o pipefail
set -e
# initialize submodules unless they exist already
test -f naemon-core/configure.ac || git submodule init
test -f naemon-core/configure.ac || {
git submodule update naemon-core
cd naemon-core
git checkout master
git submodule update
cd ..
}
test -f naemon-livestatus/configure.ac || {
git submodule update naemon-livestatus
cd naemon-livestatus
git checkout master
git submodule update
cd ..
}
# now just run the real configure scripts
cd naemon-core
test -f ./configure || autoreconf -i
./configure $* 2>&1
cd ../naemon-livestatus
test -f ./configure || autoreconf -i
NAEMON_LIBS="-L$(pwd)/../naemon-core" NAEMON_CFLAGS="-I$(pwd)/../naemon-core" ./configure $*
echo "***************************************"
echo "finished configuring Naemon."
echo "continue with"
echo ""
echo "make [rpm|deb]"
echo "or"
echo "make && make install"