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