1273
1480
rm -f conftest.make
1275
1482
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1276
echo "$as_me:1276: result: yes" >&5
1483
echo "$as_me:$LINENO: result: yes" >&5
1277
1484
echo "${ECHO_T}yes" >&6
1280
echo "$as_me:1280: result: no" >&5
1487
echo "$as_me:$LINENO: result: no" >&5
1281
1488
echo "${ECHO_T}no" >&6
1282
1489
SET_MAKE="MAKE=${MAKE-make}"
1285
PACKAGE=gnome-common
1289
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1290
{ { echo "$as_me:1290: error: source directory already configured; run \"make distclean\" there first" >&5
1492
rm -rf .tst 2>/dev/null
1493
mkdir .tst 2>/dev/null
1494
if test -d .tst; then
1499
rmdir .tst 2>/dev/null
1501
# test to see if srcdir already configured
1502
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1503
test -f $srcdir/config.status; then
1504
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1291
1505
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1292
1506
{ (exit 1); exit 1; }; }
1295
cat >>confdefs.h <<EOF
1509
# test whether we have cygpath
1510
if test -z "$CYGPATH_W"; then
1511
if (cygpath --version) >/dev/null 2>/dev/null; then
1512
CYGPATH_W='cygpath -w'
1519
# Define the identity of the package.
1520
PACKAGE='gnome-common'
1524
cat >>confdefs.h <<_ACEOF
1296
1525
#define PACKAGE "$PACKAGE"
1299
cat >>confdefs.h <<EOF
1529
cat >>confdefs.h <<_ACEOF
1300
1530
#define VERSION "$VERSION"
1303
missing_dir=`cd $ac_aux_dir && pwd`
1304
echo "$as_me:1304: checking for working aclocal" >&5
1305
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1306
# Run test in a subshell; some versions of sh will print an error if
1307
# an executable is not found, even if stderr is redirected.
1308
# Redirect stdin to placate older versions of autoconf. Sigh.
1309
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1311
echo "$as_me:1311: result: found" >&5
1312
echo "${ECHO_T}found" >&6
1314
ACLOCAL="$missing_dir/missing aclocal"
1315
echo "$as_me:1315: result: missing" >&5
1316
echo "${ECHO_T}missing" >&6
1319
echo "$as_me:1319: checking for working autoconf" >&5
1320
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1321
# Run test in a subshell; some versions of sh will print an error if
1322
# an executable is not found, even if stderr is redirected.
1323
# Redirect stdin to placate older versions of autoconf. Sigh.
1324
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1326
echo "$as_me:1326: result: found" >&5
1327
echo "${ECHO_T}found" >&6
1329
AUTOCONF="$missing_dir/missing autoconf"
1330
echo "$as_me:1330: result: missing" >&5
1331
echo "${ECHO_T}missing" >&6
1334
echo "$as_me:1334: checking for working automake" >&5
1335
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1336
# Run test in a subshell; some versions of sh will print an error if
1337
# an executable is not found, even if stderr is redirected.
1338
# Redirect stdin to placate older versions of autoconf. Sigh.
1339
if (automake --version) < /dev/null > /dev/null 2>&1; then
1341
echo "$as_me:1341: result: found" >&5
1342
echo "${ECHO_T}found" >&6
1344
AUTOMAKE="$missing_dir/missing automake"
1345
echo "$as_me:1345: result: missing" >&5
1346
echo "${ECHO_T}missing" >&6
1349
echo "$as_me:1349: checking for working autoheader" >&5
1350
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1351
# Run test in a subshell; some versions of sh will print an error if
1352
# an executable is not found, even if stderr is redirected.
1353
# Redirect stdin to placate older versions of autoconf. Sigh.
1354
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1355
AUTOHEADER=autoheader
1356
echo "$as_me:1356: result: found" >&5
1357
echo "${ECHO_T}found" >&6
1359
AUTOHEADER="$missing_dir/missing autoheader"
1360
echo "$as_me:1360: result: missing" >&5
1361
echo "${ECHO_T}missing" >&6
1364
echo "$as_me:1364: checking for working makeinfo" >&5
1365
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1366
# Run test in a subshell; some versions of sh will print an error if
1367
# an executable is not found, even if stderr is redirected.
1368
# Redirect stdin to placate older versions of autoconf. Sigh.
1369
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1371
echo "$as_me:1371: result: found" >&5
1372
echo "${ECHO_T}found" >&6
1374
MAKEINFO="$missing_dir/missing makeinfo"
1375
echo "$as_me:1375: result: missing" >&5
1376
echo "${ECHO_T}missing" >&6
1379
echo "$as_me:1379: checking whether to enable maintainer-specific portions of Makefiles" >&5
1380
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1381
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1382
if test "${enable_maintainer_mode+set}" = set; then
1383
enableval="$enable_maintainer_mode"
1384
USE_MAINTAINER_MODE=$enableval
1386
USE_MAINTAINER_MODE=no
1388
echo "$as_me:1388: result: $USE_MAINTAINER_MODE" >&5
1389
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1391
if test $USE_MAINTAINER_MODE = yes; then
1392
MAINTAINER_MODE_TRUE=
1393
MAINTAINER_MODE_FALSE='#'
1395
MAINTAINER_MODE_TRUE='#'
1396
MAINTAINER_MODE_FALSE=
1398
MAINT=$MAINTAINER_MODE_TRUE
1401
INSIDE_GNOME_COMMON_TRUE=
1402
INSIDE_GNOME_COMMON_FALSE='#'
1404
INSIDE_GNOME_COMMON_TRUE='#'
1405
INSIDE_GNOME_COMMON_FALSE=
1409
ac_cpp='$CPP $CPPFLAGS'
1410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413
if test -n "$ac_tool_prefix"; then
1414
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1415
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1416
echo "$as_me:1416: checking for $ac_word" >&5
1417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418
if test "${ac_cv_prog_CC+set}" = set; then
1419
echo $ECHO_N "(cached) $ECHO_C" >&6
1421
if test -n "$CC"; then
1422
ac_cv_prog_CC="$CC" # Let the user override the test.
1424
ac_save_IFS=$IFS; IFS=$ac_path_separator
1426
for ac_dir in $ac_dummy; do
1428
test -z "$ac_dir" && ac_dir=.
1429
$as_executable_p "$ac_dir/$ac_word" || continue
1430
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431
echo "$as_me:1431: found $ac_dir/$ac_word" >&5
1438
if test -n "$CC"; then
1439
echo "$as_me:1439: result: $CC" >&5
1440
echo "${ECHO_T}$CC" >&6
1442
echo "$as_me:1442: result: no" >&5
1443
echo "${ECHO_T}no" >&6
1447
if test -z "$ac_cv_prog_CC"; then
1449
# Extract the first word of "gcc", so it can be a program name with args.
1450
set dummy gcc; ac_word=$2
1451
echo "$as_me:1451: checking for $ac_word" >&5
1452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454
echo $ECHO_N "(cached) $ECHO_C" >&6
1456
if test -n "$ac_ct_CC"; then
1457
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1459
ac_save_IFS=$IFS; IFS=$ac_path_separator
1461
for ac_dir in $ac_dummy; do
1463
test -z "$ac_dir" && ac_dir=.
1464
$as_executable_p "$ac_dir/$ac_word" || continue
1465
ac_cv_prog_ac_ct_CC="gcc"
1466
echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1472
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473
if test -n "$ac_ct_CC"; then
1474
echo "$as_me:1474: result: $ac_ct_CC" >&5
1475
echo "${ECHO_T}$ac_ct_CC" >&6
1477
echo "$as_me:1477: result: no" >&5
1478
echo "${ECHO_T}no" >&6
1486
if test -z "$CC"; then
1487
if test -n "$ac_tool_prefix"; then
1488
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489
set dummy ${ac_tool_prefix}cc; ac_word=$2
1490
echo "$as_me:1490: checking for $ac_word" >&5
1491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492
if test "${ac_cv_prog_CC+set}" = set; then
1493
echo $ECHO_N "(cached) $ECHO_C" >&6
1495
if test -n "$CC"; then
1496
ac_cv_prog_CC="$CC" # Let the user override the test.
1498
ac_save_IFS=$IFS; IFS=$ac_path_separator
1500
for ac_dir in $ac_dummy; do
1502
test -z "$ac_dir" && ac_dir=.
1503
$as_executable_p "$ac_dir/$ac_word" || continue
1504
ac_cv_prog_CC="${ac_tool_prefix}cc"
1505
echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1512
if test -n "$CC"; then
1513
echo "$as_me:1513: result: $CC" >&5
1514
echo "${ECHO_T}$CC" >&6
1516
echo "$as_me:1516: result: no" >&5
1517
echo "${ECHO_T}no" >&6
1521
if test -z "$ac_cv_prog_CC"; then
1523
# Extract the first word of "cc", so it can be a program name with args.
1524
set dummy cc; ac_word=$2
1525
echo "$as_me:1525: checking for $ac_word" >&5
1526
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528
echo $ECHO_N "(cached) $ECHO_C" >&6
1530
if test -n "$ac_ct_CC"; then
1531
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1533
ac_save_IFS=$IFS; IFS=$ac_path_separator
1535
for ac_dir in $ac_dummy; do
1537
test -z "$ac_dir" && ac_dir=.
1538
$as_executable_p "$ac_dir/$ac_word" || continue
1539
ac_cv_prog_ac_ct_CC="cc"
1540
echo "$as_me:1540: found $ac_dir/$ac_word" >&5
1546
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547
if test -n "$ac_ct_CC"; then
1548
echo "$as_me:1548: result: $ac_ct_CC" >&5
1549
echo "${ECHO_T}$ac_ct_CC" >&6
1551
echo "$as_me:1551: result: no" >&5
1552
echo "${ECHO_T}no" >&6
1561
if test -z "$CC"; then
1562
# Extract the first word of "cc", so it can be a program name with args.
1563
set dummy cc; ac_word=$2
1564
echo "$as_me:1564: checking for $ac_word" >&5
1565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566
if test "${ac_cv_prog_CC+set}" = set; then
1567
echo $ECHO_N "(cached) $ECHO_C" >&6
1569
if test -n "$CC"; then
1570
ac_cv_prog_CC="$CC" # Let the user override the test.
1573
ac_save_IFS=$IFS; IFS=$ac_path_separator
1575
for ac_dir in $ac_dummy; do
1577
test -z "$ac_dir" && ac_dir=.
1578
$as_executable_p "$ac_dir/$ac_word" || continue
1579
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1580
ac_prog_rejected=yes
1584
echo "$as_me:1584: found $ac_dir/$ac_word" >&5
1588
if test $ac_prog_rejected = yes; then
1589
# We found a bogon in the path, so make sure we never use it.
1590
set dummy $ac_cv_prog_CC
1592
if test $# != 0; then
1593
# We chose a different compiler from the bogus one.
1594
# However, it has the same basename, so the bogon will be chosen
1595
# first if we set CC to just the basename; use the full file name.
1597
set dummy "$ac_dir/$ac_word" ${1+"$@"}
1605
if test -n "$CC"; then
1606
echo "$as_me:1606: result: $CC" >&5
1607
echo "${ECHO_T}$CC" >&6
1609
echo "$as_me:1609: result: no" >&5
1610
echo "${ECHO_T}no" >&6
1614
if test -z "$CC"; then
1615
if test -n "$ac_tool_prefix"; then
1618
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620
echo "$as_me:1620: checking for $ac_word" >&5
1621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622
if test "${ac_cv_prog_CC+set}" = set; then
1623
echo $ECHO_N "(cached) $ECHO_C" >&6
1625
if test -n "$CC"; then
1626
ac_cv_prog_CC="$CC" # Let the user override the test.
1628
ac_save_IFS=$IFS; IFS=$ac_path_separator
1630
for ac_dir in $ac_dummy; do
1632
test -z "$ac_dir" && ac_dir=.
1633
$as_executable_p "$ac_dir/$ac_word" || continue
1634
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635
echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1642
if test -n "$CC"; then
1643
echo "$as_me:1643: result: $CC" >&5
1644
echo "${ECHO_T}$CC" >&6
1646
echo "$as_me:1646: result: no" >&5
1647
echo "${ECHO_T}no" >&6
1650
test -n "$CC" && break
1653
if test -z "$CC"; then
1657
# Extract the first word of "$ac_prog", so it can be a program name with args.
1658
set dummy $ac_prog; ac_word=$2
1659
echo "$as_me:1659: checking for $ac_word" >&5
1660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662
echo $ECHO_N "(cached) $ECHO_C" >&6
1664
if test -n "$ac_ct_CC"; then
1665
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667
ac_save_IFS=$IFS; IFS=$ac_path_separator
1669
for ac_dir in $ac_dummy; do
1671
test -z "$ac_dir" && ac_dir=.
1672
$as_executable_p "$ac_dir/$ac_word" || continue
1673
ac_cv_prog_ac_ct_CC="$ac_prog"
1674
echo "$as_me:1674: found $ac_dir/$ac_word" >&5
1680
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681
if test -n "$ac_ct_CC"; then
1682
echo "$as_me:1682: result: $ac_ct_CC" >&5
1683
echo "${ECHO_T}$ac_ct_CC" >&6
1685
echo "$as_me:1685: result: no" >&5
1686
echo "${ECHO_T}no" >&6
1689
test -n "$ac_ct_CC" && break
1697
test -z "$CC" && { { echo "$as_me:1697: error: no acceptable cc found in \$PATH" >&5
1698
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1699
{ (exit 1); exit 1; }; }
1701
# Provide some information about the compiler.
1702
echo "$as_me:1702:" \
1703
"checking for C compiler version" >&5
1704
ac_compiler=`set X $ac_compile; echo $2`
1705
{ (eval echo "$as_me:1705: \"$ac_compiler --version </dev/null >&5\"") >&5
1706
(eval $ac_compiler --version </dev/null >&5) 2>&5
1708
echo "$as_me:1708: \$? = $ac_status" >&5
1709
(exit $ac_status); }
1710
{ (eval echo "$as_me:1710: \"$ac_compiler -v </dev/null >&5\"") >&5
1711
(eval $ac_compiler -v </dev/null >&5) 2>&5
1713
echo "$as_me:1713: \$? = $ac_status" >&5
1714
(exit $ac_status); }
1715
{ (eval echo "$as_me:1715: \"$ac_compiler -V </dev/null >&5\"") >&5
1716
(eval $ac_compiler -V </dev/null >&5) 2>&5
1718
echo "$as_me:1718: \$? = $ac_status" >&5
1719
(exit $ac_status); }
1721
cat >conftest.$ac_ext <<_ACEOF
1722
#line 1722 "configure"
1723
#include "confdefs.h"
1733
ac_clean_files_save=$ac_clean_files
1734
ac_clean_files="$ac_clean_files a.out a.exe"
1735
# Try to create an executable without -o first, disregard a.out.
1736
# It will help us diagnose broken compilers, and finding out an intuition
1738
echo "$as_me:1738: checking for C compiler default output" >&5
1739
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1740
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741
if { (eval echo "$as_me:1741: \"$ac_link_default\"") >&5
1742
(eval $ac_link_default) 2>&5
1744
echo "$as_me:1744: \$? = $ac_status" >&5
1745
(exit $ac_status); }; then
1746
# Find the output, starting from the most likely. This scheme is
1747
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1749
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1750
ls a.out conftest 2>/dev/null;
1751
ls a.* conftest.* 2>/dev/null`; do
1753
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1754
a.out ) # We found the default executable, but exeext='' is most
1757
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1765
echo "$as_me: failed program was:" >&5
1766
cat conftest.$ac_ext >&5
1767
{ { echo "$as_me:1767: error: C compiler cannot create executables" >&5
1768
echo "$as_me: error: C compiler cannot create executables" >&2;}
1769
{ (exit 77); exit 77; }; }
1772
ac_exeext=$ac_cv_exeext
1773
echo "$as_me:1773: result: $ac_file" >&5
1774
echo "${ECHO_T}$ac_file" >&6
1776
# Check the compiler produces executables we can run. If not, either
1777
# the compiler is broken, or we cross compile.
1778
echo "$as_me:1778: checking whether the C compiler works" >&5
1779
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781
# If not cross compiling, check that we can run a simple program.
1782
if test "$cross_compiling" != yes; then
1783
if { ac_try='./$ac_file'
1784
{ (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787
echo "$as_me:1787: \$? = $ac_status" >&5
1788
(exit $ac_status); }; }; then
1791
if test "$cross_compiling" = maybe; then
1794
{ { echo "$as_me:1794: error: cannot run C compiled programs.
1795
If you meant to cross compile, use \`--host'." >&5
1796
echo "$as_me: error: cannot run C compiled programs.
1797
If you meant to cross compile, use \`--host'." >&2;}
1798
{ (exit 1); exit 1; }; }
1802
echo "$as_me:1802: result: yes" >&5
1803
echo "${ECHO_T}yes" >&6
1805
rm -f a.out a.exe conftest$ac_cv_exeext
1806
ac_clean_files=$ac_clean_files_save
1807
# Check the compiler produces executables we can run. If not, either
1808
# the compiler is broken, or we cross compile.
1809
echo "$as_me:1809: checking whether we are cross compiling" >&5
1810
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811
echo "$as_me:1811: result: $cross_compiling" >&5
1812
echo "${ECHO_T}$cross_compiling" >&6
1814
echo "$as_me:1814: checking for executable suffix" >&5
1815
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1816
if { (eval echo "$as_me:1816: \"$ac_link\"") >&5
1817
(eval $ac_link) 2>&5
1819
echo "$as_me:1819: \$? = $ac_status" >&5
1820
(exit $ac_status); }; then
1821
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1822
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823
# work properly (i.e., refer to `conftest.exe'), while it won't with
1825
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1827
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835
{ { echo "$as_me:1835: error: cannot compute EXEEXT: cannot compile and link" >&5
1836
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1837
{ (exit 1); exit 1; }; }
1840
rm -f conftest$ac_cv_exeext
1841
echo "$as_me:1841: result: $ac_cv_exeext" >&5
1842
echo "${ECHO_T}$ac_cv_exeext" >&6
1844
rm -f conftest.$ac_ext
1845
EXEEXT=$ac_cv_exeext
1847
echo "$as_me:1847: checking for object suffix" >&5
1848
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1849
if test "${ac_cv_objext+set}" = set; then
1850
echo $ECHO_N "(cached) $ECHO_C" >&6
1852
cat >conftest.$ac_ext <<_ACEOF
1853
#line 1853 "configure"
1854
#include "confdefs.h"
1864
rm -f conftest.o conftest.obj
1865
if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866
(eval $ac_compile) 2>&5
1868
echo "$as_me:1868: \$? = $ac_status" >&5
1869
(exit $ac_status); }; then
1870
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1873
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1878
echo "$as_me: failed program was:" >&5
1879
cat conftest.$ac_ext >&5
1880
{ { echo "$as_me:1880: error: cannot compute OBJEXT: cannot compile" >&5
1881
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1882
{ (exit 1); exit 1; }; }
1885
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887
echo "$as_me:1887: result: $ac_cv_objext" >&5
1888
echo "${ECHO_T}$ac_cv_objext" >&6
1889
OBJEXT=$ac_cv_objext
1891
echo "$as_me:1891: checking whether we are using the GNU C compiler" >&5
1892
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894
echo $ECHO_N "(cached) $ECHO_C" >&6
1896
cat >conftest.$ac_ext <<_ACEOF
1897
#line 1897 "configure"
1898
#include "confdefs.h"
1911
rm -f conftest.$ac_objext
1912
if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913
(eval $ac_compile) 2>&5
1915
echo "$as_me:1915: \$? = $ac_status" >&5
1916
(exit $ac_status); } &&
1917
{ ac_try='test -s conftest.$ac_objext'
1918
{ (eval echo "$as_me:1918: \"$ac_try\"") >&5
1921
echo "$as_me:1921: \$? = $ac_status" >&5
1922
(exit $ac_status); }; }; then
1925
echo "$as_me: failed program was:" >&5
1926
cat conftest.$ac_ext >&5
1929
rm -f conftest.$ac_objext conftest.$ac_ext
1930
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933
echo "$as_me:1933: result: $ac_cv_c_compiler_gnu" >&5
1934
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935
GCC=`test $ac_compiler_gnu = yes && echo yes`
1936
ac_test_CFLAGS=${CFLAGS+set}
1937
ac_save_CFLAGS=$CFLAGS
1939
echo "$as_me:1939: checking whether $CC accepts -g" >&5
1940
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941
if test "${ac_cv_prog_cc_g+set}" = set; then
1942
echo $ECHO_N "(cached) $ECHO_C" >&6
1944
cat >conftest.$ac_ext <<_ACEOF
1945
#line 1945 "configure"
1946
#include "confdefs.h"
1956
rm -f conftest.$ac_objext
1957
if { (eval echo "$as_me:1957: \"$ac_compile\"") >&5
1958
(eval $ac_compile) 2>&5
1960
echo "$as_me:1960: \$? = $ac_status" >&5
1961
(exit $ac_status); } &&
1962
{ ac_try='test -s conftest.$ac_objext'
1963
{ (eval echo "$as_me:1963: \"$ac_try\"") >&5
1966
echo "$as_me:1966: \$? = $ac_status" >&5
1967
(exit $ac_status); }; }; then
1970
echo "$as_me: failed program was:" >&5
1971
cat conftest.$ac_ext >&5
1974
rm -f conftest.$ac_objext conftest.$ac_ext
1976
echo "$as_me:1976: result: $ac_cv_prog_cc_g" >&5
1977
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1978
if test "$ac_test_CFLAGS" = set; then
1979
CFLAGS=$ac_save_CFLAGS
1980
elif test $ac_cv_prog_cc_g = yes; then
1981
if test "$GCC" = yes; then
1987
if test "$GCC" = yes; then
1993
# Some people use a C++ compiler to compile C. Since we use `exit',
1994
# in C++ we need to declare it. In case someone uses the same compiler
1995
# for both compiling C and C++ we need to have the C++ compiler decide
1996
# the declaration of exit, since it's the most demanding environment.
1997
cat >conftest.$ac_ext <<_ACEOF
2002
rm -f conftest.$ac_objext
2003
if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004
(eval $ac_compile) 2>&5
2006
echo "$as_me:2006: \$? = $ac_status" >&5
2007
(exit $ac_status); } &&
2008
{ ac_try='test -s conftest.$ac_objext'
2009
{ (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012
echo "$as_me:2012: \$? = $ac_status" >&5
2013
(exit $ac_status); }; }; then
2014
for ac_declaration in \
2016
'#include <stdlib.h>' \
2017
'extern "C" void std::exit (int) throw (); using std::exit;' \
2018
'extern "C" void std::exit (int); using std::exit;' \
2019
'extern "C" void exit (int) throw ();' \
2020
'extern "C" void exit (int);' \
2023
cat >conftest.$ac_ext <<_ACEOF
2024
#line 2024 "configure"
2025
#include "confdefs.h"
2036
rm -f conftest.$ac_objext
2037
if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5
2038
(eval $ac_compile) 2>&5
2040
echo "$as_me:2040: \$? = $ac_status" >&5
2041
(exit $ac_status); } &&
2042
{ ac_try='test -s conftest.$ac_objext'
2043
{ (eval echo "$as_me:2043: \"$ac_try\"") >&5
2046
echo "$as_me:2046: \$? = $ac_status" >&5
2047
(exit $ac_status); }; }; then
2050
echo "$as_me: failed program was:" >&5
2051
cat conftest.$ac_ext >&5
2054
rm -f conftest.$ac_objext conftest.$ac_ext
2055
cat >conftest.$ac_ext <<_ACEOF
2056
#line 2056 "configure"
2057
#include "confdefs.h"
2067
rm -f conftest.$ac_objext
2068
if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069
(eval $ac_compile) 2>&5
2071
echo "$as_me:2071: \$? = $ac_status" >&5
2072
(exit $ac_status); } &&
2073
{ ac_try='test -s conftest.$ac_objext'
2074
{ (eval echo "$as_me:2074: \"$ac_try\"") >&5
2077
echo "$as_me:2077: \$? = $ac_status" >&5
2078
(exit $ac_status); }; }; then
2081
echo "$as_me: failed program was:" >&5
2082
cat conftest.$ac_ext >&5
2084
rm -f conftest.$ac_objext conftest.$ac_ext
2087
if test -n "$ac_declaration"; then
2088
echo '#ifdef __cplusplus' >>confdefs.h
2089
echo $ac_declaration >>confdefs.h
2090
echo '#endif' >>confdefs.h
2094
echo "$as_me: failed program was:" >&5
2095
cat conftest.$ac_ext >&5
2097
rm -f conftest.$ac_objext conftest.$ac_ext
2099
ac_cpp='$CPP $CPPFLAGS'
2100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104
echo "$as_me:2104: checking for strerror in -lcposix" >&5
2105
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2106
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2107
echo $ECHO_N "(cached) $ECHO_C" >&6
2109
ac_check_lib_save_LIBS=$LIBS
2110
LIBS="-lcposix $LIBS"
2111
cat >conftest.$ac_ext <<_ACEOF
2112
#line 2112 "configure"
2113
#include "confdefs.h"
2115
/* Override any gcc2 internal prototype to avoid an error. */
2119
/* We use char because int might match the return type of a gcc2
2120
builtin and then its argument prototype would still apply. */
2130
rm -f conftest.$ac_objext conftest$ac_exeext
2131
if { (eval echo "$as_me:2131: \"$ac_link\"") >&5
2132
(eval $ac_link) 2>&5
2134
echo "$as_me:2134: \$? = $ac_status" >&5
2135
(exit $ac_status); } &&
2136
{ ac_try='test -s conftest$ac_exeext'
2137
{ (eval echo "$as_me:2137: \"$ac_try\"") >&5
2140
echo "$as_me:2140: \$? = $ac_status" >&5
2141
(exit $ac_status); }; }; then
2142
ac_cv_lib_cposix_strerror=yes
2144
echo "$as_me: failed program was:" >&5
2145
cat conftest.$ac_ext >&5
2146
ac_cv_lib_cposix_strerror=no
2148
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2149
LIBS=$ac_check_lib_save_LIBS
2151
echo "$as_me:2151: result: $ac_cv_lib_cposix_strerror" >&5
2152
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2153
if test $ac_cv_lib_cposix_strerror = yes; then
2154
LIBS="$LIBS -lcposix"
2158
ac_cpp='$CPP $CPPFLAGS'
2159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162
if test -n "$ac_tool_prefix"; then
2163
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2164
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2165
echo "$as_me:2165: checking for $ac_word" >&5
2166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167
if test "${ac_cv_prog_CC+set}" = set; then
2168
echo $ECHO_N "(cached) $ECHO_C" >&6
2170
if test -n "$CC"; then
2171
ac_cv_prog_CC="$CC" # Let the user override the test.
2173
ac_save_IFS=$IFS; IFS=$ac_path_separator
2175
for ac_dir in $ac_dummy; do
2177
test -z "$ac_dir" && ac_dir=.
2178
$as_executable_p "$ac_dir/$ac_word" || continue
2179
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2180
echo "$as_me:2180: found $ac_dir/$ac_word" >&5
2187
if test -n "$CC"; then
2188
echo "$as_me:2188: result: $CC" >&5
2189
echo "${ECHO_T}$CC" >&6
2191
echo "$as_me:2191: result: no" >&5
2192
echo "${ECHO_T}no" >&6
2196
if test -z "$ac_cv_prog_CC"; then
2198
# Extract the first word of "gcc", so it can be a program name with args.
2199
set dummy gcc; ac_word=$2
2200
echo "$as_me:2200: checking for $ac_word" >&5
2201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203
echo $ECHO_N "(cached) $ECHO_C" >&6
2205
if test -n "$ac_ct_CC"; then
2206
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208
ac_save_IFS=$IFS; IFS=$ac_path_separator
2210
for ac_dir in $ac_dummy; do
2212
test -z "$ac_dir" && ac_dir=.
2213
$as_executable_p "$ac_dir/$ac_word" || continue
2214
ac_cv_prog_ac_ct_CC="gcc"
2215
echo "$as_me:2215: found $ac_dir/$ac_word" >&5
2221
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222
if test -n "$ac_ct_CC"; then
2223
echo "$as_me:2223: result: $ac_ct_CC" >&5
2224
echo "${ECHO_T}$ac_ct_CC" >&6
2226
echo "$as_me:2226: result: no" >&5
2227
echo "${ECHO_T}no" >&6
2235
if test -z "$CC"; then
2236
if test -n "$ac_tool_prefix"; then
2237
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238
set dummy ${ac_tool_prefix}cc; ac_word=$2
2239
echo "$as_me:2239: checking for $ac_word" >&5
2240
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241
if test "${ac_cv_prog_CC+set}" = set; then
2242
echo $ECHO_N "(cached) $ECHO_C" >&6
2244
if test -n "$CC"; then
2245
ac_cv_prog_CC="$CC" # Let the user override the test.
2247
ac_save_IFS=$IFS; IFS=$ac_path_separator
2249
for ac_dir in $ac_dummy; do
2251
test -z "$ac_dir" && ac_dir=.
2252
$as_executable_p "$ac_dir/$ac_word" || continue
2253
ac_cv_prog_CC="${ac_tool_prefix}cc"
2254
echo "$as_me:2254: found $ac_dir/$ac_word" >&5
2261
if test -n "$CC"; then
2262
echo "$as_me:2262: result: $CC" >&5
2263
echo "${ECHO_T}$CC" >&6
2265
echo "$as_me:2265: result: no" >&5
2266
echo "${ECHO_T}no" >&6
2270
if test -z "$ac_cv_prog_CC"; then
2272
# Extract the first word of "cc", so it can be a program name with args.
2273
set dummy cc; ac_word=$2
2274
echo "$as_me:2274: checking for $ac_word" >&5
2275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277
echo $ECHO_N "(cached) $ECHO_C" >&6
2279
if test -n "$ac_ct_CC"; then
2280
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282
ac_save_IFS=$IFS; IFS=$ac_path_separator
2284
for ac_dir in $ac_dummy; do
2286
test -z "$ac_dir" && ac_dir=.
2287
$as_executable_p "$ac_dir/$ac_word" || continue
2288
ac_cv_prog_ac_ct_CC="cc"
2289
echo "$as_me:2289: found $ac_dir/$ac_word" >&5
2295
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296
if test -n "$ac_ct_CC"; then
2297
echo "$as_me:2297: result: $ac_ct_CC" >&5
2298
echo "${ECHO_T}$ac_ct_CC" >&6
2300
echo "$as_me:2300: result: no" >&5
2301
echo "${ECHO_T}no" >&6
2310
if test -z "$CC"; then
2311
# Extract the first word of "cc", so it can be a program name with args.
2312
set dummy cc; ac_word=$2
2313
echo "$as_me:2313: checking for $ac_word" >&5
2314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315
if test "${ac_cv_prog_CC+set}" = set; then
2316
echo $ECHO_N "(cached) $ECHO_C" >&6
2318
if test -n "$CC"; then
2319
ac_cv_prog_CC="$CC" # Let the user override the test.
2322
ac_save_IFS=$IFS; IFS=$ac_path_separator
2324
for ac_dir in $ac_dummy; do
2326
test -z "$ac_dir" && ac_dir=.
2327
$as_executable_p "$ac_dir/$ac_word" || continue
2328
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2329
ac_prog_rejected=yes
2333
echo "$as_me:2333: found $ac_dir/$ac_word" >&5
2337
if test $ac_prog_rejected = yes; then
2338
# We found a bogon in the path, so make sure we never use it.
2339
set dummy $ac_cv_prog_CC
2341
if test $# != 0; then
2342
# We chose a different compiler from the bogus one.
2343
# However, it has the same basename, so the bogon will be chosen
2344
# first if we set CC to just the basename; use the full file name.
2346
set dummy "$ac_dir/$ac_word" ${1+"$@"}
2354
if test -n "$CC"; then
2355
echo "$as_me:2355: result: $CC" >&5
2356
echo "${ECHO_T}$CC" >&6
2358
echo "$as_me:2358: result: no" >&5
2359
echo "${ECHO_T}no" >&6
2363
if test -z "$CC"; then
2364
if test -n "$ac_tool_prefix"; then
2367
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369
echo "$as_me:2369: checking for $ac_word" >&5
2370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371
if test "${ac_cv_prog_CC+set}" = set; then
2372
echo $ECHO_N "(cached) $ECHO_C" >&6
2374
if test -n "$CC"; then
2375
ac_cv_prog_CC="$CC" # Let the user override the test.
2377
ac_save_IFS=$IFS; IFS=$ac_path_separator
2379
for ac_dir in $ac_dummy; do
2381
test -z "$ac_dir" && ac_dir=.
2382
$as_executable_p "$ac_dir/$ac_word" || continue
2383
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2384
echo "$as_me:2384: found $ac_dir/$ac_word" >&5
2391
if test -n "$CC"; then
2392
echo "$as_me:2392: result: $CC" >&5
2393
echo "${ECHO_T}$CC" >&6
2395
echo "$as_me:2395: result: no" >&5
2396
echo "${ECHO_T}no" >&6
2399
test -n "$CC" && break
2402
if test -z "$CC"; then
2406
# Extract the first word of "$ac_prog", so it can be a program name with args.
2407
set dummy $ac_prog; ac_word=$2
2408
echo "$as_me:2408: checking for $ac_word" >&5
2409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411
echo $ECHO_N "(cached) $ECHO_C" >&6
2413
if test -n "$ac_ct_CC"; then
2414
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416
ac_save_IFS=$IFS; IFS=$ac_path_separator
2418
for ac_dir in $ac_dummy; do
2420
test -z "$ac_dir" && ac_dir=.
2421
$as_executable_p "$ac_dir/$ac_word" || continue
2422
ac_cv_prog_ac_ct_CC="$ac_prog"
2423
echo "$as_me:2423: found $ac_dir/$ac_word" >&5
2429
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430
if test -n "$ac_ct_CC"; then
2431
echo "$as_me:2431: result: $ac_ct_CC" >&5
2432
echo "${ECHO_T}$ac_ct_CC" >&6
2434
echo "$as_me:2434: result: no" >&5
2435
echo "${ECHO_T}no" >&6
2438
test -n "$ac_ct_CC" && break
2446
test -z "$CC" && { { echo "$as_me:2446: error: no acceptable cc found in \$PATH" >&5
2447
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2448
{ (exit 1); exit 1; }; }
2450
# Provide some information about the compiler.
2451
echo "$as_me:2451:" \
2452
"checking for C compiler version" >&5
2453
ac_compiler=`set X $ac_compile; echo $2`
2454
{ (eval echo "$as_me:2454: \"$ac_compiler --version </dev/null >&5\"") >&5
2455
(eval $ac_compiler --version </dev/null >&5) 2>&5
2457
echo "$as_me:2457: \$? = $ac_status" >&5
2458
(exit $ac_status); }
2459
{ (eval echo "$as_me:2459: \"$ac_compiler -v </dev/null >&5\"") >&5
2460
(eval $ac_compiler -v </dev/null >&5) 2>&5
2462
echo "$as_me:2462: \$? = $ac_status" >&5
2463
(exit $ac_status); }
2464
{ (eval echo "$as_me:2464: \"$ac_compiler -V </dev/null >&5\"") >&5
2465
(eval $ac_compiler -V </dev/null >&5) 2>&5
2467
echo "$as_me:2467: \$? = $ac_status" >&5
2468
(exit $ac_status); }
2470
echo "$as_me:2470: checking whether we are using the GNU C compiler" >&5
2471
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2472
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2473
echo $ECHO_N "(cached) $ECHO_C" >&6
2475
cat >conftest.$ac_ext <<_ACEOF
2476
#line 2476 "configure"
2477
#include "confdefs.h"
2490
rm -f conftest.$ac_objext
2491
if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2492
(eval $ac_compile) 2>&5
2494
echo "$as_me:2494: \$? = $ac_status" >&5
2495
(exit $ac_status); } &&
2496
{ ac_try='test -s conftest.$ac_objext'
2497
{ (eval echo "$as_me:2497: \"$ac_try\"") >&5
2500
echo "$as_me:2500: \$? = $ac_status" >&5
2501
(exit $ac_status); }; }; then
2504
echo "$as_me: failed program was:" >&5
2505
cat conftest.$ac_ext >&5
2508
rm -f conftest.$ac_objext conftest.$ac_ext
2509
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2512
echo "$as_me:2512: result: $ac_cv_c_compiler_gnu" >&5
2513
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2514
GCC=`test $ac_compiler_gnu = yes && echo yes`
2515
ac_test_CFLAGS=${CFLAGS+set}
2516
ac_save_CFLAGS=$CFLAGS
2518
echo "$as_me:2518: checking whether $CC accepts -g" >&5
2519
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2520
if test "${ac_cv_prog_cc_g+set}" = set; then
2521
echo $ECHO_N "(cached) $ECHO_C" >&6
2523
cat >conftest.$ac_ext <<_ACEOF
2524
#line 2524 "configure"
2525
#include "confdefs.h"
2535
rm -f conftest.$ac_objext
2536
if { (eval echo "$as_me:2536: \"$ac_compile\"") >&5
2537
(eval $ac_compile) 2>&5
2539
echo "$as_me:2539: \$? = $ac_status" >&5
2540
(exit $ac_status); } &&
2541
{ ac_try='test -s conftest.$ac_objext'
2542
{ (eval echo "$as_me:2542: \"$ac_try\"") >&5
2545
echo "$as_me:2545: \$? = $ac_status" >&5
2546
(exit $ac_status); }; }; then
2549
echo "$as_me: failed program was:" >&5
2550
cat conftest.$ac_ext >&5
2553
rm -f conftest.$ac_objext conftest.$ac_ext
2555
echo "$as_me:2555: result: $ac_cv_prog_cc_g" >&5
2556
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2557
if test "$ac_test_CFLAGS" = set; then
2558
CFLAGS=$ac_save_CFLAGS
2559
elif test $ac_cv_prog_cc_g = yes; then
2560
if test "$GCC" = yes; then
2566
if test "$GCC" = yes; then
2572
# Some people use a C++ compiler to compile C. Since we use `exit',
2573
# in C++ we need to declare it. In case someone uses the same compiler
2574
# for both compiling C and C++ we need to have the C++ compiler decide
2575
# the declaration of exit, since it's the most demanding environment.
2576
cat >conftest.$ac_ext <<_ACEOF
2581
rm -f conftest.$ac_objext
2582
if { (eval echo "$as_me:2582: \"$ac_compile\"") >&5
2583
(eval $ac_compile) 2>&5
2585
echo "$as_me:2585: \$? = $ac_status" >&5
2586
(exit $ac_status); } &&
2587
{ ac_try='test -s conftest.$ac_objext'
2588
{ (eval echo "$as_me:2588: \"$ac_try\"") >&5
2591
echo "$as_me:2591: \$? = $ac_status" >&5
2592
(exit $ac_status); }; }; then
2593
for ac_declaration in \
2595
'#include <stdlib.h>' \
2596
'extern "C" void std::exit (int) throw (); using std::exit;' \
2597
'extern "C" void std::exit (int); using std::exit;' \
2598
'extern "C" void exit (int) throw ();' \
2599
'extern "C" void exit (int);' \
2602
cat >conftest.$ac_ext <<_ACEOF
2603
#line 2603 "configure"
2604
#include "confdefs.h"
2615
rm -f conftest.$ac_objext
2616
if { (eval echo "$as_me:2616: \"$ac_compile\"") >&5
2617
(eval $ac_compile) 2>&5
2619
echo "$as_me:2619: \$? = $ac_status" >&5
2620
(exit $ac_status); } &&
2621
{ ac_try='test -s conftest.$ac_objext'
2622
{ (eval echo "$as_me:2622: \"$ac_try\"") >&5
2625
echo "$as_me:2625: \$? = $ac_status" >&5
2626
(exit $ac_status); }; }; then
2629
echo "$as_me: failed program was:" >&5
2630
cat conftest.$ac_ext >&5
2633
rm -f conftest.$ac_objext conftest.$ac_ext
2634
cat >conftest.$ac_ext <<_ACEOF
2635
#line 2635 "configure"
2636
#include "confdefs.h"
2646
rm -f conftest.$ac_objext
2647
if { (eval echo "$as_me:2647: \"$ac_compile\"") >&5
2648
(eval $ac_compile) 2>&5
2650
echo "$as_me:2650: \$? = $ac_status" >&5
2651
(exit $ac_status); } &&
2652
{ ac_try='test -s conftest.$ac_objext'
2653
{ (eval echo "$as_me:2653: \"$ac_try\"") >&5
2656
echo "$as_me:2656: \$? = $ac_status" >&5
2657
(exit $ac_status); }; }; then
2660
echo "$as_me: failed program was:" >&5
2661
cat conftest.$ac_ext >&5
2663
rm -f conftest.$ac_objext conftest.$ac_ext
2666
if test -n "$ac_declaration"; then
2667
echo '#ifdef __cplusplus' >>confdefs.h
2668
echo $ac_declaration >>confdefs.h
2669
echo '#endif' >>confdefs.h
2673
echo "$as_me: failed program was:" >&5
2674
cat conftest.$ac_ext >&5
2676
rm -f conftest.$ac_objext conftest.$ac_ext
2678
ac_cpp='$CPP $CPPFLAGS'
2679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684
ac_cpp='$CPP $CPPFLAGS'
2685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688
echo "$as_me:2688: checking how to run the C preprocessor" >&5
2689
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690
# On Suns, sometimes $CPP names a directory.
2691
if test -n "$CPP" && test -d "$CPP"; then
2694
if test -z "$CPP"; then
2695
if test "${ac_cv_prog_CPP+set}" = set; then
2696
echo $ECHO_N "(cached) $ECHO_C" >&6
2698
# Double quotes because CPP needs to be expanded
2699
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2702
for ac_c_preproc_warn_flag in '' yes
2704
# Use a header file that comes with gcc, so configuring glibc
2705
# with a fresh cross-compiler works.
2706
# On the NeXT, cc -E runs the code through the compiler's parser,
2707
# not just through cpp. "Syntax error" is here to catch this case.
2708
cat >conftest.$ac_ext <<_ACEOF
2709
#line 2709 "configure"
2710
#include "confdefs.h"
2714
if { (eval echo "$as_me:2714: \"$ac_cpp conftest.$ac_ext\"") >&5
2715
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717
egrep -v '^ *\+' conftest.er1 >conftest.err
2719
cat conftest.err >&5
2720
echo "$as_me:2720: \$? = $ac_status" >&5
2721
(exit $ac_status); } >/dev/null; then
2722
if test -s conftest.err; then
2723
ac_cpp_err=$ac_c_preproc_warn_flag
2730
if test -z "$ac_cpp_err"; then
2733
echo "$as_me: failed program was:" >&5
2734
cat conftest.$ac_ext >&5
2735
# Broken: fails on valid input.
2738
rm -f conftest.err conftest.$ac_ext
2740
# OK, works on sane cases. Now check whether non-existent headers
2741
# can be detected and how.
2742
cat >conftest.$ac_ext <<_ACEOF
2743
#line 2743 "configure"
2744
#include "confdefs.h"
2745
#include <ac_nonexistent.h>
2747
if { (eval echo "$as_me:2747: \"$ac_cpp conftest.$ac_ext\"") >&5
2748
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750
egrep -v '^ *\+' conftest.er1 >conftest.err
2752
cat conftest.err >&5
2753
echo "$as_me:2753: \$? = $ac_status" >&5
2754
(exit $ac_status); } >/dev/null; then
2755
if test -s conftest.err; then
2756
ac_cpp_err=$ac_c_preproc_warn_flag
2763
if test -z "$ac_cpp_err"; then
2764
# Broken: success on invalid input.
2767
echo "$as_me: failed program was:" >&5
2768
cat conftest.$ac_ext >&5
2769
# Passes both tests.
2773
rm -f conftest.err conftest.$ac_ext
2776
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2777
rm -f conftest.err conftest.$ac_ext
2778
if $ac_preproc_ok; then
2790
echo "$as_me:2790: result: $CPP" >&5
2791
echo "${ECHO_T}$CPP" >&6
2793
for ac_c_preproc_warn_flag in '' yes
2795
# Use a header file that comes with gcc, so configuring glibc
2796
# with a fresh cross-compiler works.
2797
# On the NeXT, cc -E runs the code through the compiler's parser,
2798
# not just through cpp. "Syntax error" is here to catch this case.
2799
cat >conftest.$ac_ext <<_ACEOF
2800
#line 2800 "configure"
2801
#include "confdefs.h"
2805
if { (eval echo "$as_me:2805: \"$ac_cpp conftest.$ac_ext\"") >&5
2806
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808
egrep -v '^ *\+' conftest.er1 >conftest.err
2810
cat conftest.err >&5
2811
echo "$as_me:2811: \$? = $ac_status" >&5
2812
(exit $ac_status); } >/dev/null; then
2813
if test -s conftest.err; then
2814
ac_cpp_err=$ac_c_preproc_warn_flag
2821
if test -z "$ac_cpp_err"; then
2824
echo "$as_me: failed program was:" >&5
2825
cat conftest.$ac_ext >&5
2826
# Broken: fails on valid input.
2829
rm -f conftest.err conftest.$ac_ext
2831
# OK, works on sane cases. Now check whether non-existent headers
2832
# can be detected and how.
2833
cat >conftest.$ac_ext <<_ACEOF
2834
#line 2834 "configure"
2835
#include "confdefs.h"
2836
#include <ac_nonexistent.h>
2838
if { (eval echo "$as_me:2838: \"$ac_cpp conftest.$ac_ext\"") >&5
2839
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841
egrep -v '^ *\+' conftest.er1 >conftest.err
2843
cat conftest.err >&5
2844
echo "$as_me:2844: \$? = $ac_status" >&5
2845
(exit $ac_status); } >/dev/null; then
2846
if test -s conftest.err; then
2847
ac_cpp_err=$ac_c_preproc_warn_flag
2854
if test -z "$ac_cpp_err"; then
2855
# Broken: success on invalid input.
2858
echo "$as_me: failed program was:" >&5
2859
cat conftest.$ac_ext >&5
2860
# Passes both tests.
2864
rm -f conftest.err conftest.$ac_ext
2867
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868
rm -f conftest.err conftest.$ac_ext
2869
if $ac_preproc_ok; then
2872
{ { echo "$as_me:2872: error: C preprocessor \"$CPP\" fails sanity check" >&5
2873
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2874
{ (exit 1); exit 1; }; }
2878
ac_cpp='$CPP $CPPFLAGS'
2879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
echo "$as_me:2883: checking for ANSI C header files" >&5
2884
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2885
if test "${ac_cv_header_stdc+set}" = set; then
2886
echo $ECHO_N "(cached) $ECHO_C" >&6
2888
cat >conftest.$ac_ext <<_ACEOF
2889
#line 2889 "configure"
2890
#include "confdefs.h"
2897
if { (eval echo "$as_me:2897: \"$ac_cpp conftest.$ac_ext\"") >&5
2898
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900
egrep -v '^ *\+' conftest.er1 >conftest.err
2902
cat conftest.err >&5
2903
echo "$as_me:2903: \$? = $ac_status" >&5
2904
(exit $ac_status); } >/dev/null; then
2905
if test -s conftest.err; then
2906
ac_cpp_err=$ac_c_preproc_warn_flag
2913
if test -z "$ac_cpp_err"; then
2914
ac_cv_header_stdc=yes
2916
echo "$as_me: failed program was:" >&5
2917
cat conftest.$ac_ext >&5
2918
ac_cv_header_stdc=no
2920
rm -f conftest.err conftest.$ac_ext
2922
if test $ac_cv_header_stdc = yes; then
2923
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2924
cat >conftest.$ac_ext <<_ACEOF
2925
#line 2925 "configure"
2926
#include "confdefs.h"
2930
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2931
egrep "memchr" >/dev/null 2>&1; then
2934
ac_cv_header_stdc=no
2940
if test $ac_cv_header_stdc = yes; then
2941
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2942
cat >conftest.$ac_ext <<_ACEOF
2943
#line 2943 "configure"
2944
#include "confdefs.h"
2948
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949
egrep "free" >/dev/null 2>&1; then
2952
ac_cv_header_stdc=no
2958
if test $ac_cv_header_stdc = yes; then
2959
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2960
if test "$cross_compiling" = yes; then
2963
cat >conftest.$ac_ext <<_ACEOF
2964
#line 2964 "configure"
2965
#include "confdefs.h"
2967
#if ((' ' & 0x0FF) == 0x020)
2968
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2969
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2971
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2972
|| ('j' <= (c) && (c) <= 'r') \
2973
|| ('s' <= (c) && (c) <= 'z'))
2974
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2977
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2982
for (i = 0; i < 256; i++)
2983
if (XOR (islower (i), ISLOWER (i))
2984
|| toupper (i) != TOUPPER (i))
2989
rm -f conftest$ac_exeext
2990
if { (eval echo "$as_me:2990: \"$ac_link\"") >&5
2991
(eval $ac_link) 2>&5
2993
echo "$as_me:2993: \$? = $ac_status" >&5
2994
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2995
{ (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998
echo "$as_me:2998: \$? = $ac_status" >&5
2999
(exit $ac_status); }; }; then
3002
echo "$as_me: program exited with status $ac_status" >&5
3003
echo "$as_me: failed program was:" >&5
3004
cat conftest.$ac_ext >&5
3005
ac_cv_header_stdc=no
3007
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3011
echo "$as_me:3011: result: $ac_cv_header_stdc" >&5
3012
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3013
if test $ac_cv_header_stdc = yes; then
3015
cat >>confdefs.h <<\EOF
3016
#define STDC_HEADERS 1
3021
# Check whether --enable-shared or --disable-shared was given.
3022
if test "${enable_shared+set}" = set; then
3023
enableval="$enable_shared"
3024
p=${PACKAGE-default}
3026
yes) enable_shared=yes ;;
3027
no) enable_shared=no ;;
3030
# Look at the argument we got. We use all the common list separators.
3031
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3032
for pkg in $enableval; do
3033
if test "X$pkg" = "X$p"; then
3043
# Check whether --enable-static or --disable-static was given.
3044
if test "${enable_static+set}" = set; then
3045
enableval="$enable_static"
3046
p=${PACKAGE-default}
3048
yes) enable_static=yes ;;
3049
no) enable_static=no ;;
3052
# Look at the argument we got. We use all the common list separators.
3053
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3054
for pkg in $enableval; do
3055
if test "X$pkg" = "X$p"; then
3065
# Check whether --enable-fast-install or --disable-fast-install was given.
3066
if test "${enable_fast_install+set}" = set; then
3067
enableval="$enable_fast_install"
3068
p=${PACKAGE-default}
3070
yes) enable_fast_install=yes ;;
3071
no) enable_fast_install=no ;;
3073
enable_fast_install=no
3074
# Look at the argument we got. We use all the common list separators.
3075
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3076
for pkg in $enableval; do
3077
if test "X$pkg" = "X$p"; then
3078
enable_fast_install=yes
3085
enable_fast_install=yes
3087
# Make sure we can run config.sub.
3088
$ac_config_sub sun4 >/dev/null 2>&1 ||
3089
{ { echo "$as_me:3089: error: cannot run $ac_config_sub" >&5
3090
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3091
{ (exit 1); exit 1; }; }
3093
echo "$as_me:3093: checking build system type" >&5
3094
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3095
if test "${ac_cv_build+set}" = set; then
3096
echo $ECHO_N "(cached) $ECHO_C" >&6
3098
ac_cv_build_alias=$build_alias
3099
test -z "$ac_cv_build_alias" &&
3100
ac_cv_build_alias=`$ac_config_guess`
3101
test -z "$ac_cv_build_alias" &&
3102
{ { echo "$as_me:3102: error: cannot guess build type; you must specify one" >&5
3103
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3104
{ (exit 1); exit 1; }; }
3105
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3106
{ { echo "$as_me:3106: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3107
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
3108
{ (exit 1); exit 1; }; }
3111
echo "$as_me:3111: result: $ac_cv_build" >&5
3112
echo "${ECHO_T}$ac_cv_build" >&6
3114
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3115
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3116
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3118
echo "$as_me:3118: checking host system type" >&5
3119
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3120
if test "${ac_cv_host+set}" = set; then
3121
echo $ECHO_N "(cached) $ECHO_C" >&6
3123
ac_cv_host_alias=$host_alias
3124
test -z "$ac_cv_host_alias" &&
3125
ac_cv_host_alias=$ac_cv_build_alias
3126
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3127
{ { echo "$as_me:3127: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3128
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3129
{ (exit 1); exit 1; }; }
3132
echo "$as_me:3132: result: $ac_cv_host" >&5
3133
echo "${ECHO_T}$ac_cv_host" >&6
3135
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3136
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3137
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3139
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3140
if test "${with_gnu_ld+set}" = set; then
3141
withval="$with_gnu_ld"
3142
test "$withval" = no || with_gnu_ld=yes
3147
if test "$GCC" = yes; then
3148
# Check if gcc -print-prog-name=ld gives a path.
3149
echo "$as_me:3149: checking for ld used by GCC" >&5
3150
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3153
# gcc leaves a trailing carriage return which upsets mingw
3154
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3156
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159
# Accept absolute paths.
3160
[\\/]* | [A-Za-z]:[\\/]*)
3161
re_direlt='/[^/][^/]*/\.\./'
3162
# Canonicalize the path of ld
3163
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3164
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3165
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3167
test -z "$LD" && LD="$ac_prog"
3170
# If it fails, then pretend we aren't using GCC.
3174
# If it is relative, then search for the first ld in PATH.
3178
elif test "$with_gnu_ld" = yes; then
3179
echo "$as_me:3179: checking for GNU ld" >&5
3180
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3182
echo "$as_me:3182: checking for non-GNU ld" >&5
3183
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3185
if test "${lt_cv_path_LD+set}" = set; then
3186
echo $ECHO_N "(cached) $ECHO_C" >&6
3188
if test -z "$LD"; then
3189
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3190
for ac_dir in $PATH; do
3191
test -z "$ac_dir" && ac_dir=.
3192
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3193
lt_cv_path_LD="$ac_dir/$ac_prog"
3194
# Check to see if the program is GNU ld. I'd rather use --version,
3195
# but apparently some GNU ld's only accept -v.
3196
# Break only if it was the GNU/non-GNU ld that we prefer.
3197
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3198
test "$with_gnu_ld" != no && break
3200
test "$with_gnu_ld" != yes && break
3206
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3211
if test -n "$LD"; then
3212
echo "$as_me:3212: result: $LD" >&5
3213
echo "${ECHO_T}$LD" >&6
3215
echo "$as_me:3215: result: no" >&5
3216
echo "${ECHO_T}no" >&6
3218
test -z "$LD" && { { echo "$as_me:3218: error: no acceptable ld found in \$PATH" >&5
3219
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3220
{ (exit 1); exit 1; }; }
3221
echo "$as_me:3221: checking if the linker ($LD) is GNU ld" >&5
3222
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3223
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3224
echo $ECHO_N "(cached) $ECHO_C" >&6
3226
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3227
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3228
lt_cv_prog_gnu_ld=yes
3230
lt_cv_prog_gnu_ld=no
3233
echo "$as_me:3233: result: $lt_cv_prog_gnu_ld" >&5
3234
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3235
with_gnu_ld=$lt_cv_prog_gnu_ld
3237
echo "$as_me:3237: checking for $LD option to reload object files" >&5
3238
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3239
if test "${lt_cv_ld_reload_flag+set}" = set; then
3240
echo $ECHO_N "(cached) $ECHO_C" >&6
3242
lt_cv_ld_reload_flag='-r'
3244
echo "$as_me:3244: result: $lt_cv_ld_reload_flag" >&5
3245
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3246
reload_flag=$lt_cv_ld_reload_flag
3247
test -n "$reload_flag" && reload_flag=" $reload_flag"
3249
echo "$as_me:3249: checking for BSD-compatible nm" >&5
3250
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3251
if test "${lt_cv_path_NM+set}" = set; then
3252
echo $ECHO_N "(cached) $ECHO_C" >&6
3254
if test -n "$NM"; then
3255
# Let the user override the test.
3258
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3259
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3260
test -z "$ac_dir" && ac_dir=.
3261
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3262
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3263
# Check to see if the nm accepts a BSD-compat flag.
3264
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3265
# nm: unknown option "B" ignored
3266
# Tru64's nm complains that /dev/null is an invalid object file
3267
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3268
lt_cv_path_NM="$tmp_nm -B"
3270
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3271
lt_cv_path_NM="$tmp_nm -p"
3274
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3275
continue # so that we can try to find one that supports BSD flags
3280
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3285
echo "$as_me:3285: result: $NM" >&5
3286
echo "${ECHO_T}$NM" >&6
3288
echo "$as_me:3288: checking whether ln -s works" >&5
3289
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3291
if test "$LN_S" = "ln -s"; then
3292
echo "$as_me:3292: result: yes" >&5
3293
echo "${ECHO_T}yes" >&6
3295
echo "$as_me:3295: result: no, using $LN_S" >&5
3296
echo "${ECHO_T}no, using $LN_S" >&6
3299
echo "$as_me:3299: checking how to recognise dependant libraries" >&5
3300
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3301
if test "${lt_cv_deplibs_check_method+set}" = set; then
3302
echo $ECHO_N "(cached) $ECHO_C" >&6
3304
lt_cv_file_magic_cmd='$MAGIC_CMD'
3305
lt_cv_file_magic_test_file=
3306
lt_cv_deplibs_check_method='unknown'
3307
# Need to set the preceding variable on all platforms that support
3308
# interlibrary dependencies.
3309
# 'none' -- dependencies not supported.
3310
# `unknown' -- same as none, but documents that we really don't know.
3311
# 'pass_all' -- all dependencies passed with no checks.
3312
# 'test_compile' -- check by making test program.
3313
# ['file_magic [regex]'] -- check by looking for files in library path
3314
# which responds to the $file_magic_cmd with a given egrep regex.
3315
# If you have `file' or equivalent on your system and you're not sure
3316
# whether `pass_all' will *always* work, you probably want this one.
3320
lt_cv_deplibs_check_method=pass_all
3324
lt_cv_deplibs_check_method=pass_all
3328
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3329
lt_cv_file_magic_cmd='/usr/bin/file -L'
3330
lt_cv_file_magic_test_file=/shlib/libc.so
3333
cygwin* | mingw* | pw32*)
3334
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3335
lt_cv_file_magic_cmd='$OBJDUMP -f'
3338
darwin* | rhapsody*)
3339
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3340
lt_cv_file_magic_cmd='/usr/bin/file -L'
3342
rhapsody* | darwin1.[012])
3343
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3346
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3355
# Not sure whether the presence of OpenBSD here was a mistake.
3356
# Let's accept both of them until this is cleared up.
3357
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3358
lt_cv_file_magic_cmd=/usr/bin/file
3359
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3363
lt_cv_deplibs_check_method=pass_all
3368
lt_cv_deplibs_check_method=pass_all
3372
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3373
lt_cv_file_magic_cmd=/usr/bin/file
3374
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3380
# this will be overridden with pass_all, but let us keep it just in case
3381
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3385
*-32|*"-32 ") libmagic=32-bit;;
3386
*-n32|*"-n32 ") libmagic=N32;;
3387
*-64|*"-64 ") libmagic=64-bit;;
3388
*) libmagic=never-match;;
3390
# this will be overridden with pass_all, but let us keep it just in case
3391
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3394
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3395
lt_cv_deplibs_check_method=pass_all
3398
# This must be Linux ELF.
3401
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3402
lt_cv_deplibs_check_method=pass_all ;;
3404
# glibc up to 2.1.1 does not perform some relocations on ARM
3405
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3407
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3411
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3412
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3414
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3419
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3420
lt_cv_file_magic_cmd=/usr/bin/file
3421
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3425
lt_cv_file_magic_cmd=/usr/bin/file
3426
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3427
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3428
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3430
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3434
osf3* | osf4* | osf5*)
3435
# this will be overridden with pass_all, but let us keep it just in case
3436
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3437
lt_cv_file_magic_test_file=/shlib/libc.so
3438
lt_cv_deplibs_check_method=pass_all
3442
lt_cv_deplibs_check_method=pass_all
3446
lt_cv_deplibs_check_method=pass_all
3447
lt_cv_file_magic_test_file=/lib/libc.so
3450
sysv5uw[78]* | sysv4*uw2*)
3451
lt_cv_deplibs_check_method=pass_all
3454
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455
case $host_vendor in
3457
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3458
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3461
lt_cv_deplibs_check_method=pass_all
3464
lt_cv_file_magic_cmd='/bin/file'
3465
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3468
lt_cv_file_magic_cmd='/bin/file'
3469
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3470
lt_cv_file_magic_test_file=/lib/libc.so
3477
echo "$as_me:3477: result: $lt_cv_deplibs_check_method" >&5
3478
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3479
file_magic_cmd=$lt_cv_file_magic_cmd
3480
deplibs_check_method=$lt_cv_deplibs_check_method
3482
# Check for command to grab the raw symbol name followed by C symbol from nm.
3483
echo "$as_me:3483: checking command to parse $NM output" >&5
3484
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3485
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3486
echo $ECHO_N "(cached) $ECHO_C" >&6
3489
# These are sane defaults that work on at least a few old systems.
3490
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3492
# Character class describing NM global symbol codes.
3493
symcode='[BCDEGRST]'
3495
# Regexp to match symbols that can be accessed directly from C.
3496
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3498
# Transform the above into a raw symbol and a C symbol.
3499
symxfrm='\1 \2\3 \3'
3501
# Transform an extracted symbol line into a proper C declaration
3502
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3504
# Transform an extracted symbol line into symbol name and symbol address
3505
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3507
# Define system-specific variables.
3512
cygwin* | mingw* | pw32*)
3513
symcode='[ABCDGISTW]'
3515
hpux*) # Its linker distinguishes data from code symbols
3516
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3517
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3520
symcode='[BCDEGRST]'
3530
# Handle CRLF in mingw tool chain
3534
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3538
# If we're using GNU nm, then use its standard symbol codes.
3539
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3540
symcode='[ABCDGISTW]'
3543
# Try without a prefix undercore, then with it.
3544
for ac_symprfx in "" "_"; do
3546
# Write the raw and C identifiers.
3547
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3549
# Check to see that the pipe works correctly.
3552
cat > conftest.$ac_ext <<EOF
3557
void nm_test_func(){}
3561
int main(){nm_test_var='a';nm_test_func();return(0);}
3564
if { (eval echo "$as_me:3564: \"$ac_compile\"") >&5
3565
(eval $ac_compile) 2>&5
3567
echo "$as_me:3567: \$? = $ac_status" >&5
3568
(exit $ac_status); }; then
3569
# Now try to grab the symbols.
3571
if { (eval echo "$as_me:3571: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3572
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3574
echo "$as_me:3574: \$? = $ac_status" >&5
3575
(exit $ac_status); } && test -s "$nlist"; then
3576
# Try sorting and uniquifying the output.
3577
if sort "$nlist" | uniq > "$nlist"T; then
3578
mv -f "$nlist"T "$nlist"
3583
# Make sure that we snagged all the symbols we need.
3584
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3585
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3586
cat <<EOF > conftest.$ac_ext
3592
# Now generate the symbol file.
3593
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3595
cat <<EOF >> conftest.$ac_ext
3596
#if defined (__STDC__) && __STDC__
3597
# define lt_ptr void *
3599
# define lt_ptr char *
3603
/* The mapping between symbol names and symbols. */
3608
lt_preloaded_symbols[] =
3611
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3612
cat <<\EOF >> conftest.$ac_ext
3620
# Now try linking the two files.
3621
mv conftest.$ac_objext conftstm.$ac_objext
3623
save_CFLAGS="$CFLAGS"
3624
LIBS="conftstm.$ac_objext"
3625
CFLAGS="$CFLAGS$no_builtin_flag"
3626
if { (eval echo "$as_me:3626: \"$ac_link\"") >&5
3627
(eval $ac_link) 2>&5
3629
echo "$as_me:3629: \$? = $ac_status" >&5
3630
(exit $ac_status); } && test -s conftest; then
3634
CFLAGS="$save_CFLAGS"
3636
echo "cannot find nm_test_func in $nlist" >&5
3639
echo "cannot find nm_test_var in $nlist" >&5
3642
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3645
echo "$progname: failed program was:" >&5
3646
cat conftest.$ac_ext >&5
3648
rm -f conftest* conftst*
3650
# Do not use the global_symbol_pipe unless it works.
3651
if test "$pipe_works" = yes; then
3654
lt_cv_sys_global_symbol_pipe=
3660
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3661
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3662
global_symbol_to_cdecl=
3663
global_symbol_to_c_name_address=
3665
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3666
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3668
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3670
echo "$as_me:3670: result: failed" >&5
3671
echo "${ECHO_T}failed" >&6
3673
echo "$as_me:3673: result: ok" >&5
3674
echo "${ECHO_T}ok" >&6
3677
for ac_header in dlfcn.h
3679
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3680
echo "$as_me:3680: checking for $ac_header" >&5
3681
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3682
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3683
echo $ECHO_N "(cached) $ECHO_C" >&6
3685
cat >conftest.$ac_ext <<_ACEOF
3686
#line 3686 "configure"
3687
#include "confdefs.h"
3688
#include <$ac_header>
3690
if { (eval echo "$as_me:3690: \"$ac_cpp conftest.$ac_ext\"") >&5
3691
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3693
egrep -v '^ *\+' conftest.er1 >conftest.err
3695
cat conftest.err >&5
3696
echo "$as_me:3696: \$? = $ac_status" >&5
3697
(exit $ac_status); } >/dev/null; then
3698
if test -s conftest.err; then
3699
ac_cpp_err=$ac_c_preproc_warn_flag
3706
if test -z "$ac_cpp_err"; then
3707
eval "$as_ac_Header=yes"
3709
echo "$as_me: failed program was:" >&5
3710
cat conftest.$ac_ext >&5
3711
eval "$as_ac_Header=no"
3713
rm -f conftest.err conftest.$ac_ext
3715
echo "$as_me:3715: result: `eval echo '${'$as_ac_Header'}'`" >&5
3716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3717
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3718
cat >>confdefs.h <<EOF
3719
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3725
# Only perform the check for file, if the check method requires it
3726
case $deplibs_check_method in
3728
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3729
echo "$as_me:3729: checking for ${ac_tool_prefix}file" >&5
3730
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3731
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3732
echo $ECHO_N "(cached) $ECHO_C" >&6
3736
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3739
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3742
ac_save_MAGIC_CMD="$MAGIC_CMD"
3743
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3744
ac_dummy="/usr/bin:$PATH"
3745
for ac_dir in $ac_dummy; do
3746
test -z "$ac_dir" && ac_dir=.
3747
if test -f $ac_dir/${ac_tool_prefix}file; then
3748
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3749
if test -n "$file_magic_test_file"; then
3750
case $deplibs_check_method in
3752
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3753
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3755
egrep "$file_magic_regex" > /dev/null; then
3760
*** Warning: the command libtool uses to detect shared libraries,
3761
*** $file_magic_cmd, produces output that libtool cannot recognize.
3762
*** The result is that libtool may fail to recognize shared libraries
3763
*** as such. This will affect the creation of libtool libraries that
3764
*** depend on shared libraries, but programs linked with such libtool
3765
*** libraries will work regardless of this problem. Nevertheless, you
3766
*** may want to report the problem to your system manager and/or to
3767
*** bug-libtool@gnu.org
3777
MAGIC_CMD="$ac_save_MAGIC_CMD"
3782
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3783
if test -n "$MAGIC_CMD"; then
3784
echo "$as_me:3784: result: $MAGIC_CMD" >&5
3785
echo "${ECHO_T}$MAGIC_CMD" >&6
3787
echo "$as_me:3787: result: no" >&5
3788
echo "${ECHO_T}no" >&6
3791
if test -z "$lt_cv_path_MAGIC_CMD"; then
3792
if test -n "$ac_tool_prefix"; then
3793
echo "$as_me:3793: checking for file" >&5
3794
echo $ECHO_N "checking for file... $ECHO_C" >&6
3795
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3796
echo $ECHO_N "(cached) $ECHO_C" >&6
3800
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3803
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3806
ac_save_MAGIC_CMD="$MAGIC_CMD"
3807
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3808
ac_dummy="/usr/bin:$PATH"
3809
for ac_dir in $ac_dummy; do
3810
test -z "$ac_dir" && ac_dir=.
3811
if test -f $ac_dir/file; then
3812
lt_cv_path_MAGIC_CMD="$ac_dir/file"
3813
if test -n "$file_magic_test_file"; then
3814
case $deplibs_check_method in
3816
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3817
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3819
egrep "$file_magic_regex" > /dev/null; then
3824
*** Warning: the command libtool uses to detect shared libraries,
3825
*** $file_magic_cmd, produces output that libtool cannot recognize.
3826
*** The result is that libtool may fail to recognize shared libraries
3827
*** as such. This will affect the creation of libtool libraries that
3828
*** depend on shared libraries, but programs linked with such libtool
3829
*** libraries will work regardless of this problem. Nevertheless, you
3830
*** may want to report the problem to your system manager and/or to
3831
*** bug-libtool@gnu.org
3841
MAGIC_CMD="$ac_save_MAGIC_CMD"
3846
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3847
if test -n "$MAGIC_CMD"; then
3848
echo "$as_me:3848: result: $MAGIC_CMD" >&5
3849
echo "${ECHO_T}$MAGIC_CMD" >&6
3851
echo "$as_me:3851: result: no" >&5
3852
echo "${ECHO_T}no" >&6
3864
if test -n "$ac_tool_prefix"; then
3865
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3866
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3867
echo "$as_me:3867: checking for $ac_word" >&5
3868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869
if test "${ac_cv_prog_RANLIB+set}" = set; then
3870
echo $ECHO_N "(cached) $ECHO_C" >&6
3872
if test -n "$RANLIB"; then
3873
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3875
ac_save_IFS=$IFS; IFS=$ac_path_separator
3877
for ac_dir in $ac_dummy; do
3879
test -z "$ac_dir" && ac_dir=.
3880
$as_executable_p "$ac_dir/$ac_word" || continue
3881
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3882
echo "$as_me:3882: found $ac_dir/$ac_word" >&5
3888
RANLIB=$ac_cv_prog_RANLIB
3889
if test -n "$RANLIB"; then
3890
echo "$as_me:3890: result: $RANLIB" >&5
3891
echo "${ECHO_T}$RANLIB" >&6
3893
echo "$as_me:3893: result: no" >&5
3894
echo "${ECHO_T}no" >&6
3898
if test -z "$ac_cv_prog_RANLIB"; then
3899
ac_ct_RANLIB=$RANLIB
3900
# Extract the first word of "ranlib", so it can be a program name with args.
3901
set dummy ranlib; ac_word=$2
3902
echo "$as_me:3902: checking for $ac_word" >&5
3903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905
echo $ECHO_N "(cached) $ECHO_C" >&6
3907
if test -n "$ac_ct_RANLIB"; then
3908
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3910
ac_save_IFS=$IFS; IFS=$ac_path_separator
3912
for ac_dir in $ac_dummy; do
3914
test -z "$ac_dir" && ac_dir=.
3915
$as_executable_p "$ac_dir/$ac_word" || continue
3916
ac_cv_prog_ac_ct_RANLIB="ranlib"
3917
echo "$as_me:3917: found $ac_dir/$ac_word" >&5
3921
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3924
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3925
if test -n "$ac_ct_RANLIB"; then
3926
echo "$as_me:3926: result: $ac_ct_RANLIB" >&5
3927
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3929
echo "$as_me:3929: result: no" >&5
3930
echo "${ECHO_T}no" >&6
3933
RANLIB=$ac_ct_RANLIB
3935
RANLIB="$ac_cv_prog_RANLIB"
3938
if test -n "$ac_tool_prefix"; then
1533
# Some tools Automake needs.
1535
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1538
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1541
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1544
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1547
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1550
AMTAR=${AMTAR-"${am_missing_run}tar"}
1552
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1554
# Installed binaries are usually stripped using `strip' when the user
1555
# run `make install-strip'. However `strip' might not be the right
1556
# tool to use in cross-compilation environments, therefore Automake
1557
# will honor the `STRIP' environment variable to overrule this program.
1558
if test "$cross_compiling" != no; then
1559
if test -n "$ac_tool_prefix"; then
3939
1560
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3940
1561
set dummy ${ac_tool_prefix}strip; ac_word=$2
3941
echo "$as_me:3941: checking for $ac_word" >&5
1562
echo "$as_me:$LINENO: checking for $ac_word" >&5
3942
1563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943
1564
if test "${ac_cv_prog_STRIP+set}" = set; then
3944
1565
echo $ECHO_N "(cached) $ECHO_C" >&6
4009
1636
STRIP="$ac_cv_prog_STRIP"
4015
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4016
if test "${enable_libtool_lock+set}" = set; then
4017
enableval="$enable_libtool_lock"
4020
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4022
# Some flags need to be propagated to the compiler or linker for good
4026
# Find out which ABI we are using.
4027
echo '#line 4027 "configure"' > conftest.$ac_ext
4028
if { (eval echo "$as_me:4028: \"$ac_compile\"") >&5
4029
(eval $ac_compile) 2>&5
4031
echo "$as_me:4031: \$? = $ac_status" >&5
4032
(exit $ac_status); }; then
4033
case `/usr/bin/file conftest.$ac_objext` in
4049
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4050
SAVE_CFLAGS="$CFLAGS"
4051
CFLAGS="$CFLAGS -belf"
4052
echo "$as_me:4052: checking whether the C compiler needs -belf" >&5
4053
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4054
if test "${lt_cv_cc_needs_belf+set}" = set; then
4055
echo $ECHO_N "(cached) $ECHO_C" >&6
4059
ac_cpp='$CPP $CPPFLAGS'
4060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
cat >conftest.$ac_ext <<_ACEOF
4065
#line 4065 "configure"
4066
#include "confdefs.h"
4076
rm -f conftest.$ac_objext conftest$ac_exeext
4077
if { (eval echo "$as_me:4077: \"$ac_link\"") >&5
4078
(eval $ac_link) 2>&5
4080
echo "$as_me:4080: \$? = $ac_status" >&5
4081
(exit $ac_status); } &&
4082
{ ac_try='test -s conftest$ac_exeext'
4083
{ (eval echo "$as_me:4083: \"$ac_try\"") >&5
4086
echo "$as_me:4086: \$? = $ac_status" >&5
4087
(exit $ac_status); }; }; then
4088
lt_cv_cc_needs_belf=yes
4090
echo "$as_me: failed program was:" >&5
4091
cat conftest.$ac_ext >&5
4092
lt_cv_cc_needs_belf=no
4094
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4096
ac_cpp='$CPP $CPPFLAGS'
4097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
echo "$as_me:4102: result: $lt_cv_cc_needs_belf" >&5
4103
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4104
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4105
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4106
CFLAGS="$SAVE_CFLAGS"
4112
# Sed substitution that helps us do robust quoting. It backslashifies
4113
# metacharacters that are still active within double-quoted strings.
4114
Xsed='sed -e s/^X//'
4115
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4117
# Same as above, but do not quote variable references.
4118
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4120
# Sed substitution to delay expansion of an escaped shell variable in a
4121
# double_quote_subst'ed string.
4122
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4128
default_ofile=libtool
4129
can_build_shared=yes
4131
# All known linkers require a `.a' archive for static linking (except M$VC,
4132
# which needs '.lib').
4134
ltmain="$ac_aux_dir/ltmain.sh"
4135
ofile="$default_ofile"
4136
with_gnu_ld="$lt_cv_prog_gnu_ld"
4137
need_locks="$enable_libtool_lock"
4140
old_CFLAGS="$CFLAGS"
4142
# Set sane defaults for various variables
4143
test -z "$AR" && AR=ar
4144
test -z "$AR_FLAGS" && AR_FLAGS=cru
4145
test -z "$AS" && AS=as
4146
test -z "$CC" && CC=cc
4147
test -z "$DLLTOOL" && DLLTOOL=dlltool
4148
test -z "$LD" && LD=ld
4149
test -z "$LN_S" && LN_S="ln -s"
4150
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4151
test -z "$NM" && NM=nm
4152
test -z "$OBJDUMP" && OBJDUMP=objdump
4153
test -z "$RANLIB" && RANLIB=:
4154
test -z "$STRIP" && STRIP=:
4155
test -z "$ac_objext" && ac_objext=o
4157
if test x"$host" != x"$build"; then
4158
ac_tool_prefix=${host_alias}-
4163
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4166
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4171
# AIX sometimes has problems with the GCC collect2 program. For some
4172
# reason, if we set the COLLECT_NAMES environment variable, the problems
4173
# vanish in a puff of smoke.
4174
if test "X${COLLECT_NAMES+set}" != Xset; then
4176
export COLLECT_NAMES
4181
# Determine commands to create old-style static archives.
4182
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4183
old_postinstall_cmds='chmod 644 $oldlib'
4184
old_postuninstall_cmds=
4186
if test -n "$RANLIB"; then
4189
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4192
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4195
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4198
# Allow CC to be a program name with arguments.
4202
echo "$as_me:4202: checking for objdir" >&5
4203
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4204
rm -f .libs 2>/dev/null
4205
mkdir .libs 2>/dev/null
4206
if test -d .libs; then
4209
# MS-DOS does not allow filenames that begin with a dot.
4212
rmdir .libs 2>/dev/null
4213
echo "$as_me:4213: result: $objdir" >&5
4214
echo "${ECHO_T}$objdir" >&6
4216
# Check whether --with-pic or --without-pic was given.
4217
if test "${with_pic+set}" = set; then
4223
test -z "$pic_mode" && pic_mode=default
4225
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4226
# in isolation, and that seeing it set (from the cache) indicates that
4227
# the associated values are set (in the cache) correctly too.
4228
echo "$as_me:4228: checking for $compiler option to produce PIC" >&5
4229
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4230
if test "${lt_cv_prog_cc_pic+set}" = set; then
4231
echo $ECHO_N "(cached) $ECHO_C" >&6
4234
lt_cv_prog_cc_shlib=
4236
lt_cv_prog_cc_static=
4237
lt_cv_prog_cc_no_builtin=
4238
lt_cv_prog_cc_can_build_shared=$can_build_shared
4240
if test "$GCC" = yes; then
4241
lt_cv_prog_cc_wl='-Wl,'
4242
lt_cv_prog_cc_static='-static'
4246
# Below there is a dirty hack to force normal static linking with -ldl
4247
# The problem is because libdl dynamically linked with both libc and
4248
# libC (AIX C++ library), which obviously doesn't included in libraries
4249
# list by gcc. This cause undefined symbols with -static flags.
4250
# This hack allows C programs to be linked with "-static -ldl", but
4251
# not sure about C++ programs.
4252
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4255
# FIXME: we need at least 68020 code to build shared libraries, but
4256
# adding the `-m68020' flag to GCC prevents building anything better,
4258
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4260
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4261
# PIC is the default for these OSes.
4263
darwin* | rhapsody*)
4264
# PIC is the default on this platform
4265
# Common symbols not allowed in MH_DYLIB files
4266
lt_cv_prog_cc_pic='-fno-common'
4268
cygwin* | mingw* | pw32* | os2*)
4269
# This hack is so that the source file can tell whether it is being
4270
# built for inclusion in a dll (and should export symbols for example).
4271
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4274
if test -d /usr/nec; then
4275
lt_cv_prog_cc_pic=-Kconform_pic
4279
lt_cv_prog_cc_pic='-fPIC'
4283
# PORTME Check for PIC flags for the system compiler.
4285
aix3* | aix4* | aix5*)
4286
lt_cv_prog_cc_wl='-Wl,'
4287
# All AIX code is PIC.
4288
if test "$host_cpu" = ia64; then
4289
# AIX 5 now supports IA64 processor
4290
lt_cv_prog_cc_static='-Bstatic'
4292
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4296
hpux9* | hpux10* | hpux11*)
4297
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4298
lt_cv_prog_cc_wl='-Wl,'
4299
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4300
lt_cv_prog_cc_pic='+Z'
4304
lt_cv_prog_cc_wl='-Wl,'
4305
lt_cv_prog_cc_static='-non_shared'
4306
# PIC (with -KPIC) is the default.
4309
cygwin* | mingw* | pw32* | os2*)
4310
# This hack is so that the source file can tell whether it is being
4311
# built for inclusion in a dll (and should export symbols for example).
4312
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4316
lt_cv_prog_cc_pic='-KPIC'
4317
lt_cv_prog_cc_static='-Bstatic'
4320
osf3* | osf4* | osf5*)
4321
# All OSF/1 code is PIC.
4322
lt_cv_prog_cc_wl='-Wl,'
4323
lt_cv_prog_cc_static='-non_shared'
4327
lt_cv_prog_cc_pic='-Kpic'
4328
lt_cv_prog_cc_static='-dn'
4329
lt_cv_prog_cc_shlib='-belf'
4333
lt_cv_prog_cc_pic='-KPIC'
4334
lt_cv_prog_cc_static='-Bstatic'
4335
lt_cv_prog_cc_wl='-Wl,'
4339
lt_cv_prog_cc_pic='-PIC'
4340
lt_cv_prog_cc_static='-Bstatic'
4341
lt_cv_prog_cc_wl='-Qoption ld '
4344
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4345
lt_cv_prog_cc_pic='-KPIC'
4346
lt_cv_prog_cc_static='-Bstatic'
4347
if test "x$host_vendor" = xsni; then
4348
lt_cv_prog_cc_wl='-LD'
4350
lt_cv_prog_cc_wl='-Wl,'
4355
lt_cv_prog_cc_pic='-pic'
4356
lt_cv_prog_cc_static='-Bstatic'
4360
if test -d /usr/nec ;then
4361
lt_cv_prog_cc_pic='-Kconform_pic'
4362
lt_cv_prog_cc_static='-Bstatic'
4367
lt_cv_prog_cc_can_build_shared=no
4374
if test -z "$lt_cv_prog_cc_pic"; then
4375
echo "$as_me:4375: result: none" >&5
4376
echo "${ECHO_T}none" >&6
4378
echo "$as_me:4378: result: $lt_cv_prog_cc_pic" >&5
4379
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4381
# Check to make sure the pic_flag actually works.
4382
echo "$as_me:4382: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4383
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4384
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4385
echo $ECHO_N "(cached) $ECHO_C" >&6
4387
save_CFLAGS="$CFLAGS"
4388
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4389
cat >conftest.$ac_ext <<_ACEOF
4390
#line 4390 "configure"
4391
#include "confdefs.h"
4401
rm -f conftest.$ac_objext
4402
if { (eval echo "$as_me:4402: \"$ac_compile\"") >&5
4403
(eval $ac_compile) 2>&5
4405
echo "$as_me:4405: \$? = $ac_status" >&5
4406
(exit $ac_status); } &&
4407
{ ac_try='test -s conftest.$ac_objext'
4408
{ (eval echo "$as_me:4408: \"$ac_try\"") >&5
4411
echo "$as_me:4411: \$? = $ac_status" >&5
4412
(exit $ac_status); }; }; then
4414
hpux9* | hpux10* | hpux11*)
4415
# On HP-UX, both CC and GCC only warn that PIC is supported... then
4416
# they create non-PIC objects. So, if there were any warnings, we
4417
# assume that PIC is not supported.
4418
if test -s conftest.err; then
4419
lt_cv_prog_cc_pic_works=no
4421
lt_cv_prog_cc_pic_works=yes
4425
lt_cv_prog_cc_pic_works=yes
4430
echo "$as_me: failed program was:" >&5
4431
cat conftest.$ac_ext >&5
4432
lt_cv_prog_cc_pic_works=no
4435
rm -f conftest.$ac_objext conftest.$ac_ext
4436
CFLAGS="$save_CFLAGS"
4440
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4442
lt_cv_prog_cc_can_build_shared=no
4444
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4447
echo "$as_me:4447: result: $lt_cv_prog_cc_pic_works" >&5
4448
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4451
# Check for any special shared library compilation flags.
4452
if test -n "$lt_cv_prog_cc_shlib"; then
4453
{ echo "$as_me:4453: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4454
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4455
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4457
{ echo "$as_me:4457: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4458
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4459
lt_cv_prog_cc_can_build_shared=no
4463
echo "$as_me:4463: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4464
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4465
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4466
echo $ECHO_N "(cached) $ECHO_C" >&6
4468
lt_cv_prog_cc_static_works=no
4469
save_LDFLAGS="$LDFLAGS"
4470
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4471
cat >conftest.$ac_ext <<_ACEOF
4472
#line 4472 "configure"
4473
#include "confdefs.h"
4483
rm -f conftest.$ac_objext conftest$ac_exeext
4484
if { (eval echo "$as_me:4484: \"$ac_link\"") >&5
4485
(eval $ac_link) 2>&5
4487
echo "$as_me:4487: \$? = $ac_status" >&5
4488
(exit $ac_status); } &&
4489
{ ac_try='test -s conftest$ac_exeext'
4490
{ (eval echo "$as_me:4490: \"$ac_try\"") >&5
4493
echo "$as_me:4493: \$? = $ac_status" >&5
4494
(exit $ac_status); }; }; then
4495
lt_cv_prog_cc_static_works=yes
4497
echo "$as_me: failed program was:" >&5
4498
cat conftest.$ac_ext >&5
4500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501
LDFLAGS="$save_LDFLAGS"
4505
# Belt *and* braces to stop my trousers falling down:
4506
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4507
echo "$as_me:4507: result: $lt_cv_prog_cc_static_works" >&5
4508
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4510
pic_flag="$lt_cv_prog_cc_pic"
4511
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4512
wl="$lt_cv_prog_cc_wl"
4513
link_static_flag="$lt_cv_prog_cc_static"
4514
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4515
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4517
# Check to see if options -o and -c are simultaneously supported by compiler
4518
echo "$as_me:4518: checking if $compiler supports -c -o file.$ac_objext" >&5
4519
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4520
if test "${lt_cv_compiler_c_o+set}" = set; then
4521
echo $ECHO_N "(cached) $ECHO_C" >&6
4524
$rm -r conftest 2>/dev/null
4527
echo "int some_variable = 0;" > conftest.$ac_ext
4529
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4530
# that will create temporary files in the current directory regardless of
4531
# the output directory. Thus, making CWD read-only will cause this test
4532
# to fail, enabling locking or at least warning the user not to do parallel
4535
save_CFLAGS="$CFLAGS"
4536
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4538
if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4539
# The compiler can only warn and ignore the option if not recognized
4540
# So say no if there are warnings
4541
if test -s out/conftest.err; then
4542
lt_cv_compiler_c_o=no
4544
lt_cv_compiler_c_o=yes
4547
# Append any errors to the config.log.
4548
cat out/conftest.err 1>&5
4549
lt_cv_compiler_c_o=no
4551
CFLAGS="$save_CFLAGS"
4557
$rm -r conftest 2>/dev/null
4561
compiler_c_o=$lt_cv_compiler_c_o
4562
echo "$as_me:4562: result: $compiler_c_o" >&5
4563
echo "${ECHO_T}$compiler_c_o" >&6
4565
if test x"$compiler_c_o" = x"yes"; then
4566
# Check to see if we can write to a .lo
4567
echo "$as_me:4567: checking if $compiler supports -c -o file.lo" >&5
4568
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4569
if test "${lt_cv_compiler_o_lo+set}" = set; then
4570
echo $ECHO_N "(cached) $ECHO_C" >&6
4573
lt_cv_compiler_o_lo=no
4574
save_CFLAGS="$CFLAGS"
4575
CFLAGS="$CFLAGS -c -o conftest.lo"
4576
save_objext="$ac_objext"
4578
cat >conftest.$ac_ext <<_ACEOF
4579
#line 4579 "configure"
4580
#include "confdefs.h"
4585
int some_variable = 0;
4590
rm -f conftest.$ac_objext
4591
if { (eval echo "$as_me:4591: \"$ac_compile\"") >&5
4592
(eval $ac_compile) 2>&5
4594
echo "$as_me:4594: \$? = $ac_status" >&5
4595
(exit $ac_status); } &&
4596
{ ac_try='test -s conftest.$ac_objext'
4597
{ (eval echo "$as_me:4597: \"$ac_try\"") >&5
4600
echo "$as_me:4600: \$? = $ac_status" >&5
4601
(exit $ac_status); }; }; then
4602
# The compiler can only warn and ignore the option if not recognized
4603
# So say no if there are warnings
4604
if test -s conftest.err; then
4605
lt_cv_compiler_o_lo=no
4607
lt_cv_compiler_o_lo=yes
4611
echo "$as_me: failed program was:" >&5
4612
cat conftest.$ac_ext >&5
4614
rm -f conftest.$ac_objext conftest.$ac_ext
4615
ac_objext="$save_objext"
4616
CFLAGS="$save_CFLAGS"
4620
compiler_o_lo=$lt_cv_compiler_o_lo
4621
echo "$as_me:4621: result: $compiler_o_lo" >&5
4622
echo "${ECHO_T}$compiler_o_lo" >&6
4627
# Check to see if we can do hard links to lock some files if needed
4628
hard_links="nottested"
4629
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4630
# do not overwrite the value of need_locks provided by the user
4631
echo "$as_me:4631: checking if we can lock with hard links" >&5
4632
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4635
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4637
ln conftest.a conftest.b 2>&5 || hard_links=no
4638
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4639
echo "$as_me:4639: result: $hard_links" >&5
4640
echo "${ECHO_T}$hard_links" >&6
4641
if test "$hard_links" = no; then
4642
{ echo "$as_me:4642: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4643
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4650
if test "$GCC" = yes; then
4651
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4652
echo "$as_me:4652: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4653
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4654
echo "int some_variable = 0;" > conftest.$ac_ext
4655
save_CFLAGS="$CFLAGS"
4656
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4657
compiler_rtti_exceptions=no
4658
cat >conftest.$ac_ext <<_ACEOF
4659
#line 4659 "configure"
4660
#include "confdefs.h"
4665
int some_variable = 0;
4670
rm -f conftest.$ac_objext
4671
if { (eval echo "$as_me:4671: \"$ac_compile\"") >&5
4672
(eval $ac_compile) 2>&5
4674
echo "$as_me:4674: \$? = $ac_status" >&5
4675
(exit $ac_status); } &&
4676
{ ac_try='test -s conftest.$ac_objext'
4677
{ (eval echo "$as_me:4677: \"$ac_try\"") >&5
4680
echo "$as_me:4680: \$? = $ac_status" >&5
4681
(exit $ac_status); }; }; then
4682
# The compiler can only warn and ignore the option if not recognized
4683
# So say no if there are warnings
4684
if test -s conftest.err; then
4685
compiler_rtti_exceptions=no
4687
compiler_rtti_exceptions=yes
4691
echo "$as_me: failed program was:" >&5
4692
cat conftest.$ac_ext >&5
4694
rm -f conftest.$ac_objext conftest.$ac_ext
4695
CFLAGS="$save_CFLAGS"
4696
echo "$as_me:4696: result: $compiler_rtti_exceptions" >&5
4697
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4699
if test "$compiler_rtti_exceptions" = "yes"; then
4700
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4702
no_builtin_flag=' -fno-builtin'
4706
# See if the linker supports building shared libraries.
4707
echo "$as_me:4707: checking whether the linker ($LD) supports shared libraries" >&5
4708
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4710
allow_undefined_flag=
4712
need_lib_prefix=unknown
4713
need_version=unknown
4714
# when you set need_version to no, make sure it does not cause -set_version
4715
# flags to be left without arguments
4717
archive_expsym_cmds=
4718
old_archive_from_new_cmds=
4719
old_archive_from_expsyms_cmds=
4720
export_dynamic_flag_spec=
4721
whole_archive_flag_spec=
4722
thread_safe_flag_spec=
4723
hardcode_into_libs=no
4724
hardcode_libdir_flag_spec=
4725
hardcode_libdir_separator=
4728
hardcode_shlibpath_var=unsupported
4730
link_all_deplibs=unknown
4731
always_export_symbols=no
4732
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4733
# include_expsyms should be a list of space-separated symbols to be *always*
4734
# included in the symbol list
4736
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4737
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4738
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4739
# as well as any symbol that contains `d'.
4740
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4741
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4742
# platforms (ab)use it in PIC code, but their linkers get confused if
4743
# the symbol is explicitly referenced. Since portable code cannot
4744
# rely on this symbol name, it's probably fine to never include it in
4745
# preloaded symbol tables.
4746
extract_expsyms_cmds=
4749
cygwin* | mingw* | pw32*)
4750
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4751
# When not using gcc, we currently assume that we are using
4752
# Microsoft Visual C++.
4753
if test "$GCC" != yes; then
4763
if test "$with_gnu_ld" = yes; then
4764
# If archive_cmds runs LD, not CC, wlarc should be empty
4767
# See if GNU ld supports shared libraries.
4769
aix3* | aix4* | aix5*)
4770
# On AIX, the GNU linker is very broken
4771
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4775
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4776
*** to be unable to reliably create shared libraries on AIX.
4777
*** Therefore, libtool is disabling shared libraries support. If you
4778
*** really care for shared libraries, you may want to modify your PATH
4779
*** so that a non-GNU linker is found, and then restart.
4785
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4786
hardcode_libdir_flag_spec='-L$libdir'
4787
hardcode_minus_L=yes
4789
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4790
# that the semantics of dynamic libraries on AmigaOS, at least up
4791
# to version 4, is to share data among multiple programs linked
4792
# with the same dynamic library. Since this doesn't match the
4793
# behavior of shared libraries on other platforms, we can use
4799
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4800
allow_undefined_flag=unsupported
4801
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4802
# support --undefined. This deserves some investigation. FIXME
4803
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4809
cygwin* | mingw* | pw32*)
4810
# hardcode_libdir_flag_spec is actually meaningless, as there is
4811
# no search path for DLLs.
4812
hardcode_libdir_flag_spec='-L$libdir'
4813
allow_undefined_flag=unsupported
4814
always_export_symbols=yes
4816
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4817
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4818
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4819
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4820
else $CC -o impgen impgen.c ; fi)~
4821
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4823
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4825
# cygwin and mingw dlls have different entry points and sets of symbols
4827
# FIXME: what about values for MSVC?
4828
dll_entry=__cygwin_dll_entry@12
4829
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4833
dll_entry=_DllMainCRTStartup@12
4834
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4838
# mingw and cygwin differ, and it's simplest to just exclude the union
4839
# of the two symbol sets.
4840
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4842
# recent cygwin and mingw systems supply a stub DllMain which the user
4843
# can override, but on older systems we have to supply one (in ltdll.c)
4844
if test "x$lt_cv_need_dllmain" = "xyes"; then
4845
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4846
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4847
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4853
# Extract the symbol export list from an `--export-all' def file,
4854
# then regenerate the def file from the symbol export list, so that
4855
# the compiled dll only exports the symbol export list.
4856
# Be careful not to strip the DATA tag left be newer dlltools.
4857
export_symbols_cmds="$ltdll_cmds"'
4858
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4859
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4861
# If the export-symbols file already is a .def file (1st line
4862
# is EXPORTS), use it as is.
4863
# If DATA tags from a recent dlltool are present, honour them!
4864
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4865
cp $export_symbols $output_objdir/$soname-def;
4867
echo EXPORTS > $output_objdir/$soname-def;
4869
cat $export_symbols | while read symbol; do
4872
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4873
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4875
_lt_hint=`expr 1 + \$_lt_hint`;
4879
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4880
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4881
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4882
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4883
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4887
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4888
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4891
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4892
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4897
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4901
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4902
*** create shared libraries on Solaris systems. Therefore, libtool
4903
*** is disabling shared libraries support. We urge you to upgrade GNU
4904
*** binutils to release 2.9.1 or newer. Another option is to modify
4905
*** your PATH or compiler configuration so that the native linker is
4906
*** used, and then restart.
4909
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4910
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4911
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4918
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4921
hardcode_shlibpath_var=no
4925
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4926
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4934
if test "$ld_shlibs" = yes; then
4935
runpath_var=LD_RUN_PATH
4936
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4937
export_dynamic_flag_spec='${wl}--export-dynamic'
4939
cygwin* | mingw* | pw32*)
4940
# dlltool doesn't understand --whole-archive et. al.
4941
whole_archive_flag_spec=
4944
# ancient GNU ld didn't support --whole-archive et. al.
4945
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4946
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4948
whole_archive_flag_spec=
4954
# PORTME fill in a description of your system's linker (not GNU ld)
4957
allow_undefined_flag=unsupported
4958
always_export_symbols=yes
4959
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4960
# Note: this linker hardcodes the directories in LIBPATH if there
4961
# are no directories specified by -L.
4962
hardcode_minus_L=yes
4963
if test "$GCC" = yes && test -z "$link_static_flag"; then
4964
# Neither direct hardcoding nor static linking is supported with a
4966
hardcode_direct=unsupported
4971
if test "$host_cpu" = ia64; then
4972
# On IA64, the linker does run time linking by default, so we don't
4973
# have to do anything special.
4974
aix_use_runtimelinking=no
4975
exp_sym_flag='-Bexport'
4978
aix_use_runtimelinking=no
4980
# Test if we are trying to use run time linking or normal
4981
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4982
# need to do runtime linking.
4983
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4984
for ld_flag in $LDFLAGS; do
4985
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4986
aix_use_runtimelinking=yes
4992
exp_sym_flag='-bexport'
4993
no_entry_flag='-bnoentry'
4996
# When large executables or shared objects are built, AIX ld can
4997
# have problems creating the table of contents. If linking a library
4998
# or program results in "error TOC overflow" add -mminimal-toc to
4999
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5000
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5004
hardcode_libdir_separator=':'
5005
if test "$GCC" = yes; then
5006
case $host_os in aix4.[012]|aix4.[012].*)
5007
collect2name=`${CC} -print-prog-name=collect2`
5008
if test -f "$collect2name" && \
5009
strings "$collect2name" | grep resolve_lib_name >/dev/null
5011
# We have reworked collect2
5014
# We have old collect2
5015
hardcode_direct=unsupported
5016
# It fails to find uninstalled libraries when the uninstalled
5017
# path is not listed in the libpath. Setting hardcode_minus_L
5018
# to unsupported forces relinking
5019
hardcode_minus_L=yes
5020
hardcode_libdir_flag_spec='-L$libdir'
5021
hardcode_libdir_separator=
5025
shared_flag='-shared'
5028
if test "$host_cpu" = ia64; then
5029
shared_flag='${wl}-G'
5031
if test "$aix_use_runtimelinking" = yes; then
5032
shared_flag='${wl}-G'
5034
shared_flag='${wl}-bM:SRE'
5039
# It seems that -bexpall can do strange things, so it is better to
5040
# generate a list of symbols to export.
5041
always_export_symbols=yes
5042
if test "$aix_use_runtimelinking" = yes; then
5043
# Warning - without using the other runtime loading flags (-brtl),
5044
# -berok will link without error, but may produce a broken library.
5045
allow_undefined_flag='-berok'
5046
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5047
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5049
if test "$host_cpu" = ia64; then
5050
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5051
allow_undefined_flag="-z nodefs"
5052
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5054
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5055
# Warning - without using the other run time loading flags,
5056
# -berok will link without error, but may produce a broken library.
5057
allow_undefined_flag='${wl}-berok'
5058
# This is a bit strange, but is similar to how AIX traditionally builds
5059
# it's shared libraries.
5060
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5066
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5067
hardcode_libdir_flag_spec='-L$libdir'
5068
hardcode_minus_L=yes
5069
# see comment about different semantics on the GNU ld section
5073
cygwin* | mingw* | pw32*)
5074
# When not using gcc, we currently assume that we are using
5075
# Microsoft Visual C++.
5076
# hardcode_libdir_flag_spec is actually meaningless, as there is
5077
# no search path for DLLs.
5078
hardcode_libdir_flag_spec=' '
5079
allow_undefined_flag=unsupported
5080
# Tell ltmain to make .lib files, not .a files.
5082
# FIXME: Setting linknames here is a bad hack.
5083
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5084
# The linker will automatically build a .lib file if we build a DLL.
5085
old_archive_from_new_cmds='true'
5086
# FIXME: Should let the user specify the lib program.
5087
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5088
fix_srcfile_path='`cygpath -w "$srcfile"`'
5091
darwin* | rhapsody*)
5093
rhapsody* | darwin1.[012])
5094
allow_undefined_flag='-undefined suppress'
5097
allow_undefined_flag='-flat_namespace -undefined suppress'
5100
# FIXME: Relying on posixy $() will cause problems for
5101
# cross-compilation, but unfortunately the echo tests do not
5102
# yet detect zsh echo's removal of \ escapes.
5103
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5104
# We need to add '_' to the symbols in $export_symbols first
5105
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5107
hardcode_shlibpath_var=no
5108
whole_archive_flag_spec='-all_load $convenience'
5115
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5116
# support. Future versions do this automatically, but an explicit c++rt0.o
5117
# does not break anything, and helps significantly (at the cost of a little
5120
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5121
hardcode_libdir_flag_spec='-R$libdir'
5123
hardcode_shlibpath_var=no
5126
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5128
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5130
hardcode_minus_L=yes
5131
hardcode_shlibpath_var=no
5134
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5136
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5137
hardcode_libdir_flag_spec='-R$libdir'
5139
hardcode_shlibpath_var=no
5142
hpux9* | hpux10* | hpux11*)
5144
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5145
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5147
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5148
hardcode_libdir_separator=:
5150
hardcode_minus_L=yes # Not in the search PATH, but as the default
5151
# location of the library.
5152
export_dynamic_flag_spec='${wl}-E'
5156
if test "$GCC" = yes; then
5157
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5159
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5161
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5162
hardcode_libdir_separator=:
5163
link_all_deplibs=yes
5167
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5168
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5170
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5172
hardcode_libdir_flag_spec='-R$libdir'
5174
hardcode_shlibpath_var=no
5178
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5180
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5181
hardcode_libdir_separator=:
5182
hardcode_shlibpath_var=no
5187
hardcode_shlibpath_var=no
5188
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5189
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5190
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5191
export_dynamic_flag_spec='${wl}-E'
5194
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5195
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5196
hardcode_libdir_flag_spec='-R$libdir'
5199
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5200
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5207
hardcode_libdir_flag_spec='-L$libdir'
5208
hardcode_minus_L=yes
5209
allow_undefined_flag=unsupported
5210
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5211
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5215
if test "$GCC" = yes; then
5216
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5217
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5219
allow_undefined_flag=' -expect_unresolved \*'
5220
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5222
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5223
hardcode_libdir_separator=:
5226
osf4* | osf5*) # as osf3* with the addition of -msym flag
5227
if test "$GCC" = yes; then
5228
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5229
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5230
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5232
allow_undefined_flag=' -expect_unresolved \*'
5233
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5234
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5235
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5237
#Both c and cxx compiler support -rpath directly
5238
hardcode_libdir_flag_spec='-rpath $libdir'
5240
hardcode_libdir_separator=:
5244
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5245
hardcode_shlibpath_var=no
5246
runpath_var=LD_RUN_PATH
5247
hardcode_runpath_var=yes
5248
export_dynamic_flag_spec='${wl}-Bexport'
5252
no_undefined_flag=' -z defs'
5253
# $CC -shared without GNU ld will not create a library from C++
5254
# object files and a static libstdc++, better avoid it by now
5255
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5256
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5257
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5258
hardcode_libdir_flag_spec='-R$libdir'
5259
hardcode_shlibpath_var=no
5261
solaris2.[0-5] | solaris2.[0-5].*) ;;
5262
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5263
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5265
link_all_deplibs=yes
5269
if test "x$host_vendor" = xsequent; then
5270
# Use $CC to link under sequent, because it throws in some extra .o
5271
# files that make .init and .fini sections work.
5272
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5274
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5276
hardcode_libdir_flag_spec='-L$libdir'
5278
hardcode_minus_L=yes
5279
hardcode_shlibpath_var=no
5283
if test "x$host_vendor" = xsno; then
5284
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5285
hardcode_direct=yes # is this really true???
5287
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5288
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5290
runpath_var='LD_RUN_PATH'
5291
hardcode_shlibpath_var=no
5295
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5296
hardcode_shlibpath_var=no
5297
export_dynamic_flag_spec='-Bexport'
5301
no_undefined_flag=' -z text'
5302
# $CC -shared without GNU ld will not create a library from C++
5303
# object files and a static libstdc++, better avoid it by now
5304
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5305
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5306
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5307
hardcode_libdir_flag_spec=
5308
hardcode_shlibpath_var=no
5309
runpath_var='LD_RUN_PATH'
5313
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5314
hardcode_libdir_flag_spec='-L$libdir'
5315
hardcode_shlibpath_var=no
5319
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5320
hardcode_libdir_flag_spec='-L$libdir'
5321
hardcode_shlibpath_var=no
5325
if test -d /usr/nec; then
5326
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5327
hardcode_shlibpath_var=no
5328
runpath_var=LD_RUN_PATH
5329
hardcode_runpath_var=yes
5335
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5338
hardcode_shlibpath_var=no
5339
hardcode_runpath_var=yes
5340
runpath_var=LD_RUN_PATH
5343
sysv5uw7* | unixware7*)
5344
no_undefined_flag='${wl}-z ${wl}text'
5345
if test "$GCC" = yes; then
5346
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5348
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5350
runpath_var='LD_RUN_PATH'
5351
hardcode_shlibpath_var=no
5359
echo "$as_me:5359: result: $ld_shlibs" >&5
5360
echo "${ECHO_T}$ld_shlibs" >&6
5361
test "$ld_shlibs" = no && can_build_shared=no
5363
# Check hardcoding attributes.
5364
echo "$as_me:5364: checking how to hardcode library paths into programs" >&5
5365
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5367
if test -n "$hardcode_libdir_flag_spec" || \
5368
test -n "$runpath_var"; then
5370
# We can hardcode non-existant directories.
5371
if test "$hardcode_direct" != no &&
5372
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5373
# have to relink, otherwise we might link with an installed library
5374
# when we should be linking with a yet-to-be-installed one
5375
## test "$hardcode_shlibpath_var" != no &&
5376
test "$hardcode_minus_L" != no; then
5377
# Linking always hardcodes the temporary library directory.
5378
hardcode_action=relink
5380
# We can link without hardcoding, and we can hardcode nonexisting dirs.
5381
hardcode_action=immediate
5384
# We cannot hardcode anything, or else we can only hardcode existing
5386
hardcode_action=unsupported
5388
echo "$as_me:5388: result: $hardcode_action" >&5
5389
echo "${ECHO_T}$hardcode_action" >&6
5393
echo "$as_me:5393: checking whether stripping libraries is possible" >&5
5394
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5395
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5396
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5397
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5398
echo "$as_me:5398: result: yes" >&5
5399
echo "${ECHO_T}yes" >&6
5401
echo "$as_me:5401: result: no" >&5
5402
echo "${ECHO_T}no" >&6
5405
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5408
# PORTME Fill in your ld.so characteristics
5409
echo "$as_me:5409: checking dynamic linker characteristics" >&5
5410
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5412
libname_spec='lib$name'
5419
shlibpath_overrides_runpath=unknown
5421
dynamic_linker="$host_os ld.so"
5422
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5423
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5428
library_names_spec='${libname}${release}.so$versuffix $libname.a'
5429
shlibpath_var=LIBPATH
5431
# AIX has no versioning support, so we append a major version to the name.
5432
soname_spec='${libname}${release}.so$major'
5437
if test "$host_cpu" = ia64; then
5438
# AIX 5 supports IA64
5439
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5440
shlibpath_var=LD_LIBRARY_PATH
5442
# With GCC up to 2.95.x, collect2 would create an import file
5443
# for dependence libraries. The import file would start with
5444
# the line `#! .'. This would cause the generated library to
5445
# depend on `.', always an invalid library. This was fixed in
5446
# development snapshots of GCC prior to 3.0.
5448
aix4 | aix4.[01] | aix4.[01].*)
5449
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5451
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5458
# AIX (on Power*) has no versioning support, so currently we can
5459
# not hardcode correct soname into executable. Probably we can
5460
# add versioning support to collect2, so additional links can
5461
# be useful in future.
5462
if test "$aix_use_runtimelinking" = yes; then
5463
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
5464
# instead of lib<name>.a to let people know that these are not
5465
# typical AIX shared libraries.
5466
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5468
# We preserve .a as extension for shared libraries through AIX4.2
5469
# and later when we are not doing run time linking.
5470
library_names_spec='${libname}${release}.a $libname.a'
5471
soname_spec='${libname}${release}.so$major'
5473
shlibpath_var=LIBPATH
5478
library_names_spec='$libname.ixlibrary $libname.a'
5479
# Create ${libname}_ixlibrary.a entries in /sys/libs.
5480
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5484
library_names_spec='${libname}.so'
5485
dynamic_linker="$host_os ld.so"
5486
shlibpath_var=LIBRARY_PATH
5492
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5493
soname_spec='${libname}${release}.so$major'
5494
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5495
shlibpath_var=LD_LIBRARY_PATH
5496
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5497
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5498
export_dynamic_flag_spec=-rdynamic
5499
# the default ld.so.conf also contains /usr/contrib/lib and
5500
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5501
# libtool to hard-code these into programs
5504
cygwin* | mingw* | pw32*)
5505
version_type=windows
5508
case $GCC,$host_os in
5510
library_names_spec='$libname.dll.a'
5511
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5512
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5513
dldir=$destdir/`dirname \$dlpath`~
5514
test -d \$dldir || mkdir -p \$dldir~
5515
$install_prog .libs/$dlname \$dldir/$dlname'
5516
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5517
dlpath=$dir/\$dldll~
5521
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5522
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5525
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5528
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5531
dynamic_linker='Win32 ld.exe'
5532
# FIXME: first we should search . and the directory the executable is in
5536
darwin* | rhapsody*)
5537
dynamic_linker="$host_os dyld"
5541
# FIXME: Relying on posixy $() will cause problems for
5542
# cross-compilation, but unfortunately the echo tests do not
5543
# yet detect zsh echo's removal of \ escapes.
5544
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5545
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5546
shlibpath_overrides_runpath=yes
5547
shlibpath_var=DYLD_LIBRARY_PATH
5555
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5556
version_type=freebsd-$objformat
5557
case $version_type in
5559
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5564
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5568
shlibpath_var=LD_LIBRARY_PATH
5571
shlibpath_overrides_runpath=yes
5574
shlibpath_overrides_runpath=no
5575
hardcode_into_libs=yes
5584
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5585
soname_spec='${libname}${release}.so$major'
5586
shlibpath_var=LD_LIBRARY_PATH
5587
hardcode_into_libs=yes
5590
hpux9* | hpux10* | hpux11*)
5591
# Give a soname corresponding to the major version so that dld.sl refuses to
5592
# link against other versions.
5593
dynamic_linker="$host_os dld.sl"
5597
shlibpath_var=SHLIB_PATH
5598
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5599
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5600
soname_spec='${libname}${release}.sl$major'
5601
# HP-UX runs *really* slowly unless shared libraries are mode 555.
5602
postinstall_cmds='chmod 555 $lib'
5609
soname_spec='${libname}${release}.so$major'
5610
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5616
case $LD in # libtool.m4 will add one of these switches to LD
5617
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5618
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5619
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5620
*) libsuff= shlibsuff= libmagic=never-match;;
5624
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5625
shlibpath_overrides_runpath=no
5626
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5627
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5630
# No shared lib support for Linux oldld, aout, or coff.
5631
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5635
# This must be Linux ELF.
5640
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5641
soname_spec='${libname}${release}.so$major'
5642
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5643
shlibpath_var=LD_LIBRARY_PATH
5644
shlibpath_overrides_runpath=no
5645
# This implies no fast_install, which is unacceptable.
5646
# Some rework will be needed to allow for fast_install
5647
# before this can be enabled.
5648
hardcode_into_libs=yes
5650
# We used to test for /lib/ld.so.1 and disable shared libraries on
5651
# powerpc, because MkLinux only supported shared libraries with the
5652
# GNU dynamic linker. Since this was broken with cross compilers,
5653
# most powerpc-linux boxes support dynamic linking these days and
5654
# people can always --disable-shared, the test was removed, and we
5655
# assume the GNU/Linux dynamic linker is in use.
5656
dynamic_linker='GNU/Linux ld.so'
5663
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5664
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5665
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5666
dynamic_linker='NetBSD (a.out) ld.so'
5668
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5669
soname_spec='${libname}${release}.so$major'
5670
dynamic_linker='NetBSD ld.elf_so'
5672
shlibpath_var=LD_LIBRARY_PATH
5673
shlibpath_overrides_runpath=yes
5674
hardcode_into_libs=yes
5679
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5680
shlibpath_var=LD_LIBRARY_PATH
5681
shlibpath_overrides_runpath=yes
5688
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5690
openbsd2.[89] | openbsd2.[89].*)
5691
shlibpath_overrides_runpath=no
5694
shlibpath_overrides_runpath=yes
5698
shlibpath_overrides_runpath=yes
5700
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5701
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5702
shlibpath_var=LD_LIBRARY_PATH
5706
libname_spec='$name'
5708
library_names_spec='$libname.dll $libname.a'
5709
dynamic_linker='OS/2 ld.exe'
5710
shlibpath_var=LIBPATH
5713
osf3* | osf4* | osf5*)
5716
soname_spec='${libname}${release}.so'
5717
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5718
shlibpath_var=LD_LIBRARY_PATH
5719
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5720
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5725
soname_spec='${libname}${release}.so$major'
5726
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5727
shlibpath_var=LD_LIBRARY_PATH
5734
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5735
soname_spec='${libname}${release}.so$major'
5736
shlibpath_var=LD_LIBRARY_PATH
5737
shlibpath_overrides_runpath=yes
5738
hardcode_into_libs=yes
5739
# ldd complains unless libraries are executable
5740
postinstall_cmds='chmod +x $lib'
5745
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5746
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5747
shlibpath_var=LD_LIBRARY_PATH
5748
shlibpath_overrides_runpath=yes
5749
if test "$with_gnu_ld" = yes; then
5755
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5757
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5758
soname_spec='${libname}${release}.so$major'
5759
shlibpath_var=LD_LIBRARY_PATH
5760
case $host_vendor in
5762
shlibpath_overrides_runpath=no
5767
shlibpath_overrides_runpath=no
5768
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5775
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5776
soname_spec='${libname}${release}.so$major'
5777
shlibpath_var=LD_LIBRARY_PATH
5784
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5785
soname_spec='${libname}${release}.so$major'
5786
shlibpath_var=LD_LIBRARY_PATH
5790
if test -d /usr/nec ;then
5792
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5793
soname_spec='$libname.so.$major'
5794
shlibpath_var=LD_LIBRARY_PATH
5802
echo "$as_me:5802: result: $dynamic_linker" >&5
5803
echo "${ECHO_T}$dynamic_linker" >&6
5804
test "$dynamic_linker" = no && can_build_shared=no
5806
# Report the final consequences.
5807
echo "$as_me:5807: checking if libtool supports shared libraries" >&5
5808
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5809
echo "$as_me:5809: result: $can_build_shared" >&5
5810
echo "${ECHO_T}$can_build_shared" >&6
5812
echo "$as_me:5812: checking whether to build shared libraries" >&5
5813
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5814
test "$can_build_shared" = "no" && enable_shared=no
5816
# On AIX, shared libraries and static libraries use the same namespace, and
5817
# are all built from PIC.
5820
test "$enable_shared" = yes && enable_static=no
5821
if test -n "$RANLIB"; then
5822
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5823
postinstall_cmds='$RANLIB $lib'
5828
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5829
test "$enable_shared" = yes && enable_static=no
5833
echo "$as_me:5833: result: $enable_shared" >&5
5834
echo "${ECHO_T}$enable_shared" >&6
5836
echo "$as_me:5836: checking whether to build static libraries" >&5
5837
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5838
# Make sure either enable_shared or enable_static is yes.
5839
test "$enable_shared" = yes || enable_static=yes
5840
echo "$as_me:5840: result: $enable_static" >&5
5841
echo "${ECHO_T}$enable_static" >&6
5843
if test "$hardcode_action" = relink; then
5844
# Fast installation is not supported
5845
enable_fast_install=no
5846
elif test "$shlibpath_overrides_runpath" = yes ||
5847
test "$enable_shared" = no; then
5848
# Fast installation is not necessary
5849
enable_fast_install=needless
5852
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5853
if test "$GCC" = yes; then
5854
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5857
if test "x$enable_dlopen" != xyes; then
5858
enable_dlopen=unknown
5859
enable_dlopen_self=unknown
5860
enable_dlopen_self_static=unknown
5867
lt_cv_dlopen="load_add_on"
5869
lt_cv_dlopen_self=yes
5872
cygwin* | mingw* | pw32*)
5873
lt_cv_dlopen="LoadLibrary"
5878
echo "$as_me:5878: checking for shl_load" >&5
5879
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5880
if test "${ac_cv_func_shl_load+set}" = set; then
5881
echo $ECHO_N "(cached) $ECHO_C" >&6
5883
cat >conftest.$ac_ext <<_ACEOF
5884
#line 5884 "configure"
5885
#include "confdefs.h"
5886
/* System header to define __stub macros and hopefully few prototypes,
5887
which can conflict with char shl_load (); below. */
5889
/* Override any gcc2 internal prototype to avoid an error. */
5893
/* We use char because int might match the return type of a gcc2
5894
builtin and then its argument prototype would still apply. */
5901
/* The GNU C library defines this for functions which it implements
5902
to always fail with ENOSYS. Some functions are actually named
5903
something starting with __ and the normal name is an alias. */
5904
#if defined (__stub_shl_load) || defined (__stub___shl_load)
5914
rm -f conftest.$ac_objext conftest$ac_exeext
5915
if { (eval echo "$as_me:5915: \"$ac_link\"") >&5
5916
(eval $ac_link) 2>&5
5918
echo "$as_me:5918: \$? = $ac_status" >&5
5919
(exit $ac_status); } &&
5920
{ ac_try='test -s conftest$ac_exeext'
5921
{ (eval echo "$as_me:5921: \"$ac_try\"") >&5
5924
echo "$as_me:5924: \$? = $ac_status" >&5
5925
(exit $ac_status); }; }; then
5926
ac_cv_func_shl_load=yes
5928
echo "$as_me: failed program was:" >&5
5929
cat conftest.$ac_ext >&5
5930
ac_cv_func_shl_load=no
5932
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934
echo "$as_me:5934: result: $ac_cv_func_shl_load" >&5
5935
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5936
if test $ac_cv_func_shl_load = yes; then
5937
lt_cv_dlopen="shl_load"
5939
echo "$as_me:5939: checking for shl_load in -ldld" >&5
5940
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5941
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5942
echo $ECHO_N "(cached) $ECHO_C" >&6
5944
ac_check_lib_save_LIBS=$LIBS
5946
cat >conftest.$ac_ext <<_ACEOF
5947
#line 5947 "configure"
5948
#include "confdefs.h"
5950
/* Override any gcc2 internal prototype to avoid an error. */
5954
/* We use char because int might match the return type of a gcc2
5955
builtin and then its argument prototype would still apply. */
5965
rm -f conftest.$ac_objext conftest$ac_exeext
5966
if { (eval echo "$as_me:5966: \"$ac_link\"") >&5
5967
(eval $ac_link) 2>&5
5969
echo "$as_me:5969: \$? = $ac_status" >&5
5970
(exit $ac_status); } &&
5971
{ ac_try='test -s conftest$ac_exeext'
5972
{ (eval echo "$as_me:5972: \"$ac_try\"") >&5
5975
echo "$as_me:5975: \$? = $ac_status" >&5
5976
(exit $ac_status); }; }; then
5977
ac_cv_lib_dld_shl_load=yes
5979
echo "$as_me: failed program was:" >&5
5980
cat conftest.$ac_ext >&5
5981
ac_cv_lib_dld_shl_load=no
5983
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5984
LIBS=$ac_check_lib_save_LIBS
5986
echo "$as_me:5986: result: $ac_cv_lib_dld_shl_load" >&5
5987
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5988
if test $ac_cv_lib_dld_shl_load = yes; then
5989
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5991
echo "$as_me:5991: checking for dlopen" >&5
5992
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5993
if test "${ac_cv_func_dlopen+set}" = set; then
5994
echo $ECHO_N "(cached) $ECHO_C" >&6
5996
cat >conftest.$ac_ext <<_ACEOF
5997
#line 5997 "configure"
5998
#include "confdefs.h"
5999
/* System header to define __stub macros and hopefully few prototypes,
6000
which can conflict with char dlopen (); below. */
6002
/* Override any gcc2 internal prototype to avoid an error. */
6006
/* We use char because int might match the return type of a gcc2
6007
builtin and then its argument prototype would still apply. */
6014
/* The GNU C library defines this for functions which it implements
6015
to always fail with ENOSYS. Some functions are actually named
6016
something starting with __ and the normal name is an alias. */
6017
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6027
rm -f conftest.$ac_objext conftest$ac_exeext
6028
if { (eval echo "$as_me:6028: \"$ac_link\"") >&5
6029
(eval $ac_link) 2>&5
6031
echo "$as_me:6031: \$? = $ac_status" >&5
6032
(exit $ac_status); } &&
6033
{ ac_try='test -s conftest$ac_exeext'
6034
{ (eval echo "$as_me:6034: \"$ac_try\"") >&5
6037
echo "$as_me:6037: \$? = $ac_status" >&5
6038
(exit $ac_status); }; }; then
6039
ac_cv_func_dlopen=yes
6041
echo "$as_me: failed program was:" >&5
6042
cat conftest.$ac_ext >&5
6043
ac_cv_func_dlopen=no
6045
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6047
echo "$as_me:6047: result: $ac_cv_func_dlopen" >&5
6048
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6049
if test $ac_cv_func_dlopen = yes; then
6050
lt_cv_dlopen="dlopen"
6052
echo "$as_me:6052: checking for dlopen in -ldl" >&5
6053
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6054
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6055
echo $ECHO_N "(cached) $ECHO_C" >&6
6057
ac_check_lib_save_LIBS=$LIBS
6059
cat >conftest.$ac_ext <<_ACEOF
6060
#line 6060 "configure"
6061
#include "confdefs.h"
6063
/* Override any gcc2 internal prototype to avoid an error. */
6067
/* We use char because int might match the return type of a gcc2
6068
builtin and then its argument prototype would still apply. */
6078
rm -f conftest.$ac_objext conftest$ac_exeext
6079
if { (eval echo "$as_me:6079: \"$ac_link\"") >&5
6080
(eval $ac_link) 2>&5
6082
echo "$as_me:6082: \$? = $ac_status" >&5
6083
(exit $ac_status); } &&
6084
{ ac_try='test -s conftest$ac_exeext'
6085
{ (eval echo "$as_me:6085: \"$ac_try\"") >&5
6088
echo "$as_me:6088: \$? = $ac_status" >&5
6089
(exit $ac_status); }; }; then
6090
ac_cv_lib_dl_dlopen=yes
6092
echo "$as_me: failed program was:" >&5
6093
cat conftest.$ac_ext >&5
6094
ac_cv_lib_dl_dlopen=no
6096
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6097
LIBS=$ac_check_lib_save_LIBS
6099
echo "$as_me:6099: result: $ac_cv_lib_dl_dlopen" >&5
6100
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6101
if test $ac_cv_lib_dl_dlopen = yes; then
6102
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6104
echo "$as_me:6104: checking for dlopen in -lsvld" >&5
6105
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6106
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6107
echo $ECHO_N "(cached) $ECHO_C" >&6
6109
ac_check_lib_save_LIBS=$LIBS
6111
cat >conftest.$ac_ext <<_ACEOF
6112
#line 6112 "configure"
6113
#include "confdefs.h"
6115
/* Override any gcc2 internal prototype to avoid an error. */
6119
/* We use char because int might match the return type of a gcc2
6120
builtin and then its argument prototype would still apply. */
6130
rm -f conftest.$ac_objext conftest$ac_exeext
6131
if { (eval echo "$as_me:6131: \"$ac_link\"") >&5
6132
(eval $ac_link) 2>&5
6134
echo "$as_me:6134: \$? = $ac_status" >&5
6135
(exit $ac_status); } &&
6136
{ ac_try='test -s conftest$ac_exeext'
6137
{ (eval echo "$as_me:6137: \"$ac_try\"") >&5
6140
echo "$as_me:6140: \$? = $ac_status" >&5
6141
(exit $ac_status); }; }; then
6142
ac_cv_lib_svld_dlopen=yes
6144
echo "$as_me: failed program was:" >&5
6145
cat conftest.$ac_ext >&5
6146
ac_cv_lib_svld_dlopen=no
6148
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6149
LIBS=$ac_check_lib_save_LIBS
6151
echo "$as_me:6151: result: $ac_cv_lib_svld_dlopen" >&5
6152
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6153
if test $ac_cv_lib_svld_dlopen = yes; then
6154
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6156
echo "$as_me:6156: checking for dld_link in -ldld" >&5
6157
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6158
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6159
echo $ECHO_N "(cached) $ECHO_C" >&6
6161
ac_check_lib_save_LIBS=$LIBS
6163
cat >conftest.$ac_ext <<_ACEOF
6164
#line 6164 "configure"
6165
#include "confdefs.h"
6167
/* Override any gcc2 internal prototype to avoid an error. */
6171
/* We use char because int might match the return type of a gcc2
6172
builtin and then its argument prototype would still apply. */
6182
rm -f conftest.$ac_objext conftest$ac_exeext
6183
if { (eval echo "$as_me:6183: \"$ac_link\"") >&5
6184
(eval $ac_link) 2>&5
6186
echo "$as_me:6186: \$? = $ac_status" >&5
6187
(exit $ac_status); } &&
6188
{ ac_try='test -s conftest$ac_exeext'
6189
{ (eval echo "$as_me:6189: \"$ac_try\"") >&5
6192
echo "$as_me:6192: \$? = $ac_status" >&5
6193
(exit $ac_status); }; }; then
6194
ac_cv_lib_dld_dld_link=yes
6196
echo "$as_me: failed program was:" >&5
6197
cat conftest.$ac_ext >&5
6198
ac_cv_lib_dld_dld_link=no
6200
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6201
LIBS=$ac_check_lib_save_LIBS
6203
echo "$as_me:6203: result: $ac_cv_lib_dld_dld_link" >&5
6204
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6205
if test $ac_cv_lib_dld_dld_link = yes; then
6206
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6222
if test "x$lt_cv_dlopen" != xno; then
6228
case $lt_cv_dlopen in
6230
save_CPPFLAGS="$CPPFLAGS"
6231
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6233
save_LDFLAGS="$LDFLAGS"
6234
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6237
LIBS="$lt_cv_dlopen_libs $LIBS"
6239
echo "$as_me:6239: checking whether a program can dlopen itself" >&5
6240
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6241
if test "${lt_cv_dlopen_self+set}" = set; then
6242
echo $ECHO_N "(cached) $ECHO_C" >&6
6244
if test "$cross_compiling" = yes; then :
6245
lt_cv_dlopen_self=cross
6247
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6248
lt_status=$lt_dlunknown
6249
cat > conftest.$ac_ext <<EOF
6250
#line 6250 "configure"
6251
#include "confdefs.h"
6260
# define LT_DLGLOBAL RTLD_GLOBAL
6263
# define LT_DLGLOBAL DL_GLOBAL
6265
# define LT_DLGLOBAL 0
6269
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6270
find out it does not work in some platform. */
6271
#ifndef LT_DLLAZY_OR_NOW
6273
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6276
# define LT_DLLAZY_OR_NOW DL_LAZY
6279
# define LT_DLLAZY_OR_NOW RTLD_NOW
6282
# define LT_DLLAZY_OR_NOW DL_NOW
6284
# define LT_DLLAZY_OR_NOW 0
6292
extern "C" void exit (int);
6295
void fnord() { int i=42;}
6298
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6299
int status = $lt_dlunknown;
6303
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6304
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6305
/* dlclose (self); */
6311
if { (eval echo "$as_me:6311: \"$ac_link\"") >&5
6312
(eval $ac_link) 2>&5
6314
echo "$as_me:6314: \$? = $ac_status" >&5
6315
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6316
(./conftest; exit; ) 2>/dev/null
6319
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6320
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6321
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6324
# compilation failed
6325
lt_cv_dlopen_self=no
6331
echo "$as_me:6331: result: $lt_cv_dlopen_self" >&5
6332
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6334
if test "x$lt_cv_dlopen_self" = xyes; then
6335
LDFLAGS="$LDFLAGS $link_static_flag"
6336
echo "$as_me:6336: checking whether a statically linked program can dlopen itself" >&5
6337
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6338
if test "${lt_cv_dlopen_self_static+set}" = set; then
6339
echo $ECHO_N "(cached) $ECHO_C" >&6
6341
if test "$cross_compiling" = yes; then :
6342
lt_cv_dlopen_self_static=cross
6344
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6345
lt_status=$lt_dlunknown
6346
cat > conftest.$ac_ext <<EOF
6347
#line 6347 "configure"
6348
#include "confdefs.h"
6357
# define LT_DLGLOBAL RTLD_GLOBAL
6360
# define LT_DLGLOBAL DL_GLOBAL
6362
# define LT_DLGLOBAL 0
6366
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6367
find out it does not work in some platform. */
6368
#ifndef LT_DLLAZY_OR_NOW
6370
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6373
# define LT_DLLAZY_OR_NOW DL_LAZY
6376
# define LT_DLLAZY_OR_NOW RTLD_NOW
6379
# define LT_DLLAZY_OR_NOW DL_NOW
6381
# define LT_DLLAZY_OR_NOW 0
6389
extern "C" void exit (int);
6392
void fnord() { int i=42;}
6395
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6396
int status = $lt_dlunknown;
6400
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6401
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6402
/* dlclose (self); */
6408
if { (eval echo "$as_me:6408: \"$ac_link\"") >&5
6409
(eval $ac_link) 2>&5
6411
echo "$as_me:6411: \$? = $ac_status" >&5
6412
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6413
(./conftest; exit; ) 2>/dev/null
6416
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6417
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6418
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6421
# compilation failed
6422
lt_cv_dlopen_self_static=no
6428
echo "$as_me:6428: result: $lt_cv_dlopen_self_static" >&5
6429
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6432
CPPFLAGS="$save_CPPFLAGS"
6433
LDFLAGS="$save_LDFLAGS"
6438
case $lt_cv_dlopen_self in
6439
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6440
*) enable_dlopen_self=unknown ;;
6443
case $lt_cv_dlopen_self_static in
6444
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6445
*) enable_dlopen_self_static=unknown ;;
6449
if test "$enable_shared" = yes && test "$GCC" = yes; then
6450
case $archive_cmds in
6452
# FIXME: we may have to deal with multi-command sequences.
6455
# Test whether the compiler implicitly links with -lc since on some
6456
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6457
# to ld, don't add -lc before -lgcc.
6458
echo "$as_me:6458: checking whether -lc should be explicitly linked in" >&5
6459
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6460
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6461
echo $ECHO_N "(cached) $ECHO_C" >&6
6464
echo 'static int dummy;' > conftest.$ac_ext
6466
if { (eval echo "$as_me:6466: \"$ac_compile\"") >&5
6467
(eval $ac_compile) 2>&5
6469
echo "$as_me:6469: \$? = $ac_status" >&5
6470
(exit $ac_status); }; then
6473
libobjs=conftest.$ac_objext
6475
wl=$lt_cv_prog_cc_wl
6481
save_allow_undefined_flag=$allow_undefined_flag
6482
allow_undefined_flag=
6483
if { (eval echo "$as_me:6483: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6484
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6486
echo "$as_me:6486: \$? = $ac_status" >&5
6487
(exit $ac_status); }
6489
lt_cv_archive_cmds_need_lc=no
6491
lt_cv_archive_cmds_need_lc=yes
6493
allow_undefined_flag=$save_allow_undefined_flag
6495
cat conftest.err 1>&5
6499
echo "$as_me:6499: result: $lt_cv_archive_cmds_need_lc" >&5
6500
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6504
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6506
# The second clause should only fire when bootstrapping the
6507
# libtool distribution, otherwise you forgot to ship ltmain.sh
6508
# with your package, and you will get complaints that there are
6509
# no rules to generate ltmain.sh.
6510
if test -f "$ltmain"; then
6513
# If there is no Makefile yet, we rely on a make rule to execute
6514
# `config.status --recheck' to rerun these tests and create the
6515
# libtool script then.
6516
test -f Makefile && make "$ltmain"
6519
if test -f "$ltmain"; then
6520
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6523
echo creating $ofile
6525
# Now quote all the things that may contain metacharacters while being
6526
# careful not to overquote the AC_SUBSTed values. We take copies of the
6527
# variables and quote the copies for generation of the libtool script.
6528
for var in echo old_CC old_CFLAGS \
6529
AR AR_FLAGS CC LD LN_S NM SHELL \
6530
reload_flag reload_cmds wl \
6531
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6532
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6533
library_names_spec soname_spec \
6534
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6535
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6536
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6537
old_striplib striplib file_magic_cmd export_symbols_cmds \
6538
deplibs_check_method allow_undefined_flag no_undefined_flag \
6539
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6540
global_symbol_to_c_name_address \
6541
hardcode_libdir_flag_spec hardcode_libdir_separator \
6542
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6543
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6546
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6547
old_postinstall_cmds | old_postuninstall_cmds | \
6548
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6549
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6550
postinstall_cmds | postuninstall_cmds | \
6551
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6552
# Double-quote double-evaled strings.
6553
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6556
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6561
cat <<__EOF__ > "${ofile}T"
6564
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6565
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6566
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6568
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6569
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6571
# This program is free software; you can redistribute it and/or modify
6572
# it under the terms of the GNU General Public License as published by
6573
# the Free Software Foundation; either version 2 of the License, or
6574
# (at your option) any later version.
6576
# This program is distributed in the hope that it will be useful, but
6577
# WITHOUT ANY WARRANTY; without even the implied warranty of
6578
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6579
# General Public License for more details.
6581
# You should have received a copy of the GNU General Public License
6582
# along with this program; if not, write to the Free Software
6583
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6585
# As a special exception to the GNU General Public License, if you
6586
# distribute this file as part of a program that contains a
6587
# configuration script generated by Autoconf, you may include it under
6588
# the same distribution terms that you use for the rest of that program.
6590
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6591
Xsed="sed -e s/^X//"
6593
# The HP-UX ksh and POSIX shell print the target directory to stdout
6595
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6597
# ### BEGIN LIBTOOL CONFIG
6599
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6601
# Shell to use when invoking shell scripts.
6604
# Whether or not to build shared libraries.
6605
build_libtool_libs=$enable_shared
6607
# Whether or not to build static libraries.
6608
build_old_libs=$enable_static
6610
# Whether or not to add -lc for building shared libraries.
6611
build_libtool_need_lc=$need_lc
6613
# Whether or not to optimize for fast installation.
6614
fast_install=$enable_fast_install
6617
host_alias=$host_alias
6620
# An echo program that does not interpret backslashes.
6625
AR_FLAGS=$lt_AR_FLAGS
6627
# The default C compiler.
6630
# Is the compiler the GNU C compiler?
6633
# The linker used to build libraries.
6636
# Whether we need hard or soft links.
6639
# A BSD-compatible nm program.
6642
# A symbol stripping program
6645
# Used to examine libraries when file_magic_cmd begins "file"
6646
MAGIC_CMD=$MAGIC_CMD
6648
# Used on cygwin: DLL creation program.
6651
# Used on cygwin: object dumper.
6654
# Used on cygwin: assembler.
6657
# The name of the directory that contains temporary libtool files.
6660
# How to create reloadable object files.
6661
reload_flag=$lt_reload_flag
6662
reload_cmds=$lt_reload_cmds
6664
# How to pass a linker flag through the compiler.
6667
# Object file suffix (normally "o").
6670
# Old archive suffix (normally "a").
6673
# Executable file suffix (normally "").
6676
# Additional compiler flags for building library objects.
6677
pic_flag=$lt_pic_flag
6680
# Does compiler simultaneously support -c and -o options?
6681
compiler_c_o=$lt_compiler_c_o
6683
# Can we write directly to a .lo ?
6684
compiler_o_lo=$lt_compiler_o_lo
6686
# Must we lock files when doing compilation ?
6687
need_locks=$lt_need_locks
6689
# Do we need the lib prefix for modules?
6690
need_lib_prefix=$need_lib_prefix
6692
# Do we need a version for libraries?
6693
need_version=$need_version
6695
# Whether dlopen is supported.
6696
dlopen_support=$enable_dlopen
6698
# Whether dlopen of programs is supported.
6699
dlopen_self=$enable_dlopen_self
6701
# Whether dlopen of statically linked programs is supported.
6702
dlopen_self_static=$enable_dlopen_self_static
6704
# Compiler flag to prevent dynamic linking.
6705
link_static_flag=$lt_link_static_flag
6707
# Compiler flag to turn off builtin functions.
6708
no_builtin_flag=$lt_no_builtin_flag
6710
# Compiler flag to allow reflexive dlopens.
6711
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6713
# Compiler flag to generate shared objects directly from archives.
6714
whole_archive_flag_spec=$lt_whole_archive_flag_spec
6716
# Compiler flag to generate thread-safe objects.
6717
thread_safe_flag_spec=$lt_thread_safe_flag_spec
6719
# Library versioning type.
6720
version_type=$version_type
6722
# Format of library name prefix.
6723
libname_spec=$lt_libname_spec
6725
# List of archive names. First name is the real one, the rest are links.
6726
# The last name is the one that the linker finds with -lNAME.
6727
library_names_spec=$lt_library_names_spec
6729
# The coded name of the library, if different from the real name.
6730
soname_spec=$lt_soname_spec
6732
# Commands used to build and install an old-style archive.
6734
old_archive_cmds=$lt_old_archive_cmds
6735
old_postinstall_cmds=$lt_old_postinstall_cmds
6736
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6738
# Create an old-style archive from a shared archive.
6739
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6741
# Create a temporary old-style archive to link instead of a shared archive.
6742
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6744
# Commands used to build and install a shared archive.
6745
archive_cmds=$lt_archive_cmds
6746
archive_expsym_cmds=$lt_archive_expsym_cmds
6747
postinstall_cmds=$lt_postinstall_cmds
6748
postuninstall_cmds=$lt_postuninstall_cmds
6750
# Commands to strip libraries.
6751
old_striplib=$lt_old_striplib
6752
striplib=$lt_striplib
6754
# Method to check whether dependent libraries are shared objects.
6755
deplibs_check_method=$lt_deplibs_check_method
6757
# Command to use when deplibs_check_method == file_magic.
6758
file_magic_cmd=$lt_file_magic_cmd
6760
# Flag that allows shared libraries with undefined symbols to be built.
6761
allow_undefined_flag=$lt_allow_undefined_flag
6763
# Flag that forces no undefined symbols.
6764
no_undefined_flag=$lt_no_undefined_flag
6766
# Commands used to finish a libtool library installation in a directory.
6767
finish_cmds=$lt_finish_cmds
6769
# Same as above, but a single script fragment to be evaled but not shown.
6770
finish_eval=$lt_finish_eval
6772
# Take the output of nm and produce a listing of raw symbols and C names.
6773
global_symbol_pipe=$lt_global_symbol_pipe
6775
# Transform the output of nm in a proper C declaration
6776
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6778
# Transform the output of nm in a C name address pair
6779
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6781
# This is the shared library runtime path variable.
6782
runpath_var=$runpath_var
6784
# This is the shared library path variable.
6785
shlibpath_var=$shlibpath_var
6787
# Is shlibpath searched before the hard-coded library search path?
6788
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6790
# How to hardcode a shared library path into an executable.
6791
hardcode_action=$hardcode_action
6793
# Whether we should hardcode library paths into libraries.
6794
hardcode_into_libs=$hardcode_into_libs
6796
# Flag to hardcode \$libdir into a binary during linking.
6797
# This must work even if \$libdir does not exist.
6798
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6800
# Whether we need a single -rpath flag with a separated argument.
6801
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6803
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6805
hardcode_direct=$hardcode_direct
6807
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6809
hardcode_minus_L=$hardcode_minus_L
6811
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6812
# the resulting binary.
6813
hardcode_shlibpath_var=$hardcode_shlibpath_var
6815
# Variables whose values should be saved in libtool wrapper scripts and
6816
# restored at relink time.
6817
variables_saved_for_relink="$variables_saved_for_relink"
6819
# Whether libtool must link a program against all its dependency libraries.
6820
link_all_deplibs=$link_all_deplibs
6822
# Compile-time system search path for libraries
6823
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6825
# Run-time system search path for libraries
6826
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6828
# Fix the shell variable \$srcfile for the compiler.
6829
fix_srcfile_path="$fix_srcfile_path"
6831
# Set to yes if exported symbols are required.
6832
always_export_symbols=$always_export_symbols
6834
# The commands to list exported symbols.
6835
export_symbols_cmds=$lt_export_symbols_cmds
6837
# The commands to extract the exported symbol list from a shared archive.
6838
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6840
# Symbols that should not be listed in the preloaded symbols.
6841
exclude_expsyms=$lt_exclude_expsyms
6843
# Symbols that must always be exported.
6844
include_expsyms=$lt_include_expsyms
6846
# ### END LIBTOOL CONFIG
6852
cat <<\EOF >> "${ofile}T"
6854
# AIX sometimes has problems with the GCC collect2 program. For some
6855
# reason, if we set the COLLECT_NAMES environment variable, the problems
6856
# vanish in a puff of smoke.
6857
if test "X${COLLECT_NAMES+set}" != Xset; then
6859
export COLLECT_NAMES
6866
cygwin* | mingw* | pw32* | os2*)
6867
cat <<'EOF' >> "${ofile}T"
6868
# This is a source program that is used to create dlls on Windows
6869
# Don't remove nor modify the starting and closing comments
6870
# /* ltdll.c starts here */
6871
# #define WIN32_LEAN_AND_MEAN
6872
# #include <windows.h>
6873
# #undef WIN32_LEAN_AND_MEAN
6874
# #include <stdio.h>
6876
# #ifndef __CYGWIN__
6877
# # ifdef __CYGWIN32__
6878
# # define __CYGWIN__ __CYGWIN32__
6882
# #ifdef __cplusplus
6885
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6886
# #ifdef __cplusplus
6891
# #include <cygwin/cygwin_dll.h>
6892
# DECLARE_CYGWIN_DLL( DllMain );
6894
# HINSTANCE __hDllInstance_base;
6897
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6899
# __hDllInstance_base = hInst;
6902
# /* ltdll.c ends here */
6903
# This is a source program that is used to create import libraries
6904
# on Windows for dlls which lack them. Don't remove nor modify the
6905
# starting and closing comments
6906
# /* impgen.c starts here */
6907
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6909
# This file is part of GNU libtool.
6911
# This program is free software; you can redistribute it and/or modify
6912
# it under the terms of the GNU General Public License as published by
6913
# the Free Software Foundation; either version 2 of the License, or
6914
# (at your option) any later version.
6916
# This program is distributed in the hope that it will be useful,
6917
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6918
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6919
# GNU General Public License for more details.
6921
# You should have received a copy of the GNU General Public License
6922
# along with this program; if not, write to the Free Software
6923
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6926
# #include <stdio.h> /* for printf() */
6927
# #include <unistd.h> /* for open(), lseek(), read() */
6928
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6929
# #include <string.h> /* for strdup() */
6931
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6933
# #define O_BINARY 0
6936
# static unsigned int
6937
# pe_get16 (fd, offset)
6941
# unsigned char b[2];
6942
# lseek (fd, offset, SEEK_SET);
6944
# return b[0] + (b[1]<<8);
6947
# static unsigned int
6948
# pe_get32 (fd, offset)
6952
# unsigned char b[4];
6953
# lseek (fd, offset, SEEK_SET);
6955
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6958
# static unsigned int
6962
# unsigned char *b = ptr;
6963
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6972
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6973
# unsigned long export_rva, export_size, nsections, secptr, expptr;
6974
# unsigned long name_rvas, nexp;
6975
# unsigned char *expdata, *erva;
6976
# char *filename, *dll_name;
6978
# filename = argv[1];
6980
# dll = open(filename, O_RDONLY|O_BINARY);
6984
# dll_name = filename;
6986
# for (i=0; filename[i]; i++)
6987
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6988
# dll_name = filename + i +1;
6990
# pe_header_offset = pe_get32 (dll, 0x3c);
6991
# opthdr_ofs = pe_header_offset + 4 + 20;
6992
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6994
# if (num_entries < 1) /* no exports */
6997
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6998
# export_size = pe_get32 (dll, opthdr_ofs + 100);
6999
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7000
# secptr = (pe_header_offset + 4 + 20 +
7001
# pe_get16 (dll, pe_header_offset + 4 + 16));
7004
# for (i = 0; i < nsections; i++)
7007
# unsigned long secptr1 = secptr + 40 * i;
7008
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7009
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7010
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7011
# lseek(dll, secptr1, SEEK_SET);
7012
# read(dll, sname, 8);
7013
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7015
# expptr = fptr + (export_rva - vaddr);
7016
# if (export_rva + export_size > vaddr + vsize)
7017
# export_size = vsize - (export_rva - vaddr);
7022
# expdata = (unsigned char*)malloc(export_size);
7023
# lseek (dll, expptr, SEEK_SET);
7024
# read (dll, expdata, export_size);
7025
# erva = expdata - export_rva;
7027
# nexp = pe_as32 (expdata+24);
7028
# name_rvas = pe_as32 (expdata+32);
7030
# printf ("EXPORTS\n");
7031
# for (i = 0; i<nexp; i++)
7033
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7034
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7039
# /* impgen.c ends here */
7045
# We use sed instead of cat because bash on DJGPP gets confused if
7046
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7047
# text mode, it properly converts lines to CR/LF. This bash problem
7048
# is reportedly fixed, but why not run on old versions too?
7049
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7051
mv -f "${ofile}T" "$ofile" || \
7052
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7056
# This can be used to rebuild libtool when needed
7057
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7059
# Always use our own libtool.
7060
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7062
# Prevent multiple expansion
7064
for ac_prog in mawk gawk nawk awk
7066
# Extract the first word of "$ac_prog", so it can be a program name with args.
7067
set dummy $ac_prog; ac_word=$2
7068
echo "$as_me:7068: checking for $ac_word" >&5
7069
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070
if test "${ac_cv_prog_AWK+set}" = set; then
7071
echo $ECHO_N "(cached) $ECHO_C" >&6
7073
if test -n "$AWK"; then
7074
ac_cv_prog_AWK="$AWK" # Let the user override the test.
7076
ac_save_IFS=$IFS; IFS=$ac_path_separator
7078
for ac_dir in $ac_dummy; do
7080
test -z "$ac_dir" && ac_dir=.
7081
$as_executable_p "$ac_dir/$ac_word" || continue
7082
ac_cv_prog_AWK="$ac_prog"
7083
echo "$as_me:7083: found $ac_dir/$ac_word" >&5
7090
if test -n "$AWK"; then
7091
echo "$as_me:7091: result: $AWK" >&5
7092
echo "${ECHO_T}$AWK" >&6
7094
echo "$as_me:7094: result: no" >&5
7095
echo "${ECHO_T}no" >&6
7098
test -n "$AWK" && break
7101
# Extract the first word of "pkg-config", so it can be a program name with args.
7102
set dummy pkg-config; ac_word=$2
7103
echo "$as_me:7103: checking for $ac_word" >&5
7104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7105
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7106
echo $ECHO_N "(cached) $ECHO_C" >&6
7110
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7113
ac_save_IFS=$IFS; IFS=$ac_path_separator
7115
for ac_dir in $ac_dummy; do
7117
test -z "$ac_dir" && ac_dir=.
7118
if $as_executable_p "$ac_dir/$ac_word"; then
7119
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7120
echo "$as_me:7120: found $ac_dir/$ac_word" >&5
7128
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7130
if test -n "$PKG_CONFIG"; then
7131
echo "$as_me:7131: result: $PKG_CONFIG" >&5
7132
echo "${ECHO_T}$PKG_CONFIG" >&6
7134
echo "$as_me:7134: result: no" >&5
7135
echo "${ECHO_T}no" >&6
7138
if ! test -x "$PKG_CONFIG" ; then
7139
{ { echo "$as_me:7139: error:
7140
*** You need the latest pkg-config.
7141
*** Get the latest version of pkg-config from
7142
*** <http://www.freedesktop.org/software/pkgconfig/>." >&5
7143
echo "$as_me: error:
7144
*** You need the latest pkg-config.
7145
*** Get the latest version of pkg-config from
7146
*** <http://www.freedesktop.org/software/pkgconfig/>." >&2;}
7147
{ (exit 1); exit 1; }; }
7150
ac_config_files="$ac_config_files Makefile gnome-common.spec macros/Makefile macros2/Makefile bin/Makefile doc/Makefile"
1640
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1642
# We need awk for the "check" target. The system "awk" is bad on
1647
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1648
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1649
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1650
if test "${enable_maintainer_mode+set}" = set; then
1651
enableval="$enable_maintainer_mode"
1652
USE_MAINTAINER_MODE=$enableval
1654
USE_MAINTAINER_MODE=no
1656
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1657
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1660
if test $USE_MAINTAINER_MODE = yes; then
1661
MAINTAINER_MODE_TRUE=
1662
MAINTAINER_MODE_FALSE='#'
1664
MAINTAINER_MODE_TRUE='#'
1665
MAINTAINER_MODE_FALSE=
1668
MAINT=$MAINTAINER_MODE_TRUE
1672
ac_config_files="$ac_config_files Makefile gnome-common.spec macros2/Makefile doc-build/Makefile doc-build/gnome-doc-common"
7151
1675
cat >confcache <<\_ACEOF
7152
1676
# This file is a shell script that caches the results of configure
7153
1677
# tests run on this system so they can be shared between configure