~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/configure

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-11 14:55:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111145523-hb3ap33jpgf838lt
Tags: 4.8.7-0ubuntu1
* New upstream release v4.8.7 (NSPR_4_8_7_RTM)
* Refresh patches
  - update debian/patches/30_config_64bits.patch
  - update debian/patches/99_configure.patch
* Drop the link shuffeling now, as all upgraders to this version will be
  using a fixed package anyway
  - remove debian/libnspr4-0d.postinst
  - remove debian/libnspr4-0d.postrm
  - remove debian/libnspr4-0d.preinst
  - remove debian/libnspr4-0d.prerm
* Drop arch-specific symbols files for architectures we don't support
  - remove debian/libnspr4-0d.symbols.hurd_i386
  - remove debian/libnspr4-0d.symbols.ia64
  - remove debian/libnspr4-0d.symbols.lpia
* Ship the main SO files in an unversioned binary, as we don't have
  versioned SO's in Ubuntu. Maintain a transitional versioned binary
  package containing the versioned symlinks, to maintain compatibility with
  Debian
  - update debian/control
  - mass rename debian/libnspr4-0d* => debian/libnspr4*
  - update debian/rules
* Fix postinst-must-call-ldconfig - dh_makeshlibs doesn't seem to add
  the maintainer script hooks with the unversioned SO files, so add them
  manually
  - add debian/libnspr4.postinst
  - add debian/libnspr4.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  --with-symbian-sdk=SYMBIAN_SDK_DIR
73
73
                          The path to the Symbian SDK"
74
74
ac_help="$ac_help
 
75
  --with-ccache[=path/to/ccache]
 
76
                          Enable compiling with ccache"
 
77
ac_help="$ac_help
75
78
  --enable-strip          Enable stripping of shared libs and programs"
76
79
ac_help="$ac_help
77
80
  --with-pthreads         Use system pthreads library as thread subsystem"
85
88
ac_help="$ac_help
86
89
  --enable-ipv6           Compile ipv6 support"
87
90
ac_help="$ac_help
88
 
  --enable-boehm          Enable the Boehm Garbage Collector"
89
 
ac_help="$ac_help
90
91
  --enable-wrap-malloc    Wrap malloc calls (gnu linker only)"
91
92
ac_help="$ac_help
92
93
  --with-wrap-malloc=SHAREDLIB  Location of malloc wrapper library"
648
649
fi
649
650
 
650
651
echo $ac_n "checking host system type""... $ac_c" 1>&6
651
 
echo "configure:652: checking host system type" >&5
 
652
echo "configure:653: checking host system type" >&5
652
653
 
653
654
host_alias=$host
654
655
case "$host_alias" in
669
670
echo "$ac_t""$host" 1>&6
670
671
 
671
672
echo $ac_n "checking target system type""... $ac_c" 1>&6
672
 
echo "configure:673: checking target system type" >&5
 
673
echo "configure:674: checking target system type" >&5
673
674
 
674
675
target_alias=$target
675
676
case "$target_alias" in
687
688
echo "$ac_t""$target" 1>&6
688
689
 
689
690
echo $ac_n "checking build system type""... $ac_c" 1>&6
690
 
echo "configure:691: checking build system type" >&5
 
691
echo "configure:692: checking build system type" >&5
691
692
 
692
693
build_alias=$build
693
694
case "$build_alias" in
712
713
 
713
714
MOD_MAJOR_VERSION=4
714
715
MOD_MINOR_VERSION=8
715
 
MOD_PATCH_VERSION=6
 
716
MOD_PATCH_VERSION=7
716
717
NSPR_MODNAME=nspr20
717
718
_HAVE_PTHREADS=
718
719
USE_PTHREADS=
764
765
# Extract the first word of "$ac_prog", so it can be a program name with args.
765
766
set dummy $ac_prog; ac_word=$2
766
767
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
767
 
echo "configure:768: checking for $ac_word" >&5
 
768
echo "configure:769: checking for $ac_word" >&5
768
769
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
769
770
  echo $ac_n "(cached) $ac_c" 1>&6
770
771
else
881
882
        HOST_LDFLAGS=" "
882
883
    fi
883
884
 
 
885
    WRAP_MALLOC_CFLAGS="-Wl,--wrap=dlopen -Wl,--wrap=dlclose -Wl,--wrap=dlerror -Wl,--wrap=dlsym -Wl,--wrap=dladdr"
 
886
 
884
887
    cat >> confdefs.h <<\EOF
885
888
#define ANDROID 1
886
889
EOF
1179
1182
    # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
1180
1183
set dummy $WHOAMI whoami; ac_word=$2
1181
1184
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182
 
echo "configure:1183: checking for $ac_word" >&5
 
1185
echo "configure:1186: checking for $ac_word" >&5
1183
1186
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1184
1187
  echo $ac_n "(cached) $ac_c" 1>&6
1185
1188
else
1250
1253
    _SAVE_LDFLAGS="$LDFLAGS"
1251
1254
 
1252
1255
    echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
1253
 
echo "configure:1254: checking for $host compiler" >&5
 
1256
echo "configure:1257: checking for $host compiler" >&5
1254
1257
    for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1255
1258
do
1256
1259
# Extract the first word of "$ac_prog", so it can be a program name with args.
1257
1260
set dummy $ac_prog; ac_word=$2
1258
1261
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259
 
echo "configure:1260: checking for $ac_word" >&5
 
1262
echo "configure:1263: checking for $ac_word" >&5
1260
1263
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1261
1264
  echo $ac_n "(cached) $ac_c" 1>&6
1262
1265
else
1302
1305
    LDFLAGS="$HOST_LDFLAGS"
1303
1306
 
1304
1307
    echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1305
 
echo "configure:1306: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
 
1308
echo "configure:1309: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1306
1309
    cat > conftest.$ac_ext <<EOF
1307
 
#line 1308 "configure"
 
1310
#line 1311 "configure"
1308
1311
#include "confdefs.h"
1309
1312
 
1310
1313
int main() {
1311
1314
return(0);
1312
1315
; return 0; }
1313
1316
EOF
1314
 
if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1317
if { (eval echo configure:1318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1315
1318
  rm -rf conftest*
1316
1319
  ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
1317
1320
else
1340
1343
# Extract the first word of "$ac_prog", so it can be a program name with args.
1341
1344
set dummy $ac_prog; ac_word=$2
1342
1345
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1343
 
echo "configure:1344: checking for $ac_word" >&5
 
1346
echo "configure:1347: checking for $ac_word" >&5
1344
1347
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1345
1348
  echo $ac_n "(cached) $ac_c" 1>&6
1346
1349
else
1374
1377
    # Extract the first word of "gcc", so it can be a program name with args.
1375
1378
set dummy gcc; ac_word=$2
1376
1379
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377
 
echo "configure:1378: checking for $ac_word" >&5
 
1380
echo "configure:1381: checking for $ac_word" >&5
1378
1381
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1379
1382
  echo $ac_n "(cached) $ac_c" 1>&6
1380
1383
else
1404
1407
  # Extract the first word of "cc", so it can be a program name with args.
1405
1408
set dummy cc; ac_word=$2
1406
1409
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1407
 
echo "configure:1408: checking for $ac_word" >&5
 
1410
echo "configure:1411: checking for $ac_word" >&5
1408
1411
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1409
1412
  echo $ac_n "(cached) $ac_c" 1>&6
1410
1413
else
1455
1458
      # Extract the first word of "cl", so it can be a program name with args.
1456
1459
set dummy cl; ac_word=$2
1457
1460
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1458
 
echo "configure:1459: checking for $ac_word" >&5
 
1461
echo "configure:1462: checking for $ac_word" >&5
1459
1462
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1460
1463
  echo $ac_n "(cached) $ac_c" 1>&6
1461
1464
else
1487
1490
fi
1488
1491
 
1489
1492
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1490
 
echo "configure:1491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1493
echo "configure:1494: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1491
1494
 
1492
1495
ac_ext=c
1493
1496
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1498
1501
 
1499
1502
cat > conftest.$ac_ext << EOF
1500
1503
 
1501
 
#line 1502 "configure"
 
1504
#line 1505 "configure"
1502
1505
#include "confdefs.h"
1503
1506
 
1504
1507
main(){return(0);}
1505
1508
EOF
1506
 
if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1509
if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507
1510
  ac_cv_prog_cc_works=yes
1508
1511
  # If we can't run a trivial program, we are probably using a cross compiler.
1509
1512
  if (./conftest; exit) 2>/dev/null; then
1529
1532
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1530
1533
fi
1531
1534
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1532
 
echo "configure:1533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1535
echo "configure:1536: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1533
1536
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1534
1537
cross_compiling=$ac_cv_prog_cc_cross
1535
1538
 
1536
1539
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1537
 
echo "configure:1538: checking whether we are using GNU C" >&5
 
1540
echo "configure:1541: checking whether we are using GNU C" >&5
1538
1541
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1539
1542
  echo $ac_n "(cached) $ac_c" 1>&6
1540
1543
else
1543
1546
  yes;
1544
1547
#endif
1545
1548
EOF
1546
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1549
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1547
1550
  ac_cv_prog_gcc=yes
1548
1551
else
1549
1552
  ac_cv_prog_gcc=no
1562
1565
ac_save_CFLAGS="$CFLAGS"
1563
1566
CFLAGS=
1564
1567
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1565
 
echo "configure:1566: checking whether ${CC-cc} accepts -g" >&5
 
1568
echo "configure:1569: checking whether ${CC-cc} accepts -g" >&5
1566
1569
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1567
1570
  echo $ac_n "(cached) $ac_c" 1>&6
1568
1571
else
1599
1602
# Extract the first word of "$ac_prog", so it can be a program name with args.
1600
1603
set dummy $ac_prog; ac_word=$2
1601
1604
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1602
 
echo "configure:1603: checking for $ac_word" >&5
 
1605
echo "configure:1606: checking for $ac_word" >&5
1603
1606
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1604
1607
  echo $ac_n "(cached) $ac_c" 1>&6
1605
1608
else
1635
1638
# Extract the first word of "$ac_prog", so it can be a program name with args.
1636
1639
set dummy $ac_prog; ac_word=$2
1637
1640
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638
 
echo "configure:1639: checking for $ac_word" >&5
 
1641
echo "configure:1642: checking for $ac_word" >&5
1639
1642
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1640
1643
  echo $ac_n "(cached) $ac_c" 1>&6
1641
1644
else
1667
1670
 
1668
1671
 
1669
1672
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1670
 
echo "configure:1671: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
1673
echo "configure:1674: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1671
1674
 
1672
1675
ac_ext=C
1673
1676
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1678
1681
 
1679
1682
cat > conftest.$ac_ext << EOF
1680
1683
 
1681
 
#line 1682 "configure"
 
1684
#line 1685 "configure"
1682
1685
#include "confdefs.h"
1683
1686
 
1684
1687
int main(){return(0);}
1685
1688
EOF
1686
 
if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1689
if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687
1690
  ac_cv_prog_cxx_works=yes
1688
1691
  # If we can't run a trivial program, we are probably using a cross compiler.
1689
1692
  if (./conftest; exit) 2>/dev/null; then
1709
1712
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1710
1713
fi
1711
1714
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1712
 
echo "configure:1713: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1715
echo "configure:1716: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1713
1716
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1714
1717
cross_compiling=$ac_cv_prog_cxx_cross
1715
1718
 
1716
1719
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1717
 
echo "configure:1718: checking whether we are using GNU C++" >&5
 
1720
echo "configure:1721: checking whether we are using GNU C++" >&5
1718
1721
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1719
1722
  echo $ac_n "(cached) $ac_c" 1>&6
1720
1723
else
1723
1726
  yes;
1724
1727
#endif
1725
1728
EOF
1726
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1729
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1727
1730
  ac_cv_prog_gxx=yes
1728
1731
else
1729
1732
  ac_cv_prog_gxx=no
1742
1745
ac_save_CXXFLAGS="$CXXFLAGS"
1743
1746
CXXFLAGS=
1744
1747
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1745
 
echo "configure:1746: checking whether ${CXX-g++} accepts -g" >&5
 
1748
echo "configure:1749: checking whether ${CXX-g++} accepts -g" >&5
1746
1749
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1747
1750
  echo $ac_n "(cached) $ac_c" 1>&6
1748
1751
else
1787
1790
# Extract the first word of "$ac_prog", so it can be a program name with args.
1788
1791
set dummy $ac_prog; ac_word=$2
1789
1792
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790
 
echo "configure:1791: checking for $ac_word" >&5
 
1793
echo "configure:1794: checking for $ac_word" >&5
1791
1794
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1792
1795
  echo $ac_n "(cached) $ac_c" 1>&6
1793
1796
else
1822
1825
# Extract the first word of "$ac_prog", so it can be a program name with args.
1823
1826
set dummy $ac_prog; ac_word=$2
1824
1827
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825
 
echo "configure:1826: checking for $ac_word" >&5
 
1828
echo "configure:1829: checking for $ac_word" >&5
1826
1829
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1827
1830
  echo $ac_n "(cached) $ac_c" 1>&6
1828
1831
else
1857
1860
# Extract the first word of "$ac_prog", so it can be a program name with args.
1858
1861
set dummy $ac_prog; ac_word=$2
1859
1862
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860
 
echo "configure:1861: checking for $ac_word" >&5
 
1863
echo "configure:1864: checking for $ac_word" >&5
1861
1864
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1862
1865
  echo $ac_n "(cached) $ac_c" 1>&6
1863
1866
else
1892
1895
# Extract the first word of "$ac_prog", so it can be a program name with args.
1893
1896
set dummy $ac_prog; ac_word=$2
1894
1897
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895
 
echo "configure:1896: checking for $ac_word" >&5
 
1898
echo "configure:1899: checking for $ac_word" >&5
1896
1899
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1897
1900
  echo $ac_n "(cached) $ac_c" 1>&6
1898
1901
else
1927
1930
# Extract the first word of "$ac_prog", so it can be a program name with args.
1928
1931
set dummy $ac_prog; ac_word=$2
1929
1932
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930
 
echo "configure:1931: checking for $ac_word" >&5
 
1933
echo "configure:1934: checking for $ac_word" >&5
1931
1934
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1932
1935
  echo $ac_n "(cached) $ac_c" 1>&6
1933
1936
else
1962
1965
# Extract the first word of "$ac_prog", so it can be a program name with args.
1963
1966
set dummy $ac_prog; ac_word=$2
1964
1967
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965
 
echo "configure:1966: checking for $ac_word" >&5
 
1968
echo "configure:1969: checking for $ac_word" >&5
1966
1969
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1967
1970
  echo $ac_n "(cached) $ac_c" 1>&6
1968
1971
else
1997
2000
    # Extract the first word of "gcc", so it can be a program name with args.
1998
2001
set dummy gcc; ac_word=$2
1999
2002
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2000
 
echo "configure:2001: checking for $ac_word" >&5
 
2003
echo "configure:2004: checking for $ac_word" >&5
2001
2004
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2002
2005
  echo $ac_n "(cached) $ac_c" 1>&6
2003
2006
else
2027
2030
  # Extract the first word of "cc", so it can be a program name with args.
2028
2031
set dummy cc; ac_word=$2
2029
2032
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030
 
echo "configure:2031: checking for $ac_word" >&5
 
2033
echo "configure:2034: checking for $ac_word" >&5
2031
2034
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2032
2035
  echo $ac_n "(cached) $ac_c" 1>&6
2033
2036
else
2078
2081
      # Extract the first word of "cl", so it can be a program name with args.
2079
2082
set dummy cl; ac_word=$2
2080
2083
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081
 
echo "configure:2082: checking for $ac_word" >&5
 
2084
echo "configure:2085: checking for $ac_word" >&5
2082
2085
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2083
2086
  echo $ac_n "(cached) $ac_c" 1>&6
2084
2087
else
2110
2113
fi
2111
2114
 
2112
2115
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2113
 
echo "configure:2114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
2116
echo "configure:2117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2114
2117
 
2115
2118
ac_ext=c
2116
2119
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2121
2124
 
2122
2125
cat > conftest.$ac_ext << EOF
2123
2126
 
2124
 
#line 2125 "configure"
 
2127
#line 2128 "configure"
2125
2128
#include "confdefs.h"
2126
2129
 
2127
2130
main(){return(0);}
2128
2131
EOF
2129
 
if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2132
if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2130
2133
  ac_cv_prog_cc_works=yes
2131
2134
  # If we can't run a trivial program, we are probably using a cross compiler.
2132
2135
  if (./conftest; exit) 2>/dev/null; then
2152
2155
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2153
2156
fi
2154
2157
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2155
 
echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
2158
echo "configure:2159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2156
2159
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2157
2160
cross_compiling=$ac_cv_prog_cc_cross
2158
2161
 
2159
2162
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2160
 
echo "configure:2161: checking whether we are using GNU C" >&5
 
2163
echo "configure:2164: checking whether we are using GNU C" >&5
2161
2164
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2162
2165
  echo $ac_n "(cached) $ac_c" 1>&6
2163
2166
else
2166
2169
  yes;
2167
2170
#endif
2168
2171
EOF
2169
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
2172
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2170
2173
  ac_cv_prog_gcc=yes
2171
2174
else
2172
2175
  ac_cv_prog_gcc=no
2185
2188
ac_save_CFLAGS="$CFLAGS"
2186
2189
CFLAGS=
2187
2190
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2188
 
echo "configure:2189: checking whether ${CC-cc} accepts -g" >&5
 
2191
echo "configure:2192: checking whether ${CC-cc} accepts -g" >&5
2189
2192
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2190
2193
  echo $ac_n "(cached) $ac_c" 1>&6
2191
2194
else
2225
2228
# Extract the first word of "$ac_prog", so it can be a program name with args.
2226
2229
set dummy $ac_prog; ac_word=$2
2227
2230
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2228
 
echo "configure:2229: checking for $ac_word" >&5
 
2231
echo "configure:2232: checking for $ac_word" >&5
2229
2232
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2230
2233
  echo $ac_n "(cached) $ac_c" 1>&6
2231
2234
else
2257
2260
 
2258
2261
 
2259
2262
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2260
 
echo "configure:2261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
2263
echo "configure:2264: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2261
2264
 
2262
2265
ac_ext=C
2263
2266
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2268
2271
 
2269
2272
cat > conftest.$ac_ext << EOF
2270
2273
 
2271
 
#line 2272 "configure"
 
2274
#line 2275 "configure"
2272
2275
#include "confdefs.h"
2273
2276
 
2274
2277
int main(){return(0);}
2275
2278
EOF
2276
 
if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2279
if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277
2280
  ac_cv_prog_cxx_works=yes
2278
2281
  # If we can't run a trivial program, we are probably using a cross compiler.
2279
2282
  if (./conftest; exit) 2>/dev/null; then
2299
2302
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2300
2303
fi
2301
2304
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2302
 
echo "configure:2303: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
2305
echo "configure:2306: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2303
2306
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2304
2307
cross_compiling=$ac_cv_prog_cxx_cross
2305
2308
 
2306
2309
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2307
 
echo "configure:2308: checking whether we are using GNU C++" >&5
 
2310
echo "configure:2311: checking whether we are using GNU C++" >&5
2308
2311
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2309
2312
  echo $ac_n "(cached) $ac_c" 1>&6
2310
2313
else
2313
2316
  yes;
2314
2317
#endif
2315
2318
EOF
2316
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
2319
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2317
2320
  ac_cv_prog_gxx=yes
2318
2321
else
2319
2322
  ac_cv_prog_gxx=no
2332
2335
ac_save_CXXFLAGS="$CXXFLAGS"
2333
2336
CXXFLAGS=
2334
2337
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2335
 
echo "configure:2336: checking whether ${CXX-g++} accepts -g" >&5
 
2338
echo "configure:2339: checking whether ${CXX-g++} accepts -g" >&5
2336
2339
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2337
2340
  echo $ac_n "(cached) $ac_c" 1>&6
2338
2341
else
2366
2369
        fi
2367
2370
    fi
2368
2371
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2369
 
echo "configure:2370: checking how to run the C preprocessor" >&5
 
2372
echo "configure:2373: checking how to run the C preprocessor" >&5
2370
2373
# On Suns, sometimes $CPP names a directory.
2371
2374
if test -n "$CPP" && test -d "$CPP"; then
2372
2375
  CPP=
2381
2384
  # On the NeXT, cc -E runs the code through the compiler's parser,
2382
2385
  # not just through cpp.
2383
2386
  cat > conftest.$ac_ext <<EOF
2384
 
#line 2385 "configure"
 
2387
#line 2388 "configure"
2385
2388
#include "confdefs.h"
2386
2389
#include <assert.h>
2387
2390
Syntax Error
2388
2391
EOF
2389
2392
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2390
 
{ (eval echo configure:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2393
{ (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2391
2394
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2392
2395
if test -z "$ac_err"; then
2393
2396
  :
2398
2401
  rm -rf conftest*
2399
2402
  CPP="${CC-cc} -E -traditional-cpp"
2400
2403
  cat > conftest.$ac_ext <<EOF
2401
 
#line 2402 "configure"
 
2404
#line 2405 "configure"
2402
2405
#include "confdefs.h"
2403
2406
#include <assert.h>
2404
2407
Syntax Error
2405
2408
EOF
2406
2409
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2407
 
{ (eval echo configure:2408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2410
{ (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2408
2411
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2409
2412
if test -z "$ac_err"; then
2410
2413
  :
2415
2418
  rm -rf conftest*
2416
2419
  CPP="${CC-cc} -nologo -E"
2417
2420
  cat > conftest.$ac_ext <<EOF
2418
 
#line 2419 "configure"
 
2421
#line 2422 "configure"
2419
2422
#include "confdefs.h"
2420
2423
#include <assert.h>
2421
2424
Syntax Error
2422
2425
EOF
2423
2426
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2424
 
{ (eval echo configure:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2427
{ (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2425
2428
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2426
2429
if test -z "$ac_err"; then
2427
2430
  :
2448
2451
    # Extract the first word of "ranlib", so it can be a program name with args.
2449
2452
set dummy ranlib; ac_word=$2
2450
2453
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2451
 
echo "configure:2452: checking for $ac_word" >&5
 
2454
echo "configure:2455: checking for $ac_word" >&5
2452
2455
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2453
2456
  echo $ac_n "(cached) $ac_c" 1>&6
2454
2457
else
2480
2483
# Extract the first word of "$ac_prog", so it can be a program name with args.
2481
2484
set dummy $ac_prog; ac_word=$2
2482
2485
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2483
 
echo "configure:2484: checking for $ac_word" >&5
 
2486
echo "configure:2487: checking for $ac_word" >&5
2484
2487
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2485
2488
  echo $ac_n "(cached) $ac_c" 1>&6
2486
2489
else
2521
2524
# Extract the first word of "$ac_prog", so it can be a program name with args.
2522
2525
set dummy $ac_prog; ac_word=$2
2523
2526
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524
 
echo "configure:2525: checking for $ac_word" >&5
 
2527
echo "configure:2528: checking for $ac_word" >&5
2525
2528
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2526
2529
  echo $ac_n "(cached) $ac_c" 1>&6
2527
2530
else
2562
2565
# Extract the first word of "$ac_prog", so it can be a program name with args.
2563
2566
set dummy $ac_prog; ac_word=$2
2564
2567
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565
 
echo "configure:2566: checking for $ac_word" >&5
 
2568
echo "configure:2569: checking for $ac_word" >&5
2566
2569
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2567
2570
  echo $ac_n "(cached) $ac_c" 1>&6
2568
2571
else
2603
2606
# Extract the first word of "$ac_prog", so it can be a program name with args.
2604
2607
set dummy $ac_prog; ac_word=$2
2605
2608
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2606
 
echo "configure:2607: checking for $ac_word" >&5
 
2609
echo "configure:2610: checking for $ac_word" >&5
2607
2610
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2608
2611
  echo $ac_n "(cached) $ac_c" 1>&6
2609
2612
else
2644
2647
# Extract the first word of "$ac_prog", so it can be a program name with args.
2645
2648
set dummy $ac_prog; ac_word=$2
2646
2649
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2647
 
echo "configure:2648: checking for $ac_word" >&5
 
2650
echo "configure:2651: checking for $ac_word" >&5
2648
2651
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2649
2652
  echo $ac_n "(cached) $ac_c" 1>&6
2650
2653
else
2712
2715
fi
2713
2716
 
2714
2717
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
2715
 
echo "configure:2716: checking for gcc -pipe support" >&5
 
2718
echo "configure:2719: checking for gcc -pipe support" >&5
2716
2719
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2717
2720
    echo '#include <stdio.h>' > dummy-hello.c
2718
2721
    echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
2727
2730
        _SAVE_CFLAGS=$CFLAGS
2728
2731
        CFLAGS="$CFLAGS -pipe"
2729
2732
        cat > conftest.$ac_ext <<EOF
2730
 
#line 2731 "configure"
 
2733
#line 2734 "configure"
2731
2734
#include "confdefs.h"
2732
2735
 #include <stdio.h> 
2733
2736
int main() {
2734
2737
printf("Hello World\n");
2735
2738
; return 0; }
2736
2739
EOF
2737
 
if { (eval echo configure:2738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2740
if { (eval echo configure:2741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738
2741
  rm -rf conftest*
2739
2742
  _res_gcc_pipe="yes"
2740
2743
else
2764
2767
CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
2765
2768
 
2766
2769
echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6
2767
 
echo "configure:2768: checking whether C compiler supports -fprofile-generate" >&5
 
2770
echo "configure:2771: checking whether C compiler supports -fprofile-generate" >&5
2768
2771
cat > conftest.$ac_ext <<EOF
2769
 
#line 2770 "configure"
 
2772
#line 2773 "configure"
2770
2773
#include "confdefs.h"
2771
2774
 
2772
2775
int main() {
2773
2776
return 0;
2774
2777
; return 0; }
2775
2778
EOF
2776
 
if { (eval echo configure:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2779
if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777
2780
  rm -rf conftest*
2778
2781
   PROFILE_GEN_CFLAGS="-fprofile-generate"
2779
2782
                 result="yes" 
2796
2799
 
2797
2800
if test "$GNU_CC"; then
2798
2801
    echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
2799
 
echo "configure:2800: checking for visibility(hidden) attribute" >&5
 
2802
echo "configure:2803: checking for visibility(hidden) attribute" >&5
2800
2803
if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2801
2804
  echo $ac_n "(cached) $ac_c" 1>&6
2802
2805
else
2820
2823
EOF
2821
2824
 
2822
2825
        echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
2823
 
echo "configure:2824: checking for visibility pragma support" >&5
 
2826
echo "configure:2827: checking for visibility pragma support" >&5
2824
2827
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2825
2828
  echo $ac_n "(cached) $ac_c" 1>&6
2826
2829
else
2873
2876
# Extract the first word of "$ac_prog", so it can be a program name with args.
2874
2877
set dummy $ac_prog; ac_word=$2
2875
2878
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876
 
echo "configure:2877: checking for $ac_word" >&5
 
2879
echo "configure:2880: checking for $ac_word" >&5
2877
2880
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2878
2881
  echo $ac_n "(cached) $ac_c" 1>&6
2879
2882
else
3109
3112
      { echo "configure: error: --enable-thumb2 is not supported for non-ARM CPU architectures" 1>&2; exit 1; }
3110
3113
    ;;
3111
3114
  esac
 
3115
else
 
3116
  case "$target_cpu" in
 
3117
    arm*)
 
3118
      if test "$GNU_CC"; then
 
3119
       CFLAGS="$CFLAGS -march=armv5te -mthumb-interwork -Wa, -march=armv5te -Wa, -mthumb-interwork"
 
3120
        CXXFLAGS="$CXXFLAGS -march=armv5te -mthumb-interwork -Wa, -march=armv5te -Wa, -mthumb-interwork"
 
3121
        ASFLAGS="$ASFLAGS -march=armv5te -mthumb-interwork"
 
3122
      fi
 
3123
      ;;
 
3124
  esac
3112
3125
fi
3113
3126
 
3114
3127
case "$host" in
3149
3162
    DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
3150
3163
    ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
3151
3164
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
3152
 
echo "configure:3153: checking for sys/atomic_op.h" >&5
 
3165
echo "configure:3166: checking for sys/atomic_op.h" >&5
3153
3166
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3154
3167
  echo $ac_n "(cached) $ac_c" 1>&6
3155
3168
else
3156
3169
  cat > conftest.$ac_ext <<EOF
3157
 
#line 3158 "configure"
 
3170
#line 3171 "configure"
3158
3171
#include "confdefs.h"
3159
3172
#include <sys/atomic_op.h>
3160
3173
EOF
3161
3174
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3162
 
{ (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3175
{ (eval echo configure:3176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3163
3176
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3164
3177
if test -z "$ac_err"; then
3165
3178
  rm -rf conftest*
3316
3329
        _DEBUG_FLAGS='-gdwarf-2 -O0'
3317
3330
        MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3318
3331
        echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
3319
 
echo "configure:3320: checking for gethostbyaddr in -lbind" >&5
 
3332
echo "configure:3333: checking for gethostbyaddr in -lbind" >&5
3320
3333
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3321
3334
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3322
3335
  echo $ac_n "(cached) $ac_c" 1>&6
3324
3337
  ac_save_LIBS="$LIBS"
3325
3338
LIBS="-lbind  $LIBS"
3326
3339
cat > conftest.$ac_ext <<EOF
3327
 
#line 3328 "configure"
 
3340
#line 3341 "configure"
3328
3341
#include "confdefs.h"
3329
3342
/* Override any gcc2 internal prototype to avoid an error.  */
3330
3343
/* We use char because int might match the return type of a gcc2
3335
3348
gethostbyaddr()
3336
3349
; return 0; }
3337
3350
EOF
3338
 
if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3351
if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3339
3352
  rm -rf conftest*
3340
3353
  eval "ac_cv_lib_$ac_lib_var=yes"
3341
3354
else
4231
4244
           elif test $_CC_BUILD -ge 762; then
4232
4245
              _USE_DYNAMICBASE=1
4233
4246
           fi
 
4247
           cat >> confdefs.h <<\EOF
 
4248
#define _CRT_SECURE_NO_DEPRECATE 1
 
4249
EOF
 
4250
 
 
4251
           cat >> confdefs.h <<\EOF
 
4252
#define _CRT_NONSTDC_NO_DEPRECATE 1
 
4253
EOF
 
4254
 
4234
4255
        elif test $_CC_MAJOR_VERSION -ge 15; then
4235
4256
           _USE_DYNAMICBASE=1    
 
4257
           cat >> confdefs.h <<\EOF
 
4258
#define _CRT_SECURE_NO_WARNINGS 1
 
4259
EOF
 
4260
 
 
4261
           cat >> confdefs.h <<\EOF
 
4262
#define _CRT_NONSTDC_NO_WARNINGS 1
 
4263
EOF
 
4264
 
4236
4265
        fi
4237
4266
 
4238
4267
        if test -n "$_USE_DYNAMICBASE"; then
4710
4739
        _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4711
4740
        ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
4712
4741
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
4713
 
echo "configure:4714: checking for machine/builtins.h" >&5
 
4742
echo "configure:4743: checking for machine/builtins.h" >&5
4714
4743
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4715
4744
  echo $ac_n "(cached) $ac_c" 1>&6
4716
4745
else
4717
4746
  cat > conftest.$ac_ext <<EOF
4718
 
#line 4719 "configure"
 
4747
#line 4748 "configure"
4719
4748
#include "confdefs.h"
4720
4749
#include <machine/builtins.h>
4721
4750
EOF
4722
4751
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4723
 
{ (eval echo configure:4724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4752
{ (eval echo configure:4753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4724
4753
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4725
4754
if test -z "$ac_err"; then
4726
4755
  rm -rf conftest*
5369
5398
    ;;
5370
5399
*)
5371
5400
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5372
 
echo "configure:5373: checking for dlopen in -ldl" >&5
 
5401
echo "configure:5402: checking for dlopen in -ldl" >&5
5373
5402
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5374
5403
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5375
5404
  echo $ac_n "(cached) $ac_c" 1>&6
5377
5406
  ac_save_LIBS="$LIBS"
5378
5407
LIBS="-ldl  $LIBS"
5379
5408
cat > conftest.$ac_ext <<EOF
5380
 
#line 5381 "configure"
 
5409
#line 5410 "configure"
5381
5410
#include "confdefs.h"
5382
5411
/* Override any gcc2 internal prototype to avoid an error.  */
5383
5412
/* We use char because int might match the return type of a gcc2
5388
5417
dlopen()
5389
5418
; return 0; }
5390
5419
EOF
5391
 
if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5420
if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392
5421
  rm -rf conftest*
5393
5422
  eval "ac_cv_lib_$ac_lib_var=yes"
5394
5423
else
5405
5434
  echo "$ac_t""yes" 1>&6
5406
5435
  ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
5407
5436
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
5408
 
echo "configure:5409: checking for dlfcn.h" >&5
 
5437
echo "configure:5438: checking for dlfcn.h" >&5
5409
5438
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5410
5439
  echo $ac_n "(cached) $ac_c" 1>&6
5411
5440
else
5412
5441
  cat > conftest.$ac_ext <<EOF
5413
 
#line 5414 "configure"
 
5442
#line 5443 "configure"
5414
5443
#include "confdefs.h"
5415
5444
#include <dlfcn.h>
5416
5445
EOF
5417
5446
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5418
 
{ (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5447
{ (eval echo configure:5448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5419
5448
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5420
5449
if test -z "$ac_err"; then
5421
5450
  rm -rf conftest*
5448
5477
 
5449
5478
if test $ac_cv_prog_gcc = yes; then
5450
5479
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5451
 
echo "configure:5452: checking whether ${CC-cc} needs -traditional" >&5
 
5480
echo "configure:5481: checking whether ${CC-cc} needs -traditional" >&5
5452
5481
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5453
5482
  echo $ac_n "(cached) $ac_c" 1>&6
5454
5483
else
5455
5484
    ac_pattern="Autoconf.*'x'"
5456
5485
  cat > conftest.$ac_ext <<EOF
5457
 
#line 5458 "configure"
 
5486
#line 5487 "configure"
5458
5487
#include "confdefs.h"
5459
5488
#include <sgtty.h>
5460
5489
Autoconf TIOCGETP
5472
5501
 
5473
5502
  if test $ac_cv_prog_gcc_traditional = no; then
5474
5503
    cat > conftest.$ac_ext <<EOF
5475
 
#line 5476 "configure"
 
5504
#line 5505 "configure"
5476
5505
#include "confdefs.h"
5477
5506
#include <termio.h>
5478
5507
Autoconf TCGETA
5496
5525
for ac_func in lchown strerror
5497
5526
do
5498
5527
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5499
 
echo "configure:5500: checking for $ac_func" >&5
 
5528
echo "configure:5529: checking for $ac_func" >&5
5500
5529
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5501
5530
  echo $ac_n "(cached) $ac_c" 1>&6
5502
5531
else
5503
5532
  cat > conftest.$ac_ext <<EOF
5504
 
#line 5505 "configure"
 
5533
#line 5534 "configure"
5505
5534
#include "confdefs.h"
5506
5535
/* System header to define __stub macros and hopefully few prototypes,
5507
5536
    which can conflict with char $ac_func(); below.  */
5524
5553
 
5525
5554
; return 0; }
5526
5555
EOF
5527
 
if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5556
if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5528
5557
  rm -rf conftest*
5529
5558
  eval "ac_cv_func_$ac_func=yes"
5530
5559
else
5551
5580
 
5552
5581
 
5553
5582
 
 
5583
# Check whether --with-ccache or --without-ccache was given.
 
5584
if test "${with_ccache+set}" = set; then
 
5585
  withval="$with_ccache"
 
5586
  CCACHE=$withval
 
5587
else
 
5588
  CCACHE="no"
 
5589
fi
 
5590
 
 
5591
 
 
5592
if test "$CCACHE" != "no"; then
 
5593
    if test -n "$CCACHE"; then
 
5594
        if test "$CCACHE" = "yes"; then
 
5595
            CCACHE=
 
5596
        else
 
5597
            if test ! -e "$CCACHE"; then
 
5598
                { echo "configure: error: $CCACHE not found" 1>&2; exit 1; }
 
5599
            fi
 
5600
        fi
 
5601
    fi
 
5602
    for ac_prog in $CCACHE ccache
 
5603
do
 
5604
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
5605
set dummy $ac_prog; ac_word=$2
 
5606
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
5607
echo "configure:5608: checking for $ac_word" >&5
 
5608
if eval "test \"`echo '$''{'ac_cv_path_CCACHE'+set}'`\" = set"; then
 
5609
  echo $ac_n "(cached) $ac_c" 1>&6
 
5610
else
 
5611
  case "$CCACHE" in
 
5612
  /*)
 
5613
  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
 
5614
  ;;
 
5615
  ?:/*)                  
 
5616
  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a dos path.
 
5617
  ;;
 
5618
  *)
 
5619
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5620
  ac_dummy="$PATH"
 
5621
  for ac_dir in $ac_dummy; do 
 
5622
    test -z "$ac_dir" && ac_dir=.
 
5623
    if test -f $ac_dir/$ac_word; then
 
5624
      ac_cv_path_CCACHE="$ac_dir/$ac_word"
 
5625
      break
 
5626
    fi
 
5627
  done
 
5628
  IFS="$ac_save_ifs"
 
5629
  ;;
 
5630
esac
 
5631
fi
 
5632
CCACHE="$ac_cv_path_CCACHE"
 
5633
if test -n "$CCACHE"; then
 
5634
  echo "$ac_t""$CCACHE" 1>&6
 
5635
else
 
5636
  echo "$ac_t""no" 1>&6
 
5637
fi
 
5638
 
 
5639
test -n "$CCACHE" && break
 
5640
done
 
5641
 
 
5642
    if test -z "$CCACHE" -o "$CCACHE" = ":"; then
 
5643
        { echo "configure: error: ccache not found" 1>&2; exit 1; }
 
5644
    elif test -x "$CCACHE"; then
 
5645
        CC="$CCACHE $CC"
 
5646
        CXX="$CCACHE $CXX"
 
5647
    else
 
5648
        { echo "configure: error: $CCACHE is not executable" 1>&2; exit 1; }
 
5649
    fi
 
5650
fi
 
5651
 
5554
5652
# Check whether --enable-strip or --disable-strip was given.
5555
5653
if test "${enable_strip+set}" = set; then
5556
5654
  enableval="$enable_strip"
5565
5663
if test -z "$GNU_CC"; then
5566
5664
 
5567
5665
    echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
5568
 
echo "configure:5569: checking for +Olit support" >&5
 
5666
echo "configure:5667: checking for +Olit support" >&5
5569
5667
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5570
5668
  echo $ac_n "(cached) $ac_c" 1>&6
5571
5669
else
5607
5705
*)
5608
5706
    
5609
5707
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5610
 
echo "configure:5611: checking for pthread_create in -lpthreads" >&5
 
5708
echo "configure:5709: checking for pthread_create in -lpthreads" >&5
5611
5709
echo "
5612
5710
    #include <pthread.h> 
5613
5711
    void *foo(void *v) { return v; } 
5629
5727
        echo "$ac_t""no" 1>&6
5630
5728
        
5631
5729
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
5632
 
echo "configure:5633: checking for pthread_create in -lpthread" >&5
 
5730
echo "configure:5731: checking for pthread_create in -lpthread" >&5
5633
5731
echo "
5634
5732
    #include <pthread.h> 
5635
5733
    void *foo(void *v) { return v; } 
5651
5749
        echo "$ac_t""no" 1>&6
5652
5750
        
5653
5751
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5654
 
echo "configure:5655: checking for pthread_create in -lc_r" >&5
 
5752
echo "configure:5753: checking for pthread_create in -lc_r" >&5
5655
5753
echo "
5656
5754
    #include <pthread.h> 
5657
5755
    void *foo(void *v) { return v; } 
5673
5771
        echo "$ac_t""no" 1>&6
5674
5772
        
5675
5773
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
5676
 
echo "configure:5677: checking for pthread_create in -lc" >&5
 
5774
echo "configure:5775: checking for pthread_create in -lc" >&5
5677
5775
echo "
5678
5776
    #include <pthread.h> 
5679
5777
    void *foo(void *v) { return v; } 
5787
5885
fi
5788
5886
 
5789
5887
 
5790
 
 
5791
 
# Check whether --enable-boehm or --disable-boehm was given.
5792
 
if test "${enable_boehm+set}" = set; then
5793
 
  enableval="$enable_boehm"
5794
 
   if test "$enableval" = "yes"; then
5795
 
        cat >> confdefs.h <<\EOF
5796
 
#define GC_LEAK_DETECTOR 1
5797
 
EOF
5798
 
 
5799
 
        GC_LEAK_DETECTOR=1
5800
 
    fi
5801
 
fi
5802
 
 
5803
 
 
5804
5888
if test -n "$USE_PTHREADS"; then
5805
5889
      rm -f conftest*
5806
5890
   ac_cv_have_dash_pthread=no
5807
5891
   echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
5808
 
echo "configure:5809: checking whether ${CC-cc} accepts -pthread" >&5
 
5892
echo "configure:5893: checking whether ${CC-cc} accepts -pthread" >&5
5809
5893
   echo 'int main() { return 0; }' | cat > conftest.c
5810
5894
   ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
5811
5895
   if test $? -eq 0; then
5828
5912
                            ac_cv_have_dash_pthreads=no
5829
5913
    if test "$ac_cv_have_dash_pthread" = "no"; then
5830
5914
            echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
5831
 
echo "configure:5832: checking whether ${CC-cc} accepts -pthreads" >&5
 
5915
echo "configure:5916: checking whether ${CC-cc} accepts -pthreads" >&5
5832
5916
        echo 'int main() { return 0; }' | cat > conftest.c
5833
5917
            ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
5834
5918
        if test $? -eq 0; then
6152
6236
 
6153
6237
if test -n "$_WRAP_MALLOC"; then
6154
6238
    if test "$GNU_CC"; then
6155
 
       WRAP_MALLOC_CFLAGS="${LDFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,calloc -Wl,--wrap -Wl,valloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,memalign -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc -Wl,--wrap -Wl,strdup -Wl,--wrap -Wl,strndup -Wl,--wrap -Wl,posix_memalign"
 
6239
       WRAP_MALLOC_CFLAGS="${LDFLAGS} ${WRAP_MALLOC_CFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,calloc -Wl,--wrap -Wl,valloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,memalign -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc -Wl,--wrap -Wl,strdup -Wl,--wrap -Wl,strndup -Wl,--wrap -Wl,posix_memalign"
6156
6240
       DSO_LDOPTS="$DSO_LDOPTS $WRAP_MALLOC_CFLAGS"
6157
6241
    else
6158
6242
       { echo "configure: error: --enable-wrap-malloc is not supported for non-GNU toolchains" 1>&2; exit 1; }
6271
6355
 
6272
6356
 
6273
6357
 
6274
 
 
6275
6358
MAKEFILES="
6276
6359
Makefile 
6277
6360
config/Makefile
6439
6522
EOF
6440
6523
cat >> $CONFIG_STATUS <<EOF
6441
6524
 
 
6525
 
 
6526
 
6442
6527
# Protect against being on the right side of a sed subst in config.status.
6443
6528
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6444
6529
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6498
6583
s%@WINDRES@%$WINDRES%g
6499
6584
s%@CPP@%$CPP%g
6500
6585
s%@PERL@%$PERL%g
 
6586
s%@CCACHE@%$CCACHE%g
6501
6587
s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g
6502
6588
s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g
6503
6589
s%@HOST_CFLAGS@%$HOST_CFLAGS%g
6514
6600
s%@USE_N32@%$USE_N32%g
6515
6601
s%@USE_64@%$USE_64%g
6516
6602
s%@OBJECT_MODE@%$OBJECT_MODE%g
6517
 
s%@GC_LEAK_DETECTOR@%$GC_LEAK_DETECTOR%g
6518
6603
s%@ENABLE_STRIP@%$ENABLE_STRIP%g
6519
6604
s%@USE_PTHREADS@%$USE_PTHREADS%g
6520
6605
s%@USE_BTHREADS@%$USE_BTHREADS%g
6647
6732
  .)  srcdir=.
6648
6733
      if test -z "$ac_dots"; then top_srcdir=.
6649
6734
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6650
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
6735
  /* | ?:/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6651
6736
  *) # Relative path.
6652
6737
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6653
6738
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
6663
6748
  *) ac_comsub= ;;
6664
6749
  esac
6665
6750
 
6666
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6751
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" `
6667
6752
  sed -e "$ac_comsub
6668
6753
s%@configure_input@%$configure_input%g
6669
6754
s%@srcdir@%$srcdir%g
6672
6757
fi; done
6673
6758
rm -f conftest.s*
6674
6759
 
 
6760
 
 
6761
 
6675
6762
EOF
6676
6763
cat >> $CONFIG_STATUS <<EOF
6677
6764