comparison gcc/acinclude.m4 @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents a06113de4d67
children f6334be47118
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 dnl Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2 dnl
3 dnl This file is part of GCC.
4 dnl
5 dnl GCC is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3, or (at your option)
8 dnl any later version.
9 dnl
10 dnl GCC is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with GCC; see the file COPYING3. If not see
17 dnl <http://www.gnu.org/licenses/>.
18
1 dnl See whether we need a declaration for a function. 19 dnl See whether we need a declaration for a function.
2 dnl The result is highly dependent on the INCLUDES passed in, so make sure 20 dnl The result is highly dependent on the INCLUDES passed in, so make sure
3 dnl to use a different cache variable name in this macro if it is invoked 21 dnl to use a different cache variable name in this macro if it is invoked
4 dnl in a different context somewhere else. 22 dnl in a different context somewhere else.
5 dnl gcc_AC_CHECK_DECL(SYMBOL, 23 dnl gcc_AC_CHECK_DECL(SYMBOL,
422 AC_DEFUN([gcc_GAS_VERSION_GTE_IFELSE], 440 AC_DEFUN([gcc_GAS_VERSION_GTE_IFELSE],
423 [AC_REQUIRE([_gcc_COMPUTE_GAS_VERSION])dnl 441 [AC_REQUIRE([_gcc_COMPUTE_GAS_VERSION])dnl
424 ifelse([$1], elf, [_gcc_GAS_VERSION_GTE_IFELSE($@)], 442 ifelse([$1], elf, [_gcc_GAS_VERSION_GTE_IFELSE($@)],
425 [_gcc_GAS_VERSION_GTE_IFELSE(,$@)])]) 443 [_gcc_GAS_VERSION_GTE_IFELSE(,$@)])])
426 444
445 dnl # gcc_GAS_FLAGS
446 dnl # Used by gcc_GAS_CHECK_FEATURE
447 dnl #
448 AC_DEFUN([gcc_GAS_FLAGS],
449 [AC_CACHE_CHECK([assembler flags], gcc_cv_as_flags,
450 [ case "$target" in
451 i[[34567]]86-*-linux*)
452 dnl Always pass --32 to ia32 Linux assembler.
453 gcc_cv_as_flags="--32"
454 ;;
455 *)
456 gcc_cv_as_flags=" "
457 ;;
458 esac])
459 ])
460
427 dnl gcc_GAS_CHECK_FEATURE(description, cv, [[elf,]major,minor,patchlevel], 461 dnl gcc_GAS_CHECK_FEATURE(description, cv, [[elf,]major,minor,patchlevel],
428 dnl [extra switches to as], [assembler input], 462 dnl [extra switches to as], [assembler input],
429 dnl [extra testing logic], [command if feature available]) 463 dnl [extra testing logic], [command if feature available])
430 dnl 464 dnl
431 dnl Checks for an assembler feature. If we are building an in-tree 465 dnl Checks for an assembler feature. If we are building an in-tree
434 dnl ASSEMBLER INPUT is fed to the assembler and the feature is available 468 dnl ASSEMBLER INPUT is fed to the assembler and the feature is available
435 dnl if assembly succeeds. If EXTRA TESTING LOGIC is not the empty string, 469 dnl if assembly succeeds. If EXTRA TESTING LOGIC is not the empty string,
436 dnl then it is run instead of simply setting CV to "yes" - it is responsible 470 dnl then it is run instead of simply setting CV to "yes" - it is responsible
437 dnl for doing so, if appropriate. 471 dnl for doing so, if appropriate.
438 AC_DEFUN([gcc_GAS_CHECK_FEATURE], 472 AC_DEFUN([gcc_GAS_CHECK_FEATURE],
439 [AC_CACHE_CHECK([assembler for $1], [$2], 473 [AC_REQUIRE([gcc_GAS_FLAGS])dnl
474 AC_CACHE_CHECK([assembler for $1], [$2],
440 [[$2]=no 475 [[$2]=no
441 ifelse([$3],,,[dnl 476 ifelse([$3],,,[dnl
442 if test $in_tree_gas = yes; then 477 if test $in_tree_gas = yes; then
443 gcc_GAS_VERSION_GTE_IFELSE($3, [[$2]=yes]) 478 gcc_GAS_VERSION_GTE_IFELSE($3, [[$2]=yes])
444 el])if test x$gcc_cv_as != x; then 479 el])if test x$gcc_cv_as != x; then
445 echo ifelse(m4_substr([$5],0,1),[$], "[$5]", '[$5]') > conftest.s 480 echo ifelse(m4_substr([$5],0,1),[$], "[$5]", '[$5]') > conftest.s
446 if AC_TRY_COMMAND([$gcc_cv_as $4 -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD]) 481 if AC_TRY_COMMAND([$gcc_cv_as $gcc_cv_as_flags $4 -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD])
447 then 482 then
448 ifelse([$6],, [$2]=yes, [$6]) 483 ifelse([$6],, [$2]=yes, [$6])
449 else 484 else
450 echo "configure: failed program was" >&AS_MESSAGE_LOG_FD 485 echo "configure: failed program was" >&AS_MESSAGE_LOG_FD
451 cat conftest.s >&AS_MESSAGE_LOG_FD 486 cat conftest.s >&AS_MESSAGE_LOG_FD