~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-01-19 12:40:24 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090119124024-abxsf4e0y7713w9m
Tags: 2.8.1-2
debian/control: Add another Build-Depends: exclusion for the 
'kfreebsd-i386 kfreebsd-amd64 hurd-i386' architecture to openjdk-6-jdk.
Thanks to Petr Salinger for the heads-up.               (Closes: 512324)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for R 2.7.1.
 
3
# Generated by GNU Autoconf 2.61 for R 2.8.1.
4
4
#
5
5
# Report bugs to <r-bugs@R-project.org>.
6
6
#
723
723
# Identity of this package.
724
724
PACKAGE_NAME='R'
725
725
PACKAGE_TARNAME='R'
726
 
PACKAGE_VERSION='2.7.1'
727
 
PACKAGE_STRING='R 2.7.1'
 
726
PACKAGE_VERSION='2.8.1'
 
727
PACKAGE_STRING='R 2.8.1'
728
728
PACKAGE_BUGREPORT='r-bugs@R-project.org'
729
729
 
730
730
ac_unique_file="src/include/Defn.h"
989
989
R_MODULES
990
990
SUPPORT_UTF8
991
991
SUPPORT_MBCS
 
992
USE_ICU
992
993
X_CFLAGS
993
994
X_PRE_LIBS
994
995
X_LIBS
1644
1645
  # Omit some internal or obsolete options to make the list less imposing.
1645
1646
  # This message is too long to be a string in the A/UX 3.1 sh.
1646
1647
  cat <<_ACEOF
1647
 
\`configure' configures R 2.7.1 to adapt to many kinds of systems.
 
1648
\`configure' configures R 2.8.1 to adapt to many kinds of systems.
1648
1649
 
1649
1650
Usage: $0 [OPTION]... [VAR=VALUE]...
1650
1651
 
1719
1720
 
1720
1721
if test -n "$ac_init_help"; then
1721
1722
  case $ac_init_help in
1722
 
     short | recursive ) echo "Configuration of R 2.7.1:";;
 
1723
     short | recursive ) echo "Configuration of R 2.8.1:";;
1723
1724
   esac
1724
1725
  cat <<\_ACEOF
1725
1726
 
1783
1784
  --with-recommended-packages
1784
1785
                          use/install recommended R packages [yes]
1785
1786
  --with-iconv            use iconv library [yes]
 
1787
  --with-ICU              use ICU library [no]
1786
1788
  --with-pic              try to use only PIC/non-PIC objects [default=use
1787
1789
                          both]
1788
1790
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1790
1792
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1791
1793
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1792
1794
  --without-libpth-prefix     don't search for libpth in includedir and libdir
1793
 
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1794
 
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1795
1795
  --with-included-gettext use the GNU gettext library included here
1796
1796
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1797
1797
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1934
1934
test -n "$ac_init_help" && exit $ac_status
1935
1935
if $ac_init_version; then
1936
1936
  cat <<\_ACEOF
1937
 
R configure 2.7.1
 
1937
R configure 2.8.1
1938
1938
generated by GNU Autoconf 2.61
1939
1939
 
1940
1940
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1948
1948
This file contains any messages produced by compilers while
1949
1949
running configure, to aid debugging if configure makes a mistake.
1950
1950
 
1951
 
It was created by R $as_me 2.7.1, which was
 
1951
It was created by R $as_me 2.8.1, which was
1952
1952
generated by GNU Autoconf 2.61.  Invocation command line was
1953
1953
 
1954
1954
  $ $0 $@
2989
2989
fi
2990
2990
 
2991
2991
 
 
2992
## ICU
 
2993
 
 
2994
# Check whether --with-ICU was given.
 
2995
if test "${with_ICU+set}" = set; then
 
2996
  withval=$with_ICU; if test "${withval}" = no; then
 
2997
  use_ICU=no
 
2998
else
 
2999
  use_ICU=yes
 
3000
fi
 
3001
 
 
3002
else
 
3003
  use_ICU=no
 
3004
fi
 
3005
 
 
3006
 
 
3007
 
2992
3008
### ** Precious variables.
2993
3009
 
2994
3010
 
4146
4162
done
4147
4163
test -n "$TEXI2DVI" || TEXI2DVI="false"
4148
4164
 
 
4165
## This test admittedly looks a bit strange ... see R_PROG_PERL.
4149
4166
if test "${PERL}" = "${FALSE}"; then
4150
4167
  for ac_prog in ${INSTALL_INFO} install-info
4151
4168
do
6928
6945
_ACEOF
6929
6946
 
6930
6947
fi
 
6948
## test if visibility flag is accepted: NB Solaris compilers do and ignore,
 
6949
## so only make use of this if HAVE_VISIBILITY_ATTRIBUTE is true.
6931
6950
r_save_CFLAGS=$CFLAGS
6932
6951
CFLAGS="$CFLAGS -fvisibility=hidden"
6933
6952
{ echo "$as_me:$LINENO: checking whether $CC accepts -fvisibility" >&5
6985
7004
    C_VISIBILITY="-fvisibility=hidden"
6986
7005
  fi
6987
7006
fi
 
7007
## Need to exclude Intel compilers, where this does not work.
 
7008
## The flag is documented, and is effective but also hides
 
7009
## unsatisfied references. We cannot test for GCC, as icc passes that test.
6988
7010
case  "${CC}" in
6989
7011
  ## Intel compiler: note that -c99 may have been appended
6990
7012
  *icc*)
7050
7072
    F77_VISIBILITY="-fvisibility=hidden"
7051
7073
  fi
7052
7074
fi
 
7075
## need to exclude Intel compilers.
7053
7076
case  "${F77}" in
7054
7077
  ## Intel compiler
7055
7078
  *ifc|*ifort)
7498
7521
echo "${ECHO_T}defining OBJCXX to be ${OBJCXX}" >&6; }
7499
7522
  { echo "$as_me:$LINENO: checking whether ${OBJCXX} can compile ObjC++" >&5
7500
7523
echo $ECHO_N "checking whether ${OBJCXX} can compile ObjC++... $ECHO_C" >&6; }
 
7524
## we don't use AC_LANG_xx because ObjC++ is not defined as a language (yet)
 
7525
## (the test program is from the gcc test suite)
7501
7526
cat << \EOF > conftest.mm
7502
7527
#include <objc/Object.h>
7503
7528
#include <iostream>
7536
7561
if test -z "${OBJCXX}"; then
7537
7562
  { echo "$as_me:$LINENO: checking whether ${CXX} can compile ObjC++" >&5
7538
7563
echo $ECHO_N "checking whether ${CXX} can compile ObjC++... $ECHO_C" >&6; }
 
7564
## we don't use AC_LANG_xx because ObjC++ is not defined as a language (yet)
 
7565
## (the test program is from the gcc test suite)
7539
7566
cat << \EOF > conftest.mm
7540
7567
#include <objc/Object.h>
7541
7568
#include <iostream>
7569
7596
   if test -z "${OBJC}"; then
7570
7597
      { echo "$as_me:$LINENO: checking whether ${OBJC} can compile ObjC++" >&5
7571
7598
echo $ECHO_N "checking whether ${OBJC} can compile ObjC++... $ECHO_C" >&6; }
 
7599
## we don't use AC_LANG_xx because ObjC++ is not defined as a language (yet)
 
7600
## (the test program is from the gcc test suite)
7572
7601
cat << \EOF > conftest.mm
7573
7602
#include <objc/Object.h>
7574
7603
#include <iostream>
8183
8212
else
8184
8213
  lt_cv_nm_interface="BSD nm"
8185
8214
  echo "int some_variable = 0;" > conftest.$ac_ext
8186
 
  (eval echo "\"\$as_me:8186: $ac_compile\"" >&5)
 
8215
  (eval echo "\"\$as_me:8215: $ac_compile\"" >&5)
8187
8216
  (eval "$ac_compile" 2>conftest.err)
8188
8217
  cat conftest.err >&5
8189
 
  (eval echo "\"\$as_me:8189: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
8218
  (eval echo "\"\$as_me:8218: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8190
8219
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8191
8220
  cat conftest.err >&5
8192
 
  (eval echo "\"\$as_me:8192: output\"" >&5)
 
8221
  (eval echo "\"\$as_me:8221: output\"" >&5)
8193
8222
  cat conftest.out >&5
8194
8223
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8195
8224
    lt_cv_nm_interface="MS dumpbin"
9287
9316
  ;;
9288
9317
*-*-irix6*)
9289
9318
  # Find out which ABI we are using.
9290
 
  echo '#line 9290 "configure"' > conftest.$ac_ext
 
9319
  echo '#line 9319 "configure"' > conftest.$ac_ext
9291
9320
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292
9321
  (eval $ac_compile) 2>&5
9293
9322
  ac_status=$?
11404
11433
$RM -r conftest*
11405
11434
 
11406
11435
 
 
11436
## CAVEAT EMPTOR:
 
11437
## There is no encapsulation within the following macros, do not change
 
11438
## the running order or otherwise move them around unless you know exactly
 
11439
## what you are doing...
11407
11440
if test -n "$compiler"; then
11408
11441
 
11409
11442
lt_prog_compiler_no_builtin_flag=
11429
11462
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11430
11463
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11431
11464
   -e 's:$: $lt_compiler_flag:'`
11432
 
   (eval echo "\"\$as_me:11432: $lt_compile\"" >&5)
 
11465
   (eval echo "\"\$as_me:11465: $lt_compile\"" >&5)
11433
11466
   (eval "$lt_compile" 2>conftest.err)
11434
11467
   ac_status=$?
11435
11468
   cat conftest.err >&5
11436
 
   echo "$as_me:11436: \$? = $ac_status" >&5
 
11469
   echo "$as_me:11469: \$? = $ac_status" >&5
11437
11470
   if (exit $ac_status) && test -s "$ac_outfile"; then
11438
11471
     # The compiler can only warn and ignore the option if not recognized
11439
11472
     # So say no if there are warnings other than the usual output.
11747
11780
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11748
11781
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11749
11782
   -e 's:$: $lt_compiler_flag:'`
11750
 
   (eval echo "\"\$as_me:11750: $lt_compile\"" >&5)
 
11783
   (eval echo "\"\$as_me:11783: $lt_compile\"" >&5)
11751
11784
   (eval "$lt_compile" 2>conftest.err)
11752
11785
   ac_status=$?
11753
11786
   cat conftest.err >&5
11754
 
   echo "$as_me:11754: \$? = $ac_status" >&5
 
11787
   echo "$as_me:11787: \$? = $ac_status" >&5
11755
11788
   if (exit $ac_status) && test -s "$ac_outfile"; then
11756
11789
     # The compiler can only warn and ignore the option if not recognized
11757
11790
     # So say no if there are warnings other than the usual output.
11852
11885
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11853
11886
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11854
11887
   -e 's:$: $lt_compiler_flag:'`
11855
 
   (eval echo "\"\$as_me:11855: $lt_compile\"" >&5)
 
11888
   (eval echo "\"\$as_me:11888: $lt_compile\"" >&5)
11856
11889
   (eval "$lt_compile" 2>out/conftest.err)
11857
11890
   ac_status=$?
11858
11891
   cat out/conftest.err >&5
11859
 
   echo "$as_me:11859: \$? = $ac_status" >&5
 
11892
   echo "$as_me:11892: \$? = $ac_status" >&5
11860
11893
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11861
11894
   then
11862
11895
     # The compiler can only warn and ignore the option if not recognized
11907
11940
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11908
11941
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11909
11942
   -e 's:$: $lt_compiler_flag:'`
11910
 
   (eval echo "\"\$as_me:11910: $lt_compile\"" >&5)
 
11943
   (eval echo "\"\$as_me:11943: $lt_compile\"" >&5)
11911
11944
   (eval "$lt_compile" 2>out/conftest.err)
11912
11945
   ac_status=$?
11913
11946
   cat out/conftest.err >&5
11914
 
   echo "$as_me:11914: \$? = $ac_status" >&5
 
11947
   echo "$as_me:11947: \$? = $ac_status" >&5
11915
11948
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11916
11949
   then
11917
11950
     # The compiler can only warn and ignore the option if not recognized
14646
14679
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14647
14680
  lt_status=$lt_dlunknown
14648
14681
  cat > conftest.$ac_ext <<_LT_EOF
14649
 
#line 14649 "configure"
 
14682
#line 14682 "configure"
14650
14683
#include "confdefs.h"
14651
14684
 
14652
14685
#if HAVE_DLFCN_H
14746
14779
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14747
14780
  lt_status=$lt_dlunknown
14748
14781
  cat > conftest.$ac_ext <<_LT_EOF
14749
 
#line 14749 "configure"
 
14782
#line 14782 "configure"
14750
14783
#include "confdefs.h"
14751
14784
 
14752
14785
#if HAVE_DLFCN_H
16741
16774
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16742
16775
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16743
16776
   -e 's:$: $lt_compiler_flag:'`
16744
 
   (eval echo "\"\$as_me:16744: $lt_compile\"" >&5)
 
16777
   (eval echo "\"\$as_me:16777: $lt_compile\"" >&5)
16745
16778
   (eval "$lt_compile" 2>conftest.err)
16746
16779
   ac_status=$?
16747
16780
   cat conftest.err >&5
16748
 
   echo "$as_me:16748: \$? = $ac_status" >&5
 
16781
   echo "$as_me:16781: \$? = $ac_status" >&5
16749
16782
   if (exit $ac_status) && test -s "$ac_outfile"; then
16750
16783
     # The compiler can only warn and ignore the option if not recognized
16751
16784
     # So say no if there are warnings other than the usual output.
16840
16873
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841
16874
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842
16875
   -e 's:$: $lt_compiler_flag:'`
16843
 
   (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
 
16876
   (eval echo "\"\$as_me:16876: $lt_compile\"" >&5)
16844
16877
   (eval "$lt_compile" 2>out/conftest.err)
16845
16878
   ac_status=$?
16846
16879
   cat out/conftest.err >&5
16847
 
   echo "$as_me:16847: \$? = $ac_status" >&5
 
16880
   echo "$as_me:16880: \$? = $ac_status" >&5
16848
16881
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849
16882
   then
16850
16883
     # The compiler can only warn and ignore the option if not recognized
16892
16925
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16893
16926
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16894
16927
   -e 's:$: $lt_compiler_flag:'`
16895
 
   (eval echo "\"\$as_me:16895: $lt_compile\"" >&5)
 
16928
   (eval echo "\"\$as_me:16928: $lt_compile\"" >&5)
16896
16929
   (eval "$lt_compile" 2>out/conftest.err)
16897
16930
   ac_status=$?
16898
16931
   cat out/conftest.err >&5
16899
 
   echo "$as_me:16899: \$? = $ac_status" >&5
 
16932
   echo "$as_me:16932: \$? = $ac_status" >&5
16900
16933
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16901
16934
   then
16902
16935
     # The compiler can only warn and ignore the option if not recognized
18274
18307
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18275
18308
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18276
18309
   -e 's:$: $lt_compiler_flag:'`
18277
 
   (eval echo "\"\$as_me:18277: $lt_compile\"" >&5)
 
18310
   (eval echo "\"\$as_me:18310: $lt_compile\"" >&5)
18278
18311
   (eval "$lt_compile" 2>conftest.err)
18279
18312
   ac_status=$?
18280
18313
   cat conftest.err >&5
18281
 
   echo "$as_me:18281: \$? = $ac_status" >&5
 
18314
   echo "$as_me:18314: \$? = $ac_status" >&5
18282
18315
   if (exit $ac_status) && test -s "$ac_outfile"; then
18283
18316
     # The compiler can only warn and ignore the option if not recognized
18284
18317
     # So say no if there are warnings other than the usual output.
18373
18406
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18374
18407
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18375
18408
   -e 's:$: $lt_compiler_flag:'`
18376
 
   (eval echo "\"\$as_me:18376: $lt_compile\"" >&5)
 
18409
   (eval echo "\"\$as_me:18409: $lt_compile\"" >&5)
18377
18410
   (eval "$lt_compile" 2>out/conftest.err)
18378
18411
   ac_status=$?
18379
18412
   cat out/conftest.err >&5
18380
 
   echo "$as_me:18380: \$? = $ac_status" >&5
 
18413
   echo "$as_me:18413: \$? = $ac_status" >&5
18381
18414
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18382
18415
   then
18383
18416
     # The compiler can only warn and ignore the option if not recognized
18425
18458
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18426
18459
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18427
18460
   -e 's:$: $lt_compiler_flag:'`
18428
 
   (eval echo "\"\$as_me:18428: $lt_compile\"" >&5)
 
18461
   (eval echo "\"\$as_me:18461: $lt_compile\"" >&5)
18429
18462
   (eval "$lt_compile" 2>out/conftest.err)
18430
18463
   ac_status=$?
18431
18464
   cat out/conftest.err >&5
18432
 
   echo "$as_me:18432: \$? = $ac_status" >&5
 
18465
   echo "$as_me:18465: \$? = $ac_status" >&5
18433
18466
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18434
18467
   then
18435
18468
     # The compiler can only warn and ignore the option if not recognized
23206
23239
done
23207
23240
fi
23208
23241
 
 
23242
## size_t works on Windows but is unsigned and int is correct
23209
23243
case "${host_os}" in
23210
23244
  cygwin*|mingw*|windows*|winnt)
23211
23245
    r_cv_type_socklen=int
26630
26664
  echo $ECHO_N "(cached) $ECHO_C" >&6
26631
26665
else
26632
26666
  echo "#include <math.h>" > conftest.c
 
26667
## No real point in using AC_LANG_* and ${ac_ext}, as we need to create
 
26668
## hard-wired suffix rules.
 
26669
## Another obvious candidate to try is '${MAKEDEPEND-makedepend} -f-'.
 
26670
## However, this does not work out of the box when srcdir and builddir
 
26671
## are different, as it creates dependencies of the form
 
26672
##   ${srcdir}/foo.o: /path/to/bar.h
 
26673
## Could be made to work, of course ...
 
26674
## Note also that it does not create a 'conftest.o: conftest.c' line.
 
26675
## For gcc 3.2 or better, we want to use '-MM' in case this works.
26633
26676
cc_minus_MM=false
26634
26677
if test "${GCC}" = yes; then
26635
26678
  case "${CC_VERSION}" in
26681
26724
else
26682
26725
  test -d TMP || mkdir TMP
26683
26726
echo "int some_variable = 0;" > conftest.c
 
26727
## No real point in using AC_LANG_* and ${ac_ext}, as we need to create
 
26728
## hard-wired suffix rules.
26684
26729
ac_try='${CC} ${CFLAGS} -c conftest.c -o TMP/conftest.lo 1>&5'
26685
26730
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686
26731
  (eval $ac_try) 2>&5
26724
26769
 
26725
26770
 
26726
26771
if test -z "${FLIBS}"; then
 
26772
##
 
26773
## Currently (Autoconf 2.50 or better, it seems) FLIBS also contains all
 
26774
## elements of LIBS when AC_F77_LIBRARY_LDFLAGS is run.  This is because
 
26775
## _AC_PROG_F77_V_OUTPUT() uses 'eval $ac_link' for obtaining verbose
 
26776
## linker output, and AC_LANG(Fortran 77) sets up ac_link to contain
 
26777
## LIBS.  Most likely a bug, and a nuisance in any case ...
 
26778
## But we cannot simply eliminate the elements in FLIBS duplicated from
 
26779
## LIBS (e.g. '-lm' should be preserved).  Hence, we try to call
 
26780
## AC_F77_LIBRARY_LDFLAGS() with LIBS temporarily set to empty.
26727
26781
r_save_LIBS="${LIBS}"
26728
26782
LIBS=
26729
26783
ac_ext=f
27119
27173
# flags.
27120
27174
r_save_CFLAGS=$CFLAGS
27121
27175
CFLAGS="$CFLAGS $r_verb"
27122
 
(eval echo $as_me:27122: \"$ac_link\") >&5
 
27176
(eval echo $as_me:27176: \"$ac_link\") >&5
27123
27177
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
27124
27178
echo "$r_c_v_output" >&5
27125
27179
CFLAGS=$r_save_CFLAGS
27202
27256
# flags.
27203
27257
r_save_CFLAGS=$CFLAGS
27204
27258
CFLAGS="$CFLAGS $r_cv_prog_c_v"
27205
 
(eval echo $as_me:27205: \"$ac_link\") >&5
 
27259
(eval echo $as_me:27259: \"$ac_link\") >&5
27206
27260
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
27207
27261
echo "$r_c_v_output" >&5
27208
27262
CFLAGS=$r_save_CFLAGS
27378
27432
  CLIBS=
27379
27433
fi
27380
27434
LIBS="${r_save_LIBS}"
 
27435
## Currently g77 on Darwin links against '-lcrt1.o' (and for GCC 3.1 or
 
27436
## better also against '-lcrtbegin.o'), which (unlike '-lcrt0.o') are
 
27437
## not stripped by AC_F77_LIBRARY_LDFLAGS.  This in particular causes
 
27438
## R_PROG_F77_CC_COMPAT to fail.  Hence, we make sure all -lcrt*.o are
 
27439
## removed. In Addition, -lmx and -lSystem are implicit and their
 
27440
## manual inclusion leads to ordering problems (remove when autoconf
 
27441
## is fixed - supposedly the CVS version is, but 2.6.0 is not).
 
27442
##
 
27443
## Native f90 on HPUX 11 comes up with '-l:libF90.a' causing trouble
 
27444
## when using gcc for linking.  The '-l:' construction is similar to
 
27445
## plain '-l' except that search order (archive/shared) given by '-a'
 
27446
## is not important.  We escape such flags via '-Wl,' in case of gcc.
 
27447
## Note that the current Autoconf CVS uses _AC_LINKER_OPTION for a
 
27448
## similar purpose when computing FLIBS: this uses '-Xlinker' escapes
 
27449
## for gcc and does nothing otherwise.  Note also that we cannot simply
 
27450
## unconditionally escape with '${wl}' from libtool as on HPUX we need
 
27451
## SHLIB_LD=ld for native C compilers (problem with non-PIC 'crt0.o',
 
27452
## see 'Individual platform overrides' in section 'DLL stuff' in file
 
27453
## 'configure.ac'.
 
27454
##
 
27455
## Using the Intel Fortran compiler (ifc) one typically gets incorrect
 
27456
## flags, as the output from _AC_PROG_F77_V_OUTPUT() contains double
 
27457
## quoted options, e.g. "-mGLOB_options_string=......", see also e.g.
 
27458
## http://www.octave.org/octave-lists/archive/octave-maintainers.2002/msg00038.html.
 
27459
## One possible solution is to change AC_F77_LIBRARY_LDFLAGS() to remove
 
27460
## double quotes for ifc, as it already does for the Cray cft90.  As we
 
27461
## prefer not to overload Autoconf code, we try to fix things here ...
 
27462
##
 
27463
## As of 2.1.0 we try to tidy this up a bit.
 
27464
## 1) -lfrtbegin and -lgfortranbegin are used by g77/gfortran only for a
 
27465
## Fortran main program, which we do not have.
 
27466
## 2) g77 also tends to duplicate paths via ../../.., so we canonicalize
 
27467
## paths and remove duplicates.
 
27468
## 3) We do not need -L/lib etc, nor those in LDFLAGS
 
27469
## 4) We exclude path with CC will include when linking.
 
27470
##
 
27471
## First try to fathom out what -Lfoo commands are unnecessary.
27381
27472
case "${host_os}" in
27382
27473
  linux*)
27383
27474
    r_libpath_default="/usr/lib64 /lib64 /usr/lib /lib"
27948
28039
ac_compiler_gnu=$ac_cv_c_compiler_gnu
27949
28040
 
27950
28041
 
 
28042
## DANGER!  We really needs the results of _AC_F77_NAME_MANGLING as
 
28043
## stored in the cache var ac_cv_f77_mangling which is not documented
 
28044
## and hence may change ...
27951
28045
case "${ac_cv_f77_mangling}" in
27952
28046
  "upper "*)
27953
28047
    { echo "$as_me:$LINENO: WARNING: Fortran compiler uses uppercase external names" >&5
28041
28135
      end
28042
28136
EOF
28043
28137
${F77} ${FFLAGS} -c conftestf.f 1>&5 2>&5
 
28138
## Yes we need to double quote this ...
28044
28139
cat > conftest.c <<EOF
28045
28140
#include <math.h>
28046
28141
#include <stdlib.h>
28113
28208
      end
28114
28209
EOF
28115
28210
${F77} ${FFLAGS} -c conftestf.f 1>&5 2>&5
 
28211
## Yes we need to double quote this ...
28116
28212
cat > conftest.c <<EOF
28117
28213
#include <math.h>
28118
28214
#include <stdlib.h>
28204
28300
      end
28205
28301
EOF
28206
28302
${F77} ${FFLAGS} -c conftestf.f 1>&5 2>&5
 
28303
## Yes we need to double quote this ...
28207
28304
cat > conftest.c <<EOF
28208
28305
#include <math.h>
28209
28306
#include <stdlib.h>
28298
28395
  echo $ECHO_N "(cached) $ECHO_C" >&6
28299
28396
else
28300
28397
  echo "#include <math.h>" > conftest.cc
 
28398
## No real point in using AC_LANG_* and ${ac_ext}, as we need to create
 
28399
## hard-wired suffix rules.  We could be a bit more careful as we
 
28400
## actually only test suffix '.cc'.
28301
28401
if test -n "`${CXX} -M conftest.cc 2>/dev/null | grep conftest`"; then
28302
28402
  r_cv_prog_cxx_m=yes
28303
28403
else
32593
32693
fi
32594
32694
done
32595
32695
 
32596
 
 
32597
 
 
32598
 
for ac_func in strcoll strerror
 
32696
## strcoll is C89
 
32697
 
 
32698
for ac_func in strcoll
32599
32699
do
32600
32700
as_ac_Symbol=`echo "ac_cv_have_decl_$ac_func" | $as_tr_sh`
32601
32701
{ echo "$as_me:$LINENO: checking whether $ac_func exists and is declared" >&5
36555
36655
acx_blas_save_LIBS="${LIBS}"
36556
36656
LIBS="${FLIBS} ${LIBS}"
36557
36657
 
 
36658
## First, check BLAS_LIBS environment variable
36558
36659
if test "${acx_blas_ok}" = no; then
36559
36660
  if test "x${BLAS_LIBS}" != x; then
36560
36661
    r_save_LIBS="${LIBS}"; LIBS="${BLAS_LIBS} ${LIBS}"
36617
36718
  fi
36618
36719
fi
36619
36720
 
 
36721
## BLAS linked to by default?  (happens on some supercomputers)
36620
36722
if test "${acx_blas_ok}" = no; then
36621
36723
  as_ac_var=`echo "ac_cv_func_${dgemm}" | $as_tr_sh`
36622
36724
{ echo "$as_me:$LINENO: checking for ${dgemm}" >&5
36715
36817
 
36716
36818
fi
36717
36819
 
 
36820
## BLAS in ATLAS library?  (http://math-atlas.sourceforge.net/)
36718
36821
if test "${acx_blas_ok}" = no; then
36719
36822
  { echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5
36720
36823
echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6; }
36866
36969
 
36867
36970
fi
36868
36971
 
 
36972
## BLAS in PhiPACK libraries?  (requires generic BLAS lib, too)
36869
36973
if test "${acx_blas_ok}" = no; then
36870
36974
  as_ac_Lib=`echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh`
36871
36975
{ echo "$as_me:$LINENO: checking for ${dgemm} in -lblas" >&5
37093
37197
 
37094
37198
fi
37095
37199
 
37096
 
 
37097
 
 
 
37200
## <COMMENT>
 
37201
## ## BLAS in Alpha CXML library?
 
37202
## if test "${acx_blas_ok}" = no; then
 
37203
##   AC_CHECK_LIB(cxml, ${sgemm},
 
37204
##                [acx_blas_ok=yes; BLAS_LIBS="-lcxml"])
 
37205
## fi
 
37206
## </COMMENT>
 
37207
 
 
37208
## <COMMENT>
 
37209
## # BLAS in Alpha DXML library? (now called CXML, see above)
 
37210
## if test "${acx_blas_ok}" = no; then
 
37211
##   AC_CHECK_LIB(dxml, ${sgemm},
 
37212
##                [acx_blas_ok=yes; BLAS_LIBS="-ldxml"])
 
37213
## fi
 
37214
## </COMMENT>
 
37215
 
 
37216
## BLAS in Sun Performance library?
 
37217
## Some versions require -xlic_lib=sunperf: -lsunperf will not work
 
37218
## Not sure whether -lsunmath is required, but it helps anyway
37098
37219
if test "${acx_blas_ok}" = no; then
37099
37220
  if test "x$GCC" != xyes; then # only works with Sun CC
37100
37221
     { echo "$as_me:$LINENO: checking for ${dgemm} in -lsunperf" >&5
37169
37290
  fi
37170
37291
fi
37171
37292
 
37172
 
 
37173
 
 
 
37293
## <COMMENT>
 
37294
## ## BLAS in SCSL library?  (SGI/Cray Scientific Library)
 
37295
## if test "${acx_blas_ok}" = no; then
 
37296
##   AC_CHECK_LIB(scs, ${sgemm},
 
37297
##                [acx_blas_ok=yes; BLAS_LIBS="-lscs"])
 
37298
## fi
 
37299
## </COMMENT>
 
37300
 
 
37301
## <COMMENT>
 
37302
## ## BLAS in SGIMATH library?
 
37303
## if test "${acx_blas_ok}" = no; then
 
37304
##   AC_CHECK_LIB(complib.sgimath, ${sgemm},
 
37305
##                [acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"])
 
37306
## fi
 
37307
## </COMMENT>
 
37308
 
 
37309
## BLAS in IBM ESSL library? (requires generic BLAS lib, too)
37174
37310
if test "${acx_blas_ok}" = no; then
37175
37311
  as_ac_Lib=`echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh`
37176
37312
{ echo "$as_me:$LINENO: checking for ${dgemm} in -lblas" >&5
37324
37460
 
37325
37461
fi
37326
37462
 
 
37463
## Generic BLAS library?
37327
37464
if test "${acx_blas_ok}" = no; then
37328
37465
  as_ac_Lib=`echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh`
37329
37466
{ echo "$as_me:$LINENO: checking for ${dgemm} in -lblas" >&5
37402
37539
 
37403
37540
fi
37404
37541
 
 
37542
## Now check if zdotu works (fails on AMD64 with the wrong compiler;
 
37543
## also fails on OS X with vecLib and gfortran; but in that case we
 
37544
## have a work-around using USE_VECLIB_G95FIX)
37405
37545
if test "${acx_blas_ok}" = yes; then
37406
37546
  { echo "$as_me:$LINENO: checking whether double complex BLAS can be used" >&5
37407
37547
echo $ECHO_N "checking whether double complex BLAS can be used... $ECHO_C" >&6; }
37432
37572
      end
37433
37573
EOF
37434
37574
${F77} ${FFLAGS} -c conftestf.f 1>&5 2>&5
 
37575
## Yes we need to double quote this ...
37435
37576
cat > conftest.c <<EOF
37436
37577
#include <stdlib.h>
37437
37578
#include "confdefs.h"
37820
37961
acx_lapack_save_LIBS="${LIBS}"
37821
37962
LIBS="${BLAS_LIBS} ${FLIBS} ${LIBS}"
37822
37963
 
 
37964
## LAPACK linked to by default?  (Could be in the BLAS libs.)
37823
37965
if test "${acx_lapack_ok}" = no; then
37824
37966
  as_ac_var=`echo "ac_cv_func_${zgeev}" | $as_tr_sh`
37825
37967
{ echo "$as_me:$LINENO: checking for ${zgeev}" >&5
37918
38060
 
37919
38061
fi
37920
38062
 
 
38063
## Next, check LAPACK_LIBS environment variable
37921
38064
if test "${acx_lapack_ok}" = no; then
37922
38065
  if test "x${LAPACK_LIBS}" != x; then
37923
38066
    r_save_LIBS="${LIBS}"; LIBS="${LAPACK_LIBS} ${LIBS}"
37987
38130
  fi
37988
38131
fi
37989
38132
 
 
38133
## LAPACK in Sun Performance library?
 
38134
## No longer test here as will be picked up by the default test.
37990
38135
 
 
38136
## Generic LAPACK library?
37991
38137
if test "${acx_lapack_ok}" = no; then
37992
38138
  as_ac_Lib=`echo "ac_cv_lib_lapack_${zgeev}" | $as_tr_sh`
37993
38139
{ echo "$as_me:$LINENO: checking for ${zgeev} in -llapack" >&5
38237
38383
 
38238
38384
done
38239
38385
 
 
38386
## need to ignore cache for this as it may set LIBS
38240
38387
unset ac_cv_func_iconv
38241
38388
{ echo "$as_me:$LINENO: checking for iconv" >&5
38242
38389
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38489
38636
 
38490
38637
  fi
38491
38638
fi
 
38639
## if the iconv we are using was in libiconv we have already included -liconv
38492
38640
{ echo "$as_me:$LINENO: checking for iconvlist" >&5
38493
38641
echo $ECHO_N "checking for iconvlist... $ECHO_C" >&6; }
38494
38642
if test "${ac_cv_func_iconvlist+set}" = set; then
38581
38729
    ;;
38582
38730
esac
38583
38731
 
 
38732
## require functional iconv
38584
38733
if test "$want_mbcs_support" = yes ; then
38585
38734
  if test "$r_cv_iconv_latin1" != yes ; then
38586
38735
    want_mbcs_support=no
38587
38736
  fi
38588
38737
fi
 
38738
## Wide character support -- first test for headers (which are assumed in code)
38589
38739
if test "$want_mbcs_support" = yes ; then
38590
38740
 
38591
38741
 
38742
38892
  done
38743
38893
fi
38744
38894
if test "$want_mbcs_support" = yes ; then
 
38895
## Solaris 8 is missing iswblank, but we can make it from iswctype.
38745
38896
 
38746
38897
 
38747
38898
 
38988
39139
    fi
38989
39140
  done
38990
39141
fi
 
39142
## it seems IRIX has wctrans but not wctrans_t: we check this when we
 
39143
## know we have the headers and wctrans().
 
39144
## Also Solaris 2.6 (very old) seems to be missing mbstate_t
38991
39145
if test "$want_mbcs_support" = yes ; then
38992
39146
  { echo "$as_me:$LINENO: checking for wctrans_t" >&5
38993
39147
echo $ECHO_N "checking for wctrans_t... $ECHO_C" >&6; }
39140
39294
  fi
39141
39295
fi
39142
39296
if test "x${want_mbcs_support}" = xyes; then
 
39297
## SUPPORT_UTF8 is needed for PCRE, only
39143
39298
 
39144
39299
cat >>confdefs.h <<\_ACEOF
39145
39300
#define SUPPORT_UTF8 1
39155
39310
fi
39156
39311
 
39157
39312
 
 
39313
## support for ICU
 
39314
if test "$use_ICU" = yes ; then
 
39315
  ## FIXME: later, warn not error
 
39316
 
 
39317
{ echo "$as_me:$LINENO: checking for ucol_open_3_8 in -licui18n" >&5
 
39318
echo $ECHO_N "checking for ucol_open_3_8 in -licui18n... $ECHO_C" >&6; }
 
39319
if test "${ac_cv_lib_icui18n_ucol_open_3_8+set}" = set; then
 
39320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39321
else
 
39322
  ac_check_lib_save_LIBS=$LIBS
 
39323
LIBS="-licui18n  $LIBS"
 
39324
cat >conftest.$ac_ext <<_ACEOF
 
39325
/* confdefs.h.  */
 
39326
_ACEOF
 
39327
cat confdefs.h >>conftest.$ac_ext
 
39328
cat >>conftest.$ac_ext <<_ACEOF
 
39329
/* end confdefs.h.  */
 
39330
 
 
39331
/* Override any GCC internal prototype to avoid an error.
 
39332
   Use char because int might match the return type of a GCC
 
39333
   builtin and then its argument prototype would still apply.  */
 
39334
#ifdef __cplusplus
 
39335
extern "C"
 
39336
#endif
 
39337
char ucol_open_3_8 ();
 
39338
#ifdef F77_DUMMY_MAIN
 
39339
 
 
39340
#  ifdef __cplusplus
 
39341
     extern "C"
 
39342
#  endif
 
39343
   int F77_DUMMY_MAIN() { return 1; }
 
39344
 
 
39345
#endif
 
39346
int
 
39347
main ()
 
39348
{
 
39349
return ucol_open_3_8 ();
 
39350
  ;
 
39351
  return 0;
 
39352
}
 
39353
_ACEOF
 
39354
rm -f conftest.$ac_objext conftest$ac_exeext
 
39355
if { (ac_try="$ac_link"
 
39356
case "(($ac_try" in
 
39357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39358
  *) ac_try_echo=$ac_try;;
 
39359
esac
 
39360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39361
  (eval "$ac_link") 2>conftest.er1
 
39362
  ac_status=$?
 
39363
  grep -v '^ *+' conftest.er1 >conftest.err
 
39364
  rm -f conftest.er1
 
39365
  cat conftest.err >&5
 
39366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39367
  (exit $ac_status); } && {
 
39368
         test -z "$ac_c_werror_flag" ||
 
39369
         test ! -s conftest.err
 
39370
       } && test -s conftest$ac_exeext &&
 
39371
       $as_test_x conftest$ac_exeext; then
 
39372
  ac_cv_lib_icui18n_ucol_open_3_8=yes
 
39373
else
 
39374
  echo "$as_me: failed program was:" >&5
 
39375
sed 's/^/| /' conftest.$ac_ext >&5
 
39376
 
 
39377
        ac_cv_lib_icui18n_ucol_open_3_8=no
 
39378
fi
 
39379
 
 
39380
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39381
      conftest$ac_exeext conftest.$ac_ext
 
39382
LIBS=$ac_check_lib_save_LIBS
 
39383
fi
 
39384
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_8" >&5
 
39385
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_8" >&6; }
 
39386
if test $ac_cv_lib_icui18n_ucol_open_3_8 = yes; then
 
39387
  cat >>confdefs.h <<_ACEOF
 
39388
#define HAVE_LIBICUI18N 1
 
39389
_ACEOF
 
39390
 
 
39391
  LIBS="-licui18n $LIBS"
 
39392
 
 
39393
else
 
39394
 
 
39395
 
 
39396
{ echo "$as_me:$LINENO: checking for ucol_open_3_6 in -licui18n" >&5
 
39397
echo $ECHO_N "checking for ucol_open_3_6 in -licui18n... $ECHO_C" >&6; }
 
39398
if test "${ac_cv_lib_icui18n_ucol_open_3_6+set}" = set; then
 
39399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39400
else
 
39401
  ac_check_lib_save_LIBS=$LIBS
 
39402
LIBS="-licui18n  $LIBS"
 
39403
cat >conftest.$ac_ext <<_ACEOF
 
39404
/* confdefs.h.  */
 
39405
_ACEOF
 
39406
cat confdefs.h >>conftest.$ac_ext
 
39407
cat >>conftest.$ac_ext <<_ACEOF
 
39408
/* end confdefs.h.  */
 
39409
 
 
39410
/* Override any GCC internal prototype to avoid an error.
 
39411
   Use char because int might match the return type of a GCC
 
39412
   builtin and then its argument prototype would still apply.  */
 
39413
#ifdef __cplusplus
 
39414
extern "C"
 
39415
#endif
 
39416
char ucol_open_3_6 ();
 
39417
#ifdef F77_DUMMY_MAIN
 
39418
 
 
39419
#  ifdef __cplusplus
 
39420
     extern "C"
 
39421
#  endif
 
39422
   int F77_DUMMY_MAIN() { return 1; }
 
39423
 
 
39424
#endif
 
39425
int
 
39426
main ()
 
39427
{
 
39428
return ucol_open_3_6 ();
 
39429
  ;
 
39430
  return 0;
 
39431
}
 
39432
_ACEOF
 
39433
rm -f conftest.$ac_objext conftest$ac_exeext
 
39434
if { (ac_try="$ac_link"
 
39435
case "(($ac_try" in
 
39436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39437
  *) ac_try_echo=$ac_try;;
 
39438
esac
 
39439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39440
  (eval "$ac_link") 2>conftest.er1
 
39441
  ac_status=$?
 
39442
  grep -v '^ *+' conftest.er1 >conftest.err
 
39443
  rm -f conftest.er1
 
39444
  cat conftest.err >&5
 
39445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39446
  (exit $ac_status); } && {
 
39447
         test -z "$ac_c_werror_flag" ||
 
39448
         test ! -s conftest.err
 
39449
       } && test -s conftest$ac_exeext &&
 
39450
       $as_test_x conftest$ac_exeext; then
 
39451
  ac_cv_lib_icui18n_ucol_open_3_6=yes
 
39452
else
 
39453
  echo "$as_me: failed program was:" >&5
 
39454
sed 's/^/| /' conftest.$ac_ext >&5
 
39455
 
 
39456
        ac_cv_lib_icui18n_ucol_open_3_6=no
 
39457
fi
 
39458
 
 
39459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39460
      conftest$ac_exeext conftest.$ac_ext
 
39461
LIBS=$ac_check_lib_save_LIBS
 
39462
fi
 
39463
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_6" >&5
 
39464
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_6" >&6; }
 
39465
if test $ac_cv_lib_icui18n_ucol_open_3_6 = yes; then
 
39466
  cat >>confdefs.h <<_ACEOF
 
39467
#define HAVE_LIBICUI18N 1
 
39468
_ACEOF
 
39469
 
 
39470
  LIBS="-licui18n $LIBS"
 
39471
 
 
39472
else
 
39473
 
 
39474
 
 
39475
{ echo "$as_me:$LINENO: checking for ucol_open_3_4 in -licui18n" >&5
 
39476
echo $ECHO_N "checking for ucol_open_3_4 in -licui18n... $ECHO_C" >&6; }
 
39477
if test "${ac_cv_lib_icui18n_ucol_open_3_4+set}" = set; then
 
39478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39479
else
 
39480
  ac_check_lib_save_LIBS=$LIBS
 
39481
LIBS="-licui18n  $LIBS"
 
39482
cat >conftest.$ac_ext <<_ACEOF
 
39483
/* confdefs.h.  */
 
39484
_ACEOF
 
39485
cat confdefs.h >>conftest.$ac_ext
 
39486
cat >>conftest.$ac_ext <<_ACEOF
 
39487
/* end confdefs.h.  */
 
39488
 
 
39489
/* Override any GCC internal prototype to avoid an error.
 
39490
   Use char because int might match the return type of a GCC
 
39491
   builtin and then its argument prototype would still apply.  */
 
39492
#ifdef __cplusplus
 
39493
extern "C"
 
39494
#endif
 
39495
char ucol_open_3_4 ();
 
39496
#ifdef F77_DUMMY_MAIN
 
39497
 
 
39498
#  ifdef __cplusplus
 
39499
     extern "C"
 
39500
#  endif
 
39501
   int F77_DUMMY_MAIN() { return 1; }
 
39502
 
 
39503
#endif
 
39504
int
 
39505
main ()
 
39506
{
 
39507
return ucol_open_3_4 ();
 
39508
  ;
 
39509
  return 0;
 
39510
}
 
39511
_ACEOF
 
39512
rm -f conftest.$ac_objext conftest$ac_exeext
 
39513
if { (ac_try="$ac_link"
 
39514
case "(($ac_try" in
 
39515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39516
  *) ac_try_echo=$ac_try;;
 
39517
esac
 
39518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39519
  (eval "$ac_link") 2>conftest.er1
 
39520
  ac_status=$?
 
39521
  grep -v '^ *+' conftest.er1 >conftest.err
 
39522
  rm -f conftest.er1
 
39523
  cat conftest.err >&5
 
39524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39525
  (exit $ac_status); } && {
 
39526
         test -z "$ac_c_werror_flag" ||
 
39527
         test ! -s conftest.err
 
39528
       } && test -s conftest$ac_exeext &&
 
39529
       $as_test_x conftest$ac_exeext; then
 
39530
  ac_cv_lib_icui18n_ucol_open_3_4=yes
 
39531
else
 
39532
  echo "$as_me: failed program was:" >&5
 
39533
sed 's/^/| /' conftest.$ac_ext >&5
 
39534
 
 
39535
        ac_cv_lib_icui18n_ucol_open_3_4=no
 
39536
fi
 
39537
 
 
39538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39539
      conftest$ac_exeext conftest.$ac_ext
 
39540
LIBS=$ac_check_lib_save_LIBS
 
39541
fi
 
39542
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_4" >&5
 
39543
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_4" >&6; }
 
39544
if test $ac_cv_lib_icui18n_ucol_open_3_4 = yes; then
 
39545
  cat >>confdefs.h <<_ACEOF
 
39546
#define HAVE_LIBICUI18N 1
 
39547
_ACEOF
 
39548
 
 
39549
  LIBS="-licui18n $LIBS"
 
39550
 
 
39551
else
 
39552
  { { echo "$as_me:$LINENO: error: library 'icui18n' is required for ICU" >&5
 
39553
echo "$as_me: error: library 'icui18n' is required for ICU" >&2;}
 
39554
   { (exit 1); exit 1; }; }
 
39555
fi
 
39556
 
 
39557
 
 
39558
fi
 
39559
 
 
39560
 
 
39561
fi
 
39562
 
 
39563
 
 
39564
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_8 in -licuuc" >&5
 
39565
echo $ECHO_N "checking for ucnv_fromUChars_3_8 in -licuuc... $ECHO_C" >&6; }
 
39566
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_8+set}" = set; then
 
39567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39568
else
 
39569
  ac_check_lib_save_LIBS=$LIBS
 
39570
LIBS="-licuuc  $LIBS"
 
39571
cat >conftest.$ac_ext <<_ACEOF
 
39572
/* confdefs.h.  */
 
39573
_ACEOF
 
39574
cat confdefs.h >>conftest.$ac_ext
 
39575
cat >>conftest.$ac_ext <<_ACEOF
 
39576
/* end confdefs.h.  */
 
39577
 
 
39578
/* Override any GCC internal prototype to avoid an error.
 
39579
   Use char because int might match the return type of a GCC
 
39580
   builtin and then its argument prototype would still apply.  */
 
39581
#ifdef __cplusplus
 
39582
extern "C"
 
39583
#endif
 
39584
char ucnv_fromUChars_3_8 ();
 
39585
#ifdef F77_DUMMY_MAIN
 
39586
 
 
39587
#  ifdef __cplusplus
 
39588
     extern "C"
 
39589
#  endif
 
39590
   int F77_DUMMY_MAIN() { return 1; }
 
39591
 
 
39592
#endif
 
39593
int
 
39594
main ()
 
39595
{
 
39596
return ucnv_fromUChars_3_8 ();
 
39597
  ;
 
39598
  return 0;
 
39599
}
 
39600
_ACEOF
 
39601
rm -f conftest.$ac_objext conftest$ac_exeext
 
39602
if { (ac_try="$ac_link"
 
39603
case "(($ac_try" in
 
39604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39605
  *) ac_try_echo=$ac_try;;
 
39606
esac
 
39607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39608
  (eval "$ac_link") 2>conftest.er1
 
39609
  ac_status=$?
 
39610
  grep -v '^ *+' conftest.er1 >conftest.err
 
39611
  rm -f conftest.er1
 
39612
  cat conftest.err >&5
 
39613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39614
  (exit $ac_status); } && {
 
39615
         test -z "$ac_c_werror_flag" ||
 
39616
         test ! -s conftest.err
 
39617
       } && test -s conftest$ac_exeext &&
 
39618
       $as_test_x conftest$ac_exeext; then
 
39619
  ac_cv_lib_icuuc_ucnv_fromUChars_3_8=yes
 
39620
else
 
39621
  echo "$as_me: failed program was:" >&5
 
39622
sed 's/^/| /' conftest.$ac_ext >&5
 
39623
 
 
39624
        ac_cv_lib_icuuc_ucnv_fromUChars_3_8=no
 
39625
fi
 
39626
 
 
39627
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39628
      conftest$ac_exeext conftest.$ac_ext
 
39629
LIBS=$ac_check_lib_save_LIBS
 
39630
fi
 
39631
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_8" >&5
 
39632
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_8" >&6; }
 
39633
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_8 = yes; then
 
39634
  cat >>confdefs.h <<_ACEOF
 
39635
#define HAVE_LIBICUUC 1
 
39636
_ACEOF
 
39637
 
 
39638
  LIBS="-licuuc $LIBS"
 
39639
 
 
39640
else
 
39641
 
 
39642
 
 
39643
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_6 in -licuuc" >&5
 
39644
echo $ECHO_N "checking for ucnv_fromUChars_3_6 in -licuuc... $ECHO_C" >&6; }
 
39645
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_6+set}" = set; then
 
39646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39647
else
 
39648
  ac_check_lib_save_LIBS=$LIBS
 
39649
LIBS="-licuuc  $LIBS"
 
39650
cat >conftest.$ac_ext <<_ACEOF
 
39651
/* confdefs.h.  */
 
39652
_ACEOF
 
39653
cat confdefs.h >>conftest.$ac_ext
 
39654
cat >>conftest.$ac_ext <<_ACEOF
 
39655
/* end confdefs.h.  */
 
39656
 
 
39657
/* Override any GCC internal prototype to avoid an error.
 
39658
   Use char because int might match the return type of a GCC
 
39659
   builtin and then its argument prototype would still apply.  */
 
39660
#ifdef __cplusplus
 
39661
extern "C"
 
39662
#endif
 
39663
char ucnv_fromUChars_3_6 ();
 
39664
#ifdef F77_DUMMY_MAIN
 
39665
 
 
39666
#  ifdef __cplusplus
 
39667
     extern "C"
 
39668
#  endif
 
39669
   int F77_DUMMY_MAIN() { return 1; }
 
39670
 
 
39671
#endif
 
39672
int
 
39673
main ()
 
39674
{
 
39675
return ucnv_fromUChars_3_6 ();
 
39676
  ;
 
39677
  return 0;
 
39678
}
 
39679
_ACEOF
 
39680
rm -f conftest.$ac_objext conftest$ac_exeext
 
39681
if { (ac_try="$ac_link"
 
39682
case "(($ac_try" in
 
39683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39684
  *) ac_try_echo=$ac_try;;
 
39685
esac
 
39686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39687
  (eval "$ac_link") 2>conftest.er1
 
39688
  ac_status=$?
 
39689
  grep -v '^ *+' conftest.er1 >conftest.err
 
39690
  rm -f conftest.er1
 
39691
  cat conftest.err >&5
 
39692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39693
  (exit $ac_status); } && {
 
39694
         test -z "$ac_c_werror_flag" ||
 
39695
         test ! -s conftest.err
 
39696
       } && test -s conftest$ac_exeext &&
 
39697
       $as_test_x conftest$ac_exeext; then
 
39698
  ac_cv_lib_icuuc_ucnv_fromUChars_3_6=yes
 
39699
else
 
39700
  echo "$as_me: failed program was:" >&5
 
39701
sed 's/^/| /' conftest.$ac_ext >&5
 
39702
 
 
39703
        ac_cv_lib_icuuc_ucnv_fromUChars_3_6=no
 
39704
fi
 
39705
 
 
39706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39707
      conftest$ac_exeext conftest.$ac_ext
 
39708
LIBS=$ac_check_lib_save_LIBS
 
39709
fi
 
39710
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_6" >&5
 
39711
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_6" >&6; }
 
39712
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_6 = yes; then
 
39713
  cat >>confdefs.h <<_ACEOF
 
39714
#define HAVE_LIBICUUC 1
 
39715
_ACEOF
 
39716
 
 
39717
  LIBS="-licuuc $LIBS"
 
39718
 
 
39719
else
 
39720
 
 
39721
 
 
39722
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_4 in -licuuc" >&5
 
39723
echo $ECHO_N "checking for ucnv_fromUChars_3_4 in -licuuc... $ECHO_C" >&6; }
 
39724
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_4+set}" = set; then
 
39725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39726
else
 
39727
  ac_check_lib_save_LIBS=$LIBS
 
39728
LIBS="-licuuc  $LIBS"
 
39729
cat >conftest.$ac_ext <<_ACEOF
 
39730
/* confdefs.h.  */
 
39731
_ACEOF
 
39732
cat confdefs.h >>conftest.$ac_ext
 
39733
cat >>conftest.$ac_ext <<_ACEOF
 
39734
/* end confdefs.h.  */
 
39735
 
 
39736
/* Override any GCC internal prototype to avoid an error.
 
39737
   Use char because int might match the return type of a GCC
 
39738
   builtin and then its argument prototype would still apply.  */
 
39739
#ifdef __cplusplus
 
39740
extern "C"
 
39741
#endif
 
39742
char ucnv_fromUChars_3_4 ();
 
39743
#ifdef F77_DUMMY_MAIN
 
39744
 
 
39745
#  ifdef __cplusplus
 
39746
     extern "C"
 
39747
#  endif
 
39748
   int F77_DUMMY_MAIN() { return 1; }
 
39749
 
 
39750
#endif
 
39751
int
 
39752
main ()
 
39753
{
 
39754
return ucnv_fromUChars_3_4 ();
 
39755
  ;
 
39756
  return 0;
 
39757
}
 
39758
_ACEOF
 
39759
rm -f conftest.$ac_objext conftest$ac_exeext
 
39760
if { (ac_try="$ac_link"
 
39761
case "(($ac_try" in
 
39762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39763
  *) ac_try_echo=$ac_try;;
 
39764
esac
 
39765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39766
  (eval "$ac_link") 2>conftest.er1
 
39767
  ac_status=$?
 
39768
  grep -v '^ *+' conftest.er1 >conftest.err
 
39769
  rm -f conftest.er1
 
39770
  cat conftest.err >&5
 
39771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39772
  (exit $ac_status); } && {
 
39773
         test -z "$ac_c_werror_flag" ||
 
39774
         test ! -s conftest.err
 
39775
       } && test -s conftest$ac_exeext &&
 
39776
       $as_test_x conftest$ac_exeext; then
 
39777
  ac_cv_lib_icuuc_ucnv_fromUChars_3_4=yes
 
39778
else
 
39779
  echo "$as_me: failed program was:" >&5
 
39780
sed 's/^/| /' conftest.$ac_ext >&5
 
39781
 
 
39782
        ac_cv_lib_icuuc_ucnv_fromUChars_3_4=no
 
39783
fi
 
39784
 
 
39785
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39786
      conftest$ac_exeext conftest.$ac_ext
 
39787
LIBS=$ac_check_lib_save_LIBS
 
39788
fi
 
39789
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_4" >&5
 
39790
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_4" >&6; }
 
39791
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_4 = yes; then
 
39792
  cat >>confdefs.h <<_ACEOF
 
39793
#define HAVE_LIBICUUC 1
 
39794
_ACEOF
 
39795
 
 
39796
  LIBS="-licuuc $LIBS"
 
39797
 
 
39798
else
 
39799
  { { echo "$as_me:$LINENO: error: library 'icuuc' is required for ICU" >&5
 
39800
echo "$as_me: error: library 'icuuc' is required for ICU" >&2;}
 
39801
   { (exit 1); exit 1; }; }
 
39802
fi
 
39803
 
 
39804
 
 
39805
fi
 
39806
 
 
39807
 
 
39808
fi
 
39809
 
 
39810
  if test "$use_ICU" = yes ; then
 
39811
    if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
 
39812
  { echo "$as_me:$LINENO: checking for unicode/utypes.h" >&5
 
39813
echo $ECHO_N "checking for unicode/utypes.h... $ECHO_C" >&6; }
 
39814
if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
 
39815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39816
fi
 
39817
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utypes_h" >&5
 
39818
echo "${ECHO_T}$ac_cv_header_unicode_utypes_h" >&6; }
 
39819
else
 
39820
  # Is the header compilable?
 
39821
{ echo "$as_me:$LINENO: checking unicode/utypes.h usability" >&5
 
39822
echo $ECHO_N "checking unicode/utypes.h usability... $ECHO_C" >&6; }
 
39823
cat >conftest.$ac_ext <<_ACEOF
 
39824
/* confdefs.h.  */
 
39825
_ACEOF
 
39826
cat confdefs.h >>conftest.$ac_ext
 
39827
cat >>conftest.$ac_ext <<_ACEOF
 
39828
/* end confdefs.h.  */
 
39829
$ac_includes_default
 
39830
#include <unicode/utypes.h>
 
39831
_ACEOF
 
39832
rm -f conftest.$ac_objext
 
39833
if { (ac_try="$ac_compile"
 
39834
case "(($ac_try" in
 
39835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39836
  *) ac_try_echo=$ac_try;;
 
39837
esac
 
39838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39839
  (eval "$ac_compile") 2>conftest.er1
 
39840
  ac_status=$?
 
39841
  grep -v '^ *+' conftest.er1 >conftest.err
 
39842
  rm -f conftest.er1
 
39843
  cat conftest.err >&5
 
39844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39845
  (exit $ac_status); } && {
 
39846
         test -z "$ac_c_werror_flag" ||
 
39847
         test ! -s conftest.err
 
39848
       } && test -s conftest.$ac_objext; then
 
39849
  ac_header_compiler=yes
 
39850
else
 
39851
  echo "$as_me: failed program was:" >&5
 
39852
sed 's/^/| /' conftest.$ac_ext >&5
 
39853
 
 
39854
        ac_header_compiler=no
 
39855
fi
 
39856
 
 
39857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
39859
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
39860
 
 
39861
# Is the header present?
 
39862
{ echo "$as_me:$LINENO: checking unicode/utypes.h presence" >&5
 
39863
echo $ECHO_N "checking unicode/utypes.h presence... $ECHO_C" >&6; }
 
39864
cat >conftest.$ac_ext <<_ACEOF
 
39865
/* confdefs.h.  */
 
39866
_ACEOF
 
39867
cat confdefs.h >>conftest.$ac_ext
 
39868
cat >>conftest.$ac_ext <<_ACEOF
 
39869
/* end confdefs.h.  */
 
39870
#include <unicode/utypes.h>
 
39871
_ACEOF
 
39872
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
39873
case "(($ac_try" in
 
39874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39875
  *) ac_try_echo=$ac_try;;
 
39876
esac
 
39877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39878
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
39879
  ac_status=$?
 
39880
  grep -v '^ *+' conftest.er1 >conftest.err
 
39881
  rm -f conftest.er1
 
39882
  cat conftest.err >&5
 
39883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39884
  (exit $ac_status); } >/dev/null && {
 
39885
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
39886
         test ! -s conftest.err
 
39887
       }; then
 
39888
  ac_header_preproc=yes
 
39889
else
 
39890
  echo "$as_me: failed program was:" >&5
 
39891
sed 's/^/| /' conftest.$ac_ext >&5
 
39892
 
 
39893
  ac_header_preproc=no
 
39894
fi
 
39895
 
 
39896
rm -f conftest.err conftest.$ac_ext
 
39897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
39898
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
39899
 
 
39900
# So?  What about this header?
 
39901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
39902
  yes:no: )
 
39903
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
39904
echo "$as_me: WARNING: unicode/utypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
39905
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: proceeding with the compiler's result" >&5
 
39906
echo "$as_me: WARNING: unicode/utypes.h: proceeding with the compiler's result" >&2;}
 
39907
    ac_header_preproc=yes
 
39908
    ;;
 
39909
  no:yes:* )
 
39910
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: present but cannot be compiled" >&5
 
39911
echo "$as_me: WARNING: unicode/utypes.h: present but cannot be compiled" >&2;}
 
39912
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h:     check for missing prerequisite headers?" >&5
 
39913
echo "$as_me: WARNING: unicode/utypes.h:     check for missing prerequisite headers?" >&2;}
 
39914
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: see the Autoconf documentation" >&5
 
39915
echo "$as_me: WARNING: unicode/utypes.h: see the Autoconf documentation" >&2;}
 
39916
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h:     section \"Present But Cannot Be Compiled\"" >&5
 
39917
echo "$as_me: WARNING: unicode/utypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
39918
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: proceeding with the preprocessor's result" >&5
 
39919
echo "$as_me: WARNING: unicode/utypes.h: proceeding with the preprocessor's result" >&2;}
 
39920
    { echo "$as_me:$LINENO: WARNING: unicode/utypes.h: in the future, the compiler will take precedence" >&5
 
39921
echo "$as_me: WARNING: unicode/utypes.h: in the future, the compiler will take precedence" >&2;}
 
39922
    ( cat <<\_ASBOX
 
39923
## ----------------------------------- ##
 
39924
## Report this to r-bugs@R-project.org ##
 
39925
## ----------------------------------- ##
 
39926
_ASBOX
 
39927
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
39928
    ;;
 
39929
esac
 
39930
{ echo "$as_me:$LINENO: checking for unicode/utypes.h" >&5
 
39931
echo $ECHO_N "checking for unicode/utypes.h... $ECHO_C" >&6; }
 
39932
if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
 
39933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39934
else
 
39935
  ac_cv_header_unicode_utypes_h=$ac_header_preproc
 
39936
fi
 
39937
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utypes_h" >&5
 
39938
echo "${ECHO_T}$ac_cv_header_unicode_utypes_h" >&6; }
 
39939
 
 
39940
fi
 
39941
if test $ac_cv_header_unicode_utypes_h = yes; then
 
39942
  :
 
39943
else
 
39944
  { { echo "$as_me:$LINENO: error: header file <unicode/utypes.h> is required for ICU" >&5
 
39945
echo "$as_me: error: header file <unicode/utypes.h> is required for ICU" >&2;}
 
39946
   { (exit 1); exit 1; }; }
 
39947
fi
 
39948
 
 
39949
 
 
39950
  fi
 
39951
fi
 
39952
if test "$use_ICU" = yes ; then
 
39953
 
 
39954
cat >>confdefs.h <<_ACEOF
 
39955
#define USE_ICU 1
 
39956
_ACEOF
 
39957
 
 
39958
fi
 
39959
 
 
39960
 
 
39961
 
39158
39962
## X11.
39159
39963
{ echo "$as_me:$LINENO: checking for X" >&5
39160
39964
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
43831
44635
fi
43832
44636
 
43833
44637
  if test "${have_bzlib}" = yes; then
43834
 
    if test "${ac_cv_header_bzlib_h+set}" = set; then
43835
 
  { echo "$as_me:$LINENO: checking for bzlib.h" >&5
43836
 
echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; }
43837
 
if test "${ac_cv_header_bzlib_h+set}" = set; then
 
44638
 
 
44639
for ac_header in bzlib.h
 
44640
do
 
44641
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
44642
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
44643
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
44644
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
44645
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43838
44646
  echo $ECHO_N "(cached) $ECHO_C" >&6
43839
44647
fi
43840
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
43841
 
echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; }
 
44648
ac_res=`eval echo '${'$as_ac_Header'}'`
 
44649
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
44650
echo "${ECHO_T}$ac_res" >&6; }
43842
44651
else
43843
44652
  # Is the header compilable?
43844
 
{ echo "$as_me:$LINENO: checking bzlib.h usability" >&5
43845
 
echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6; }
 
44653
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
44654
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43846
44655
cat >conftest.$ac_ext <<_ACEOF
43847
44656
/* confdefs.h.  */
43848
44657
_ACEOF
43850
44659
cat >>conftest.$ac_ext <<_ACEOF
43851
44660
/* end confdefs.h.  */
43852
44661
$ac_includes_default
43853
 
#include <bzlib.h>
 
44662
#include <$ac_header>
43854
44663
_ACEOF
43855
44664
rm -f conftest.$ac_objext
43856
44665
if { (ac_try="$ac_compile"
43882
44691
echo "${ECHO_T}$ac_header_compiler" >&6; }
43883
44692
 
43884
44693
# Is the header present?
43885
 
{ echo "$as_me:$LINENO: checking bzlib.h presence" >&5
43886
 
echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6; }
 
44694
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
44695
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43887
44696
cat >conftest.$ac_ext <<_ACEOF
43888
44697
/* confdefs.h.  */
43889
44698
_ACEOF
43890
44699
cat confdefs.h >>conftest.$ac_ext
43891
44700
cat >>conftest.$ac_ext <<_ACEOF
43892
44701
/* end confdefs.h.  */
43893
 
#include <bzlib.h>
 
44702
#include <$ac_header>
43894
44703
_ACEOF
43895
44704
if { (ac_try="$ac_cpp conftest.$ac_ext"
43896
44705
case "(($ac_try" in
43923
44732
# So?  What about this header?
43924
44733
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43925
44734
  yes:no: )
43926
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
43927
 
echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43928
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
43929
 
echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
 
44735
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
44736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
44737
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
44738
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43930
44739
    ac_header_preproc=yes
43931
44740
    ;;
43932
44741
  no:yes:* )
43933
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
43934
 
echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
43935
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h:     check for missing prerequisite headers?" >&5
43936
 
echo "$as_me: WARNING: bzlib.h:     check for missing prerequisite headers?" >&2;}
43937
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
43938
 
echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
43939
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h:     section \"Present But Cannot Be Compiled\"" >&5
43940
 
echo "$as_me: WARNING: bzlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43941
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
43942
 
echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
43943
 
    { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
43944
 
echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
 
44742
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
44743
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
44744
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
44745
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
44746
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
44747
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
44748
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
44749
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
44750
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
44751
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
44752
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
44753
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43945
44754
    ( cat <<\_ASBOX
43946
44755
## ----------------------------------- ##
43947
44756
## Report this to r-bugs@R-project.org ##
43950
44759
     ) | sed "s/^/$as_me: WARNING:     /" >&2
43951
44760
    ;;
43952
44761
esac
43953
 
{ echo "$as_me:$LINENO: checking for bzlib.h" >&5
43954
 
echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; }
43955
 
if test "${ac_cv_header_bzlib_h+set}" = set; then
 
44762
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
44763
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
44764
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43956
44765
  echo $ECHO_N "(cached) $ECHO_C" >&6
43957
44766
else
43958
 
  ac_cv_header_bzlib_h=$ac_header_preproc
 
44767
  eval "$as_ac_Header=\$ac_header_preproc"
43959
44768
fi
43960
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
43961
 
echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; }
 
44769
ac_res=`eval echo '${'$as_ac_Header'}'`
 
44770
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
44771
echo "${ECHO_T}$ac_res" >&6; }
43962
44772
 
43963
44773
fi
43964
 
if test $ac_cv_header_bzlib_h = yes; then
43965
 
  have_bzlib=yes
 
44774
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
44775
  cat >>confdefs.h <<_ACEOF
 
44776
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
44777
_ACEOF
 
44778
 have_bzlib=yes
43966
44779
else
43967
44780
  have_bzlib=no
43968
44781
fi
43969
44782
 
 
44783
done
43970
44784
 
43971
44785
  fi
43972
44786
else
43978
44792
if test "${r_cv_have_bzlib+set}" = set; then
43979
44793
  echo $ECHO_N "(cached) $ECHO_C" >&6
43980
44794
else
43981
 
  if test "$cross_compiling" = yes; then
 
44795
  ac_ext=c
 
44796
ac_cpp='$CPP $CPPFLAGS'
 
44797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
44798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
44799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
44800
 
 
44801
r_save_LIBS="${LIBS}"
 
44802
LIBS="-lbz2 ${LIBS}"
 
44803
if test "$cross_compiling" = yes; then
43982
44804
  r_cv_have_bzlib=no
43983
44805
else
43984
44806
  cat >conftest.$ac_ext <<_ACEOF
44030
44852
fi
44031
44853
 
44032
44854
 
 
44855
LIBS="${r_save_LIBS}"
 
44856
ac_ext=c
 
44857
ac_cpp='$CPP $CPPFLAGS'
 
44858
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
44859
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
44860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
44861
 
44033
44862
fi
44034
44863
{ echo "$as_me:$LINENO: result: $r_cv_have_bzlib" >&5
44035
44864
echo "${ECHO_T}$r_cv_have_bzlib" >&6; }
44619
45448
_ACEOF
44620
45449
 
44621
45450
    TIFF_LIBS=-ltiff
 
45451
  else
 
45452
    have_tiff=no
44622
45453
  fi
44623
45454
fi
44624
45455
 
45627
46458
 
45628
46459
have_java=no
45629
46460
 
 
46461
## find java compiler binaries
45630
46462
if test -z "${JAVA_HOME}" ; then
45631
46463
  JAVA_PATH=${PATH}
45632
46464
else
45633
46465
  ## try jre/bin first just in case we don't have full JDK
45634
46466
  JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/jre/bin:${JAVA_HOME}/bin:${JAVA_HOME}/../bin:${PATH}
45635
46467
fi
 
46468
## if 'java' is not on the PATH or JAVA_HOME, add some guesses as of
 
46469
## where java could live
45636
46470
JAVA_PATH=${JAVA_PATH}:/usr/java/bin:/usr/jdk/bin:/usr/lib/java/bin:/usr/lib/jdk/bin:/usr/local/java/bin:/usr/local/jdk/bin:/usr/local/lib/java/bin:/usr/local/lib/jdk/bin
45637
46471
for ac_prog in java
45638
46472
do
45679
46513
  test -n "$JAVA" && break
45680
46514
done
45681
46515
 
 
46516
## FIXME: we may want to check for jikes, kaffe and others...
 
46517
## (however, most of them have compatibility wrappers by now)
45682
46518
for ac_prog in javac
45683
46519
do
45684
46520
  # Extract the first word of "$ac_prog", so it can be a program name with args.
45815
46651
done
45816
46652
 
45817
46653
 
 
46654
## we don't require a compiler, but it would be useful
45818
46655
{ echo "$as_me:$LINENO: checking whether Java compiler works" >&5
45819
46656
echo $ECHO_N "checking whether Java compiler works... $ECHO_C" >&6; }
45820
46657
if test "${r_cv_javac_works+set}" = set; then
45870
46707
fi
45871
46708
 
45872
46709
 
 
46710
## this is where our test-class lives (in tools directory)
45873
46711
getsp_cp=${ac_aux_dir}
45874
46712
 
45875
46713
{ echo "$as_me:$LINENO: checking whether Java interpreter works" >&5
46040
46878
           done
46041
46879
           if test -z "${jmdinc}"; then
46042
46880
             # ultima-ratio: use find and pray that it works
46043
 
             jmdinc=`find "${jinc}/" -name jni_md.h 2>dev/null |head -n 1 2>/dev/null`
 
46881
             jmdinc=`find "${jinc}/" -name jni_md.h 2>/dev/null |head -n 1 2>/dev/null`
46044
46882
             if test -n "${jmdinc}"; then jmdinc=`dirname "${jmdinc}"`; fi
46045
46883
           fi
46046
46884
           if test -n "${jmdinc}"; then
46207
47045
  JAVA_HOME=
46208
47046
fi
46209
47047
 
 
47048
## AC_SUBST(JAVA_HOME) # not needed? is precious now
46210
47049
 
46211
47050
 
46212
47051
 
47295
48134
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47296
48135
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47297
48136
   -e 's:$: $lt_compiler_flag:'`
47298
 
   (eval echo "\"\$as_me:47298: $lt_compile\"" >&5)
 
48137
   (eval echo "\"\$as_me:48137: $lt_compile\"" >&5)
47299
48138
   (eval "$lt_compile" 2>conftest.err)
47300
48139
   ac_status=$?
47301
48140
   cat conftest.err >&5
47302
 
   echo "$as_me:47302: \$? = $ac_status" >&5
 
48141
   echo "$as_me:48141: \$? = $ac_status" >&5
47303
48142
   if (exit $ac_status) && test -s "$ac_outfile"; then
47304
48143
     # The compiler can only warn and ignore the option if not recognized
47305
48144
     # So say no if there are warnings other than the usual output.
47394
48233
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47395
48234
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47396
48235
   -e 's:$: $lt_compiler_flag:'`
47397
 
   (eval echo "\"\$as_me:47397: $lt_compile\"" >&5)
 
48236
   (eval echo "\"\$as_me:48236: $lt_compile\"" >&5)
47398
48237
   (eval "$lt_compile" 2>out/conftest.err)
47399
48238
   ac_status=$?
47400
48239
   cat out/conftest.err >&5
47401
 
   echo "$as_me:47401: \$? = $ac_status" >&5
 
48240
   echo "$as_me:48240: \$? = $ac_status" >&5
47402
48241
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
47403
48242
   then
47404
48243
     # The compiler can only warn and ignore the option if not recognized
47446
48285
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47447
48286
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47448
48287
   -e 's:$: $lt_compiler_flag:'`
47449
 
   (eval echo "\"\$as_me:47449: $lt_compile\"" >&5)
 
48288
   (eval echo "\"\$as_me:48288: $lt_compile\"" >&5)
47450
48289
   (eval "$lt_compile" 2>out/conftest.err)
47451
48290
   ac_status=$?
47452
48291
   cat out/conftest.err >&5
47453
 
   echo "$as_me:47453: \$? = $ac_status" >&5
 
48292
   echo "$as_me:48292: \$? = $ac_status" >&5
47454
48293
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
47455
48294
   then
47456
48295
     # The compiler can only warn and ignore the option if not recognized
52919
53758
 
52920
53759
 
52921
53760
 
52922
 
 
52923
 
 
52924
 
 
52925
 
    use_additional=yes
52926
 
 
52927
 
  acl_save_prefix="$prefix"
52928
 
  prefix="$acl_final_prefix"
52929
 
  acl_save_exec_prefix="$exec_prefix"
52930
 
  exec_prefix="$acl_final_exec_prefix"
52931
 
 
52932
 
    eval additional_includedir=\"$includedir\"
52933
 
    eval additional_libdir=\"$libdir\"
52934
 
 
52935
 
  exec_prefix="$acl_save_exec_prefix"
52936
 
  prefix="$acl_save_prefix"
52937
 
 
52938
 
 
52939
 
# Check whether --with-libiconv-prefix was given.
52940
 
if test "${with_libiconv_prefix+set}" = set; then
52941
 
  withval=$with_libiconv_prefix;
52942
 
    if test "X$withval" = "Xno"; then
52943
 
      use_additional=no
52944
 
    else
52945
 
      if test "X$withval" = "X"; then
52946
 
 
52947
 
  acl_save_prefix="$prefix"
52948
 
  prefix="$acl_final_prefix"
52949
 
  acl_save_exec_prefix="$exec_prefix"
52950
 
  exec_prefix="$acl_final_exec_prefix"
52951
 
 
52952
 
          eval additional_includedir=\"$includedir\"
52953
 
          eval additional_libdir=\"$libdir\"
52954
 
 
52955
 
  exec_prefix="$acl_save_exec_prefix"
52956
 
  prefix="$acl_save_prefix"
52957
 
 
52958
 
      else
52959
 
        additional_includedir="$withval/include"
52960
 
        additional_libdir="$withval/lib"
52961
 
      fi
52962
 
    fi
52963
 
 
52964
 
fi
52965
 
 
52966
 
      LIBICONV=
52967
 
  LTLIBICONV=
52968
 
  INCICONV=
52969
 
  rpathdirs=
52970
 
  ltrpathdirs=
52971
 
  names_already_handled=
52972
 
  names_next_round='iconv '
52973
 
  while test -n "$names_next_round"; do
52974
 
    names_this_round="$names_next_round"
52975
 
    names_next_round=
52976
 
    for name in $names_this_round; do
52977
 
      already_handled=
52978
 
      for n in $names_already_handled; do
52979
 
        if test "$n" = "$name"; then
52980
 
          already_handled=yes
52981
 
          break
52982
 
        fi
52983
 
      done
52984
 
      if test -z "$already_handled"; then
52985
 
        names_already_handled="$names_already_handled $name"
52986
 
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
52987
 
        eval value=\"\$HAVE_LIB$uppername\"
52988
 
        if test -n "$value"; then
52989
 
          if test "$value" = yes; then
52990
 
            eval value=\"\$LIB$uppername\"
52991
 
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
52992
 
            eval value=\"\$LTLIB$uppername\"
52993
 
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
52994
 
          else
52995
 
                                    :
52996
 
          fi
52997
 
        else
52998
 
                              found_dir=
52999
 
          found_la=
53000
 
          found_so=
53001
 
          found_a=
53002
 
          if test $use_additional = yes; then
53003
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
53004
 
              found_dir="$additional_libdir"
53005
 
              found_so="$additional_libdir/lib$name.$shlibext"
53006
 
              if test -f "$additional_libdir/lib$name.la"; then
53007
 
                found_la="$additional_libdir/lib$name.la"
53008
 
              fi
53009
 
            else
53010
 
              if test -f "$additional_libdir/lib$name.$libext"; then
53011
 
                found_dir="$additional_libdir"
53012
 
                found_a="$additional_libdir/lib$name.$libext"
53013
 
                if test -f "$additional_libdir/lib$name.la"; then
53014
 
                  found_la="$additional_libdir/lib$name.la"
53015
 
                fi
53016
 
              fi
53017
 
            fi
53018
 
          fi
53019
 
          if test "X$found_dir" = "X"; then
53020
 
            for x in $LDFLAGS $LTLIBICONV; do
53021
 
 
53022
 
  acl_save_prefix="$prefix"
53023
 
  prefix="$acl_final_prefix"
53024
 
  acl_save_exec_prefix="$exec_prefix"
53025
 
  exec_prefix="$acl_final_exec_prefix"
53026
 
  eval x=\"$x\"
53027
 
  exec_prefix="$acl_save_exec_prefix"
53028
 
  prefix="$acl_save_prefix"
53029
 
 
53030
 
              case "$x" in
53031
 
                -L*)
53032
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
53033
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
53034
 
                    found_dir="$dir"
53035
 
                    found_so="$dir/lib$name.$shlibext"
53036
 
                    if test -f "$dir/lib$name.la"; then
53037
 
                      found_la="$dir/lib$name.la"
53038
 
                    fi
53039
 
                  else
53040
 
                    if test -f "$dir/lib$name.$libext"; then
53041
 
                      found_dir="$dir"
53042
 
                      found_a="$dir/lib$name.$libext"
53043
 
                      if test -f "$dir/lib$name.la"; then
53044
 
                        found_la="$dir/lib$name.la"
53045
 
                      fi
53046
 
                    fi
53047
 
                  fi
53048
 
                  ;;
53049
 
              esac
53050
 
              if test "X$found_dir" != "X"; then
53051
 
                break
53052
 
              fi
53053
 
            done
53054
 
          fi
53055
 
          if test "X$found_dir" != "X"; then
53056
 
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
53057
 
            if test "X$found_so" != "X"; then
53058
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
53059
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53060
 
              else
53061
 
                                                                                haveit=
53062
 
                for x in $ltrpathdirs; do
53063
 
                  if test "X$x" = "X$found_dir"; then
53064
 
                    haveit=yes
53065
 
                    break
53066
 
                  fi
53067
 
                done
53068
 
                if test -z "$haveit"; then
53069
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
53070
 
                fi
53071
 
                                if test "$hardcode_direct" = yes; then
53072
 
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53073
 
                else
53074
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
53075
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53076
 
                                                            haveit=
53077
 
                    for x in $rpathdirs; do
53078
 
                      if test "X$x" = "X$found_dir"; then
53079
 
                        haveit=yes
53080
 
                        break
53081
 
                      fi
53082
 
                    done
53083
 
                    if test -z "$haveit"; then
53084
 
                      rpathdirs="$rpathdirs $found_dir"
53085
 
                    fi
53086
 
                  else
53087
 
                                                                                haveit=
53088
 
                    for x in $LDFLAGS $LIBICONV; do
53089
 
 
53090
 
  acl_save_prefix="$prefix"
53091
 
  prefix="$acl_final_prefix"
53092
 
  acl_save_exec_prefix="$exec_prefix"
53093
 
  exec_prefix="$acl_final_exec_prefix"
53094
 
  eval x=\"$x\"
53095
 
  exec_prefix="$acl_save_exec_prefix"
53096
 
  prefix="$acl_save_prefix"
53097
 
 
53098
 
                      if test "X$x" = "X-L$found_dir"; then
53099
 
                        haveit=yes
53100
 
                        break
53101
 
                      fi
53102
 
                    done
53103
 
                    if test -z "$haveit"; then
53104
 
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
53105
 
                    fi
53106
 
                    if test "$hardcode_minus_L" != no; then
53107
 
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53108
 
                    else
53109
 
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53110
 
                    fi
53111
 
                  fi
53112
 
                fi
53113
 
              fi
53114
 
            else
53115
 
              if test "X$found_a" != "X"; then
53116
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
53117
 
              else
53118
 
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
53119
 
              fi
53120
 
            fi
53121
 
                        additional_includedir=
53122
 
            case "$found_dir" in
53123
 
              */lib | */lib/)
53124
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
53125
 
                additional_includedir="$basedir/include"
53126
 
                ;;
53127
 
            esac
53128
 
            if test "X$additional_includedir" != "X"; then
53129
 
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
53130
 
                haveit=
53131
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
53132
 
                  if test -n "$GCC"; then
53133
 
                    case $host_os in
53134
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53135
 
                    esac
53136
 
                  fi
53137
 
                fi
53138
 
                if test -z "$haveit"; then
53139
 
                  for x in $CPPFLAGS $INCICONV; do
53140
 
 
53141
 
  acl_save_prefix="$prefix"
53142
 
  prefix="$acl_final_prefix"
53143
 
  acl_save_exec_prefix="$exec_prefix"
53144
 
  exec_prefix="$acl_final_exec_prefix"
53145
 
  eval x=\"$x\"
53146
 
  exec_prefix="$acl_save_exec_prefix"
53147
 
  prefix="$acl_save_prefix"
53148
 
 
53149
 
                    if test "X$x" = "X-I$additional_includedir"; then
53150
 
                      haveit=yes
53151
 
                      break
53152
 
                    fi
53153
 
                  done
53154
 
                  if test -z "$haveit"; then
53155
 
                    if test -d "$additional_includedir"; then
53156
 
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
53157
 
                    fi
53158
 
                  fi
53159
 
                fi
53160
 
              fi
53161
 
            fi
53162
 
                        if test -n "$found_la"; then
53163
 
                                                        save_libdir="$libdir"
53164
 
              case "$found_la" in
53165
 
                */* | *\\*) . "$found_la" ;;
53166
 
                *) . "./$found_la" ;;
53167
 
              esac
53168
 
              libdir="$save_libdir"
53169
 
                            for dep in $dependency_libs; do
53170
 
                case "$dep" in
53171
 
                  -L*)
53172
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53173
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
53174
 
                      haveit=
53175
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
53176
 
                        if test -n "$GCC"; then
53177
 
                          case $host_os in
53178
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53179
 
                          esac
53180
 
                        fi
53181
 
                      fi
53182
 
                      if test -z "$haveit"; then
53183
 
                        haveit=
53184
 
                        for x in $LDFLAGS $LIBICONV; do
53185
 
 
53186
 
  acl_save_prefix="$prefix"
53187
 
  prefix="$acl_final_prefix"
53188
 
  acl_save_exec_prefix="$exec_prefix"
53189
 
  exec_prefix="$acl_final_exec_prefix"
53190
 
  eval x=\"$x\"
53191
 
  exec_prefix="$acl_save_exec_prefix"
53192
 
  prefix="$acl_save_prefix"
53193
 
 
53194
 
                          if test "X$x" = "X-L$additional_libdir"; then
53195
 
                            haveit=yes
53196
 
                            break
53197
 
                          fi
53198
 
                        done
53199
 
                        if test -z "$haveit"; then
53200
 
                          if test -d "$additional_libdir"; then
53201
 
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
53202
 
                          fi
53203
 
                        fi
53204
 
                        haveit=
53205
 
                        for x in $LDFLAGS $LTLIBICONV; do
53206
 
 
53207
 
  acl_save_prefix="$prefix"
53208
 
  prefix="$acl_final_prefix"
53209
 
  acl_save_exec_prefix="$exec_prefix"
53210
 
  exec_prefix="$acl_final_exec_prefix"
53211
 
  eval x=\"$x\"
53212
 
  exec_prefix="$acl_save_exec_prefix"
53213
 
  prefix="$acl_save_prefix"
53214
 
 
53215
 
                          if test "X$x" = "X-L$additional_libdir"; then
53216
 
                            haveit=yes
53217
 
                            break
53218
 
                          fi
53219
 
                        done
53220
 
                        if test -z "$haveit"; then
53221
 
                          if test -d "$additional_libdir"; then
53222
 
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
53223
 
                          fi
53224
 
                        fi
53225
 
                      fi
53226
 
                    fi
53227
 
                    ;;
53228
 
                  -R*)
53229
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
53230
 
                    if test "$enable_rpath" != no; then
53231
 
                                                                  haveit=
53232
 
                      for x in $rpathdirs; do
53233
 
                        if test "X$x" = "X$dir"; then
53234
 
                          haveit=yes
53235
 
                          break
53236
 
                        fi
53237
 
                      done
53238
 
                      if test -z "$haveit"; then
53239
 
                        rpathdirs="$rpathdirs $dir"
53240
 
                      fi
53241
 
                                                                  haveit=
53242
 
                      for x in $ltrpathdirs; do
53243
 
                        if test "X$x" = "X$dir"; then
53244
 
                          haveit=yes
53245
 
                          break
53246
 
                        fi
53247
 
                      done
53248
 
                      if test -z "$haveit"; then
53249
 
                        ltrpathdirs="$ltrpathdirs $dir"
53250
 
                      fi
53251
 
                    fi
53252
 
                    ;;
53253
 
                  -l*)
53254
 
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
53255
 
                    ;;
53256
 
                  *.la)
53257
 
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
53258
 
                    ;;
53259
 
                  *)
53260
 
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
53261
 
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
53262
 
                    ;;
53263
 
                esac
53264
 
              done
53265
 
            fi
53266
 
          else
53267
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53268
 
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
53269
 
          fi
53270
 
        fi
53271
 
      fi
53272
 
    done
53273
 
  done
53274
 
  if test "X$rpathdirs" != "X"; then
53275
 
    if test -n "$hardcode_libdir_separator"; then
53276
 
                        alldirs=
53277
 
      for found_dir in $rpathdirs; do
53278
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
53279
 
      done
53280
 
            acl_save_libdir="$libdir"
53281
 
      libdir="$alldirs"
53282
 
      eval flag=\"$hardcode_libdir_flag_spec\"
53283
 
      libdir="$acl_save_libdir"
53284
 
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
53285
 
    else
53286
 
            for found_dir in $rpathdirs; do
53287
 
        acl_save_libdir="$libdir"
53288
 
        libdir="$found_dir"
53289
 
        eval flag=\"$hardcode_libdir_flag_spec\"
53290
 
        libdir="$acl_save_libdir"
53291
 
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
53292
 
      done
53293
 
    fi
53294
 
  fi
53295
 
  if test "X$ltrpathdirs" != "X"; then
53296
 
            for found_dir in $ltrpathdirs; do
53297
 
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
53298
 
    done
53299
 
  fi
53300
 
 
53301
 
 
53302
 
 
53303
 
 
53304
 
 
53305
53761
  cat >conftest.$ac_ext <<_ACEOF
53306
53762
/* confdefs.h.  */
53307
53763
_ACEOF
53778
54234
 
53779
54235
 
53780
54236
 
53781
 
 
53782
54237
          am_save_CPPFLAGS="$CPPFLAGS"
53783
54238
 
53784
54239
  for element in $INCICONV; do
57636
58091
 
57637
58092
 
57638
58093
 
57639
 
 
57640
58094
          am_save_CPPFLAGS="$CPPFLAGS"
57641
58095
 
57642
58096
  for element in $INCICONV; do
58561
59015
# report actual input values of CONFIG_FILES etc. instead of their
58562
59016
# values after options handling.
58563
59017
ac_log="
58564
 
This file was extended by R $as_me 2.7.1, which was
 
59018
This file was extended by R $as_me 2.8.1, which was
58565
59019
generated by GNU Autoconf 2.61.  Invocation command line was
58566
59020
 
58567
59021
  CONFIG_FILES    = $CONFIG_FILES
58614
59068
_ACEOF
58615
59069
cat >>$CONFIG_STATUS <<_ACEOF
58616
59070
ac_cs_version="\\
58617
 
R config.status 2.7.1
 
59071
R config.status 2.8.1
58618
59072
configured by $0, generated by GNU Autoconf 2.61,
58619
59073
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
58620
59074
 
59721
60175
R_MODULES!$R_MODULES$ac_delim
59722
60176
SUPPORT_UTF8!$SUPPORT_UTF8$ac_delim
59723
60177
SUPPORT_MBCS!$SUPPORT_MBCS$ac_delim
 
60178
USE_ICU!$USE_ICU$ac_delim
59724
60179
X_CFLAGS!$X_CFLAGS$ac_delim
59725
60180
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
59726
60181
X_LIBS!$X_LIBS$ac_delim
59775
60230
MSGFMT_015!$MSGFMT_015$ac_delim
59776
60231
GMSGFMT_015!$GMSGFMT_015$ac_delim
59777
60232
XGETTEXT!$XGETTEXT$ac_delim
 
60233
_ACEOF
 
60234
 
 
60235
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
60236
    break
 
60237
  elif $ac_last_try; then
 
60238
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
60239
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
60240
   { (exit 1); exit 1; }; }
 
60241
  else
 
60242
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
60243
  fi
 
60244
done
 
60245
 
 
60246
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
60247
if test -n "$ac_eof"; then
 
60248
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
60249
  ac_eof=`expr $ac_eof + 1`
 
60250
fi
 
60251
 
 
60252
cat >>$CONFIG_STATUS <<_ACEOF
 
60253
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 
60254
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
60255
_ACEOF
 
60256
sed '
 
60257
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
60258
s/^/s,@/; s/!/@,|#_!!_#|/
 
60259
:n
 
60260
t n
 
60261
s/'"$ac_delim"'$/,g/; t
 
60262
s/$/\\/; p
 
60263
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
60264
' >>$CONFIG_STATUS <conf$$subs.sed
 
60265
rm -f conf$$subs.sed
 
60266
cat >>$CONFIG_STATUS <<_ACEOF
 
60267
CEOF$ac_eof
 
60268
_ACEOF
 
60269
 
 
60270
 
 
60271
ac_delim='%!_!# '
 
60272
for ac_last_try in false false false false false :; do
 
60273
  cat >conf$$subs.sed <<_ACEOF
59778
60274
XGETTEXT_015!$XGETTEXT_015$ac_delim
59779
 
_ACEOF
59780
 
 
59781
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
59782
 
    break
59783
 
  elif $ac_last_try; then
59784
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
59785
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
59786
 
   { (exit 1); exit 1; }; }
59787
 
  else
59788
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
59789
 
  fi
59790
 
done
59791
 
 
59792
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
59793
 
if test -n "$ac_eof"; then
59794
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
59795
 
  ac_eof=`expr $ac_eof + 1`
59796
 
fi
59797
 
 
59798
 
cat >>$CONFIG_STATUS <<_ACEOF
59799
 
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
59800
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
59801
 
_ACEOF
59802
 
sed '
59803
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
59804
 
s/^/s,@/; s/!/@,|#_!!_#|/
59805
 
:n
59806
 
t n
59807
 
s/'"$ac_delim"'$/,g/; t
59808
 
s/$/\\/; p
59809
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
59810
 
' >>$CONFIG_STATUS <conf$$subs.sed
59811
 
rm -f conf$$subs.sed
59812
 
cat >>$CONFIG_STATUS <<_ACEOF
59813
 
CEOF$ac_eof
59814
 
_ACEOF
59815
 
 
59816
 
 
59817
 
ac_delim='%!_!# '
59818
 
for ac_last_try in false false false false false :; do
59819
 
  cat >conf$$subs.sed <<_ACEOF
59820
60275
MSGMERGE!$MSGMERGE$ac_delim
59821
60276
GLIBC2!$GLIBC2$ac_delim
59822
60277
CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
59859
60314
LTLIBOBJS!$LTLIBOBJS$ac_delim
59860
60315
_ACEOF
59861
60316
 
59862
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
 
60317
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
59863
60318
    break
59864
60319
  elif $ac_last_try; then
59865
60320
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
61566
62021
  r_capabilities="${r_capabilities}${separator}JPEG"
61567
62022
fi
61568
62023
fi
 
62024
if test "${have_tiff}" = yes; then
 
62025
  separator=", "
 
62026
test -z "${separator}" && separator=" "
 
62027
if test -z "${r_capabilities}"; then
 
62028
  r_capabilities="TIFF"
 
62029
else
 
62030
  r_capabilities="${r_capabilities}${separator}TIFF"
 
62031
fi
 
62032
fi
61569
62033
if test "${r_cv_iconv_latin1}" = yes; then
61570
62034
  separator=", "
61571
62035
test -z "${separator}" && separator=" "
61602
62066
  r_capabilities="${r_capabilities}${separator}cairo"
61603
62067
fi
61604
62068
fi
 
62069
if test "${use_ICU}" = yes; then
 
62070
  separator=", "
 
62071
test -z "${separator}" && separator=" "
 
62072
if test -z "${r_capabilities}"; then
 
62073
  r_capabilities="ICU"
 
62074
else
 
62075
  r_capabilities="${r_capabilities}${separator}ICU"
 
62076
fi
 
62077
fi
61605
62078
r_options=
61606
62079
if test "${want_R_framework}" = yes; then
61607
62080
  separator=", "