32
32
--enable-win32-target=\$t
33
33
Specify win32 flavor. (WIN95 or WINNT)"
35
--enable-symbian-target=\$t
36
Specify symbian flavor. (WINSCW or GCCE)"
35
38
--enable-debug-rtl Use the MSVC debug runtime library"
37
40
--enable-n32 Enable n32 ABI support (IRIX only)"
54
57
--disable-os2-high-mem Disable high-memory support on OS/2"
59
--with-symbian-sdk=SYMBIAN_SDK_DIR
60
The path to the Symbian SDK"
56
62
--enable-strip Enable stripping of shared libs and programs"
58
64
--with-pthreads Use system pthreads library as thread subsystem"
736
742
# Extract the first word of "$ac_prog", so it can be a program name with args.
737
743
set dummy $ac_prog; ac_word=$2
738
744
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739
echo "configure:740: checking for $ac_word" >&5
745
echo "configure:746: checking for $ac_word" >&5
740
746
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741
747
echo $ac_n "(cached) $ac_c" 1>&6
888
894
if test "${enable_win32_target+set}" = set; then
889
895
enableval="$enable_win32_target"
890
896
OS_TARGET=`echo $enableval | tr a-z A-Z`
900
# Check whether --enable-symbian-target or --disable-symbian-target was given.
901
if test "${enable_symbian_target+set}" = set; then
902
enableval="$enable_symbian_target"
903
OS_TARGET=`echo $enableval | tr a-z A-Z`
1064
1067
# Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
1065
1068
set dummy $WHOAMI whoami; ac_word=$2
1066
1069
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067
echo "configure:1068: checking for $ac_word" >&5
1070
echo "configure:1071: checking for $ac_word" >&5
1068
1071
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1069
1072
echo $ac_n "(cached) $ac_c" 1>&6
1135
1138
_SAVE_LDFLAGS="$LDFLAGS"
1137
1140
echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
1138
echo "configure:1139: checking for $host compiler" >&5
1141
echo "configure:1142: checking for $host compiler" >&5
1139
1142
for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1141
1144
# Extract the first word of "$ac_prog", so it can be a program name with args.
1142
1145
set dummy $ac_prog; ac_word=$2
1143
1146
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144
echo "configure:1145: checking for $ac_word" >&5
1147
echo "configure:1148: checking for $ac_word" >&5
1145
1148
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1146
1149
echo $ac_n "(cached) $ac_c" 1>&6
1187
1190
LDFLAGS="$HOST_LDFLAGS"
1189
1192
echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1190
echo "configure:1191: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1193
echo "configure:1194: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1191
1194
cat > conftest.$ac_ext <<EOF
1192
#line 1193 "configure"
1195
#line 1196 "configure"
1193
1196
#include "confdefs.h"
1199
if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1202
if { (eval echo configure:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1200
1203
rm -rf conftest*
1201
1204
ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
1225
1228
# Extract the first word of "$ac_prog", so it can be a program name with args.
1226
1229
set dummy $ac_prog; ac_word=$2
1227
1230
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228
echo "configure:1229: checking for $ac_word" >&5
1231
echo "configure:1232: checking for $ac_word" >&5
1229
1232
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1230
1233
echo $ac_n "(cached) $ac_c" 1>&6
1259
1262
# Extract the first word of "gcc", so it can be a program name with args.
1260
1263
set dummy gcc; ac_word=$2
1261
1264
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262
echo "configure:1263: checking for $ac_word" >&5
1265
echo "configure:1266: checking for $ac_word" >&5
1263
1266
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1264
1267
echo $ac_n "(cached) $ac_c" 1>&6
1289
1292
# Extract the first word of "cc", so it can be a program name with args.
1290
1293
set dummy cc; ac_word=$2
1291
1294
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292
echo "configure:1293: checking for $ac_word" >&5
1295
echo "configure:1296: checking for $ac_word" >&5
1293
1296
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1294
1297
echo $ac_n "(cached) $ac_c" 1>&6
1340
1343
# Extract the first word of "cl", so it can be a program name with args.
1341
1344
set dummy cl; 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
1374
1377
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1375
echo "configure:1376: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1378
echo "configure:1379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1378
1381
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1384
1387
cat > conftest.$ac_ext << EOF
1386
#line 1387 "configure"
1389
#line 1390 "configure"
1387
1390
#include "confdefs.h"
1389
1392
main(){return(0);}
1391
if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394
if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1392
1395
ac_cv_prog_cc_works=yes
1393
1396
# If we can't run a trivial program, we are probably using a cross compiler.
1394
1397
if (./conftest; exit) 2>/dev/null; then
1414
1417
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1416
1419
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1417
echo "configure:1418: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1420
echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1418
1421
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1419
1422
cross_compiling=$ac_cv_prog_cc_cross
1421
1424
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1422
echo "configure:1423: checking whether we are using GNU C" >&5
1425
echo "configure:1426: checking whether we are using GNU C" >&5
1423
1426
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1424
1427
echo $ac_n "(cached) $ac_c" 1>&6
1447
1450
ac_save_CFLAGS="$CFLAGS"
1449
1452
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1450
echo "configure:1451: checking whether ${CC-cc} accepts -g" >&5
1453
echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5
1451
1454
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1452
1455
echo $ac_n "(cached) $ac_c" 1>&6
1484
1487
# Extract the first word of "$ac_prog", so it can be a program name with args.
1485
1488
set dummy $ac_prog; ac_word=$2
1486
1489
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487
echo "configure:1488: checking for $ac_word" >&5
1490
echo "configure:1491: checking for $ac_word" >&5
1488
1491
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1489
1492
echo $ac_n "(cached) $ac_c" 1>&6
1520
1523
# Extract the first word of "$ac_prog", so it can be a program name with args.
1521
1524
set dummy $ac_prog; ac_word=$2
1522
1525
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523
echo "configure:1524: checking for $ac_word" >&5
1526
echo "configure:1527: checking for $ac_word" >&5
1524
1527
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1525
1528
echo $ac_n "(cached) $ac_c" 1>&6
1554
1557
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1555
echo "configure:1556: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1558
echo "configure:1559: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1558
1561
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1564
1567
cat > conftest.$ac_ext << EOF
1566
#line 1567 "configure"
1569
#line 1570 "configure"
1567
1570
#include "confdefs.h"
1569
1572
int main(){return(0);}
1571
if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574
if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572
1575
ac_cv_prog_cxx_works=yes
1573
1576
# If we can't run a trivial program, we are probably using a cross compiler.
1574
1577
if (./conftest; exit) 2>/dev/null; then
1594
1597
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1596
1599
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1597
echo "configure:1598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1600
echo "configure:1601: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1598
1601
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1599
1602
cross_compiling=$ac_cv_prog_cxx_cross
1601
1604
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1602
echo "configure:1603: checking whether we are using GNU C++" >&5
1605
echo "configure:1606: checking whether we are using GNU C++" >&5
1603
1606
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1604
1607
echo $ac_n "(cached) $ac_c" 1>&6
1627
1630
ac_save_CXXFLAGS="$CXXFLAGS"
1629
1632
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1630
echo "configure:1631: checking whether ${CXX-g++} accepts -g" >&5
1633
echo "configure:1634: checking whether ${CXX-g++} accepts -g" >&5
1631
1634
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1632
1635
echo $ac_n "(cached) $ac_c" 1>&6
1672
1675
# Extract the first word of "$ac_prog", so it can be a program name with args.
1673
1676
set dummy $ac_prog; ac_word=$2
1674
1677
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1675
echo "configure:1676: checking for $ac_word" >&5
1678
echo "configure:1679: checking for $ac_word" >&5
1676
1679
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1677
1680
echo $ac_n "(cached) $ac_c" 1>&6
1707
1710
# Extract the first word of "$ac_prog", so it can be a program name with args.
1708
1711
set dummy $ac_prog; ac_word=$2
1709
1712
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710
echo "configure:1711: checking for $ac_word" >&5
1713
echo "configure:1714: checking for $ac_word" >&5
1711
1714
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1712
1715
echo $ac_n "(cached) $ac_c" 1>&6
1742
1745
# Extract the first word of "$ac_prog", so it can be a program name with args.
1743
1746
set dummy $ac_prog; ac_word=$2
1744
1747
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1745
echo "configure:1746: checking for $ac_word" >&5
1748
echo "configure:1749: checking for $ac_word" >&5
1746
1749
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1747
1750
echo $ac_n "(cached) $ac_c" 1>&6
1777
1780
# Extract the first word of "$ac_prog", so it can be a program name with args.
1778
1781
set dummy $ac_prog; ac_word=$2
1779
1782
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1780
echo "configure:1781: checking for $ac_word" >&5
1783
echo "configure:1784: checking for $ac_word" >&5
1781
1784
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1782
1785
echo $ac_n "(cached) $ac_c" 1>&6
1812
1815
# Extract the first word of "$ac_prog", so it can be a program name with args.
1813
1816
set dummy $ac_prog; ac_word=$2
1814
1817
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815
echo "configure:1816: checking for $ac_word" >&5
1818
echo "configure:1819: checking for $ac_word" >&5
1816
1819
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1817
1820
echo $ac_n "(cached) $ac_c" 1>&6
1847
1850
# Extract the first word of "$ac_prog", so it can be a program name with args.
1848
1851
set dummy $ac_prog; ac_word=$2
1849
1852
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1850
echo "configure:1851: checking for $ac_word" >&5
1853
echo "configure:1854: checking for $ac_word" >&5
1851
1854
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1852
1855
echo $ac_n "(cached) $ac_c" 1>&6
1882
1885
# Extract the first word of "gcc", so it can be a program name with args.
1883
1886
set dummy gcc; ac_word=$2
1884
1887
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885
echo "configure:1886: checking for $ac_word" >&5
1888
echo "configure:1889: checking for $ac_word" >&5
1886
1889
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887
1890
echo $ac_n "(cached) $ac_c" 1>&6
1912
1915
# Extract the first word of "cc", so it can be a program name with args.
1913
1916
set dummy cc; ac_word=$2
1914
1917
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915
echo "configure:1916: checking for $ac_word" >&5
1918
echo "configure:1919: checking for $ac_word" >&5
1916
1919
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1917
1920
echo $ac_n "(cached) $ac_c" 1>&6
1963
1966
# Extract the first word of "cl", so it can be a program name with args.
1964
1967
set dummy cl; ac_word=$2
1965
1968
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966
echo "configure:1967: checking for $ac_word" >&5
1969
echo "configure:1970: checking for $ac_word" >&5
1967
1970
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1968
1971
echo $ac_n "(cached) $ac_c" 1>&6
1997
2000
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1998
echo "configure:1999: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2001
echo "configure:2002: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2001
2004
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2007
2010
cat > conftest.$ac_ext << EOF
2009
#line 2010 "configure"
2012
#line 2013 "configure"
2010
2013
#include "confdefs.h"
2012
2015
main(){return(0);}
2014
if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017
if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2015
2018
ac_cv_prog_cc_works=yes
2016
2019
# If we can't run a trivial program, we are probably using a cross compiler.
2017
2020
if (./conftest; exit) 2>/dev/null; then
2037
2040
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2039
2042
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2040
echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2043
echo "configure:2044: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2041
2044
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2042
2045
cross_compiling=$ac_cv_prog_cc_cross
2044
2047
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2045
echo "configure:2046: checking whether we are using GNU C" >&5
2048
echo "configure:2049: checking whether we are using GNU C" >&5
2046
2049
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2047
2050
echo $ac_n "(cached) $ac_c" 1>&6
2070
2073
ac_save_CFLAGS="$CFLAGS"
2072
2075
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2073
echo "configure:2074: checking whether ${CC-cc} accepts -g" >&5
2076
echo "configure:2077: checking whether ${CC-cc} accepts -g" >&5
2074
2077
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2075
2078
echo $ac_n "(cached) $ac_c" 1>&6
2110
2113
# Extract the first word of "$ac_prog", so it can be a program name with args.
2111
2114
set dummy $ac_prog; ac_word=$2
2112
2115
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2113
echo "configure:2114: checking for $ac_word" >&5
2116
echo "configure:2117: checking for $ac_word" >&5
2114
2117
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2115
2118
echo $ac_n "(cached) $ac_c" 1>&6
2144
2147
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2145
echo "configure:2146: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2148
echo "configure:2149: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2148
2151
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2154
2157
cat > conftest.$ac_ext << EOF
2156
#line 2157 "configure"
2159
#line 2160 "configure"
2157
2160
#include "confdefs.h"
2159
2162
int main(){return(0);}
2161
if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164
if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2162
2165
ac_cv_prog_cxx_works=yes
2163
2166
# If we can't run a trivial program, we are probably using a cross compiler.
2164
2167
if (./conftest; exit) 2>/dev/null; then
2184
2187
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2186
2189
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2187
echo "configure:2188: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2190
echo "configure:2191: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2188
2191
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2189
2192
cross_compiling=$ac_cv_prog_cxx_cross
2191
2194
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2192
echo "configure:2193: checking whether we are using GNU C++" >&5
2195
echo "configure:2196: checking whether we are using GNU C++" >&5
2193
2196
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2194
2197
echo $ac_n "(cached) $ac_c" 1>&6
2217
2220
ac_save_CXXFLAGS="$CXXFLAGS"
2219
2222
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2220
echo "configure:2221: checking whether ${CXX-g++} accepts -g" >&5
2223
echo "configure:2224: checking whether ${CXX-g++} accepts -g" >&5
2221
2224
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2222
2225
echo $ac_n "(cached) $ac_c" 1>&6
2253
2256
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2254
echo "configure:2255: checking how to run the C preprocessor" >&5
2257
echo "configure:2258: checking how to run the C preprocessor" >&5
2255
2258
# On Suns, sometimes $CPP names a directory.
2256
2259
if test -n "$CPP" && test -d "$CPP"; then
2266
2269
# On the NeXT, cc -E runs the code through the compiler's parser,
2267
2270
# not just through cpp.
2268
2271
cat > conftest.$ac_ext <<EOF
2269
#line 2270 "configure"
2272
#line 2273 "configure"
2270
2273
#include "confdefs.h"
2271
2274
#include <assert.h>
2274
2277
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275
{ (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2278
{ (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276
2279
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277
2280
if test -z "$ac_err"; then
2283
2286
rm -rf conftest*
2284
2287
CPP="${CC-cc} -E -traditional-cpp"
2285
2288
cat > conftest.$ac_ext <<EOF
2286
#line 2287 "configure"
2289
#line 2290 "configure"
2287
2290
#include "confdefs.h"
2288
2291
#include <assert.h>
2291
2294
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2292
{ (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2295
{ (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2293
2296
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2294
2297
if test -z "$ac_err"; then
2300
2303
rm -rf conftest*
2301
2304
CPP="${CC-cc} -nologo -E"
2302
2305
cat > conftest.$ac_ext <<EOF
2303
#line 2304 "configure"
2306
#line 2307 "configure"
2304
2307
#include "confdefs.h"
2305
2308
#include <assert.h>
2308
2311
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309
{ (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2312
{ (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310
2313
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311
2314
if test -z "$ac_err"; then
2333
2336
# Extract the first word of "ranlib", so it can be a program name with args.
2334
2337
set dummy ranlib; ac_word=$2
2335
2338
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336
echo "configure:2337: checking for $ac_word" >&5
2339
echo "configure:2340: checking for $ac_word" >&5
2337
2340
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2338
2341
echo $ac_n "(cached) $ac_c" 1>&6
2365
2368
# Extract the first word of "$ac_prog", so it can be a program name with args.
2366
2369
set dummy $ac_prog; ac_word=$2
2367
2370
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2368
echo "configure:2369: checking for $ac_word" >&5
2371
echo "configure:2372: checking for $ac_word" >&5
2369
2372
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2370
2373
echo $ac_n "(cached) $ac_c" 1>&6
2406
2409
# Extract the first word of "$ac_prog", so it can be a program name with args.
2407
2410
set dummy $ac_prog; ac_word=$2
2408
2411
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409
echo "configure:2410: checking for $ac_word" >&5
2412
echo "configure:2413: checking for $ac_word" >&5
2410
2413
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2411
2414
echo $ac_n "(cached) $ac_c" 1>&6
2447
2450
# Extract the first word of "$ac_prog", so it can be a program name with args.
2448
2451
set dummy $ac_prog; ac_word=$2
2449
2452
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450
echo "configure:2451: checking for $ac_word" >&5
2453
echo "configure:2454: checking for $ac_word" >&5
2451
2454
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2452
2455
echo $ac_n "(cached) $ac_c" 1>&6
2488
2491
# Extract the first word of "$ac_prog", so it can be a program name with args.
2489
2492
set dummy $ac_prog; ac_word=$2
2490
2493
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491
echo "configure:2492: checking for $ac_word" >&5
2494
echo "configure:2495: checking for $ac_word" >&5
2492
2495
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2493
2496
echo $ac_n "(cached) $ac_c" 1>&6
2529
2532
# Extract the first word of "$ac_prog", so it can be a program name with args.
2530
2533
set dummy $ac_prog; ac_word=$2
2531
2534
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532
echo "configure:2533: checking for $ac_word" >&5
2535
echo "configure:2536: checking for $ac_word" >&5
2533
2536
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2534
2537
echo $ac_n "(cached) $ac_c" 1>&6
2599
2602
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
2600
echo "configure:2601: checking for gcc -pipe support" >&5
2603
echo "configure:2604: checking for gcc -pipe support" >&5
2601
2604
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2602
2605
echo '#include <stdio.h>' > dummy-hello.c
2603
2606
echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
2647
2650
if test "$GNU_CC"; then
2648
2651
echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
2649
echo "configure:2650: checking for visibility(hidden) attribute" >&5
2652
echo "configure:2653: checking for visibility(hidden) attribute" >&5
2650
2653
if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2651
2654
echo $ac_n "(cached) $ac_c" 1>&6
2672
2675
echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
2673
echo "configure:2674: checking for visibility pragma support" >&5
2676
echo "configure:2677: checking for visibility pragma support" >&5
2674
2677
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2675
2678
echo $ac_n "(cached) $ac_c" 1>&6
2723
2726
# Extract the first word of "$ac_prog", so it can be a program name with args.
2724
2727
set dummy $ac_prog; ac_word=$2
2725
2728
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726
echo "configure:2727: checking for $ac_word" >&5
2729
echo "configure:2730: checking for $ac_word" >&5
2727
2730
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2728
2731
echo $ac_n "(cached) $ac_c" 1>&6
2808
2812
OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'`
2811
if test "$OS_ARCH" = "OpenVMS"; then
2812
OS_RELEASE=`uname -v`
2815
2815
#######################################################################
2816
2816
# Master "Core Components" macros for getting the OS target #
2817
2817
#######################################################################
2825
2825
# at lesser performance (the Win95 target uses threads; the WinNT target
2826
2826
# uses fibers).
2828
# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target
2829
# is built. See: win16_3.11.mk for lots more about the Win16 target.
2831
2828
# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
2832
2829
# cross-compilation.
2947
2941
NSINSTALL=nsinstall
2949
*-cygwin*|*-msvc*|*-mks*)
2943
*-cygwin*|*-msvc*|*-mks*|*-wince*)
2950
2944
NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
2951
2945
if test `echo "${PATH}" | grep -c \;` = 0; then
2952
2946
CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
2980
2974
DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
2981
2975
ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
2982
2976
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
2983
echo "configure:2984: checking for sys/atomic_op.h" >&5
2977
echo "configure:2978: checking for sys/atomic_op.h" >&5
2984
2978
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985
2979
echo $ac_n "(cached) $ac_c" 1>&6
2987
2981
cat > conftest.$ac_ext <<EOF
2988
#line 2989 "configure"
2982
#line 2983 "configure"
2989
2983
#include "confdefs.h"
2990
2984
#include <sys/atomic_op.h>
2992
2986
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993
{ (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2987
{ (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994
2988
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995
2989
if test -z "$ac_err"; then
2996
2990
rm -rf conftest*
3147
3141
_DEBUG_FLAGS='-gdwarf-2 -O0'
3148
3142
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3149
3143
echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
3150
echo "configure:3151: checking for gethostbyaddr in -lbind" >&5
3144
echo "configure:3145: checking for gethostbyaddr in -lbind" >&5
3151
3145
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3152
3146
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3153
3147
echo $ac_n "(cached) $ac_c" 1>&6
3431
3427
MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
3434
LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
3435
DSO_LDOPTS="${MACOS_SDK_LIBS} $DSO_LDOPTS"
3430
LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
3436
3431
export NEXT_ROOT=$MACOS_SDK_DIR
3438
3433
if test -n "$CROSS_COMPILE" ; then
3445
3440
CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
3447
if test "$GCC_VERSION_FULL" != "4.0.0" ; then
3442
if test "$GCC_VERSION_FULL" != "4.0.0" ; then
3448
3443
LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
3449
DSO_LDOPTS="$DSO_LDOPTS -isysroot ${MACOS_SDK_DIR}"
3451
3445
LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
3452
DSO_LDOPTS="$DSO_LDOPTS -Wl,-syslibroot,${MACOS_SDK_DIR}"
4058
4051
if test -n "$MOZ_OPTIMIZE"; then
4059
if test -n "$MOZ_PROFILE"; then
4060
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Z7"
4062
4052
if test -n "$MOZ_DEBUG_SYMBOLS"; then
4063
4053
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi"
4065
if test -n "$MOZ_PROFILE" -o -n "$MOZ_DEBUG_SYMBOLS"; then
4066
4054
DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
4067
4055
LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
4196
cat >> confdefs.h <<\EOF
4200
cat >> confdefs.h <<\EOF
4204
cat >> confdefs.h <<\EOF
4208
cat >> confdefs.h <<\EOF
4209
#define _PR_GLOBAL_THREADS_ONLY 1
4213
AR='lib -NOLOGO -OUT:"$@"'
4219
MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
4221
PR_MD_ARCH_DIR=windows
4222
RESOLVE_LINK_SYMBOLS=1
4224
MDCPUCFG_H=_win95.cfg
4225
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4226
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4228
DLLFLAGS='-OUT:"$@"'
4229
if test -n "$MOZ_DEBUG_SYMBOLS"; then
4230
OS_LDFLAGS=-DEBUG -DEBUGTYPE:CV
4231
OS_DLLFLAGS=-DEBUG -DEBUGTYPE:CV
4232
DSO_LDOPTS=-DEBUG -DEBUGTYPE:CV
4211
4238
cat >> confdefs.h <<\EOF
4212
4239
#define XP_UNIX 1
4443
4470
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4447
cat >> confdefs.h <<\EOF
4451
cat >> confdefs.h <<\EOF
4455
cat >> confdefs.h <<\EOF
4456
#define PR_GETIPNODE_NOT_THREADSAFE 1
4459
RESOLVE_LINK_SYMBOLS=1
4461
MDCPUCFG_H=_openvms.cfg
4462
PR_MD_CSRCS=openvms.c
4463
DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS)'
4464
if test -n "$MOZ_DEBUG"; then
4465
DSO_LDOPTS="$DSO_LDOPTS $_DEBUG_FLAGS"
4467
DSO_LDOPTS="$DSO_LDOPTS $_OPTIMIZE_FLAGS"
4472
4474
SHELL_OVERRIDE="SHELL = /usr/bin/ksh"
4473
4475
cat >> confdefs.h <<\EOF
4503
4505
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4504
4506
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
4505
4507
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
4506
echo "configure:4507: checking for machine/builtins.h" >&5
4508
echo "configure:4509: checking for machine/builtins.h" >&5
4507
4509
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4508
4510
echo $ac_n "(cached) $ac_c" 1>&6
4510
4512
cat > conftest.$ac_ext <<EOF
4511
#line 4512 "configure"
4513
#line 4514 "configure"
4512
4514
#include "confdefs.h"
4513
4515
#include <machine/builtins.h>
4515
4517
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4516
{ (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4518
{ (eval echo configure:4519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4517
4519
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4518
4520
if test -z "$ac_err"; then
4519
4521
rm -rf conftest*
4972
# Check whether --with-symbian-sdk or --without-symbian-sdk was given.
4973
if test "${with_symbian_sdk+set}" = set; then
4974
withval="$with_symbian_sdk"
4975
SYMBIAN_SDK_DIR=$withval
4979
echo -----------------------------------------------------------------------------
4980
echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR
4981
echo -----------------------------------------------------------------------------
4983
cat >> confdefs.h <<\EOF
4987
cat >> confdefs.h <<\EOF
4991
cat >> confdefs.h <<\EOF
4995
cat >> confdefs.h <<\EOF
4996
#define __SYMBIAN32__ 1
4999
cat >> confdefs.h <<\EOF
5003
cat >> confdefs.h <<\EOF
5007
cat >> confdefs.h <<\EOF
5008
#define __SUPPORT_CPP_EXCEPTIONS__ 1
5011
cat >> confdefs.h <<\EOF
5012
#define MOZ_STDERR_TO_STDOUT 1
5015
cat >> confdefs.h <<\EOF
5016
#define HAVE_FCNTL_FILE_LOCKING 1
5019
cat >> confdefs.h <<\EOF
5020
#define HAVE_SOCKLEN_T 1
5030
MDCPUCFG_H=_symbian.cfg
5031
PR_MD_CSRCS=symbian.c
5033
RANLIB='echo no ranlib '
5036
OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__"
5037
CFLAGS="$CFLAGS -MD -nostdinc"
5038
SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis"
5039
echo -------------------------------------------------------
5040
echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE
5041
echo -------------------------------------------------------
5042
case "$OS_TARGET" in
5048
WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB"
5049
CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)"
5050
SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh"
5051
AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@"
5052
cat >> confdefs.h <<\EOF
5056
cat >> confdefs.h <<\EOF
5060
cat >> confdefs.h <<\EOF
5064
cat >> confdefs.h <<\EOF
5065
#define __WINSCW__ 1
5068
DEFINES="$DEFINES -U_WIN32"
5071
CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float"
5072
CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy"
5073
SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h"
5074
cat >> confdefs.h <<\EOF
5078
cat >> confdefs.h <<\EOF
5082
DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh"
5085
{ echo "configure: error: Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." 1>&2; exit 1; }
5088
CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}"
4970
5092
cat >> confdefs.h <<\EOF
4971
5093
#define XP_OS2 1
5045
5166
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5046
echo "configure:5047: checking for dlopen in -ldl" >&5
5167
echo "configure:5168: checking for dlopen in -ldl" >&5
5047
5168
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5048
5169
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5049
5170
echo $ac_n "(cached) $ac_c" 1>&6
5079
5200
echo "$ac_t""yes" 1>&6
5080
5201
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
5081
5202
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
5082
echo "configure:5083: checking for dlfcn.h" >&5
5203
echo "configure:5204: checking for dlfcn.h" >&5
5083
5204
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5084
5205
echo $ac_n "(cached) $ac_c" 1>&6
5086
5207
cat > conftest.$ac_ext <<EOF
5087
#line 5088 "configure"
5208
#line 5209 "configure"
5088
5209
#include "confdefs.h"
5089
5210
#include <dlfcn.h>
5091
5212
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5092
{ (eval echo configure:5093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5213
{ (eval echo configure:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5093
5214
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5094
5215
if test -z "$ac_err"; then
5095
5216
rm -rf conftest*
5123
5244
if test $ac_cv_prog_gcc = yes; then
5124
5245
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5125
echo "configure:5126: checking whether ${CC-cc} needs -traditional" >&5
5246
echo "configure:5247: checking whether ${CC-cc} needs -traditional" >&5
5126
5247
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5127
5248
echo $ac_n "(cached) $ac_c" 1>&6
5129
5250
ac_pattern="Autoconf.*'x'"
5130
5251
cat > conftest.$ac_ext <<EOF
5131
#line 5132 "configure"
5252
#line 5253 "configure"
5132
5253
#include "confdefs.h"
5133
5254
#include <sgtty.h>
5134
5255
Autoconf TIOCGETP
5170
5291
for ac_func in lchown strerror
5172
5293
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5173
echo "configure:5174: checking for $ac_func" >&5
5294
echo "configure:5295: checking for $ac_func" >&5
5174
5295
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5175
5296
echo $ac_n "(cached) $ac_c" 1>&6
5177
5298
cat > conftest.$ac_ext <<EOF
5178
#line 5179 "configure"
5299
#line 5300 "configure"
5179
5300
#include "confdefs.h"
5180
5301
/* System header to define __stub macros and hopefully few prototypes,
5181
5302
which can conflict with char $ac_func(); below. */
5239
5360
if test -z "$GNU_CC"; then
5241
5362
echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
5242
echo "configure:5243: checking for +Olit support" >&5
5363
echo "configure:5364: checking for +Olit support" >&5
5243
5364
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5244
5365
echo $ac_n "(cached) $ac_c" 1>&6
5280
5401
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5281
echo "configure:5282: checking for pthread_create in -lpthreads" >&5
5402
echo "configure:5403: checking for pthread_create in -lpthreads" >&5
5283
5404
#include <pthread.h>
5284
5405
void *foo(void *v) { return v; }
5300
5421
echo "$ac_t""no" 1>&6
5302
5423
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
5303
echo "configure:5304: checking for pthread_create in -lpthread" >&5
5424
echo "configure:5425: checking for pthread_create in -lpthread" >&5
5305
5426
#include <pthread.h>
5306
5427
void *foo(void *v) { return v; }
5322
5443
echo "$ac_t""no" 1>&6
5324
5445
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5325
echo "configure:5326: checking for pthread_create in -lc_r" >&5
5446
echo "configure:5447: checking for pthread_create in -lc_r" >&5
5327
5448
#include <pthread.h>
5328
5449
void *foo(void *v) { return v; }
5344
5465
echo "$ac_t""no" 1>&6
5346
5467
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
5347
echo "configure:5348: checking for pthread_create in -lc" >&5
5468
echo "configure:5469: checking for pthread_create in -lc" >&5
5349
5470
#include <pthread.h>
5350
5471
void *foo(void *v) { return v; }
5476
5597
rm -f conftest*
5477
5598
ac_cv_have_dash_pthread=no
5478
5599
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
5479
echo "configure:5480: checking whether ${CC-cc} accepts -pthread" >&5
5600
echo "configure:5601: checking whether ${CC-cc} accepts -pthread" >&5
5480
5601
echo 'int main() { return 0; }' | cat > conftest.c
5481
5602
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
5482
5603
if test $? -eq 0; then
5499
5620
ac_cv_have_dash_pthreads=no
5500
5621
if test "$ac_cv_have_dash_pthread" = "no"; then
5501
5622
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
5502
echo "configure:5503: checking whether ${CC-cc} accepts -pthreads" >&5
5623
echo "configure:5624: checking whether ${CC-cc} accepts -pthreads" >&5
5503
5624
echo 'int main() { return 0; }' | cat > conftest.c
5504
5625
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
5505
5626
if test $? -eq 0; then
6202
6324
s%@VISIBILITY_FLAGS@%$VISIBILITY_FLAGS%g
6203
6325
s%@WRAP_SYSTEM_INCLUDES@%$WRAP_SYSTEM_INCLUDES%g
6204
6326
s%@MACOS_SDK_DIR@%$MACOS_SDK_DIR%g
6327
s%@SYMBIAN_SDK_DIR@%$SYMBIAN_SDK_DIR%g
6205
6328
s%@NEXT_ROOT@%$NEXT_ROOT%g