summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure148
1 files changed, 75 insertions, 73 deletions
diff --git a/configure b/configure
index 2c3280fc..91c8d2c8 100755
--- a/configure
+++ b/configure
@@ -19696,14 +19696,14 @@ _ACEOF
fi
-# check for gmp
-{ echo "$as_me:$LINENO: checking if libgmp is available" >&5
-echo $ECHO_N "checking if libgmp is available... $ECHO_C" >&6; }
-if test "${libgmp_avail+set}" = set; then
+# check for boost_regex
+{ echo "$as_me:$LINENO: checking if boost_regex is available" >&5
+echo $ECHO_N "checking if boost_regex is available... $ECHO_C" >&6; }
+if test "${boost_regex_avail+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- libgmp_save_libs=$LIBS
- LIBS="-lgmp $LIBS"
+ boost_regex_save_libs=$LIBS
+ LIBS="-lboost_regex $LIBS"
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -19716,13 +19716,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <gmp.h>
+#include <boost/regex.hpp>
int
main ()
{
-mpz_t bar;
- mpz_init(bar);
- mpz_clear(bar);
+boost::regex foo_regexp("Hello, world!");
;
return 0;
}
@@ -19745,12 +19743,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
- libgmp_avail=true
+ boost_regex_avail=true
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- libgmp_avail=false
+ boost_regex_avail=false
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
@@ -19761,29 +19759,29 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
- LIBS=$libgmp_save_libs
+ LIBS=$boost_regex_save_libs
fi
-{ echo "$as_me:$LINENO: result: $libgmp_avail" >&5
-echo "${ECHO_T}$libgmp_avail" >&6; }
+{ echo "$as_me:$LINENO: result: $boost_regex_avail" >&5
+echo "${ECHO_T}$boost_regex_avail" >&6; }
-if test x$libgmp_avail = xtrue ; then
- LIBS="-lgmp $LIBS"
+if test x$boost_regex_avail = xtrue ; then
+ LIBS="-lboost_regex $LIBS"
else
- { { echo "$as_me:$LINENO: error: \"Could not find gmp library (set CPPFLAGS and LDFLAGS?)\"
+ { { echo "$as_me:$LINENO: error: \"Could not find boost_regex library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&5
-echo "$as_me: error: \"Could not find gmp library (set CPPFLAGS and LDFLAGS?)\"
+echo "$as_me: error: \"Could not find boost_regex library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
-# check for pcre
-{ echo "$as_me:$LINENO: checking if libpcre is available" >&5
-echo $ECHO_N "checking if libpcre is available... $ECHO_C" >&6; }
-if test "${libpcre_avail+set}" = set; then
+# check for boost_date_time
+{ echo "$as_me:$LINENO: checking if boost_date_time is available" >&5
+echo $ECHO_N "checking if boost_date_time is available... $ECHO_C" >&6; }
+if test "${boost_date_time_cpplib_avail+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- libpcre_save_libs=$LIBS
- LIBS="-lpcre $LIBS"
+ boost_date_time_save_libs=$LIBS
+ LIBS="-lboost_date_time $LIBS"
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -19796,11 +19794,29 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <pcre.h>
+#include <boost/date_time/posix_time/posix_time.hpp>
+ #include <boost/date_time/gregorian/gregorian.hpp>
+ #include <boost/date_time/local_time_adjustor.hpp>
+ #include <boost/date_time/time_duration.hpp>
+
+ using namespace boost::posix_time;
+ using namespace boost::date_time;
+
+ #include <ctime>
+
+ inline ptime time_to_system_local(const ptime& when) {
+ struct std::tm tm_gmt = to_tm(when);
+ return from_time_t(mktime(&tm_gmt));
+ }
int
main ()
{
-pcre_free((pcre *)NULL);
+ptime t10 = ptime(boost::gregorian::from_string("2007-01-15"),
+ ptime::time_duration_type());
+
+ ptime t12 = time_to_system_local(t10);
+
+ return t10 != t12;
;
return 0;
}
@@ -19823,12 +19839,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
- libpcre_avail=true
+ boost_date_time_cpplib_avail=true
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- libpcre_avail=false
+ boost_date_time_cpplib_avail=false
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
@@ -19839,29 +19855,29 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
- LIBS=$libpcre_save_libs
+ LIBS=$boost_date_time_save_libs
fi
-{ echo "$as_me:$LINENO: result: $libpcre_avail" >&5
-echo "${ECHO_T}$libpcre_avail" >&6; }
+{ echo "$as_me:$LINENO: result: $boost_date_time_cpplib_avail" >&5
+echo "${ECHO_T}$boost_date_time_cpplib_avail" >&6; }
-if test x$libpcre_avail = xtrue ; then
- LIBS="-lpcre $LIBS"
+if test x$boost_date_time_cpplib_avail = xtrue ; then
+ LIBS="-lboost_date_time $LIBS"
else
- { { echo "$as_me:$LINENO: error: \"Could not find pcre library (set CPPFLAGS and LDFLAGS?)\"
+ { { echo "$as_me:$LINENO: error: \"Could not find boost_date_time library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&5
-echo "$as_me: error: \"Could not find pcre library (set CPPFLAGS and LDFLAGS?)\"
+echo "$as_me: error: \"Could not find boost_date_time library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
-# check for Boost date_time
-{ echo "$as_me:$LINENO: checking if boost_date_time is available" >&5
-echo $ECHO_N "checking if boost_date_time is available... $ECHO_C" >&6; }
-if test "${boost_date_time_cpplib_avail+set}" = set; then
+# check for gmp
+{ echo "$as_me:$LINENO: checking if libgmp is available" >&5
+echo $ECHO_N "checking if libgmp is available... $ECHO_C" >&6; }
+if test "${libgmp_avail+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- boost_date_time_save_libs=$LIBS
- LIBS="-lboost_date_time $LIBS"
+ libgmp_save_libs=$LIBS
+ LIBS="-lgmp $LIBS"
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -19874,29 +19890,13 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <boost/date_time/posix_time/posix_time.hpp>
- #include <boost/date_time/gregorian/gregorian.hpp>
- #include <boost/date_time/local_time_adjustor.hpp>
- #include <boost/date_time/time_duration.hpp>
-
- using namespace boost::posix_time;
- using namespace boost::date_time;
-
- #include <ctime>
-
- inline ptime time_to_system_local(const ptime& when) {
- struct std::tm tm_gmt = to_tm(when);
- return from_time_t(mktime(&tm_gmt));
- }
+#include <gmp.h>
int
main ()
{
-ptime t10 = ptime(boost::gregorian::from_string("2007-01-15"),
- ptime::time_duration_type());
-
- ptime t12 = time_to_system_local(t10);
-
- return t10 != t12;
+mpz_t bar;
+ mpz_init(bar);
+ mpz_clear(bar);
;
return 0;
}
@@ -19919,12 +19919,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
- boost_date_time_cpplib_avail=true
+ libgmp_avail=true
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- boost_date_time_cpplib_avail=false
+ libgmp_avail=false
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
@@ -19935,17 +19935,17 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
- LIBS=$boost_date_time_save_libs
+ LIBS=$libgmp_save_libs
fi
-{ echo "$as_me:$LINENO: result: $boost_date_time_cpplib_avail" >&5
-echo "${ECHO_T}$boost_date_time_cpplib_avail" >&6; }
+{ echo "$as_me:$LINENO: result: $libgmp_avail" >&5
+echo "${ECHO_T}$libgmp_avail" >&6; }
-if test x$boost_date_time_cpplib_avail = xtrue ; then
- LIBS="-lboost_date_time $LIBS"
+if test x$libgmp_avail = xtrue ; then
+ LIBS="-lgmp $LIBS"
else
- { { echo "$as_me:$LINENO: error: \"Could not find boost_date_time library (set CPPFLAGS and LDFLAGS?)\"
+ { { echo "$as_me:$LINENO: error: \"Could not find gmp library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&5
-echo "$as_me: error: \"Could not find boost_date_time library (set CPPFLAGS and LDFLAGS?)\"
+echo "$as_me: error: \"Could not find gmp library (set CPPFLAGS and LDFLAGS?)\"
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -20837,7 +20837,8 @@ _ACEOF
fi
-for ac_header in sys/stat.h
+
+for ac_header in sys/stat.h langinfo.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -21475,7 +21476,8 @@ fi
-for ac_func in access mktime realpath getpwuid getpwnam
+
+for ac_func in access mktime realpath getpwuid getpwnam nl_langinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5