forked from igraph/igraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·36 lines (26 loc) · 854 Bytes
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·36 lines (26 loc) · 854 Bytes
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
#! /bin/sh
cd "`dirname $0`"
## Find out our version number, need git for this
printf "Finding out version number/string... "
tools/getversion.sh > IGRAPH_VERSION
cat IGRAPH_VERSION
for i in glibtoolize libtoolize; do
LIBTOOLIZE=`which $i` && break
done
if [ -z "$LIBTOOLIZE" ]; then
echo libtoolize or glibtoolize not found or not in the path!
exit 1
fi
mkdir -p m4
set -x
# Order of commands in the next few lines are taken from here:
# https://stackoverflow.com/a/11279735/156771
$LIBTOOLIZE --force --copy
aclocal -I m4 --install
autoheader
autoconf
automake --foreign --add-missing --force-missing --copy
# Try to patch ltmain.sh to allow -fsanitize=* linker flags to be passed
# through to the linker. Don't do anything if it fails; maybe libtool has
# been upgraded already.
patch -N -p0 -r- <tools/ltmain.patch >/dev/null || true