blob: 036ec8ee6ecd763ca7c2752b651501fa7c13b344 (
plain) (
blame)
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
|
#!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CONFIG_SUB=build-scripts/config.sub
AutogenStep() {
ChangeDir ${SRC_DIR}
# For some reason if we don't remove configure before running
# autoconf it doesn't always get updates correctly. About half
# the time the old configure script (with no reference to nacl)
# will remain after ./autogen.sh
rm -f configure
./autogen.sh
PatchConfigure
PatchConfigSub
cd -
}
ConfigureStep() {
AutogenStep
SetupCrossEnvironment
local conf_host=${NACL_CROSS_PREFIX}
if [ ${NACL_ARCH} = "pnacl" ]; then
# The PNaCl tools use "pnacl-" as the prefix, but config.sub
# does not know about "pnacl". It only knows about "le32-nacl".
# Unfortunately, most of the config.subs here are so old that
# it doesn't know about that "le32" either. So we just say "nacl".
conf_host="nacl-pnacl"
fi
LogExecute ${SRC_DIR}/configure \
--host=${conf_host} \
--prefix=${PREFIX} \
--disable-assembly \
--disable-pthread-sem
}
|