forked from simsong/bulk_extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
44 lines (40 loc) · 1.21 KB
/
bootstrap.sh
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
#!/bin/sh
# Make sure it was checked out with git clone --recursive ...
# If not, update the submodules
for sub in be13_api dfxml
do
if [ ! -r src/$sub/.git ] ; then
echo bringing in submodules
echo next time check out with git clone --recursive
git submodule init
git submodule update
fi
done
# have automake do an initial population if necessary
if [ ! -e config.guess -o ! -e config.sub -o ! -e install-sh -o ! -e missing -o ! -e test-driver ]; then
autoheader -f
touch NEWS README AUTHORS ChangeLog
touch stamp-h
aclocal -I m4
autoconf -f
#libtoolize || glibtoolize
automake --add-missing --copy
else
autoreconf -f
fi
# We were very excited about AddressSanitizer.
# This is how to enable it...
ADVERTISE=no
if [ $ADVERTISE = 'yes' ]; then
if [ `uname -s` = 'Darwin' ]; then
echo To enable AddressSanitizer on Mac, you must install gcc-4.8 with macports, then:
echo CC=gcc-mp-4.8 CXX=g++-mp-4.8 sh configure --enable-address-sanitizer
else
echo To enable AddressSanitizer, install libasan and configure with:
echo sh configure --enable-address-sanitizer
fi
fi
# bootstrap is complete
echo
echo The bootstrap.sh is complete. Be sure to run ./configure.
echo