Skip to content

Commit

Permalink
add --system-tre
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@65097 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Mar 2, 2014
1 parent 8565e90 commit d0c7ef6
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 40 deletions.
174 changes: 141 additions & 33 deletions configure
Expand Up @@ -843,6 +843,8 @@ PAPERCONF
BUILD_TZONE_FALSE
BUILD_TZONE_TRUE
R_PROFILING
BUILD_TRE_FALSE
BUILD_TRE_TRUE
BUILD_PCRE_FALSE
BUILD_PCRE_TRUE
BUILD_XZ_FALSE
Expand Down Expand Up @@ -1164,6 +1166,7 @@ with_libtiff
with_system_zlib
with_system_bzlib
with_system_pcre
with_system_tre
with_system_xz
with_valgrind_instrumentation
with_internal_tzcode
Expand Down Expand Up @@ -1920,6 +1923,7 @@ Optional Packages:
--with-system-zlib use system zlib library (if available) [no]
--with-system-bzlib use system bzlib library (if available) [no]
--with-system-pcre use system PCRE library (if available) [no]
--with-system-tre use system tre library (if available) [no]
--with-system-xz use system xz (lzma) library (if available) [yes]
--with-valgrind-instrumentation
Level of additional instrumentation for Valgrind
Expand Down Expand Up @@ -4269,6 +4273,19 @@ else
fi


# Check whether --with-system-tre was given.
if test "${with_system_tre+set}" = set; then :
withval=$with_system_tre; if test "${withval}" = no; then
use_system_tre=no
else
use_system_tre=yes
fi

else
use_system_tre=no
fi


# Check whether --with-system-xz was given.
if test "${with_system_xz+set}" = set; then :
withval=$with_system_xz; if test "${withval}" = no; then
Expand Down Expand Up @@ -9049,13 +9066,13 @@ if ${lt_cv_nm_interface+:} false; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:9052: $ac_compile\"" >&5)
(eval echo "\"\$as_me:9069: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:9055: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:9072: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:9058: output\"" >&5)
(eval echo "\"\$as_me:9075: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
Expand Down Expand Up @@ -11903,11 +11920,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:11906: $lt_compile\"" >&5)
(eval echo "\"\$as_me:11923: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:11910: \$? = $ac_status" >&5
echo "$as_me:11927: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -12242,11 +12259,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:12245: $lt_compile\"" >&5)
(eval echo "\"\$as_me:12262: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:12249: \$? = $ac_status" >&5
echo "$as_me:12266: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -12347,11 +12364,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:12350: $lt_compile\"" >&5)
(eval echo "\"\$as_me:12367: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:12354: \$? = $ac_status" >&5
echo "$as_me:12371: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -12402,11 +12419,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:12405: $lt_compile\"" >&5)
(eval echo "\"\$as_me:12422: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:12409: \$? = $ac_status" >&5
echo "$as_me:12426: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -14769,7 +14786,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 14772 "configure"
#line 14789 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -14865,7 +14882,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 14868 "configure"
#line 14885 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -16814,11 +16831,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16817: $lt_compile\"" >&5)
(eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:16821: \$? = $ac_status" >&5
echo "$as_me:16838: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -16913,11 +16930,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16916: $lt_compile\"" >&5)
(eval echo "\"\$as_me:16933: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:16920: \$? = $ac_status" >&5
echo "$as_me:16937: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -16965,11 +16982,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16968: $lt_compile\"" >&5)
(eval echo "\"\$as_me:16985: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:16972: \$? = $ac_status" >&5
echo "$as_me:16989: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -18345,11 +18362,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:18348: $lt_compile\"" >&5)
(eval echo "\"\$as_me:18365: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:18352: \$? = $ac_status" >&5
echo "$as_me:18369: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -18444,11 +18461,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:18447: $lt_compile\"" >&5)
(eval echo "\"\$as_me:18464: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:18451: \$? = $ac_status" >&5
echo "$as_me:18468: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -18496,11 +18513,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:18499: $lt_compile\"" >&5)
(eval echo "\"\$as_me:18516: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:18503: \$? = $ac_status" >&5
echo "$as_me:18520: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -23190,7 +23207,7 @@ _ACEOF
# flags.
r_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $r_verb"
(eval echo $as_me:23193: \"$ac_link\") >&5
(eval echo $as_me:23210: \"$ac_link\") >&5
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
echo "$r_c_v_output" >&5
CFLAGS=$r_save_CFLAGS
Expand Down Expand Up @@ -23265,7 +23282,7 @@ _ACEOF
# flags.
r_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $r_cv_prog_c_v"
(eval echo $as_me:23268: \"$ac_link\") >&5
(eval echo $as_me:23285: \"$ac_link\") >&5
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
echo "$r_c_v_output" >&5
CFLAGS=$r_save_CFLAGS
Expand Down Expand Up @@ -34390,6 +34407,93 @@ fi



## tre headers and libraries.
if test "x${use_system_tre}" = xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tre_regncompb in -ltre" >&5
$as_echo_n "checking for tre_regncompb in -ltre... " >&6; }
if ${ac_cv_lib_tre_tre_regncompb+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltre $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char tre_regncompb ();
#ifdef F77_DUMMY_MAIN

# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }

#endif
int
main ()
{
return tre_regncompb ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_tre_tre_regncompb=yes
else
ac_cv_lib_tre_tre_regncompb=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_tre_regncompb" >&5
$as_echo "$ac_cv_lib_tre_tre_regncompb" >&6; }
if test "x$ac_cv_lib_tre_tre_regncompb" = xyes; then :
have_tre=yes
else
have_tre=no
fi

if test "${have_tre}" = yes; then
for ac_header in tre/tre.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "tre/tre.h" "ac_cv_header_tre_tre_h" "$ac_includes_default"
if test "x$ac_cv_header_tre_tre_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_TRE_TRE_H 1
_ACEOF
have_tre=yes
else
have_tre=no
fi

done

fi
if test "x${have_tre}" = xyes; then

$as_echo "#define HAVE_TRE 1" >>confdefs.h

LIBS="-ltre ${LIBS}"
fi
else
have_tre="no"
fi
if test x${have_tre} != xyes; then
BUILD_TRE_TRUE=
BUILD_TRE_FALSE='#'
else
BUILD_TRE_TRUE='#'
BUILD_TRE_FALSE=
fi



## POSIX times.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether leap seconds are treated according to POSIX" >&5
$as_echo_n "checking whether leap seconds are treated according to POSIX... " >&6; }
Expand Down Expand Up @@ -36217,11 +36321,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:36220: $lt_compile\"" >&5)
(eval echo "\"\$as_me:36324: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:36224: \$? = $ac_status" >&5
echo "$as_me:36328: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -36316,11 +36420,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:36319: $lt_compile\"" >&5)
(eval echo "\"\$as_me:36423: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:36323: \$? = $ac_status" >&5
echo "$as_me:36427: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -36368,11 +36472,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:36371: $lt_compile\"" >&5)
(eval echo "\"\$as_me:36475: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:36375: \$? = $ac_status" >&5
echo "$as_me:36479: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -42774,6 +42878,10 @@ if test -z "${BUILD_PCRE_TRUE}" && test -z "${BUILD_PCRE_FALSE}"; then
as_fn_error $? "conditional \"BUILD_PCRE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TRE_TRUE}" && test -z "${BUILD_TRE_FALSE}"; then
as_fn_error $? "conditional \"BUILD_TRE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TZONE_TRUE}" && test -z "${BUILD_TZONE_FALSE}"; then
as_fn_error $? "conditional \"BUILD_TZONE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Expand Down

0 comments on commit d0c7ef6

Please sign in to comment.