Mercurial > hg > CbC > CbC_gcc
comparison configure @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 (2011-03-22) |
parents | b7f97abdc517 |
children | 1b10fe6932e1 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
551 PACKAGE_BUGREPORT= | 551 PACKAGE_BUGREPORT= |
552 PACKAGE_URL= | 552 PACKAGE_URL= |
553 | 553 |
554 ac_unique_file="move-if-change" | 554 ac_unique_file="move-if-change" |
555 enable_option_checking=no | 555 enable_option_checking=no |
556 # Factoring default headers for most tests. | |
557 ac_includes_default="\ | |
558 #include <stdio.h> | |
559 #ifdef HAVE_SYS_TYPES_H | |
560 # include <sys/types.h> | |
561 #endif | |
562 #ifdef HAVE_SYS_STAT_H | |
563 # include <sys/stat.h> | |
564 #endif | |
565 #ifdef STDC_HEADERS | |
566 # include <stdlib.h> | |
567 # include <stddef.h> | |
568 #else | |
569 # ifdef HAVE_STDLIB_H | |
570 # include <stdlib.h> | |
571 # endif | |
572 #endif | |
573 #ifdef HAVE_STRING_H | |
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
575 # include <memory.h> | |
576 # endif | |
577 # include <string.h> | |
578 #endif | |
579 #ifdef HAVE_STRINGS_H | |
580 # include <strings.h> | |
581 #endif | |
582 #ifdef HAVE_INTTYPES_H | |
583 # include <inttypes.h> | |
584 #endif | |
585 #ifdef HAVE_STDINT_H | |
586 # include <stdint.h> | |
587 #endif | |
588 #ifdef HAVE_UNISTD_H | |
589 # include <unistd.h> | |
590 #endif" | |
591 | |
592 ac_subst_vars='LTLIBOBJS | 556 ac_subst_vars='LTLIBOBJS |
593 LIBOBJS | 557 LIBOBJS |
594 compare_exclusions | 558 compare_exclusions |
595 stage2_werror_flag | 559 stage2_werror_flag |
596 stage1_checking | 560 stage1_checking |
612 LIPO_FOR_TARGET | 576 LIPO_FOR_TARGET |
613 LD_FOR_TARGET | 577 LD_FOR_TARGET |
614 DLLTOOL_FOR_TARGET | 578 DLLTOOL_FOR_TARGET |
615 AS_FOR_TARGET | 579 AS_FOR_TARGET |
616 AR_FOR_TARGET | 580 AR_FOR_TARGET |
581 GOC_FOR_TARGET | |
617 GFORTRAN_FOR_TARGET | 582 GFORTRAN_FOR_TARGET |
618 GCJ_FOR_TARGET | 583 GCJ_FOR_TARGET |
619 GCC_FOR_TARGET | 584 GCC_FOR_TARGET |
620 CXX_FOR_TARGET | 585 CXX_FOR_TARGET |
621 CC_FOR_TARGET | 586 CC_FOR_TARGET |
644 WINDMC_FOR_BUILD | 609 WINDMC_FOR_BUILD |
645 RANLIB_FOR_BUILD | 610 RANLIB_FOR_BUILD |
646 NM_FOR_BUILD | 611 NM_FOR_BUILD |
647 LD_FOR_BUILD | 612 LD_FOR_BUILD |
648 LDFLAGS_FOR_BUILD | 613 LDFLAGS_FOR_BUILD |
614 GOC_FOR_BUILD | |
649 GFORTRAN_FOR_BUILD | 615 GFORTRAN_FOR_BUILD |
650 GCJ_FOR_BUILD | 616 GCJ_FOR_BUILD |
651 DLLTOOL_FOR_BUILD | 617 DLLTOOL_FOR_BUILD |
652 CXX_FOR_BUILD | 618 CXX_FOR_BUILD |
653 CXXFLAGS_FOR_BUILD | 619 CXXFLAGS_FOR_BUILD |
654 CFLAGS_FOR_BUILD | 620 CFLAGS_FOR_BUILD |
655 CC_FOR_BUILD | 621 CC_FOR_BUILD |
656 AS_FOR_BUILD | 622 AS_FOR_BUILD |
657 AR_FOR_BUILD | 623 AR_FOR_BUILD |
658 target_configargs | |
659 target_configdirs | 624 target_configdirs |
660 configdirs | 625 configdirs |
661 host_configargs | |
662 build_configdirs | 626 build_configdirs |
663 build_configargs | |
664 INSTALL_GDB_TK | 627 INSTALL_GDB_TK |
665 GDB_TK | 628 GDB_TK |
666 CONFIGURE_GDB_TK | 629 CONFIGURE_GDB_TK |
667 build_tooldir | 630 build_tooldir |
668 tooldir | 631 tooldir |
669 GCC_SHLIB_SUBDIR | 632 GCC_SHLIB_SUBDIR |
670 RPATH_ENVVAR | 633 RPATH_ENVVAR |
634 target_configargs | |
635 host_configargs | |
636 build_configargs | |
671 BUILD_CONFIG | 637 BUILD_CONFIG |
672 CXXFLAGS_FOR_TARGET | 638 CXXFLAGS_FOR_TARGET |
673 CFLAGS_FOR_TARGET | 639 CFLAGS_FOR_TARGET |
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET | 640 DEBUG_PREFIX_CFLAGS_FOR_TARGET |
675 SYSROOT_CFLAGS_FOR_TARGET | 641 SYSROOT_CFLAGS_FOR_TARGET |
676 stage1_languages | 642 stage1_languages |
677 extra_host_libiberty_configure_flags | 643 extra_host_libiberty_configure_flags |
678 libelfinc | |
679 libelflibs | |
680 EGREP | |
681 GREP | |
682 CPP | |
683 clooginc | 644 clooginc |
684 clooglibs | 645 clooglibs |
685 pplinc | 646 pplinc |
686 ppllibs | 647 ppllibs |
687 poststage1_ldflags | 648 poststage1_ldflags |
778 ospace_frag' | 739 ospace_frag' |
779 ac_user_opts=' | 740 ac_user_opts=' |
780 enable_option_checking | 741 enable_option_checking |
781 with_build_libsubdir | 742 with_build_libsubdir |
782 enable_gold | 743 enable_gold |
744 enable_ld | |
745 enable_libquadmath | |
746 enable_libquadmath_support | |
783 enable_libada | 747 enable_libada |
784 enable_libssp | 748 enable_libssp |
785 enable_build_with_cxx | 749 enable_build_with_cxx |
786 with_mpc | 750 with_mpc |
787 with_mpc_include | 751 with_mpc_include |
804 with_ppl_lib | 768 with_ppl_lib |
805 enable_ppl_version_check | 769 enable_ppl_version_check |
806 with_cloog | 770 with_cloog |
807 with_cloog_include | 771 with_cloog_include |
808 with_cloog_lib | 772 with_cloog_lib |
773 enable_cloog_backend | |
809 enable_cloog_version_check | 774 enable_cloog_version_check |
810 enable_lto | 775 enable_lto |
811 with_libelf | |
812 with_libelf_include | |
813 with_libelf_lib | |
814 enable_stage1_languages | 776 enable_stage1_languages |
815 enable_objc_gc | 777 enable_objc_gc |
816 with_build_sysroot | 778 with_build_sysroot |
817 with_debug_prefix_map | 779 with_debug_prefix_map |
818 enable_bootstrap | 780 enable_bootstrap |
832 LIBS | 794 LIBS |
833 CPPFLAGS | 795 CPPFLAGS |
834 CXX | 796 CXX |
835 CXXFLAGS | 797 CXXFLAGS |
836 CCC | 798 CCC |
837 CPP | 799 build_configargs |
800 host_configargs | |
801 target_configargs | |
838 AR | 802 AR |
839 AS | 803 AS |
840 DLLTOOL | 804 DLLTOOL |
841 LD | 805 LD |
842 LIPO | 806 LIPO |
850 CC_FOR_TARGET | 814 CC_FOR_TARGET |
851 CXX_FOR_TARGET | 815 CXX_FOR_TARGET |
852 GCC_FOR_TARGET | 816 GCC_FOR_TARGET |
853 GCJ_FOR_TARGET | 817 GCJ_FOR_TARGET |
854 GFORTRAN_FOR_TARGET | 818 GFORTRAN_FOR_TARGET |
819 GOC_FOR_TARGET | |
855 AR_FOR_TARGET | 820 AR_FOR_TARGET |
856 AS_FOR_TARGET | 821 AS_FOR_TARGET |
857 DLLTOOL_FOR_TARGET | 822 DLLTOOL_FOR_TARGET |
858 LD_FOR_TARGET | 823 LD_FOR_TARGET |
859 LIPO_FOR_TARGET | 824 LIPO_FOR_TARGET |
1388 # Double slashes in file names in object file debugging info | 1353 # Double slashes in file names in object file debugging info |
1389 # mess up M-x gdb in Emacs. | 1354 # mess up M-x gdb in Emacs. |
1390 case $srcdir in | 1355 case $srcdir in |
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1392 esac | 1357 esac |
1358 case $srcdir in | |
1359 *" "*) | |
1360 as_fn_error "path to source, $srcdir, contains spaces" | |
1361 ;; | |
1362 esac | |
1393 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` | 1363 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1394 | 1364 |
1395 for ac_var in $ac_precious_vars; do | 1365 for ac_var in $ac_precious_vars; do |
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} | 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1397 eval ac_env_${ac_var}_value=\$${ac_var} | 1367 eval ac_env_${ac_var}_value=\$${ac_var} |
1481 | 1451 |
1482 Optional Features: | 1452 Optional Features: |
1483 --disable-option-checking ignore unrecognized --enable/--with options | 1453 --disable-option-checking ignore unrecognized --enable/--with options |
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1486 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]] | 1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}] | |
1458 --disable-libquadmath do not build libquadmath directory | |
1459 --disable-libquadmath-support | |
1460 disable libquadmath support for Fortran | |
1487 --enable-libada build libada directory | 1461 --enable-libada build libada directory |
1488 --enable-libssp build libssp directory | 1462 --enable-libssp build libssp directory |
1489 --enable-build-with-cxx build with C++ compiler instead of C compiler | 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler |
1490 --disable-ppl-version-check disable check for PPL version | 1464 --disable-ppl-version-check |
1491 --disable-cloog-version-check disable check for CLooG version | 1465 disable check for PPL version |
1466 --enable-cloog-backend[=BACKEND] | |
1467 set the CLooG BACKEND used to either isl, ppl or | |
1468 ppl-legacy (default) | |
1469 --disable-cloog-version-check | |
1470 disable check for CLooG version | |
1492 --enable-lto enable link time optimization support | 1471 --enable-lto enable link time optimization support |
1493 --enable-stage1-languages[=all] choose additional languages to build during | 1472 --enable-stage1-languages[=all] |
1494 stage1. Mostly useful for compiler development. | 1473 choose additional languages to build during stage1. |
1495 --enable-objc-gc enable use of Boehm's garbage collector with the | 1474 Mostly useful for compiler development |
1496 GNU Objective-C runtime | 1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1476 Objective-C runtime | |
1497 --enable-bootstrap enable bootstrapping [yes if native build] | 1477 --enable-bootstrap enable bootstrapping [yes if native build] |
1498 --enable-serial-[{host,target,build}-]configure | 1478 --enable-serial-[{host,target,build}-]configure |
1499 force sequential configuration of | 1479 force sequential configuration of sub-packages for |
1500 sub-packages for the host, target or build | 1480 the host, target or build machine, or all |
1501 machine, or all sub-packages | 1481 sub-packages |
1502 --enable-maintainer-mode enable make rules and dependencies not useful | 1482 --enable-maintainer-mode |
1503 (and sometimes confusing) to the casual installer | 1483 enable make rules and dependencies not useful (and |
1504 --enable-stage1-checking[=all] choose additional checking for stage1 | 1484 sometimes confusing) to the casual installer |
1505 of the compiler | 1485 --enable-stage1-checking[=all] |
1486 choose additional checking for stage1 of the | |
1487 compiler | |
1506 --enable-werror enable -Werror in bootstrap stage2 and later | 1488 --enable-werror enable -Werror in bootstrap stage2 and later |
1507 | 1489 |
1508 Optional Packages: | 1490 Optional Packages: |
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1511 --with-build-libsubdir=DIR Directory where to find libraries for build system | 1493 --with-build-libsubdir=DIR Directory where to find libraries for build system |
1512 --with-mpc=PATH specify prefix directory for installed MPC package. | 1494 --with-mpc=PATH specify prefix directory for installed MPC package. |
1513 Equivalent to --with-mpc-include=PATH/include | 1495 Equivalent to --with-mpc-include=PATH/include plus |
1514 plus --with-mpc-lib=PATH/lib | 1496 --with-mpc-lib=PATH/lib |
1515 --with-mpc-include=PATH | 1497 --with-mpc-include=PATH specify directory for installed MPC include files |
1516 specify directory for installed MPC include files | 1498 --with-mpc-lib=PATH specify directory for the installed MPC library |
1517 --with-mpc-lib=PATH specify directory for the installed MPC library | |
1518 --with-mpfr-dir=PATH this option has been REMOVED | 1499 --with-mpfr-dir=PATH this option has been REMOVED |
1519 --with-mpfr=PATH specify prefix directory for installed MPFR package. | 1500 --with-mpfr=PATH specify prefix directory for installed MPFR package. |
1520 Equivalent to --with-mpfr-include=PATH/include | 1501 Equivalent to --with-mpfr-include=PATH/include plus |
1521 plus --with-mpfr-lib=PATH/lib | 1502 --with-mpfr-lib=PATH/lib |
1522 --with-mpfr-include=PATH | 1503 --with-mpfr-include=PATH |
1523 specify directory for installed MPFR include files | 1504 specify directory for installed MPFR include files |
1524 --with-mpfr-lib=PATH specify directory for the installed MPFR library | 1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library |
1525 --with-gmp-dir=PATH this option has been REMOVED | 1506 --with-gmp-dir=PATH this option has been REMOVED |
1526 --with-gmp=PATH specify prefix directory for the installed GMP package. | 1507 --with-gmp=PATH specify prefix directory for the installed GMP |
1527 Equivalent to --with-gmp-include=PATH/include | 1508 package. Equivalent to |
1528 plus --with-gmp-lib=PATH/lib | 1509 --with-gmp-include=PATH/include plus |
1510 --with-gmp-lib=PATH/lib | |
1529 --with-gmp-include=PATH specify directory for installed GMP include files | 1511 --with-gmp-include=PATH specify directory for installed GMP include files |
1530 --with-gmp-lib=PATH specify directory for the installed GMP library | 1512 --with-gmp-lib=PATH specify directory for the installed GMP library |
1531 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++ | 1513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1532 when linking with PPL | 1514 linking with PPL |
1533 --with-stage1-ldflags=FLAGS Linker flags for stage1 | 1515 --with-stage1-ldflags=FLAGS |
1534 -with-stage1-libs=LIBS Libraries for stage1 | 1516 linker flags for stage1 |
1535 --with-boot-libs=LIBS Libraries for stage2 and later | 1517 --with-stage1-libs=LIBS libraries for stage1 |
1536 --with-boot-ldflags=FLAGS Linker flags for stage2 and later | 1518 --with-boot-libs=LIBS libraries for stage2 and later |
1537 --with-ppl=PATH Specify prefix directory for the installed PPL package | 1519 --with-boot-ldflags=FLAGS |
1538 Equivalent to --with-ppl-include=PATH/include | 1520 linker flags for stage2 and later |
1539 plus --with-ppl-lib=PATH/lib | 1521 --with-ppl=PATH specify prefix directory for the installed PPL |
1540 --with-ppl-include=PATH Specify directory for installed PPL include files | 1522 package. Equivalent to |
1541 --with-ppl-lib=PATH Specify the directory for the installed PPL library | 1523 --with-ppl-include=PATH/include plus |
1542 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package | 1524 --with-ppl-lib=PATH/lib |
1543 Equivalent to --with-cloog-include=PATH/include | 1525 --with-ppl-include=PATH specify directory for installed PPL include files |
1544 plus --with-cloog-lib=PATH/lib | 1526 --with-ppl-lib=PATH specify directory for the installed PPL library |
1545 --with-cloog-include=PATH Specify directory for installed CLooG include files | 1527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1546 --with-cloog-lib=PATH Specify the directory for the installed CLooG library | 1528 package. Equivalent to |
1547 --with-libelf=PATH Specify prefix directory for the installed libelf package | 1529 --with-cloog-include=PATH/include plus |
1548 Equivalent to --with-libelf-include=PATH/include | 1530 --with-cloog-lib=PATH/lib |
1549 plus --with-libelf-lib=PATH/lib | 1531 --with-cloog-include=PATH |
1550 --with-libelf-include=PATH Specify directory for installed libelf include files | 1532 Specify directory for installed CLooG include files |
1551 --with-libelf-lib=PATH Specify the directory for the installed libelf library | 1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG |
1534 library | |
1552 --with-build-sysroot=SYSROOT | 1535 --with-build-sysroot=SYSROOT |
1553 use sysroot as the system root during the build | 1536 use sysroot as the system root during the build |
1554 --with-debug-prefix-map='A=B C=D ...' | 1537 --with-debug-prefix-map='A=B C=D ...' |
1555 map A to B, C to D ... in debug information | 1538 map A to B, C to D ... in debug information |
1556 --with-build-config='NAME NAME2...' | 1539 --with-build-config='NAME NAME2...' |
1557 Use config/NAME.mk build configuration | 1540 use config/NAME.mk build configuration |
1558 --with-build-time-tools=PATH | 1541 --with-build-time-tools=PATH |
1559 use given path to find target tools during the build | 1542 use given path to find target tools during the build |
1560 | 1543 |
1561 Some influential environment variables: | 1544 Some influential environment variables: |
1562 CC C compiler command | 1545 CC C compiler command |
1566 LIBS libraries to pass to the linker, e.g. -l<library> | 1549 LIBS libraries to pass to the linker, e.g. -l<library> |
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1568 you have headers in a nonstandard directory <include dir> | 1551 you have headers in a nonstandard directory <include dir> |
1569 CXX C++ compiler command | 1552 CXX C++ compiler command |
1570 CXXFLAGS C++ compiler flags | 1553 CXXFLAGS C++ compiler flags |
1571 CPP C preprocessor | 1554 build_configargs |
1555 additional configure arguments for build directories | |
1556 host_configargs | |
1557 additional configure arguments for host directories | |
1558 target_configargs | |
1559 additional configure arguments for target directories | |
1572 AR AR for the host | 1560 AR AR for the host |
1573 AS AS for the host | 1561 AS AS for the host |
1574 DLLTOOL DLLTOOL for the host | 1562 DLLTOOL DLLTOOL for the host |
1575 LD LD for the host | 1563 LD LD for the host |
1576 LIPO LIPO for the host | 1564 LIPO LIPO for the host |
1589 GCC for the target | 1577 GCC for the target |
1590 GCJ_FOR_TARGET | 1578 GCJ_FOR_TARGET |
1591 GCJ for the target | 1579 GCJ for the target |
1592 GFORTRAN_FOR_TARGET | 1580 GFORTRAN_FOR_TARGET |
1593 GFORTRAN for the target | 1581 GFORTRAN for the target |
1582 GOC_FOR_TARGET | |
1583 GOC for the target | |
1594 AR_FOR_TARGET | 1584 AR_FOR_TARGET |
1595 AR for the target | 1585 AR for the target |
1596 AS_FOR_TARGET | 1586 AS_FOR_TARGET |
1597 AS for the target | 1587 AS for the target |
1598 DLLTOOL_FOR_TARGET | 1588 DLLTOOL_FOR_TARGET |
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1815 return $ac_retval | 1805 return $ac_retval |
1816 | 1806 |
1817 } # ac_fn_c_try_link | 1807 } # ac_fn_c_try_link |
1818 | |
1819 # ac_fn_c_try_cpp LINENO | |
1820 # ---------------------- | |
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1822 ac_fn_c_try_cpp () | |
1823 { | |
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1826 case "(($ac_try" in | |
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1828 *) ac_try_echo=$ac_try;; | |
1829 esac | |
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1831 $as_echo "$ac_try_echo"; } >&5 | |
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1833 ac_status=$? | |
1834 if test -s conftest.err; then | |
1835 grep -v '^ *+' conftest.err >conftest.er1 | |
1836 cat conftest.er1 >&5 | |
1837 mv -f conftest.er1 conftest.err | |
1838 fi | |
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1840 test $ac_status = 0; } >/dev/null && { | |
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1842 test ! -s conftest.err | |
1843 }; then : | |
1844 ac_retval=0 | |
1845 else | |
1846 $as_echo "$as_me: failed program was:" >&5 | |
1847 sed 's/^/| /' conftest.$ac_ext >&5 | |
1848 | |
1849 ac_retval=1 | |
1850 fi | |
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1852 return $ac_retval | |
1853 | |
1854 } # ac_fn_c_try_cpp | |
1855 | |
1856 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1857 # ------------------------------------------------------- | |
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1859 # the include files in INCLUDES and setting the cache variable VAR | |
1860 # accordingly. | |
1861 ac_fn_c_check_header_mongrel () | |
1862 { | |
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1866 $as_echo_n "checking for $2... " >&6; } | |
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1868 $as_echo_n "(cached) " >&6 | |
1869 fi | |
1870 eval ac_res=\$$3 | |
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1872 $as_echo "$ac_res" >&6; } | |
1873 else | |
1874 # Is the header compilable? | |
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1876 $as_echo_n "checking $2 usability... " >&6; } | |
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1878 /* end confdefs.h. */ | |
1879 $4 | |
1880 #include <$2> | |
1881 _ACEOF | |
1882 if ac_fn_c_try_compile "$LINENO"; then : | |
1883 ac_header_compiler=yes | |
1884 else | |
1885 ac_header_compiler=no | |
1886 fi | |
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1889 $as_echo "$ac_header_compiler" >&6; } | |
1890 | |
1891 # Is the header present? | |
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1893 $as_echo_n "checking $2 presence... " >&6; } | |
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1895 /* end confdefs.h. */ | |
1896 #include <$2> | |
1897 _ACEOF | |
1898 if ac_fn_c_try_cpp "$LINENO"; then : | |
1899 ac_header_preproc=yes | |
1900 else | |
1901 ac_header_preproc=no | |
1902 fi | |
1903 rm -f conftest.err conftest.$ac_ext | |
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1905 $as_echo "$ac_header_preproc" >&6; } | |
1906 | |
1907 # So? What about this header? | |
1908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1909 yes:no: ) | |
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1914 ;; | |
1915 no:yes:* ) | |
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1926 ;; | |
1927 esac | |
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1929 $as_echo_n "checking for $2... " >&6; } | |
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1931 $as_echo_n "(cached) " >&6 | |
1932 else | |
1933 eval "$3=\$ac_header_compiler" | |
1934 fi | |
1935 eval ac_res=\$$3 | |
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1937 $as_echo "$ac_res" >&6; } | |
1938 fi | |
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1940 | |
1941 } # ac_fn_c_check_header_mongrel | |
1942 | |
1943 # ac_fn_c_try_run LINENO | |
1944 # ---------------------- | |
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1946 # that executables *can* be run. | |
1947 ac_fn_c_try_run () | |
1948 { | |
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1950 if { { ac_try="$ac_link" | |
1951 case "(($ac_try" in | |
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1953 *) ac_try_echo=$ac_try;; | |
1954 esac | |
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1956 $as_echo "$ac_try_echo"; } >&5 | |
1957 (eval "$ac_link") 2>&5 | |
1958 ac_status=$? | |
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1961 { { case "(($ac_try" in | |
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1963 *) ac_try_echo=$ac_try;; | |
1964 esac | |
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1966 $as_echo "$ac_try_echo"; } >&5 | |
1967 (eval "$ac_try") 2>&5 | |
1968 ac_status=$? | |
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1970 test $ac_status = 0; }; }; then : | |
1971 ac_retval=0 | |
1972 else | |
1973 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1974 $as_echo "$as_me: failed program was:" >&5 | |
1975 sed 's/^/| /' conftest.$ac_ext >&5 | |
1976 | |
1977 ac_retval=$ac_status | |
1978 fi | |
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1981 return $ac_retval | |
1982 | |
1983 } # ac_fn_c_try_run | |
1984 | |
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1986 # ------------------------------------------------------- | |
1987 # Tests whether HEADER exists and can be compiled using the include files in | |
1988 # INCLUDES, setting the cache variable VAR accordingly. | |
1989 ac_fn_c_check_header_compile () | |
1990 { | |
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1993 $as_echo_n "checking for $2... " >&6; } | |
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1995 $as_echo_n "(cached) " >&6 | |
1996 else | |
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 /* end confdefs.h. */ | |
1999 $4 | |
2000 #include <$2> | |
2001 _ACEOF | |
2002 if ac_fn_c_try_compile "$LINENO"; then : | |
2003 eval "$3=yes" | |
2004 else | |
2005 eval "$3=no" | |
2006 fi | |
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 fi | |
2009 eval ac_res=\$$3 | |
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2011 $as_echo "$ac_res" >&6; } | |
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2013 | |
2014 } # ac_fn_c_check_header_compile | |
2015 cat >config.log <<_ACEOF | 1808 cat >config.log <<_ACEOF |
2016 This file contains any messages produced by compilers while | 1809 This file contains any messages produced by compilers while |
2017 running configure, to aid debugging if configure makes a mistake. | 1810 running configure, to aid debugging if configure makes a mistake. |
2018 | 1811 |
2019 It was created by $as_me, which was | 1812 It was created by $as_me, which was |
2919 target-newlib \ | 2712 target-newlib \ |
2920 target-libgomp \ | 2713 target-libgomp \ |
2921 target-libstdc++-v3 \ | 2714 target-libstdc++-v3 \ |
2922 target-libmudflap \ | 2715 target-libmudflap \ |
2923 target-libssp \ | 2716 target-libssp \ |
2717 target-libquadmath \ | |
2924 target-libgfortran \ | 2718 target-libgfortran \ |
2925 target-boehm-gc \ | 2719 target-boehm-gc \ |
2926 ${libgcj} \ | 2720 ${libgcj} \ |
2927 target-libobjc \ | 2721 target-libobjc \ |
2928 target-libada" | 2722 target-libada \ |
2723 target-libgo" | |
2929 | 2724 |
2930 # these tools are built using the target libraries, and are intended to | 2725 # these tools are built using the target libraries, and are intended to |
2931 # run only in the target environment | 2726 # run only in the target environment |
2932 # | 2727 # |
2933 # note: any program that *uses* libraries that are in the "target_libraries" | 2728 # note: any program that *uses* libraries that are in the "target_libraries" |
3066 case ${with_newlib} in | 2861 case ${with_newlib} in |
3067 no) skipdirs="${skipdirs} target-newlib" ;; | 2862 no) skipdirs="${skipdirs} target-newlib" ;; |
3068 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | 2863 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; |
3069 esac | 2864 esac |
3070 | 2865 |
3071 # Handle --enable-gold. | 2866 # Handle --enable-gold, --enable-ld. |
3072 # --enable-gold Build only gold | 2867 # --disable-gold [--enable-ld] |
3073 # --disable-gold [default] Build only ld | 2868 # Build only ld. Default option. |
3074 # --enable-gold=both Build both gold and ld, ld is default | 2869 # --enable-gold [--enable-ld] |
3075 # --enable-gold=both/ld Same | 2870 # Build both gold and ld. Install gold as "ld.gold", install ld |
3076 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd | 2871 # as "ld.bfd" and "ld". |
3077 | 2872 # --enable-gold=default [--enable-ld] |
2873 # Build both gold and ld. Install gold as "ld.gold" and "ld", | |
2874 # install ld as "ld.bfd". | |
2875 # --enable-gold[=default] --disable-ld | |
2876 # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2877 # --enable-gold --enable-ld=default | |
2878 # Build both gold (installed as "ld.gold") and ld (installed as "ld" | |
2879 # and ld.bfd). | |
2880 # In other words, ld is default | |
2881 # --enable-gold=default --enable-ld=default | |
2882 # Error. | |
2883 | |
2884 default_ld= | |
3078 # Check whether --enable-gold was given. | 2885 # Check whether --enable-gold was given. |
3079 if test "${enable_gold+set}" = set; then : | 2886 if test "${enable_gold+set}" = set; then : |
3080 enableval=$enable_gold; ENABLE_GOLD=$enableval | 2887 enableval=$enable_gold; ENABLE_GOLD=$enableval |
3081 else | 2888 else |
3082 ENABLE_GOLD=no | 2889 ENABLE_GOLD=no |
3083 fi | 2890 fi |
3084 | 2891 |
3085 case "${ENABLE_GOLD}" in | 2892 case "${ENABLE_GOLD}" in |
3086 yes|both|both/gold|both/ld) | 2893 yes|default) |
3087 # Check for ELF target. | 2894 # Check for ELF target. |
3088 is_elf=no | 2895 is_elf=no |
3089 case "${target}" in | 2896 case "${target}" in |
3090 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | 2897 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ |
3091 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | 2898 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
3101 | 2908 |
3102 if test "$is_elf" = "yes"; then | 2909 if test "$is_elf" = "yes"; then |
3103 # Check for target supported by gold. | 2910 # Check for target supported by gold. |
3104 case "${target}" in | 2911 case "${target}" in |
3105 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) | 2912 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
3106 case "${ENABLE_GOLD}" in | 2913 configdirs="$configdirs gold" |
3107 both*) | 2914 if test x${ENABLE_GOLD} = xdefault; then |
3108 configdirs="$configdirs gold" | 2915 default_ld=gold |
3109 ;; | 2916 fi |
3110 *) | |
3111 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`" | |
3112 ;; | |
3113 esac | |
3114 ENABLE_GOLD=yes | 2917 ENABLE_GOLD=yes |
3115 ;; | 2918 ;; |
3116 esac | 2919 esac |
3117 fi | 2920 fi |
3118 ;; | 2921 ;; |
3119 no) | 2922 no) |
3120 ;; | 2923 ;; |
3121 *) | 2924 *) |
3122 as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | 2925 as_fn_error "invalid --enable-gold argument" "$LINENO" 5 |
3123 ;; | 2926 ;; |
3124 esac | 2927 esac |
2928 | |
2929 # Check whether --enable-ld was given. | |
2930 if test "${enable_ld+set}" = set; then : | |
2931 enableval=$enable_ld; ENABLE_LD=$enableval | |
2932 else | |
2933 ENABLE_LD=yes | |
2934 fi | |
2935 | |
2936 | |
2937 case "${ENABLE_LD}" in | |
2938 default) | |
2939 if test x${default_ld} != x; then | |
2940 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 | |
2941 fi | |
2942 ;; | |
2943 yes) | |
2944 ;; | |
2945 no) | |
2946 if test x${ENABLE_GOLD} != xyes; then | |
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2948 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2949 fi | |
2950 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2951 ;; | |
2952 *) | |
2953 as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2954 ;; | |
2955 esac | |
3125 | 2956 |
3126 # Configure extra directories which are host specific | 2957 # Configure extra directories which are host specific |
3127 | 2958 |
3128 case "${host}" in | 2959 case "${host}" in |
3129 *-cygwin*) | 2960 *-cygwin*) |
3169 ;; | 3000 ;; |
3170 powerpc-*-beos*) | 3001 powerpc-*-beos*) |
3171 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" | 3002 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" |
3172 ;; | 3003 ;; |
3173 esac | 3004 esac |
3005 | |
3006 | |
3007 # Check whether --enable-libquadmath was given. | |
3008 if test "${enable_libquadmath+set}" = set; then : | |
3009 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3010 else | |
3011 ENABLE_LIBQUADMATH=yes | |
3012 fi | |
3013 | |
3014 if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3015 noconfigdirs="$noconfigdirs target-libquadmath" | |
3016 fi | |
3017 | |
3018 | |
3019 # Check whether --enable-libquadmath-support was given. | |
3020 if test "${enable_libquadmath_support+set}" = set; then : | |
3021 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3022 else | |
3023 ENABLE_LIBQUADMATH_SUPPORT=yes | |
3024 fi | |
3025 | |
3026 enable_libquadmath_support= | |
3027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3028 enable_libquadmath_support=no | |
3029 fi | |
3174 | 3030 |
3175 | 3031 |
3176 # Check whether --enable-libada was given. | 3032 # Check whether --enable-libada was given. |
3177 if test "${enable_libada+set}" = set; then : | 3033 if test "${enable_libada+set}" = set; then : |
3178 enableval=$enable_libada; ENABLE_LIBADA=$enableval | 3034 enableval=$enable_libada; ENABLE_LIBADA=$enableval |
3202 # (unless the Java language itself isn't enabled). | 3058 # (unless the Java language itself isn't enabled). |
3203 libgcj= | 3059 libgcj= |
3204 ;; | 3060 ;; |
3205 no) | 3061 no) |
3206 # Make sure we get it printed in the list of not supported target libs. | 3062 # Make sure we get it printed in the list of not supported target libs. |
3207 noconfigdirs="$noconfigdirs ${libgcj}" | 3063 # Don't disable libffi, though, other languages use it. |
3064 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
3065 # Clear libgcj_saved so that even if java is enabled libffi won't be | |
3066 # built. | |
3067 libgcj_saved= | |
3208 ;; | 3068 ;; |
3209 esac | 3069 esac |
3210 | 3070 |
3211 | 3071 |
3212 # Disable libmudflap on some systems. | 3072 # Disable libmudflap on some systems. |
3405 avr-*-*) | 3265 avr-*-*) |
3406 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp" | 3266 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp" |
3407 ;; | 3267 ;; |
3408 bfin-*-*) | 3268 bfin-*-*) |
3409 unsupported_languages="$unsupported_languages java" | 3269 unsupported_languages="$unsupported_languages java" |
3410 noconfigdirs="$noconfigdirs target-boehm-gc gdb" | 3270 noconfigdirs="$noconfigdirs target-boehm-gc" |
3411 if test x${is_cross_compiler} != xno ; then | 3271 if test x${is_cross_compiler} != xno ; then |
3412 target_configdirs="${target_configdirs} target-bsp target-cygmon" | 3272 target_configdirs="${target_configdirs} target-bsp target-cygmon" |
3413 fi | 3273 fi |
3414 ;; | 3274 ;; |
3415 c4x-*-* | tic4x-*-*) | 3275 c4x-*-* | tic4x-*-*) |
3425 unsupported_languages="$unsupported_languages java" | 3285 unsupported_languages="$unsupported_languages java" |
3426 case "${target}" in | 3286 case "${target}" in |
3427 *-*-aout) | 3287 *-*-aout) |
3428 unsupported_languages="$unsupported_languages fortran" | 3288 unsupported_languages="$unsupported_languages fortran" |
3429 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | 3289 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
3430 *-*-elf) | 3290 *-*-elf) # See PR46792 regarding target-libffi. |
3431 noconfigdirs="$noconfigdirs target-boehm-gc";; | 3291 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; |
3432 *-*-linux*) | 3292 *-*-linux*) |
3433 noconfigdirs="$noconfigdirs target-newlib target-libgloss";; | 3293 noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
3434 *) | 3294 *) |
3435 unsupported_languages="$unsupported_languages fortran" | 3295 unsupported_languages="$unsupported_languages fortran" |
3436 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; | 3296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; |
3498 ia64*-*-elf*) | 3358 ia64*-*-elf*) |
3499 # No gdb support yet. | 3359 # No gdb support yet. |
3500 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" | 3360 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" |
3501 ;; | 3361 ;; |
3502 ia64*-**-hpux*) | 3362 ia64*-**-hpux*) |
3503 # No gdb or ld support yet. | 3363 # No ld support yet. |
3504 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" | 3364 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld" |
3505 ;; | 3365 ;; |
3506 ia64*-*-*vms*) | 3366 ia64*-*-*vms*) |
3507 # No gdb or ld support yet. | 3367 # No gdb or ld support yet. |
3508 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" | 3368 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" |
3509 ;; | 3369 ;; |
3610 noconfigdirs="$noconfigdirs ${libgcj}" | 3470 noconfigdirs="$noconfigdirs ${libgcj}" |
3611 ;; | 3471 ;; |
3612 mt-*-*) | 3472 mt-*-*) |
3613 noconfigdirs="$noconfigdirs sim" | 3473 noconfigdirs="$noconfigdirs sim" |
3614 ;; | 3474 ;; |
3475 picochip-*-*) | |
3476 noconfigdirs="$noconfigdirs target-libiberty" | |
3477 ;; | |
3615 powerpc-*-aix*) | 3478 powerpc-*-aix*) |
3616 # copied from rs6000-*-* entry | 3479 # copied from rs6000-*-* entry |
3617 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}" | 3480 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}" |
3618 ;; | 3481 ;; |
3619 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | 3482 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) |
3648 ;; | 3511 ;; |
3649 m68k-apollo-*) | 3512 m68k-apollo-*) |
3650 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" | 3513 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" |
3651 ;; | 3514 ;; |
3652 microblaze*) | 3515 microblaze*) |
3653 noconfigdirs="$noconfigdirs gprof ${libgcj}" | 3516 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}" |
3654 ;; | 3517 ;; |
3655 mips*-sde-elf*) | 3518 mips*-sde-elf*) |
3656 skipdirs="$skipdirs target-libiberty" | 3519 skipdirs="$skipdirs target-libiberty" |
3657 noconfigdirs="$noconfigdirs ${libgcj}" | 3520 noconfigdirs="$noconfigdirs ${libgcj}" |
3658 if test x$with_newlib = xyes; then | 3521 if test x$with_newlib = xyes; then |
3728 noconfigdirs="$noconfigdirs gdb sim ${libgcj}" | 3591 noconfigdirs="$noconfigdirs gdb sim ${libgcj}" |
3729 ;; | 3592 ;; |
3730 v810-*-*) | 3593 v810-*-*) |
3731 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" | 3594 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
3732 ;; | 3595 ;; |
3733 v850-*-*) | 3596 v850*-*-*) |
3734 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | 3597 noconfigdirs="$noconfigdirs ${libgcj}" |
3735 ;; | |
3736 v850e-*-*) | |
3737 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
3738 ;; | |
3739 v850ea-*-*) | |
3740 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
3741 ;; | 3598 ;; |
3742 vax-*-vms) | 3599 vax-*-vms) |
3743 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" | 3600 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" |
3744 ;; | 3601 ;; |
3745 vax-*-*) | 3602 vax-*-*) |
3936 rs6000-*-lynxos*) | 3793 rs6000-*-lynxos*) |
3937 # /bin/cc is less than useful for our purposes. Always use GCC | 3794 # /bin/cc is less than useful for our purposes. Always use GCC |
3938 tentative_cc="/usr/cygnus/progressive/bin/gcc" | 3795 tentative_cc="/usr/cygnus/progressive/bin/gcc" |
3939 host_makefile_frag="config/mh-lynxrs6k" | 3796 host_makefile_frag="config/mh-lynxrs6k" |
3940 ;; | 3797 ;; |
3941 powerpc-*-darwin*) | 3798 *-*-darwin*) |
3942 host_makefile_frag="config/mh-ppc-darwin" | 3799 host_makefile_frag="config/mh-darwin" |
3943 ;; | 3800 ;; |
3944 powerpc-*-aix*) | 3801 powerpc-*-aix*) |
3945 host_makefile_frag="config/mh-ppc-aix" | 3802 host_makefile_frag="config/mh-ppc-aix" |
3946 ;; | 3803 ;; |
3947 rs6000-*-aix*) | 3804 rs6000-*-aix*) |
3986 AS_FOR_BUILD=${AS_FOR_BUILD-as} | 3843 AS_FOR_BUILD=${AS_FOR_BUILD-as} |
3987 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | 3844 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
3988 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} | 3845 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3989 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | 3846 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} |
3990 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | 3847 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
3848 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} | |
3991 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} | 3849 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3992 LD_FOR_BUILD=${LD_FOR_BUILD-ld} | 3850 LD_FOR_BUILD=${LD_FOR_BUILD-ld} |
3993 NM_FOR_BUILD=${NM_FOR_BUILD-nm} | 3851 NM_FOR_BUILD=${NM_FOR_BUILD-nm} |
3994 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | 3852 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} |
3995 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | 3853 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} |
3999 AS_FOR_BUILD="\$(AS)" | 3857 AS_FOR_BUILD="\$(AS)" |
4000 CC_FOR_BUILD="\$(CC)" | 3858 CC_FOR_BUILD="\$(CC)" |
4001 CXX_FOR_BUILD="\$(CXX)" | 3859 CXX_FOR_BUILD="\$(CXX)" |
4002 GCJ_FOR_BUILD="\$(GCJ)" | 3860 GCJ_FOR_BUILD="\$(GCJ)" |
4003 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | 3861 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
3862 GOC_FOR_BUILD="\$(GOC)" | |
4004 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" | 3863 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4005 LD_FOR_BUILD="\$(LD)" | 3864 LD_FOR_BUILD="\$(LD)" |
4006 NM_FOR_BUILD="\$(NM)" | 3865 NM_FOR_BUILD="\$(NM)" |
4007 RANLIB_FOR_BUILD="\$(RANLIB)" | 3866 RANLIB_FOR_BUILD="\$(RANLIB)" |
4008 WINDRES_FOR_BUILD="\$(WINDRES)" | 3867 WINDRES_FOR_BUILD="\$(WINDRES)" |
5352 if test "${with_mpc+set}" = set; then : | 5211 if test "${with_mpc+set}" = set; then : |
5353 withval=$with_mpc; | 5212 withval=$with_mpc; |
5354 fi | 5213 fi |
5355 | 5214 |
5356 | 5215 |
5357 # Check whether --with-mpc_include was given. | 5216 # Check whether --with-mpc-include was given. |
5358 if test "${with_mpc_include+set}" = set; then : | 5217 if test "${with_mpc_include+set}" = set; then : |
5359 withval=$with_mpc_include; | 5218 withval=$with_mpc_include; |
5360 fi | 5219 fi |
5361 | 5220 |
5362 | 5221 |
5363 # Check whether --with-mpc_lib was given. | 5222 # Check whether --with-mpc-lib was given. |
5364 if test "${with_mpc_lib+set}" = set; then : | 5223 if test "${with_mpc_lib+set}" = set; then : |
5365 withval=$with_mpc_lib; | 5224 withval=$with_mpc_lib; |
5366 fi | 5225 fi |
5367 | 5226 |
5368 | 5227 |
5401 if test "${with_mpfr+set}" = set; then : | 5260 if test "${with_mpfr+set}" = set; then : |
5402 withval=$with_mpfr; | 5261 withval=$with_mpfr; |
5403 fi | 5262 fi |
5404 | 5263 |
5405 | 5264 |
5406 # Check whether --with-mpfr_include was given. | 5265 # Check whether --with-mpfr-include was given. |
5407 if test "${with_mpfr_include+set}" = set; then : | 5266 if test "${with_mpfr_include+set}" = set; then : |
5408 withval=$with_mpfr_include; | 5267 withval=$with_mpfr_include; |
5409 fi | 5268 fi |
5410 | 5269 |
5411 | 5270 |
5412 # Check whether --with-mpfr_lib was given. | 5271 # Check whether --with-mpfr-lib was given. |
5413 if test "${with_mpfr_lib+set}" = set; then : | 5272 if test "${with_mpfr_lib+set}" = set; then : |
5414 withval=$with_mpfr_lib; | 5273 withval=$with_mpfr_lib; |
5415 fi | 5274 fi |
5416 | 5275 |
5417 | 5276 |
5450 if test "${with_gmp+set}" = set; then : | 5309 if test "${with_gmp+set}" = set; then : |
5451 withval=$with_gmp; | 5310 withval=$with_gmp; |
5452 fi | 5311 fi |
5453 | 5312 |
5454 | 5313 |
5455 # Check whether --with-gmp_include was given. | 5314 # Check whether --with-gmp-include was given. |
5456 if test "${with_gmp_include+set}" = set; then : | 5315 if test "${with_gmp_include+set}" = set; then : |
5457 withval=$with_gmp_include; | 5316 withval=$with_gmp_include; |
5458 fi | 5317 fi |
5459 | 5318 |
5460 | 5319 |
5461 # Check whether --with-gmp_lib was given. | 5320 # Check whether --with-gmp-lib was given. |
5462 if test "${with_gmp_lib+set}" = set; then : | 5321 if test "${with_gmp_lib+set}" = set; then : |
5463 withval=$with_gmp_lib; | 5322 withval=$with_gmp_lib; |
5464 fi | 5323 fi |
5465 | 5324 |
5466 | 5325 |
5476 gmplibs="-L$with_gmp_lib $gmplibs" | 5335 gmplibs="-L$with_gmp_lib $gmplibs" |
5477 fi | 5336 fi |
5478 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then | 5337 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
5479 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" | 5338 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
5480 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" | 5339 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
5481 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp' | 5340 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
5482 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" | 5341 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
5483 # Do not test the gmp version. Assume that it is sufficient, since | 5342 # Do not test the gmp version. Assume that it is sufficient, since |
5484 # it is in the source tree, and the library has not been built yet | 5343 # it is in the source tree, and the library has not been built yet |
5485 # but it would be included on the link line in the version check below | 5344 # but it would be included on the link line in the version check below |
5486 # hence making the test fail. | 5345 # hence making the test fail. |
5788 else | 5647 else |
5789 poststage1_ldflags=$withval | 5648 poststage1_ldflags=$withval |
5790 fi | 5649 fi |
5791 else | 5650 else |
5792 poststage1_ldflags= | 5651 poststage1_ldflags= |
5793 # With --enable-build-with-cxx, default to linking libstdc++ and | 5652 # In stages 2 and 3, default to linking libstdc++ and libgcc |
5794 # libgcc statically. But if the user explicitly specified the | 5653 # statically. But if the user explicitly specified the libraries to |
5795 # libraries to use, trust that they are doing what they want. | 5654 # use, trust that they are doing what they want. |
5796 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then | 5655 if test "$poststage1_libs" = ""; then |
5797 poststage1_ldflags="-static-libstdc++ -static-libgcc" | 5656 poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5798 fi | 5657 fi |
5799 fi | 5658 fi |
5800 | 5659 |
5801 | 5660 |
5802 | 5661 |
5803 # Check for PPL | 5662 # Check for PPL |
5804 ppllibs=" -lppl_c -lppl -lgmpxx" | 5663 ppllibs= |
5805 pplinc= | 5664 pplinc= |
5665 pwllib= | |
5806 | 5666 |
5807 | 5667 |
5808 # Check whether --with-ppl was given. | 5668 # Check whether --with-ppl was given. |
5809 if test "${with_ppl+set}" = set; then : | 5669 if test "${with_ppl+set}" = set; then : |
5810 withval=$with_ppl; | 5670 withval=$with_ppl; |
5811 fi | 5671 fi |
5812 | 5672 |
5813 | 5673 |
5814 # Check whether --with-ppl_include was given. | 5674 # Check whether --with-ppl-include was given. |
5815 if test "${with_ppl_include+set}" = set; then : | 5675 if test "${with_ppl_include+set}" = set; then : |
5816 withval=$with_ppl_include; | 5676 withval=$with_ppl_include; |
5817 fi | 5677 fi |
5818 | 5678 |
5819 | 5679 |
5820 # Check whether --with-ppl_lib was given. | 5680 # Check whether --with-ppl-lib was given. |
5821 if test "${with_ppl_lib+set}" = set; then : | 5681 if test "${with_ppl_lib+set}" = set; then : |
5822 withval=$with_ppl_lib; | 5682 withval=$with_ppl_lib; |
5823 fi | 5683 fi |
5824 | 5684 |
5825 | 5685 |
5686 # Check whether --enable-ppl-version-check was given. | |
5687 if test "${enable_ppl_version_check+set}" = set; then : | |
5688 enableval=$enable_ppl_version_check; | |
5689 fi | |
5690 | |
5691 | |
5826 case $with_ppl in | 5692 case $with_ppl in |
5827 no) | 5693 yes | no | "") |
5828 ppllibs= | |
5829 ;; | |
5830 "" | yes) | |
5831 ;; | 5694 ;; |
5832 *) | 5695 *) |
5833 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" | 5696 ppllibs="-L$with_ppl/lib" |
5834 pplinc="-I$with_ppl/include $pplinc" | 5697 pplinc="-I$with_ppl/include $pplinc" |
5698 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then | |
5699 with_ppl=yes | |
5700 else | |
5701 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5702 fi | |
5835 ;; | 5703 ;; |
5836 esac | 5704 esac |
5837 if test "x$with_ppl_include" != x; then | 5705 |
5706 if test x"$with_ppl_include" != x; then | |
5838 pplinc="-I$with_ppl_include $pplinc" | 5707 pplinc="-I$with_ppl_include $pplinc" |
5839 fi | 5708 with_ppl=yes |
5709 fi | |
5710 | |
5840 if test "x$with_ppl_lib" != x; then | 5711 if test "x$with_ppl_lib" != x; then |
5841 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" | 5712 ppllibs="-L$with_ppl_lib" |
5842 fi | 5713 with_ppl=yes |
5843 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | 5714 fi |
5844 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx ' | 5715 |
5716 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5717 if test x"$enable_watchdog" = xyes; then | |
5718 pwllib="-lpwl" | |
5719 fi | |
5720 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
5845 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' | 5721 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5846 enable_ppl_version_check=no | 5722 enable_ppl_version_check=no |
5847 fi | 5723 with_ppl=yes |
5848 | 5724 fi |
5849 # Check whether --enable-ppl-version-check was given. | 5725 |
5850 if test "${enable_ppl_version_check+set}" = set; then : | 5726 if test "x$with_ppl" != xno; then |
5851 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval | 5727 if test "x$pwllib" = x; then |
5852 else | 5728 saved_LDFLAGS="$LDFLAGS" |
5853 ENABLE_PPL_CHECK=yes | 5729 LDFLAGS="$LDFLAGS $ppllibs" |
5854 fi | 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5855 | 5731 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } |
5856 | 5732 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : |
5857 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then | 5733 $as_echo_n "(cached) " >&6 |
5858 saved_CFLAGS="$CFLAGS" | 5734 else |
5859 CFLAGS="$CFLAGS $pplinc $gmpinc" | 5735 ac_check_lib_save_LIBS=$LIBS |
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5 | 5736 LIBS="-lpwl $LIBS" |
5861 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; } | 5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5738 /* end confdefs.h. */ |
5739 | |
5740 /* Override any GCC internal prototype to avoid an error. | |
5741 Use char because int might match the return type of a GCC | |
5742 builtin and then its argument prototype would still apply. */ | |
5743 #ifdef __cplusplus | |
5744 extern "C" | |
5745 #endif | |
5746 char PWL_handle_timeout (); | |
5747 int | |
5748 main () | |
5749 { | |
5750 return PWL_handle_timeout (); | |
5751 ; | |
5752 return 0; | |
5753 } | |
5754 _ACEOF | |
5755 if ac_fn_c_try_link "$LINENO"; then : | |
5756 ac_cv_lib_pwl_PWL_handle_timeout=yes | |
5757 else | |
5758 ac_cv_lib_pwl_PWL_handle_timeout=no | |
5759 fi | |
5760 rm -f core conftest.err conftest.$ac_objext \ | |
5761 conftest$ac_exeext conftest.$ac_ext | |
5762 LIBS=$ac_check_lib_save_LIBS | |
5763 fi | |
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5765 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5766 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5767 pwllib="-lpwl" | |
5768 fi | |
5769 | |
5770 LDFLAGS="$saved_LDFLAGS" | |
5771 fi | |
5772 | |
5773 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" | |
5774 | |
5775 if test "$enable_ppl_version_check" != no; then | |
5776 saved_CFLAGS="$CFLAGS" | |
5777 CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5779 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5863 /* end confdefs.h. */ | 5781 /* end confdefs.h. */ |
5864 #include "ppl_c.h" | 5782 #include "ppl_c.h" |
5865 int | 5783 int |
5866 main () | 5784 main () |
5867 { | 5785 { |
5868 | 5786 |
5869 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10 | 5787 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5870 choke me | 5788 choke me |
5871 #endif | 5789 #endif |
5872 | 5790 |
5873 ; | 5791 ; |
5874 return 0; | 5792 return 0; |
5875 } | 5793 } |
5876 _ACEOF | 5794 _ACEOF |
5880 else | 5798 else |
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5882 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no | 5800 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
5883 fi | 5801 fi |
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5885 CFLAGS="$saved_CFLAGS" | 5803 CFLAGS="$saved_CFLAGS" |
5804 fi | |
5886 fi | 5805 fi |
5887 | 5806 |
5888 # Flags needed for PPL | 5807 # Flags needed for PPL |
5889 | 5808 |
5890 | 5809 |
5891 | 5810 |
5892 | 5811 |
5893 # Check for CLOOG | 5812 # Check for CLOOG |
5894 clooglibs=" -lcloog " | 5813 |
5895 clooginc=" -DCLOOG_PPL_BACKEND " | |
5896 | 5814 |
5897 | 5815 |
5898 # Check whether --with-cloog was given. | 5816 # Check whether --with-cloog was given. |
5899 if test "${with_cloog+set}" = set; then : | 5817 if test "${with_cloog+set}" = set; then : |
5900 withval=$with_cloog; | 5818 withval=$with_cloog; |
5901 fi | 5819 fi |
5902 | 5820 |
5903 | 5821 |
5904 # Check whether --with-cloog_include was given. | 5822 # Check whether --with-cloog-include was given. |
5905 if test "${with_cloog_include+set}" = set; then : | 5823 if test "${with_cloog_include+set}" = set; then : |
5906 withval=$with_cloog_include; | 5824 withval=$with_cloog_include; |
5907 fi | 5825 fi |
5908 | 5826 |
5909 | 5827 |
5910 # Check whether --with-cloog_lib was given. | 5828 # Check whether --with-cloog-lib was given. |
5911 if test "${with_cloog_lib+set}" = set; then : | 5829 if test "${with_cloog_lib+set}" = set; then : |
5912 withval=$with_cloog_lib; | 5830 withval=$with_cloog_lib; |
5913 fi | 5831 fi |
5914 | 5832 |
5915 | 5833 |
5916 if test "x$with_ppl" = "xno"; then | 5834 # Check whether --enable-cloog-backend was given. |
5917 with_cloog=no | 5835 if test "${enable_cloog_backend+set}" = set; then : |
5918 fi | 5836 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then |
5919 | 5837 cloog_backend=isl |
5920 case $with_cloog in | 5838 elif test "x${enableval}" = "xppl"; then |
5921 no) | 5839 cloog_backend=ppl |
5922 clooglibs= | 5840 else |
5923 clooginc= | 5841 cloog_backend=ppl-legacy |
5924 ;; | 5842 fi |
5925 "" | yes) | 5843 else |
5926 ;; | 5844 cloog_backend=ppl-legacy |
5927 *) | 5845 fi |
5928 clooglibs="-L$with_cloog/lib -lcloog" | 5846 |
5929 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " | 5847 # Check whether --enable-cloog-version-check was given. |
5930 ;; | |
5931 esac | |
5932 if test "x$with_cloog_include" != x; then | |
5933 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND " | |
5934 fi | |
5935 if test "x$with_cloog_lib" != x; then | |
5936 clooglibs="-L$with_cloog_lib -lcloog" | |
5937 fi | |
5938 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then | |
5939 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog ' | |
5940 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' | |
5941 enable_cloog_version_check=no | |
5942 fi | |
5943 | |
5944 # Check whether --enable-cloog-version-check was given. | |
5945 if test "${enable_cloog_version_check+set}" = set; then : | 5848 if test "${enable_cloog_version_check+set}" = set; then : |
5946 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | 5849 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval |
5947 else | 5850 else |
5948 ENABLE_CLOOG_CHECK=yes | 5851 ENABLE_CLOOG_CHECK=yes |
5949 fi | 5852 fi |
5950 | 5853 |
5951 | 5854 |
5952 if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then | 5855 # Initialize clooglibs and clooginc. |
5953 saved_CFLAGS="$CFLAGS" | 5856 case $with_cloog in |
5954 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" | 5857 no) |
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | 5858 clooglibs= |
5956 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } | 5859 clooginc= |
5860 ;; | |
5861 "" | yes) | |
5862 ;; | |
5863 *) | |
5864 clooglibs="-L$with_cloog/lib" | |
5865 clooginc="-I$with_cloog/include" | |
5866 ;; | |
5867 esac | |
5868 if test "x${with_cloog_include}" != x ; then | |
5869 clooginc="-I$with_cloog_include" | |
5870 fi | |
5871 if test "x${with_cloog_lib}" != x; then | |
5872 clooglibs="-L$with_cloog_lib" | |
5873 fi | |
5874 | |
5875 | |
5876 | |
5877 | |
5878 | |
5879 if test "x$with_ppl" = "xno"; then | |
5880 | |
5881 | |
5882 | |
5883 if test "x${with_cloog}" = xno; then | |
5884 graphite_requested=no | |
5885 elif test "x${with_cloog}" != x \ | |
5886 || test "x${with_cloog_include}" != x \ | |
5887 || test "x${with_cloog_lib}" != x ; then | |
5888 graphite_requested=yes | |
5889 else | |
5890 graphite_requested=no | |
5891 fi | |
5892 | |
5893 | |
5894 if test "${graphite_requested}" = yes; then | |
5895 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5896 fi | |
5897 with_cloog=no | |
5898 fi | |
5899 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ | |
5900 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5901 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5902 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5903 fi | |
5904 if test "x$with_cloog" != "xno"; then | |
5905 | |
5906 | |
5907 | |
5908 _cloog_saved_CFLAGS=$CFLAGS | |
5909 _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5910 _cloog_saved_LDFLAGS=$LDFLAGS | |
5911 _cloog_saved_LIBS=$LIBS | |
5912 | |
5913 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5914 | |
5915 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5916 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5917 LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5918 | |
5919 case $cloog_backend in | |
5920 "ppl-legacy") | |
5921 CFLAGS="${CFLAGS} ${pplinc}" | |
5922 LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5924 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5925 if test "${gcc_cv_cloog_type+set}" = set; then : | |
5926 $as_echo_n "(cached) " >&6 | |
5927 else | |
5928 LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5930 /* end confdefs.h. */ | |
5931 #include "cloog/cloog.h" | |
5932 int | |
5933 main () | |
5934 { | |
5935 #ifndef CLOOG_PPL_BACKEND | |
5936 choke me | |
5937 #endif | |
5938 ; | |
5939 return 0; | |
5940 } | |
5941 _ACEOF | |
5942 if ac_fn_c_try_link "$LINENO"; then : | |
5943 gcc_cv_cloog_type="PPL Legacy" | |
5944 else | |
5945 gcc_cv_cloog_type=no | |
5946 fi | |
5947 rm -f core conftest.err conftest.$ac_objext \ | |
5948 conftest$ac_exeext conftest.$ac_ext | |
5949 fi | |
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5951 $as_echo "$gcc_cv_cloog_type" >&6; } | |
5952 ;; | |
5953 "isl") | |
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5955 $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5956 if test "${gcc_cv_cloog_type+set}" = set; then : | |
5957 $as_echo_n "(cached) " >&6 | |
5958 else | |
5959 LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5961 /* end confdefs.h. */ | |
5962 #include "cloog/cloog.h" | |
5963 int | |
5964 main () | |
5965 { | |
5966 cloog_version () | |
5967 ; | |
5968 return 0; | |
5969 } | |
5970 _ACEOF | |
5971 if ac_fn_c_try_link "$LINENO"; then : | |
5972 gcc_cv_cloog_type="ISL" | |
5973 else | |
5974 gcc_cv_cloog_type=no | |
5975 fi | |
5976 rm -f core conftest.err conftest.$ac_objext \ | |
5977 conftest$ac_exeext conftest.$ac_ext | |
5978 fi | |
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5980 $as_echo "$gcc_cv_cloog_type" >&6; } | |
5981 ;; | |
5982 "ppl") | |
5983 CFLAGS="${CFLAGS} ${pplinc}" | |
5984 LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5986 $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5987 if test "${gcc_cv_cloog_type+set}" = set; then : | |
5988 $as_echo_n "(cached) " >&6 | |
5989 else | |
5990 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" | |
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5992 /* end confdefs.h. */ | |
5993 #include "cloog/cloog.h" | |
5994 #include "cloog/ppl/cloog.h" | |
5995 int | |
5996 main () | |
5997 { | |
5998 cloog_version () | |
5999 ; | |
6000 return 0; | |
6001 } | |
6002 _ACEOF | |
6003 if ac_fn_c_try_link "$LINENO"; then : | |
6004 gcc_cv_cloog_type="PPL" | |
6005 else | |
6006 gcc_cv_cloog_type=no | |
6007 fi | |
6008 rm -f core conftest.err conftest.$ac_objext \ | |
6009 conftest$ac_exeext conftest.$ac_ext | |
6010 fi | |
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
6012 $as_echo "$gcc_cv_cloog_type" >&6; } | |
6013 ;; | |
6014 *) | |
6015 gcc_cv_cloog_type="" | |
6016 esac | |
6017 | |
6018 case $gcc_cv_cloog_type in | |
6019 "PPL Legacy") | |
6020 clooginc="${clooginc}" | |
6021 clooglibs="${clooglibs} -lcloog" | |
6022 cloog_org=no | |
6023 ;; | |
6024 "ISL") | |
6025 clooginc="${clooginc} ${_cloogorginc}" | |
6026 clooglibs="${clooglibs} -lcloog-isl -lisl" | |
6027 cloog_org=yes | |
6028 ;; | |
6029 "PPL") | |
6030 clooginc="${clooginc} ${_cloogorginc}" | |
6031 clooglibs="${clooglibs} -lcloog-ppl" | |
6032 cloog_org=yes | |
6033 ;; | |
6034 *) | |
6035 clooglibs= | |
6036 clooginc= | |
6037 cloog_org= | |
6038 ;; | |
6039 esac | |
6040 | |
6041 LIBS=$_cloog_saved_LIBS | |
6042 CFLAGS=$_cloog_saved_CFLAGS | |
6043 CPPFLAGS=$_cloog_saved_CPPFLAGS | |
6044 LDFLAGS=$_cloog_saved_LDFLAGS | |
6045 | |
6046 | |
6047 | |
6048 | |
6049 | |
6050 if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6051 _cloog_saved_CFLAGS=$CFLAGS | |
6052 _cloog_saved_LDFLAGS=$LDFLAGS | |
6053 | |
6054 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
6055 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
6056 | |
6057 if test "${cloog_org}" = yes ; then | |
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 | |
6059 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
6060 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : | |
6061 $as_echo_n "(cached) " >&6 | |
6062 else | |
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5958 /* end confdefs.h. */ | 6064 /* end confdefs.h. */ |
5959 #include "cloog/cloog.h" | 6065 #include "cloog/cloog.h" |
5960 int | 6066 int |
5961 main () | 6067 main () |
5962 { | 6068 { |
5963 | 6069 #if CLOOG_VERSION_MAJOR != 0 \ |
5964 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5 | 6070 || CLOOG_VERSION_MINOR != 16 \ |
5965 choke me | 6071 || CLOOG_VERSION_REVISION < 1 |
5966 #endif | 6072 choke me |
5967 | 6073 #endif |
6074 ; | |
6075 return 0; | |
6076 } | |
6077 _ACEOF | |
6078 if ac_fn_c_try_compile "$LINENO"; then : | |
6079 gcc_cv_cloog_ct_0_14_0=yes | |
6080 else | |
6081 gcc_cv_cloog_ct_0_14_0=no | |
6082 fi | |
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6084 fi | |
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
6086 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
6087 elif test "${cloog_org}" = no ; then | |
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
6089 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } | |
6090 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : | |
6091 $as_echo_n "(cached) " >&6 | |
6092 else | |
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6094 /* end confdefs.h. */ | |
6095 #include "cloog/cloog.h" | |
6096 int | |
6097 main () | |
6098 { | |
6099 #if CLOOG_VERSION_MAJOR != 0 \ | |
6100 || CLOOG_VERSION_MINOR != 15 \ | |
6101 || CLOOG_VERSION_REVISION < 5 | |
6102 choke me | |
6103 #endif | |
5968 ; | 6104 ; |
5969 return 0; | 6105 return 0; |
5970 } | 6106 } |
5971 _ACEOF | 6107 _ACEOF |
5972 if ac_fn_c_try_compile "$LINENO"; then : | 6108 if ac_fn_c_try_compile "$LINENO"; then : |
5974 /* end confdefs.h. */ | 6110 /* end confdefs.h. */ |
5975 #include "cloog/cloog.h" | 6111 #include "cloog/cloog.h" |
5976 int | 6112 int |
5977 main () | 6113 main () |
5978 { | 6114 { |
5979 | 6115 #if CLOOG_VERSION_MAJOR != 0 \ |
5980 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9 | 6116 || CLOOG_VERSION_MINOR != 15 \ |
5981 choke me | 6117 || CLOOG_VERSION_REVISION < 9 |
5982 #endif | 6118 choke me |
5983 | 6119 #endif |
5984 ; | 6120 ; |
5985 return 0; | 6121 return 0; |
5986 } | 6122 } |
5987 _ACEOF | 6123 _ACEOF |
5988 if ac_fn_c_try_compile "$LINENO"; then : | 6124 if ac_fn_c_try_compile "$LINENO"; then : |
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 6125 gcc_cv_cloog_ct_0_15_5=yes |
5990 $as_echo "yes" >&6; } | 6126 else |
5991 else | 6127 gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5993 $as_echo "buggy but acceptable" >&6; } | |
5994 fi | 6128 fi |
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5996 else | 6130 else |
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 6131 gcc_cv_cloog_ct_0_15_5=no |
5998 $as_echo "no" >&6; }; clooglibs= ; clooginc= | |
5999 fi | 6132 fi |
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6001 CFLAGS="$saved_CFLAGS" | 6134 fi |
6002 fi | 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
6003 | 6136 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } |
6004 # Flags needed for CLOOG | 6137 fi |
6005 | 6138 |
6006 | 6139 CFLAGS=$_cloog_saved_CFLAGS |
6140 LDFLAGS=$_cloog_saved_LDFLAGS | |
6141 fi | |
6142 | |
6143 | |
6144 | |
6145 | |
6146 | |
6147 | |
6148 | |
6149 if test "x${with_cloog}" = xno; then | |
6150 graphite_requested=no | |
6151 elif test "x${with_cloog}" != x \ | |
6152 || test "x${with_cloog_include}" != x \ | |
6153 || test "x${with_cloog_lib}" != x ; then | |
6154 graphite_requested=yes | |
6155 else | |
6156 graphite_requested=no | |
6157 fi | |
6158 | |
6159 | |
6160 | |
6161 if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6162 || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6163 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6164 clooglibs= | |
6165 clooginc= | |
6166 fi | |
6167 | |
6168 if test "${graphite_requested}" = yes \ | |
6169 && test "x${clooglibs}" = x \ | |
6170 && test "x${clooginc}" = x ; then | |
6171 | |
6172 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 | |
6173 fi | |
6174 | |
6175 | |
6176 fi | |
6007 | 6177 |
6008 # Check for LTO support. | 6178 # Check for LTO support. |
6009 # Check whether --enable-lto was given. | 6179 # Check whether --enable-lto was given. |
6010 if test "${enable_lto+set}" = set; then : | 6180 if test "${enable_lto+set}" = set; then : |
6011 enableval=$enable_lto; enable_lto=$enableval | 6181 enableval=$enable_lto; enable_lto=$enableval |
6012 else | 6182 else |
6013 enable_lto=yes; default_enable_lto=yes | 6183 enable_lto=yes; default_enable_lto=yes |
6014 fi | 6184 fi |
6015 | |
6016 | |
6017 | |
6018 ac_ext=c | |
6019 ac_cpp='$CPP $CPPFLAGS' | |
6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6024 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6025 # On Suns, sometimes $CPP names a directory. | |
6026 if test -n "$CPP" && test -d "$CPP"; then | |
6027 CPP= | |
6028 fi | |
6029 if test -z "$CPP"; then | |
6030 if test "${ac_cv_prog_CPP+set}" = set; then : | |
6031 $as_echo_n "(cached) " >&6 | |
6032 else | |
6033 # Double quotes because CPP needs to be expanded | |
6034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6035 do | |
6036 ac_preproc_ok=false | |
6037 for ac_c_preproc_warn_flag in '' yes | |
6038 do | |
6039 # Use a header file that comes with gcc, so configuring glibc | |
6040 # with a fresh cross-compiler works. | |
6041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6042 # <limits.h> exists even on freestanding compilers. | |
6043 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6044 # not just through cpp. "Syntax error" is here to catch this case. | |
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6046 /* end confdefs.h. */ | |
6047 #ifdef __STDC__ | |
6048 # include <limits.h> | |
6049 #else | |
6050 # include <assert.h> | |
6051 #endif | |
6052 Syntax error | |
6053 _ACEOF | |
6054 if ac_fn_c_try_cpp "$LINENO"; then : | |
6055 | |
6056 else | |
6057 # Broken: fails on valid input. | |
6058 continue | |
6059 fi | |
6060 rm -f conftest.err conftest.$ac_ext | |
6061 | |
6062 # OK, works on sane cases. Now check whether nonexistent headers | |
6063 # can be detected and how. | |
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6065 /* end confdefs.h. */ | |
6066 #include <ac_nonexistent.h> | |
6067 _ACEOF | |
6068 if ac_fn_c_try_cpp "$LINENO"; then : | |
6069 # Broken: success on invalid input. | |
6070 continue | |
6071 else | |
6072 # Passes both tests. | |
6073 ac_preproc_ok=: | |
6074 break | |
6075 fi | |
6076 rm -f conftest.err conftest.$ac_ext | |
6077 | |
6078 done | |
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6080 rm -f conftest.err conftest.$ac_ext | |
6081 if $ac_preproc_ok; then : | |
6082 break | |
6083 fi | |
6084 | |
6085 done | |
6086 ac_cv_prog_CPP=$CPP | |
6087 | |
6088 fi | |
6089 CPP=$ac_cv_prog_CPP | |
6090 else | |
6091 ac_cv_prog_CPP=$CPP | |
6092 fi | |
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6094 $as_echo "$CPP" >&6; } | |
6095 ac_preproc_ok=false | |
6096 for ac_c_preproc_warn_flag in '' yes | |
6097 do | |
6098 # Use a header file that comes with gcc, so configuring glibc | |
6099 # with a fresh cross-compiler works. | |
6100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6101 # <limits.h> exists even on freestanding compilers. | |
6102 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6103 # not just through cpp. "Syntax error" is here to catch this case. | |
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6105 /* end confdefs.h. */ | |
6106 #ifdef __STDC__ | |
6107 # include <limits.h> | |
6108 #else | |
6109 # include <assert.h> | |
6110 #endif | |
6111 Syntax error | |
6112 _ACEOF | |
6113 if ac_fn_c_try_cpp "$LINENO"; then : | |
6114 | |
6115 else | |
6116 # Broken: fails on valid input. | |
6117 continue | |
6118 fi | |
6119 rm -f conftest.err conftest.$ac_ext | |
6120 | |
6121 # OK, works on sane cases. Now check whether nonexistent headers | |
6122 # can be detected and how. | |
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6124 /* end confdefs.h. */ | |
6125 #include <ac_nonexistent.h> | |
6126 _ACEOF | |
6127 if ac_fn_c_try_cpp "$LINENO"; then : | |
6128 # Broken: success on invalid input. | |
6129 continue | |
6130 else | |
6131 # Passes both tests. | |
6132 ac_preproc_ok=: | |
6133 break | |
6134 fi | |
6135 rm -f conftest.err conftest.$ac_ext | |
6136 | |
6137 done | |
6138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6139 rm -f conftest.err conftest.$ac_ext | |
6140 if $ac_preproc_ok; then : | |
6141 | |
6142 else | |
6143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6145 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6146 See \`config.log' for more details." "$LINENO" 5; } | |
6147 fi | |
6148 | |
6149 ac_ext=c | |
6150 ac_cpp='$CPP $CPPFLAGS' | |
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6154 | |
6155 | |
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
6157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
6158 if test "${ac_cv_path_GREP+set}" = set; then : | |
6159 $as_echo_n "(cached) " >&6 | |
6160 else | |
6161 if test -z "$GREP"; then | |
6162 ac_path_GREP_found=false | |
6163 # Loop through the user's path and test for each of PROGNAME-LIST | |
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6166 do | |
6167 IFS=$as_save_IFS | |
6168 test -z "$as_dir" && as_dir=. | |
6169 for ac_prog in grep ggrep; do | |
6170 for ac_exec_ext in '' $ac_executable_extensions; do | |
6171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
6172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
6173 # Check for GNU ac_path_GREP and select it if it is found. | |
6174 # Check for GNU $ac_path_GREP | |
6175 case `"$ac_path_GREP" --version 2>&1` in | |
6176 *GNU*) | |
6177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
6178 *) | |
6179 ac_count=0 | |
6180 $as_echo_n 0123456789 >"conftest.in" | |
6181 while : | |
6182 do | |
6183 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6184 mv "conftest.tmp" "conftest.in" | |
6185 cp "conftest.in" "conftest.nl" | |
6186 $as_echo 'GREP' >> "conftest.nl" | |
6187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6189 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6190 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
6191 # Best one so far, save it but keep looking for a better one | |
6192 ac_cv_path_GREP="$ac_path_GREP" | |
6193 ac_path_GREP_max=$ac_count | |
6194 fi | |
6195 # 10*(2^10) chars as input seems more than enough | |
6196 test $ac_count -gt 10 && break | |
6197 done | |
6198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6199 esac | |
6200 | |
6201 $ac_path_GREP_found && break 3 | |
6202 done | |
6203 done | |
6204 done | |
6205 IFS=$as_save_IFS | |
6206 if test -z "$ac_cv_path_GREP"; then | |
6207 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6208 fi | |
6209 else | |
6210 ac_cv_path_GREP=$GREP | |
6211 fi | |
6212 | |
6213 fi | |
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
6215 $as_echo "$ac_cv_path_GREP" >&6; } | |
6216 GREP="$ac_cv_path_GREP" | |
6217 | |
6218 | |
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
6220 $as_echo_n "checking for egrep... " >&6; } | |
6221 if test "${ac_cv_path_EGREP+set}" = set; then : | |
6222 $as_echo_n "(cached) " >&6 | |
6223 else | |
6224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6225 then ac_cv_path_EGREP="$GREP -E" | |
6226 else | |
6227 if test -z "$EGREP"; then | |
6228 ac_path_EGREP_found=false | |
6229 # Loop through the user's path and test for each of PROGNAME-LIST | |
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6232 do | |
6233 IFS=$as_save_IFS | |
6234 test -z "$as_dir" && as_dir=. | |
6235 for ac_prog in egrep; do | |
6236 for ac_exec_ext in '' $ac_executable_extensions; do | |
6237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
6239 # Check for GNU ac_path_EGREP and select it if it is found. | |
6240 # Check for GNU $ac_path_EGREP | |
6241 case `"$ac_path_EGREP" --version 2>&1` in | |
6242 *GNU*) | |
6243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6244 *) | |
6245 ac_count=0 | |
6246 $as_echo_n 0123456789 >"conftest.in" | |
6247 while : | |
6248 do | |
6249 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6250 mv "conftest.tmp" "conftest.in" | |
6251 cp "conftest.in" "conftest.nl" | |
6252 $as_echo 'EGREP' >> "conftest.nl" | |
6253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6255 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6257 # Best one so far, save it but keep looking for a better one | |
6258 ac_cv_path_EGREP="$ac_path_EGREP" | |
6259 ac_path_EGREP_max=$ac_count | |
6260 fi | |
6261 # 10*(2^10) chars as input seems more than enough | |
6262 test $ac_count -gt 10 && break | |
6263 done | |
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6265 esac | |
6266 | |
6267 $ac_path_EGREP_found && break 3 | |
6268 done | |
6269 done | |
6270 done | |
6271 IFS=$as_save_IFS | |
6272 if test -z "$ac_cv_path_EGREP"; then | |
6273 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6274 fi | |
6275 else | |
6276 ac_cv_path_EGREP=$EGREP | |
6277 fi | |
6278 | |
6279 fi | |
6280 fi | |
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
6282 $as_echo "$ac_cv_path_EGREP" >&6; } | |
6283 EGREP="$ac_cv_path_EGREP" | |
6284 | |
6285 | |
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6287 $as_echo_n "checking for ANSI C header files... " >&6; } | |
6288 if test "${ac_cv_header_stdc+set}" = set; then : | |
6289 $as_echo_n "(cached) " >&6 | |
6290 else | |
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6292 /* end confdefs.h. */ | |
6293 #include <stdlib.h> | |
6294 #include <stdarg.h> | |
6295 #include <string.h> | |
6296 #include <float.h> | |
6297 | |
6298 int | |
6299 main () | |
6300 { | |
6301 | |
6302 ; | |
6303 return 0; | |
6304 } | |
6305 _ACEOF | |
6306 if ac_fn_c_try_compile "$LINENO"; then : | |
6307 ac_cv_header_stdc=yes | |
6308 else | |
6309 ac_cv_header_stdc=no | |
6310 fi | |
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6312 | |
6313 if test $ac_cv_header_stdc = yes; then | |
6314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6316 /* end confdefs.h. */ | |
6317 #include <string.h> | |
6318 | |
6319 _ACEOF | |
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6321 $EGREP "memchr" >/dev/null 2>&1; then : | |
6322 | |
6323 else | |
6324 ac_cv_header_stdc=no | |
6325 fi | |
6326 rm -f conftest* | |
6327 | |
6328 fi | |
6329 | |
6330 if test $ac_cv_header_stdc = yes; then | |
6331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6333 /* end confdefs.h. */ | |
6334 #include <stdlib.h> | |
6335 | |
6336 _ACEOF | |
6337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6338 $EGREP "free" >/dev/null 2>&1; then : | |
6339 | |
6340 else | |
6341 ac_cv_header_stdc=no | |
6342 fi | |
6343 rm -f conftest* | |
6344 | |
6345 fi | |
6346 | |
6347 if test $ac_cv_header_stdc = yes; then | |
6348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6349 if test "$cross_compiling" = yes; then : | |
6350 : | |
6351 else | |
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6353 /* end confdefs.h. */ | |
6354 #include <ctype.h> | |
6355 #include <stdlib.h> | |
6356 #if ((' ' & 0x0FF) == 0x020) | |
6357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6359 #else | |
6360 # define ISLOWER(c) \ | |
6361 (('a' <= (c) && (c) <= 'i') \ | |
6362 || ('j' <= (c) && (c) <= 'r') \ | |
6363 || ('s' <= (c) && (c) <= 'z')) | |
6364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6365 #endif | |
6366 | |
6367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6368 int | |
6369 main () | |
6370 { | |
6371 int i; | |
6372 for (i = 0; i < 256; i++) | |
6373 if (XOR (islower (i), ISLOWER (i)) | |
6374 || toupper (i) != TOUPPER (i)) | |
6375 return 2; | |
6376 return 0; | |
6377 } | |
6378 _ACEOF | |
6379 if ac_fn_c_try_run "$LINENO"; then : | |
6380 | |
6381 else | |
6382 ac_cv_header_stdc=no | |
6383 fi | |
6384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6385 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6386 fi | |
6387 | |
6388 fi | |
6389 fi | |
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6391 $as_echo "$ac_cv_header_stdc" >&6; } | |
6392 if test $ac_cv_header_stdc = yes; then | |
6393 | |
6394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6395 | |
6396 fi | |
6397 | |
6398 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6400 inttypes.h stdint.h unistd.h | |
6401 do : | |
6402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6404 " | |
6405 eval as_val=\$$as_ac_Header | |
6406 if test "x$as_val" = x""yes; then : | |
6407 cat >>confdefs.h <<_ACEOF | |
6408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6409 _ACEOF | |
6410 | |
6411 fi | |
6412 | |
6413 done | |
6414 | 6185 |
6415 | 6186 |
6416 | 6187 |
6417 | 6188 |
6418 | 6189 |
6427 target_elf=yes | 6198 target_elf=yes |
6428 ;; | 6199 ;; |
6429 esac | 6200 esac |
6430 | 6201 |
6431 if test $target_elf = yes; then : | 6202 if test $target_elf = yes; then : |
6432 if test x"$enable_lto" = x"yes" ; then | 6203 # ELF platforms build the lto-plugin always. |
6433 # Make sure that libelf.h and gelf.h are available. | 6204 build_lto_plugin=yes |
6434 | 6205 |
6435 # Check whether --with-libelf was given. | |
6436 if test "${with_libelf+set}" = set; then : | |
6437 withval=$with_libelf; | |
6438 fi | |
6439 | |
6440 | |
6441 | |
6442 # Check whether --with-libelf_include was given. | |
6443 if test "${with_libelf_include+set}" = set; then : | |
6444 withval=$with_libelf_include; | |
6445 fi | |
6446 | |
6447 | |
6448 | |
6449 # Check whether --with-libelf_lib was given. | |
6450 if test "${with_libelf_lib+set}" = set; then : | |
6451 withval=$with_libelf_lib; | |
6452 fi | |
6453 | |
6454 | |
6455 saved_CFLAGS="$CFLAGS" | |
6456 saved_CPPFLAGS="$CPPFLAGS" | |
6457 saved_LIBS="$LIBS" | |
6458 | |
6459 case $with_libelf in | |
6460 "") | |
6461 libelflibs="-lelf" | |
6462 libelfinc="-I/usr/include/libelf" | |
6463 ;; | |
6464 *) | |
6465 libelflibs="-L$with_libelf/lib -lelf" | |
6466 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf" | |
6467 LIBS="$libelflibs $LIBS" | |
6468 ;; | |
6469 esac | |
6470 | |
6471 if test "x$with_libelf_include" != x; then | |
6472 libelfinc="-I$with_libelf_include" | |
6473 fi | |
6474 | |
6475 if test "x$with_libelf_lib" != x; then | |
6476 libelflibs="-L$with_libelf_lib -lelf" | |
6477 LIBS="$libelflibs $LIBS" | |
6478 fi | |
6479 | |
6480 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \ | |
6481 && test -d ${srcdir}/libelf; then | |
6482 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf ' | |
6483 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib' | |
6484 LIBS="$libelflibs $LIBS" | |
6485 | |
6486 else | |
6487 | |
6488 CFLAGS="$CFLAGS $libelfinc" | |
6489 CPPFLAGS="$CPPFLAGS $libelfinc" | |
6490 LIBS="$LIBS $libelflibs" | |
6491 | |
6492 for ac_header in libelf.h | |
6493 do : | |
6494 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" | |
6495 if test "x$ac_cv_header_libelf_h" = x""yes; then : | |
6496 cat >>confdefs.h <<_ACEOF | |
6497 #define HAVE_LIBELF_H 1 | |
6498 _ACEOF | |
6499 have_libelf_h=yes | |
6500 fi | |
6501 | |
6502 done | |
6503 | |
6504 for ac_header in gelf.h | |
6505 do : | |
6506 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default" | |
6507 if test "x$ac_cv_header_gelf_h" = x""yes; then : | |
6508 cat >>confdefs.h <<_ACEOF | |
6509 #define HAVE_GELF_H 1 | |
6510 _ACEOF | |
6511 have_gelf_h=yes | |
6512 fi | |
6513 | |
6514 done | |
6515 | |
6516 | |
6517 for ac_header in libelf/libelf.h | |
6518 do : | |
6519 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default" | |
6520 if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then : | |
6521 cat >>confdefs.h <<_ACEOF | |
6522 #define HAVE_LIBELF_LIBELF_H 1 | |
6523 _ACEOF | |
6524 have_libelf_libelf_h=yes | |
6525 fi | |
6526 | |
6527 done | |
6528 | |
6529 for ac_header in libelf/gelf.h | |
6530 do : | |
6531 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default" | |
6532 if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then : | |
6533 cat >>confdefs.h <<_ACEOF | |
6534 #define HAVE_LIBELF_GELF_H 1 | |
6535 _ACEOF | |
6536 have_libelf_gelf_h=yes | |
6537 fi | |
6538 | |
6539 done | |
6540 | |
6541 | |
6542 # If we couldn't find libelf.h and the user forced it, emit an error. | |
6543 if test x"$have_libelf_h" != x"yes" \ | |
6544 && test x"$have_libelf_libelf_h" != x"yes" ; then | |
6545 if test x"$default_enable_lto" != x"yes" ; then | |
6546 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5 | |
6547 else | |
6548 enable_lto=no | |
6549 libelflibs= | |
6550 libelfinc= | |
6551 fi | |
6552 fi | |
6553 | |
6554 # If we couldn't find gelf.h and the user forced it, emit an error. | |
6555 if test x"$have_gelf_h" != x"yes" \ | |
6556 && test x"$have_libelf_gelf_h" != x"yes" ; then | |
6557 if test x"$default_enable_lto" != x"yes" ; then | |
6558 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5 | |
6559 else | |
6560 enable_lto=no | |
6561 libelflibs= | |
6562 libelfinc= | |
6563 fi | |
6564 fi | |
6565 | |
6566 # Check that the detected libelf has the functions we need. We cannot | |
6567 # rely on just detecting the headers since they do not include | |
6568 # versioning information. Add functions, if needed. | |
6569 if test x"$enable_lto" = x"yes" ; then | |
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5 | |
6571 $as_echo_n "checking for the correct version of libelf... " >&6; } | |
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6573 /* end confdefs.h. */ | |
6574 #include <libelf.h> | |
6575 int | |
6576 main () | |
6577 { | |
6578 | |
6579 elf_errmsg (0); | |
6580 elf_getscn (0, 0); | |
6581 elf_nextscn (0, 0); | |
6582 elf_strptr (0, 0, 0); | |
6583 elf_getident (0, 0); | |
6584 elf_begin (0, 0, 0); | |
6585 elf_ndxscn (0); | |
6586 elf_end (0); | |
6587 | |
6588 ; | |
6589 return 0; | |
6590 } | |
6591 _ACEOF | |
6592 if ac_fn_c_try_link "$LINENO"; then : | |
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6594 $as_echo "yes" >&6; }; | |
6595 else | |
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6597 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc= | |
6598 | |
6599 fi | |
6600 rm -f core conftest.err conftest.$ac_objext \ | |
6601 conftest$ac_exeext conftest.$ac_ext | |
6602 | |
6603 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor | |
6604 # is determined in gcc/configure.ac. | |
6605 if test x"$enable_lto" = x"yes" ; then | |
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5 | |
6607 $as_echo_n "checking for elf_getshdrstrndx... " >&6; } | |
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6609 /* end confdefs.h. */ | |
6610 #include <libelf.h> | |
6611 int | |
6612 main () | |
6613 { | |
6614 | |
6615 elf_getshdrstrndx (0, 0); | |
6616 | |
6617 ; | |
6618 return 0; | |
6619 } | |
6620 _ACEOF | |
6621 if ac_fn_c_try_link "$LINENO"; then : | |
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6623 $as_echo "yes" >&6; }; | |
6624 else | |
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6626 $as_echo "no" >&6; }; | |
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5 | |
6628 $as_echo_n "checking for elf_getshstrndx... " >&6; } | |
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6630 /* end confdefs.h. */ | |
6631 #include <libelf.h> | |
6632 int | |
6633 main () | |
6634 { | |
6635 | |
6636 elf_getshstrndx (0, 0); | |
6637 | |
6638 ; | |
6639 return 0; | |
6640 } | |
6641 _ACEOF | |
6642 if ac_fn_c_try_link "$LINENO"; then : | |
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6644 $as_echo "yes" >&6; }; | |
6645 else | |
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6647 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc= | |
6648 | |
6649 fi | |
6650 rm -f core conftest.err conftest.$ac_objext \ | |
6651 conftest$ac_exeext conftest.$ac_ext | |
6652 | |
6653 fi | |
6654 rm -f core conftest.err conftest.$ac_objext \ | |
6655 conftest$ac_exeext conftest.$ac_ext | |
6656 fi | |
6657 | |
6658 # If we couldn't enable LTO and the user forced it, emit an error. | |
6659 if test x"$enable_lto" = x"no" \ | |
6660 && test x"$default_enable_lto" != x"yes" ; then | |
6661 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+. | |
6662 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options | |
6663 to specify its location." "$LINENO" 5 | |
6664 fi | |
6665 fi | |
6666 | |
6667 CFLAGS="$saved_CFLAGS" | |
6668 CPPFLAGS="$saved_CPPFLAGS" | |
6669 LIBS="$saved_LIBS" | |
6670 | |
6671 fi | |
6672 | |
6673 # Flags needed for libelf. | |
6674 | |
6675 | |
6676 fi | |
6677 else | 6206 else |
6678 if test x"$default_enable_lto" = x"yes" ; then | 6207 if test x"$default_enable_lto" = x"yes" ; then |
6679 # On non-ELF platforms, LTO must be explicitly enabled. | 6208 case $target in |
6680 enable_lto=no | 6209 *-apple-darwin9 | *-cygwin* | *-mingw*) ;; |
6210 # On other non-ELF platforms, LTO has yet to be validated. | |
6211 *) enable_lto=no ;; | |
6212 esac | |
6681 else | 6213 else |
6682 # Apart from ELF platforms, only Windows supports LTO so far. It | 6214 # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6683 # would also be nice to check the binutils support, but we don't | 6215 # It would also be nice to check the binutils support, but we don't |
6684 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just | 6216 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6685 # warn during gcc/ subconfigure; unless you're bootstrapping with | 6217 # warn during gcc/ subconfigure; unless you're bootstrapping with |
6686 # -flto it won't be needed until after installation anyway. | 6218 # -flto it won't be needed until after installation anyway. |
6687 case $target in | 6219 case $target in |
6688 *-cygwin*|*-mingw*) ;; | 6220 *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
6689 *-apple-darwin*) ;; | |
6690 *) if test x"$enable_lto" = x"yes"; then | 6221 *) if test x"$enable_lto" = x"yes"; then |
6691 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | 6222 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 |
6692 fi | 6223 fi |
6693 ;; | 6224 ;; |
6694 esac | 6225 esac |
6695 fi | 6226 fi |
6696 default_enable_lto=no | 6227 # Among non-ELF, only Windows platforms support the lto-plugin so far. |
6228 # Build it unless LTO was explicitly disabled. | |
6229 case $target in | |
6230 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; | |
6231 *) ;; | |
6232 esac | |
6233 | |
6697 fi | 6234 fi |
6698 | 6235 |
6699 | 6236 |
6700 | 6237 |
6701 # By default, C is the only stage 1 language. | 6238 # By default, C is the only stage 1 language. |
6744 ..) ;; | 6281 ..) ;; |
6745 # The odd quoting in the next line works around | 6282 # The odd quoting in the next line works around |
6746 # an apparent bug in bash 1.12 on linux. | 6283 # an apparent bug in bash 1.12 on linux. |
6747 ${srcdir}/gcc/[*]/config-lang.in) ;; | 6284 ${srcdir}/gcc/[*]/config-lang.in) ;; |
6748 *) | 6285 *) |
6749 # From the config-lang.in, get $language, $lang_requires | 6286 # From the config-lang.in, get $language, $lang_requires, and |
6287 # $lang_requires_boot_languages. | |
6750 language= | 6288 language= |
6751 lang_requires= | 6289 lang_requires= |
6290 lang_requires_boot_languages= | |
6752 . ${lang_frag} | 6291 . ${lang_frag} |
6753 for other in ${lang_requires} ; do | 6292 for other in ${lang_requires} ${lang_requires_boot_languages}; do |
6754 case ,${enable_languages}, in | 6293 case ,${enable_languages}, in |
6755 *,$other,*) ;; | 6294 *,$other,*) ;; |
6756 *,all,*) ;; | 6295 *,all,*) ;; |
6757 *,$language,*) | 6296 *,$language,*) |
6758 echo " \`$other' language required by \`$language'; enabling" 1>&2 | 6297 echo " \`$other' language required by \`$language'; enabling" 1>&2 |
6759 enable_languages="${enable_languages},${other}" | 6298 enable_languages="${enable_languages},${other}" |
6760 ;; | 6299 ;; |
6761 esac | 6300 esac |
6762 done | 6301 done |
6302 for other in ${lang_requires_boot_languages} ; do | |
6303 if test "$other" != "c"; then | |
6304 case ,${enable_stage1_languages}, in | |
6305 *,$other,*) ;; | |
6306 *,all,*) ;; | |
6307 *) | |
6308 case ,${enable_languages}, in | |
6309 *,$language,*) | |
6310 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6311 enable_stage1_languages="$enable_stage1_languages,${other}" | |
6312 ;; | |
6313 esac | |
6314 ;; | |
6315 esac | |
6316 fi | |
6317 done | |
6763 ;; | 6318 ;; |
6764 esac | 6319 esac |
6765 done | 6320 done |
6766 | 6321 |
6767 new_enable_languages=,c, | 6322 new_enable_languages=,c, |
6771 if test "$enable_lto" = "yes" ; then | 6326 if test "$enable_lto" = "yes" ; then |
6772 case ,${enable_languages}, in | 6327 case ,${enable_languages}, in |
6773 *,lto,*) ;; | 6328 *,lto,*) ;; |
6774 *) enable_languages="${enable_languages},lto" ;; | 6329 *) enable_languages="${enable_languages},lto" ;; |
6775 esac | 6330 esac |
6776 if test "${ENABLE_GOLD}" = "yes" ; then | 6331 if test "${build_lto_plugin}" = "yes" ; then |
6777 configdirs="$configdirs lto-plugin" | 6332 configdirs="$configdirs lto-plugin" |
6778 extra_host_libiberty_configure_flags=--enable-shared | 6333 extra_host_libiberty_configure_flags=--enable-shared |
6779 fi | 6334 fi |
6780 fi | 6335 fi |
6781 | 6336 |
6782 | 6337 |
6783 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` | 6338 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
6784 potential_languages=,c, | 6339 potential_languages=,c, |
6340 | |
6341 enabled_target_libs= | |
6342 disabled_target_libs= | |
6785 | 6343 |
6786 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | 6344 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6787 case ${lang_frag} in | 6345 case ${lang_frag} in |
6788 ..) ;; | 6346 ..) ;; |
6789 # The odd quoting in the next line works around | 6347 # The odd quoting in the next line works around |
6858 esac | 6416 esac |
6859 | 6417 |
6860 case $add_this_lang in | 6418 case $add_this_lang in |
6861 unsupported) | 6419 unsupported) |
6862 # Remove language-dependent dirs. | 6420 # Remove language-dependent dirs. |
6863 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" | 6421 disabled_target_libs="$disabled_target_libs $target_libs" |
6422 noconfigdirs="$noconfigdirs $lang_dirs" | |
6864 ;; | 6423 ;; |
6865 no) | 6424 no) |
6866 # Remove language-dependent dirs; still show language as supported. | 6425 # Remove language-dependent dirs; still show language as supported. |
6867 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" | 6426 disabled_target_libs="$disabled_target_libs $target_libs" |
6427 noconfigdirs="$noconfigdirs $lang_dirs" | |
6868 potential_languages="${potential_languages}${language}," | 6428 potential_languages="${potential_languages}${language}," |
6869 ;; | 6429 ;; |
6870 yes) | 6430 yes) |
6871 new_enable_languages="${new_enable_languages}${language}," | 6431 new_enable_languages="${new_enable_languages}${language}," |
6872 potential_languages="${potential_languages}${language}," | 6432 potential_languages="${potential_languages}${language}," |
6873 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` | 6433 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
6434 enabled_target_libs="$enabled_target_libs $target_libs" | |
6874 case "${boot_language}:,$enable_stage1_languages," in | 6435 case "${boot_language}:,$enable_stage1_languages," in |
6875 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | 6436 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) |
6876 # Add to (comma-separated) list of stage 1 languages. | 6437 # Add to (comma-separated) list of stage 1 languages. |
6877 case ",$stage1_languages," in | 6438 case ",$stage1_languages," in |
6878 *,$language,* | ,yes, | ,all,) ;; | 6439 *,$language,* | ,yes, | ,all,) ;; |
6885 ;; | 6446 ;; |
6886 esac | 6447 esac |
6887 ;; | 6448 ;; |
6888 esac | 6449 esac |
6889 done | 6450 done |
6451 | |
6452 # Add target libraries which are only needed for disabled languages | |
6453 # to noconfigdirs. | |
6454 if test -n "$disabled_target_libs"; then | |
6455 for dir in $disabled_target_libs; do | |
6456 case " $enabled_target_libs " in | |
6457 *" ${dir} "*) ;; | |
6458 *) noconfigdirs="$noconfigdirs $dir" ;; | |
6459 esac | |
6460 done | |
6461 fi | |
6890 | 6462 |
6891 # Check whether --enable-stage1-languages was given. | 6463 # Check whether --enable-stage1-languages was given. |
6892 if test "${enable_stage1_languages+set}" = set; then : | 6464 if test "${enable_stage1_languages+set}" = set; then : |
6893 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | 6465 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in |
6894 ,no,|,,) | 6466 ,no,|,,) |
7816 # --cache-file=/dev/null, which is used to turn off the use of cache | 7388 # --cache-file=/dev/null, which is used to turn off the use of cache |
7817 # files altogether, and which should be passed on to subconfigures. | 7389 # files altogether, and which should be passed on to subconfigures. |
7818 # Also strip program-prefix, program-suffix, and program-transform-name, | 7390 # Also strip program-prefix, program-suffix, and program-transform-name, |
7819 # so that we can pass down a consistent program-transform-name. | 7391 # so that we can pass down a consistent program-transform-name. |
7820 baseargs= | 7392 baseargs= |
7393 tbaseargs= | |
7821 keep_next=no | 7394 keep_next=no |
7822 skip_next=no | 7395 skip_next=no |
7823 eval "set -- $ac_configure_args" | 7396 eval "set -- $ac_configure_args" |
7824 for ac_arg | 7397 for ac_arg |
7825 do | 7398 do |
7831 case $ac_arg in | 7404 case $ac_arg in |
7832 *\'*) | 7405 *\'*) |
7833 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 7406 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7834 esac | 7407 esac |
7835 baseargs="$baseargs '$ac_arg'" | 7408 baseargs="$baseargs '$ac_arg'" |
7409 tbaseargs="$tbaseargs '$ac_arg'" | |
7836 keep_next=no | 7410 keep_next=no |
7837 continue | 7411 continue |
7838 fi | 7412 fi |
7839 | 7413 |
7840 # Handle separated arguments. Based on the logic generated by | 7414 # Handle separated arguments. Based on the logic generated by |
7852 *) | 7426 *) |
7853 separate_arg=no | 7427 separate_arg=no |
7854 ;; | 7428 ;; |
7855 esac | 7429 esac |
7856 | 7430 |
7431 skip_targ=no | |
7432 case $ac_arg in | |
7433 | |
7434 --with-* | --without-*) | |
7435 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7436 | |
7437 case $libopt in | |
7438 *[-_]include) | |
7439 lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7440 ;; | |
7441 *[-_]lib) | |
7442 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7443 ;; | |
7444 *) | |
7445 lib=$libopt | |
7446 ;; | |
7447 esac | |
7448 | |
7449 | |
7450 case $lib in | |
7451 mpc | mpfr | gmp | ppl | cloog) | |
7452 # If we're processing --with-$lib, --with-$lib-include or | |
7453 # --with-$lib-lib, for one of the libs above, and target is | |
7454 # different from host, don't pass the current argument to any | |
7455 # target library's configure. | |
7456 if test x$is_cross_compiler = xyes; then | |
7457 skip_targ=yes | |
7458 fi | |
7459 ;; | |
7460 esac | |
7461 ;; | |
7462 esac | |
7463 | |
7857 case "$ac_arg" in | 7464 case "$ac_arg" in |
7858 --cache-file=/dev/null | \ | 7465 --cache-file=/dev/null | \ |
7859 -cache-file=/dev/null ) | 7466 -cache-file=/dev/null ) |
7860 # Handled here to avoid the test to skip args below. | 7467 # Handled here to avoid the test to skip args below. |
7861 baseargs="$baseargs '$ac_arg'" | 7468 baseargs="$baseargs '$ac_arg'" |
7469 tbaseargs="$tbaseargs '$ac_arg'" | |
7862 # Assert: $separate_arg should always be no. | 7470 # Assert: $separate_arg should always be no. |
7863 keep_next=$separate_arg | 7471 keep_next=$separate_arg |
7864 ;; | 7472 ;; |
7865 --no*) | 7473 --no*) |
7866 continue | 7474 continue |
7887 case $ac_arg in | 7495 case $ac_arg in |
7888 *\'*) | 7496 *\'*) |
7889 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 7497 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7890 esac | 7498 esac |
7891 baseargs="$baseargs '$ac_arg'" | 7499 baseargs="$baseargs '$ac_arg'" |
7500 if test X"$skip_targ" = Xno; then | |
7501 tbaseargs="$tbaseargs '$ac_arg'" | |
7502 fi | |
7892 keep_next=$separate_arg | 7503 keep_next=$separate_arg |
7893 ;; | 7504 ;; |
7894 *) | 7505 *) |
7895 # Either a variable assignment, or a nonopt (triplet). Don't | 7506 # Either a variable assignment, or a nonopt (triplet). Don't |
7896 # pass it down; let the Makefile handle this. | 7507 # pass it down; let the Makefile handle this. |
7913 ${program_transform_name} | 7524 ${program_transform_name} |
7914 EOF_SED | 7525 EOF_SED |
7915 gcc_transform_name=`cat conftestsed.out` | 7526 gcc_transform_name=`cat conftestsed.out` |
7916 rm -f conftestsed.out | 7527 rm -f conftestsed.out |
7917 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | 7528 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" |
7529 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" | |
7918 if test "$silent" = yes; then | 7530 if test "$silent" = yes; then |
7919 baseargs="$baseargs --silent" | 7531 baseargs="$baseargs --silent" |
7532 tbaseargs="$tbaseargs --silent" | |
7920 fi | 7533 fi |
7921 baseargs="$baseargs --disable-option-checking" | 7534 baseargs="$baseargs --disable-option-checking" |
7535 tbaseargs="$tbaseargs --disable-option-checking" | |
7536 | |
7537 # Record and document user additions to sub configure arguments. | |
7538 | |
7539 | |
7540 | |
7922 | 7541 |
7923 # For the build-side libraries, we just need to pretend we're native, | 7542 # For the build-side libraries, we just need to pretend we're native, |
7924 # and not use the same cache file. Multilibs are neither needed nor | 7543 # and not use the same cache file. Multilibs are neither needed nor |
7925 # desired. | 7544 # desired. |
7926 build_configargs="--cache-file=../config.cache ${baseargs}" | 7545 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
7927 | 7546 |
7928 # For host modules, accept cache file option, or specification as blank. | 7547 # For host modules, accept cache file option, or specification as blank. |
7929 case "${cache_file}" in | 7548 case "${cache_file}" in |
7930 "") # empty | 7549 "") # empty |
7931 cache_file_option="" ;; | 7550 cache_file_option="" ;; |
7935 cache_file_option="--cache-file=../${cache_file}" ;; | 7554 cache_file_option="--cache-file=../${cache_file}" ;; |
7936 esac | 7555 esac |
7937 | 7556 |
7938 # Host dirs don't like to share a cache file either, horribly enough. | 7557 # Host dirs don't like to share a cache file either, horribly enough. |
7939 # This seems to be due to autoconf 2.5x stupidity. | 7558 # This seems to be due to autoconf 2.5x stupidity. |
7940 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" | 7559 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
7941 | 7560 |
7942 target_configargs=${baseargs} | 7561 target_configargs="$target_configargs ${tbaseargs}" |
7943 | 7562 |
7944 # Passing a --with-cross-host argument lets the target libraries know | 7563 # Passing a --with-cross-host argument lets the target libraries know |
7945 # whether they are being built with a cross-compiler or being built | 7564 # whether they are being built with a cross-compiler or being built |
7946 # native. However, it would be better to use other mechanisms to make the | 7565 # native. However, it would be better to use other mechanisms to make the |
7947 # sorts of decisions they want to make on this basis. Please consider | 7566 # sorts of decisions they want to make on this basis. Please consider |
7994 # On Canadian crosses, CC_FOR_TARGET will have already been set | 7613 # On Canadian crosses, CC_FOR_TARGET will have already been set |
7995 # by `configure', so we won't have an opportunity to add -Bgcc/ | 7614 # by `configure', so we won't have an opportunity to add -Bgcc/ |
7996 # to it. This is right: we don't want to search that directory | 7615 # to it. This is right: we don't want to search that directory |
7997 # for binaries, but we want the header files in there, so add | 7616 # for binaries, but we want the header files in there, so add |
7998 # them explicitly. | 7617 # them explicitly. |
7999 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' | 7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
8000 | 7619 |
8001 # Someone might think of using the pre-installed headers on | 7620 # Someone might think of using the pre-installed headers on |
8002 # Canadian crosses, in case the installed compiler is not fully | 7621 # Canadian crosses, in case the installed compiler is not fully |
8003 # compatible with the compiler being built. In this case, it | 7622 # compatible with the compiler being built. In this case, it |
8004 # would be better to flag an error than risking having | 7623 # would be better to flag an error than risking having |
8133 | 7752 |
8134 | 7753 |
8135 | 7754 |
8136 | 7755 |
8137 | 7756 |
7757 | |
8138 # Generate default definitions for YACC, M4, LEX and other programs that run | 7758 # Generate default definitions for YACC, M4, LEX and other programs that run |
8139 # on the build machine. These are used if the Makefile can't locate these | 7759 # on the build machine. These are used if the Makefile can't locate these |
8140 # programs in objdir. | 7760 # programs in objdir. |
8141 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | 7761 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
8142 | 7762 |
11043 else | 10663 else |
11044 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | 10664 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
11045 fi | 10665 fi |
11046 else | 10666 else |
11047 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | 10667 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" |
10668 fi | |
10669 | |
10670 | |
10671 | |
10672 if test -n "$GOC_FOR_TARGET"; then | |
10673 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10674 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10675 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10676 fi | |
10677 | |
10678 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10679 for ncn_progname in gccgo; do | |
10680 # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10681 set dummy ${ncn_progname}; ac_word=$2 | |
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10683 $as_echo_n "checking for $ac_word... " >&6; } | |
10684 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10685 $as_echo_n "(cached) " >&6 | |
10686 else | |
10687 if test -n "$GOC_FOR_TARGET"; then | |
10688 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10689 else | |
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10691 for as_dir in $PATH | |
10692 do | |
10693 IFS=$as_save_IFS | |
10694 test -z "$as_dir" && as_dir=. | |
10695 for ac_exec_ext in '' $ac_executable_extensions; do | |
10696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10697 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10699 break 2 | |
10700 fi | |
10701 done | |
10702 done | |
10703 IFS=$as_save_IFS | |
10704 | |
10705 fi | |
10706 fi | |
10707 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10708 if test -n "$GOC_FOR_TARGET"; then | |
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10710 $as_echo "$GOC_FOR_TARGET" >&6; } | |
10711 else | |
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10713 $as_echo "no" >&6; } | |
10714 fi | |
10715 | |
10716 | |
10717 done | |
10718 fi | |
10719 | |
10720 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10721 for ncn_progname in gccgo; do | |
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10723 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10724 if test -x $with_build_time_tools/${ncn_progname}; then | |
10725 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10727 $as_echo "yes" >&6; } | |
10728 break | |
10729 else | |
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10731 $as_echo "no" >&6; } | |
10732 fi | |
10733 done | |
10734 fi | |
10735 | |
10736 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10737 for ncn_progname in gccgo; do | |
10738 if test -n "$ncn_target_tool_prefix"; then | |
10739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10742 $as_echo_n "checking for $ac_word... " >&6; } | |
10743 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10744 $as_echo_n "(cached) " >&6 | |
10745 else | |
10746 if test -n "$GOC_FOR_TARGET"; then | |
10747 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10748 else | |
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10750 for as_dir in $PATH | |
10751 do | |
10752 IFS=$as_save_IFS | |
10753 test -z "$as_dir" && as_dir=. | |
10754 for ac_exec_ext in '' $ac_executable_extensions; do | |
10755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10756 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10758 break 2 | |
10759 fi | |
10760 done | |
10761 done | |
10762 IFS=$as_save_IFS | |
10763 | |
10764 fi | |
10765 fi | |
10766 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10767 if test -n "$GOC_FOR_TARGET"; then | |
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10769 $as_echo "$GOC_FOR_TARGET" >&6; } | |
10770 else | |
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10772 $as_echo "no" >&6; } | |
10773 fi | |
10774 | |
10775 | |
10776 fi | |
10777 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10778 # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10779 set dummy ${ncn_progname}; ac_word=$2 | |
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10781 $as_echo_n "checking for $ac_word... " >&6; } | |
10782 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10783 $as_echo_n "(cached) " >&6 | |
10784 else | |
10785 if test -n "$GOC_FOR_TARGET"; then | |
10786 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10787 else | |
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10789 for as_dir in $PATH | |
10790 do | |
10791 IFS=$as_save_IFS | |
10792 test -z "$as_dir" && as_dir=. | |
10793 for ac_exec_ext in '' $ac_executable_extensions; do | |
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10795 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10797 break 2 | |
10798 fi | |
10799 done | |
10800 done | |
10801 IFS=$as_save_IFS | |
10802 | |
10803 fi | |
10804 fi | |
10805 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10806 if test -n "$GOC_FOR_TARGET"; then | |
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10808 $as_echo "$GOC_FOR_TARGET" >&6; } | |
10809 else | |
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10811 $as_echo "no" >&6; } | |
10812 fi | |
10813 | |
10814 | |
10815 fi | |
10816 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10817 done | |
10818 fi | |
10819 | |
10820 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10821 set dummy gccgo | |
10822 if test $build = $target ; then | |
10823 GOC_FOR_TARGET="$2" | |
10824 else | |
10825 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10826 fi | |
10827 else | |
10828 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
11048 fi | 10829 fi |
11049 | 10830 |
11050 | 10831 |
11051 | 10832 |
11052 cat > conftest.c << \EOF | 10833 cat > conftest.c << \EOF |
13744 *,c++,*) ;; | 13525 *,c++,*) ;; |
13745 *) ok=no ;; | 13526 *) ok=no ;; |
13746 esac | 13527 esac |
13747 if test $ok = yes; then | 13528 if test $ok = yes; then |
13748 # An in-tree tool is available and we can use it | 13529 # An in-tree tool is available and we can use it |
13749 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | 13530 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13751 $as_echo "just compiled" >&6; } | 13532 $as_echo "just compiled" >&6; } |
13752 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then | 13533 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13753 # We already found the complete path | 13534 # We already found the complete path |
13754 ac_dir=`dirname $CXX_FOR_TARGET` | 13535 ac_dir=`dirname $CXX_FOR_TARGET` |
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | 13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13984 $as_echo "pre-installed" >&6; } | 13765 $as_echo "pre-installed" >&6; } |
13985 fi | 13766 fi |
13986 fi | 13767 fi |
13987 | 13768 |
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 | |
13770 $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13771 if test "x${build}" != "x${host}" ; then | |
13772 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13773 # We already found the complete path | |
13774 ac_dir=`dirname $GOC_FOR_TARGET` | |
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13776 $as_echo "pre-installed in $ac_dir" >&6; } | |
13777 else | |
13778 # Canadian cross, just use what we found | |
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13780 $as_echo "pre-installed" >&6; } | |
13781 fi | |
13782 else | |
13783 ok=yes | |
13784 case " ${configdirs} " in | |
13785 *" gcc "*) ;; | |
13786 *) ok=no ;; | |
13787 esac | |
13788 case ,${enable_languages}, in | |
13789 *,go,*) ;; | |
13790 *) ok=no ;; | |
13791 esac | |
13792 if test $ok = yes; then | |
13793 # An in-tree tool is available and we can use it | |
13794 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13796 $as_echo "just compiled" >&6; } | |
13797 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13798 # We already found the complete path | |
13799 ac_dir=`dirname $GOC_FOR_TARGET` | |
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13801 $as_echo "pre-installed in $ac_dir" >&6; } | |
13802 elif test "x$target" = "x$host"; then | |
13803 # We can use an host tool | |
13804 GOC_FOR_TARGET='$(GOC)' | |
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13806 $as_echo "host tool" >&6; } | |
13807 else | |
13808 # We need a cross tool | |
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13810 $as_echo "pre-installed" >&6; } | |
13811 fi | |
13812 fi | |
13813 | |
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13989 $as_echo_n "checking where to find the target ld... " >&6; } | 13815 $as_echo_n "checking where to find the target ld... " >&6; } |
13990 if test "x${build}" != "x${host}" ; then | 13816 if test "x${build}" != "x${host}" ; then |
13991 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | 13817 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13992 # We already found the complete path | 13818 # We already found the complete path |
14204 *) ok=no ;; | 14030 *) ok=no ;; |
14205 esac | 14031 esac |
14206 | 14032 |
14207 if test $ok = yes; then | 14033 if test $ok = yes; then |
14208 # An in-tree tool is available and we can use it | 14034 # An in-tree tool is available and we can use it |
14209 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip' | 14035 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14211 $as_echo "just compiled" >&6; } | 14037 $as_echo "just compiled" >&6; } |
14212 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then | 14038 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14213 # We already found the complete path | 14039 # We already found the complete path |
14214 ac_dir=`dirname $STRIP_FOR_TARGET` | 14040 ac_dir=`dirname $STRIP_FOR_TARGET` |