Mercurial > libpst
annotate m4/ax_boost_base.m4 @ 394:3cbda103e0ef
changes to build on centos 6
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 12 Jan 2020 11:33:45 -0800 |
parents | 1e1970f93f94 |
children |
rev | line source |
---|---|
380
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 # =========================================================================== |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 # https://www.gnu.org/software/autoconf-archive/ax_boost_base.html |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 # =========================================================================== |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 # SYNOPSIS |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 # AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 # DESCRIPTION |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 # Test for the Boost C++ libraries of a particular version (or newer) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 # If no path to the installed boost library is given the macro searchs |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 # under /usr, /usr/local, /opt and /opt/local and evaluates the |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 # $BOOST_ROOT environment variable. Further documentation is available at |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 # <http://randspringer.de/boost/index.html>. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 # This macro calls: |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 # AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 # And sets: |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
24 # HAVE_BOOST |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 # LICENSE |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 # Copyright (c) 2009 Peter Adolphs |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 # |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 # Copying and distribution of this file, with or without modification, are |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 # permitted in any medium without royalty provided the copyright notice |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
33 # and this notice are preserved. This file is offered as-is, without any |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 # warranty. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
36 #serial 43 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
37 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
38 # example boost program (need to pass version) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
39 m4_define([_AX_BOOST_BASE_PROGRAM], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
40 [AC_LANG_PROGRAM([[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
41 #include <boost/version.hpp> |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
42 ]],[[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
43 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($1))])); |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
44 ]])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
45 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
46 AC_DEFUN([AX_BOOST_BASE], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
47 [ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
48 AC_ARG_WITH([boost], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
49 [AS_HELP_STRING([--with-boost@<:@=ARG@:>@], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
50 [use Boost library from a standard location (ARG=yes), |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
51 from the specified location (ARG=<path>), |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 or disable it (ARG=no) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 @<:@ARG=yes@:>@ ])], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
54 [ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
55 AS_CASE([$withval], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
56 [no],[want_boost="no";_AX_BOOST_BASE_boost_path=""], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
57 [yes],[want_boost="yes";_AX_BOOST_BASE_boost_path=""], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
58 [want_boost="yes";_AX_BOOST_BASE_boost_path="$withval"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
59 ], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
60 [want_boost="yes"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
61 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
63 AC_ARG_WITH([boost-libdir], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
64 [AS_HELP_STRING([--with-boost-libdir=LIB_DIR], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
65 [Force given directory for boost libraries. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
66 Note that this will override library path detection, |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
67 so use this parameter only if default library detection fails |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
68 and you know exactly where your boost libraries are located.])], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
69 [ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
70 AS_IF([test -d "$withval"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
71 [_AX_BOOST_BASE_boost_lib_path="$withval"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
72 [AC_MSG_ERROR([--with-boost-libdir expected directory name])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
73 ], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
74 [_AX_BOOST_BASE_boost_lib_path=""]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
75 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
76 BOOST_LDFLAGS="" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
77 BOOST_CPPFLAGS="" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
78 AS_IF([test "x$want_boost" = "xyes"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
79 [_AX_BOOST_BASE_RUNDETECT([$1],[$2],[$3])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
80 AC_SUBST(BOOST_CPPFLAGS) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
81 AC_SUBST(BOOST_LDFLAGS) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
82 ]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
83 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
84 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
85 # convert a version string in $2 to numeric and affect to polymorphic var $1 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
86 AC_DEFUN([_AX_BOOST_BASE_TONUMERICVERSION],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
87 AS_IF([test "x$2" = "x"],[_AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"],[_AX_BOOST_BASE_TONUMERICVERSION_req="$2"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
88 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\.[[0-9]]*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
89 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
90 AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
91 [AC_MSG_ERROR([You should at least specify libboost major version])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
92 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.\([[0-9]]*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
93 AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
94 [_AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
95 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
96 AS_IF([test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
97 [_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
98 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
99 AS_VAR_SET($1,$_AX_BOOST_BASE_TONUMERICVERSION_RET) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
100 ]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
101 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
102 dnl Run the detection of boost should be run only if $want_boost |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
103 AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
104 _AX_BOOST_BASE_TONUMERICVERSION(WANT_BOOST_VERSION,[$1]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
105 succeeded=no |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
106 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
107 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
108 AC_REQUIRE([AC_CANONICAL_HOST]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
109 dnl On 64-bit systems check for system libraries in both lib64 and lib. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
110 dnl The former is specified by FHS, but e.g. Debian does not adhere to |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
111 dnl this (as it rises problems for generic multi-arch support). |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
112 dnl The last entry in the list is chosen by default when no libraries |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
113 dnl are found, e.g. when only header-only libraries are installed! |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
114 AS_CASE([${host_cpu}], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
115 [x86_64],[libsubdirs="lib64 libx32 lib lib64"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
116 [ppc64|s390x|sparc64|aarch64|ppc64le],[libsubdirs="lib64 lib lib64"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
117 [libsubdirs="lib"] |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
118 ) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
119 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
120 dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
121 dnl them priority over the other paths since, if libs are found there, they |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
122 dnl are almost assuredly the ones desired. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
123 AS_CASE([${host_cpu}], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
124 [i?86],[multiarch_libsubdir="lib/i386-${host_os}"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
125 [multiarch_libsubdir="lib/${host_cpu}-${host_os}"] |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
126 ) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
127 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
128 dnl first we check the system location for boost libraries |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
129 dnl this location ist chosen if boost libraries are installed with the --layout=system option |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
130 dnl or if you install boost with RPM |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
131 AS_IF([test "x$_AX_BOOST_BASE_boost_path" != "x"],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
132 AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) includes in "$_AX_BOOST_BASE_boost_path/include"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
133 AS_IF([test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
134 AC_MSG_RESULT([yes]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
135 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
136 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
137 AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) lib path in "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
138 AS_IF([test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
139 AC_MSG_RESULT([yes]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
140 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"; |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
141 break; |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
142 ], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
143 [AC_MSG_RESULT([no])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
144 done],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
145 AC_MSG_RESULT([no])]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
146 ],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
147 if test X"$cross_compiling" = Xyes; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
148 search_libsubdirs=$multiarch_libsubdir |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
149 else |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
150 search_libsubdirs="$multiarch_libsubdir $libsubdirs" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
151 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
152 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
153 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
154 for libsubdir in $search_libsubdirs ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
155 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
156 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
157 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
158 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
159 break; |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
160 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
161 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
162 ]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
163 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
164 dnl overwrite ld flags if we have required special directory with |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
165 dnl --with-boost-libdir parameter |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
166 AS_IF([test "x$_AX_BOOST_BASE_boost_lib_path" != "x"], |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
167 [BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
168 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
169 AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION)]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
170 CPPFLAGS_SAVED="$CPPFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
171 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
172 export CPPFLAGS |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
173 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
174 LDFLAGS_SAVED="$LDFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
175 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
176 export LDFLAGS |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
177 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
178 AC_REQUIRE([AC_PROG_CXX]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
179 AC_LANG_PUSH(C++) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
180 AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
181 AC_MSG_RESULT(yes) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
182 succeeded=yes |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
183 found_system=yes |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
184 ],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
185 ]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
186 AC_LANG_POP([C++]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
187 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
188 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
189 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
190 dnl if we found no boost with system layout we search for boost libraries |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
191 dnl built and installed without the --layout=system option or for a staged(not installed) version |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
192 if test "x$succeeded" != "xyes" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
193 CPPFLAGS="$CPPFLAGS_SAVED" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
194 LDFLAGS="$LDFLAGS_SAVED" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
195 BOOST_CPPFLAGS= |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
196 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
197 BOOST_LDFLAGS= |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
198 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
199 _version=0 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
200 if test -n "$_AX_BOOST_BASE_boost_path" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
201 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
202 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
203 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
204 V_CHECK=`expr $_version_tmp \> $_version` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
205 if test "x$V_CHECK" = "x1" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
206 _version=$_version_tmp |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
207 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
208 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
209 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
210 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
211 dnl if nothing found search for layout used in Windows distributions |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
212 if test -z "$BOOST_CPPFLAGS"; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
213 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
214 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
215 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
216 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
217 dnl if we found something and BOOST_LDFLAGS was unset before |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
218 dnl (because "$_AX_BOOST_BASE_boost_lib_path" = ""), set it here. |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
219 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
220 for libsubdir in $libsubdirs ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
221 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
222 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
223 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
224 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
225 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
226 else |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
227 if test "x$cross_compiling" != "xyes" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
228 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
229 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
230 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
231 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
232 V_CHECK=`expr $_version_tmp \> $_version` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
233 if test "x$V_CHECK" = "x1" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
234 _version=$_version_tmp |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
235 best_path=$_AX_BOOST_BASE_boost_path |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
236 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
237 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
238 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
239 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
240 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
241 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
242 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
243 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
244 for libsubdir in $libsubdirs ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
245 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
246 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
247 BOOST_LDFLAGS="-L$best_path/$libsubdir" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
248 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
249 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
250 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
251 if test -n "$BOOST_ROOT" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
252 for libsubdir in $libsubdirs ; do |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
253 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
254 done |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
255 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
256 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
257 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
258 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
259 V_CHECK=`expr $stage_version_shorten \>\= $_version` |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
260 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
261 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
262 BOOST_CPPFLAGS="-I$BOOST_ROOT" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
263 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
264 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
265 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
266 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
267 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
268 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
269 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
270 export CPPFLAGS |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
271 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
272 export LDFLAGS |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
273 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
274 AC_LANG_PUSH(C++) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
275 AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
276 AC_MSG_RESULT(yes) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
277 succeeded=yes |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
278 found_system=yes |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
279 ],[ |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
280 ]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
281 AC_LANG_POP([C++]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
282 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
283 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
284 if test "x$succeeded" != "xyes" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
285 if test "x$_version" = "x0" ; then |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
286 AC_MSG_NOTICE([[We could not detect the boost libraries (version $1 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
287 else |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
288 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
289 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
290 # execute ACTION-IF-NOT-FOUND (if present): |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
291 ifelse([$3], , :, [$3]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
292 else |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
293 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
294 # execute ACTION-IF-FOUND (if present): |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
295 ifelse([$2], , :, [$2]) |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
296 fi |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
297 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
298 CPPFLAGS="$CPPFLAGS_SAVED" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
299 LDFLAGS="$LDFLAGS_SAVED" |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
300 |
1e1970f93f94
allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
301 ]) |