aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/config.site.in
blob: dd91bcb2aa481943feb2f6c312b90f6b9f13b494 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
depends_prefix="`dirname ${ac_site_file}`/.."

cross_compiling=maybe
host_alias=@HOST@
ac_tool_prefix=${host_alias}-

if test -z $with_boost; then
  with_boost=$depends_prefix
fi
if test -z $with_qt_plugindir; then
  with_qt_plugindir=$depends_prefix/plugins
fi
if test -z $with_qt_translationdir; then
  with_qt_translationdir=$depends_prefix/translations
fi

if test x@host_os@ = xdarwin; then
  BREW=no
  PORT=no
fi

if test x@host_os@ = xmingw32; then
  if test -z $with_qt_incdir; then
    with_qt_incdir=$depends_prefix/include
  fi
  if test -z $with_qt_libdir; then
    with_qt_libdir=$depends_prefix/lib
  fi
fi

PATH=$depends_prefix/native/bin:$PATH
PKG_CONFIG="`which pkg-config` --static"

# These two need to remain exported because pkg-config does not see them
# otherwise. That means they must be unexported at the end of configure.ac to
# avoid ruining the cache. Sigh.
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
if test -z "@allow_host_packages@"; then
  export PKGCONFIG_LIBDIR=
fi

CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"

CC="@CC@"
CXX="@CXX@"
OBJC="${CC}"
CCACHE=$depends_prefix/native/bin/ccache
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH

if test -n "@AR@"; then
  AR=@AR@
  ac_cv_path_ac_pt_AR=${AR}
fi

if test -n "@RANLIB@"; then
  RANLIB=@RANLIB@
  ac_cv_path_ac_pt_RANLIB=${RANLIB}
fi

if test -n "@NM@"; then
  NM=@NM@
  ac_cv_path_ac_pt_NM=${NM}
fi

if test -n "@debug@"; then
  enable_reduce_exports=no
fi

if test -n "@CFLAGS@"; then
  CFLAGS="@CFLAGS@ $CFLAGS"
fi
if test -n "@CXXFLAGS@"; then
  CXXFLAGS="@CXXFLAGS@ $CXXFLAGS"
fi
if test -n "@CPPFLAGS@"; then
  CPPFLAGS="@CPPFLAGS@ $CPPFLAGS"
fi
if test -n "@LDFLAGS@"; then
  LDFLAGS="@LDFLAGS@ $LDFLAGS"
fi