summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-28 16:48:25 +0000
committerJim Meyering <jim@meyering.net>2000-05-28 16:48:25 +0000
commit619bbd4ce6cf36c58631330aec5f9eaedab39730 (patch)
tree3b4245a3355e8e4893f811b2b3d82083d0506e71
parent15a9b83bdd5c0984a64a088aa37813dfb8a083d0 (diff)
downloadcoreutils-619bbd4ce6cf36c58631330aec5f9eaedab39730.tar.xz
.
-rw-r--r--m4/strerror_r.m440
1 files changed, 0 insertions, 40 deletions
diff --git a/m4/strerror_r.m4 b/m4/strerror_r.m4
deleted file mode 100644
index 410dfdfa2..000000000
--- a/m4/strerror_r.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-#serial 2
-
-dnl From Jim Meyering.
-dnl Determine whether the strerror_r implementation is one of
-dnl the broken ones that returns `int' rather than `char*'.
-dnl Actually, this tests only whether it returns a scalar
-dnl or an array, but that should be enough.
-dnl On at least DEC UNIX 4.0[A-D] and HP-UX B.10.20, strerror_r
-dnl returns `int'. This is used by lib/error.c.
-
-AC_DEFUN(jm_FUNC_STRERROR_R,
-[
- # Check strerror_r
- AC_CHECK_FUNCS([strerror_r])
- if test $ac_cv_func_strerror_r = yes; then
- AC_CHECK_HEADERS(string.h)
- AC_CACHE_CHECK([for working strerror_r],
- jm_cv_func_working_strerror_r,
- [
- AC_TRY_COMPILE(
- [
-# include <stdio.h>
-# if HAVE_STRING_H
-# include <string.h>
-# endif
- ],
- [
- int buf; /* avoiding square brackets makes this easier */
- char x = *strerror_r (0, buf, sizeof buf);
- ],
- jm_cv_func_working_strerror_r=yes,
- jm_cv_func_working_strerror_r=no
- )
- if test $jm_cv_func_working_strerror_r = yes; then
- AC_DEFINE_UNQUOTED(HAVE_WORKING_STRERROR_R, 1,
- [Define to 1 if strerror_r returns a string.])
- fi
- ])
- fi
-])