summaryrefslogtreecommitdiffstats
path: root/config/no-executables.m4
diff options
context:
space:
mode:
authorcvs2svn <>2007-10-30 15:18:30 +0000
committercvs2svn <>2007-10-30 15:18:30 +0000
commit79a902d95351f8fe9e7b734b9254db920596a0f2 (patch)
tree58ca3ae9f610847e3e1ac34d6e91d7934e96a733 /config/no-executables.m4
parente5102b0b65330227a1f2d10f8ccf0130d0525289 (diff)
downloadcygnal-79a902d95351f8fe9e7b734b9254db920596a0f2.tar.gz
cygnal-79a902d95351f8fe9e7b734b9254db920596a0f2.tar.bz2
cygnal-79a902d95351f8fe9e7b734b9254db920596a0f2.zip
This commit was manufactured by cvs2svn to create tag 'sid-sid-snapshot-20071101
snapshot-20071101'. Sprout from gdb_6_7-branch 2007-09-07 07:38:48 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'gdb_6_7-branch'.' Cherrypick from master 2007-10-30 15:18:29 UTC Nick Clifton <nickc@redhat.com> '* mn10300.h (R_MN10300_ALIGN): Define.': ChangeLog MAINTAINERS Makefile.def Makefile.in Makefile.tpl config/ChangeLog config/mh-mingw config/mt-mips-elfoabi config/mt-sde config/no-executables.m4 config/tls.m4 configure configure.ac include/elf/ChangeLog include/elf/common.h include/elf/cr16.h include/elf/internal.h include/elf/m68k.h include/elf/mn10300.h include/elf/ppc.h include/gdb/ChangeLog include/gdb/callback.h include/gdb/sim-ppc.h src-release Delete: djunpack.bat texinfo/texinfo.tex
Diffstat (limited to 'config/no-executables.m4')
-rw-r--r--config/no-executables.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/no-executables.m4 b/config/no-executables.m4
index 54e5a0242..c4d0b70c3 100644
--- a/config/no-executables.m4
+++ b/config/no-executables.m4
@@ -59,3 +59,11 @@ fi)
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
+
+# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK.
+AC_DEFUN([GCC_TRY_COMPILE_OR_LINK],
+[if test x$gcc_no_link = xyes; then
+ AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+else
+ AC_TRY_LINK([$1], [$2], [$3], [$4])
+fi])