summaryrefslogtreecommitdiff
path: root/libstdc++-v3/linkage.m4
diff options
context:
space:
mode:
authorKelley Cook <kcook@gcc.gnu.org>2005-04-05 03:01:51 +0000
committerR. Kelley Cook <kcook@gcc.gnu.org>2005-04-05 03:01:51 +0000
commit6db61f50521eb2115b2e89a0680cf6343c57c65e (patch)
tree9385539468bb5b9b751cf280e63e06fd82022b55 /libstdc++-v3/linkage.m4
parentb2ef856a168e6f5460aecb92901f6342cca898a9 (diff)
downloadgcc-6db61f50521eb2115b2e89a0680cf6343c57c65e.tar.gz
linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Use m4 translit macro to convert to uppercase instead of shelling out to tr.
2005-04-05 Kelley Cook <kcook@gcc.gnu.org> * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Use m4 translit macro to convert to uppercase instead of shelling out to tr. * acconfig.h: Remove now redundant HAVE__BUILTINS_*. * configure, config.h.in: Regenerate. From-SVN: r97597
Diffstat (limited to 'libstdc++-v3/linkage.m4')
-rw-r--r--libstdc++-v3/linkage.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/linkage.m4 b/libstdc++-v3/linkage.m4
index 6c8a6a766c0..d0cbecd8ea8 100644
--- a/libstdc++-v3/linkage.m4
+++ b/libstdc++-v3/linkage.m4
@@ -289,10 +289,12 @@ AC_DEFUN([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1], [
])
fi
AC_MSG_RESULT($glibcxx_cv_func_$1_link)
+ define([NAME], [translit([$1],[abcdefghijklmnopqrstuvwxyz],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ])])
if test x$glibcxx_cv_func_$1_link = x"yes"; then
- ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED(${ac_tr_func}, 1, [Defined if $1 exists.])
+ AC_DEFINE([HAVE_]NAME, 1, [Define if the compiler/host combination has $1.])
fi
+ undefine([NAME])
fi
])