]>
Commit | Line | Data |
---|---|---|
1dec09b3 CF |
1 | cross_compiling=maybe |
2 | host_alias=@HOST@ | |
3 | ac_tool_prefix=${host_alias}- | |
4 | ||
5 | if test -z $with_boost; then | |
6 | with_boost=$prefix | |
7 | fi | |
8 | if test -z $with_qt_plugindir; then | |
9 | with_qt_plugindir=$prefix/plugins | |
10 | fi | |
11 | if test -z $with_qt_translationdir; then | |
12 | with_qt_translationdir=$prefix/translations | |
13 | fi | |
14 | if test -z $with_qt_bindir; then | |
15 | with_qt_bindir=$prefix/native/bin | |
16 | fi | |
17 | if test -z $with_protoc_bindir; then | |
18 | with_protoc_bindir=$prefix/native/bin | |
19 | fi | |
20 | if test -z $with_comparison_tool; then | |
21 | with_comparison_tool=$prefix/native/share/BitcoindComparisonTool_jar/BitcoindComparisonTool.jar | |
22 | fi | |
23 | ||
24 | ||
25 | if test -z $enable_wallet && test -n "@no_wallet@"; then | |
26 | enable_wallet=no | |
27 | fi | |
28 | ||
29 | if test -z $with_miniupnpc && test -n "@no_upnp@"; then | |
30 | with_miniupnpc=no | |
31 | fi | |
32 | ||
33 | if test -z $with_gui && test -n "@no_qt@"; then | |
34 | with_gui=no | |
35 | fi | |
36 | ||
ab720685 | 37 | if test x@host_os@ = xdarwin; then |
1dec09b3 CF |
38 | BREW=no |
39 | PORT=no | |
40 | fi | |
41 | ||
ab720685 | 42 | if test x@host_os@ = xmingw32; then |
1dec09b3 CF |
43 | if test -z $with_qt_incdir; then |
44 | with_qt_incdir=$prefix/include | |
45 | fi | |
46 | if test -z $with_qt_libdir; then | |
47 | with_qt_libdir=$prefix/lib | |
48 | fi | |
49 | fi | |
50 | ||
54566de2 CF |
51 | PATH=$prefix/native/bin:$PATH |
52 | PKG_CONFIG="`which pkg-config` --static" | |
53 | ||
54 | # These two need to remain exported because pkg-config does not see them | |
55 | # otherwise. That means they must be unexported at the end of configure.ac to | |
56 | # avoid ruining the cache. Sigh. | |
57 | ||
1dec09b3 CF |
58 | export PKG_CONFIG_LIBDIR=$prefix/lib/pkgconfig |
59 | export PKG_CONFIG_PATH=$prefix/share/pkgconfig | |
dc66ff53 | 60 | |
54566de2 CF |
61 | CPPFLAGS="-I$prefix/include/ $CPPFLAGS" |
62 | LDFLAGS="-L$prefix/lib $LDFLAGS" | |
1dec09b3 | 63 | |
54566de2 CF |
64 | CC="@CC@" |
65 | CXX="@CXX@" | |
66 | OBJC="${CC}" | |
67 | OBJCXX="${CXX}" | |
68 | CCACHE=$prefix/native/bin/ccache | |
1dec09b3 CF |
69 | |
70 | if test -n "@AR@"; then | |
54566de2 | 71 | AR=@AR@ |
1dec09b3 CF |
72 | ac_cv_path_ac_pt_AR=${AR} |
73 | fi | |
74 | ||
75 | if test -n "@RANLIB@"; then | |
54566de2 | 76 | RANLIB=@RANLIB@ |
1dec09b3 CF |
77 | ac_cv_path_ac_pt_RANLIB=${RANLIB} |
78 | fi | |
79 | ||
80 | if test -n "@NM@"; then | |
54566de2 | 81 | NM=@NM@ |
1dec09b3 CF |
82 | ac_cv_path_ac_pt_NM=${NM} |
83 | fi | |
84 | ||
00522cd4 CF |
85 | if test -n "@debug@"; then |
86 | enable_reduce_exports=no | |
87 | fi | |
88 | ||
1dec09b3 | 89 | if test -n "@CFLAGS@"; then |
54566de2 | 90 | CFLAGS="@CFLAGS@ $CFLAGS" |
1dec09b3 CF |
91 | fi |
92 | if test -n "@CXXFLAGS@"; then | |
54566de2 | 93 | CXXFLAGS="@CXXFLAGS@ $CXXFLAGS" |
1dec09b3 | 94 | fi |
2027ad30 | 95 | if test -n "@CPPFLAGS@"; then |
54566de2 | 96 | CPPFLAGS="@CPPFLAGS@ $CPPFLAGS" |
2027ad30 | 97 | fi |
dc66ff53 | 98 | if test -n "@LDFLAGS@"; then |
54566de2 | 99 | LDFLAGS="@LDFLAGS@ $LDFLAGS" |
dc66ff53 | 100 | fi |