[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix cross-compilation of bash
From: |
Martin Schaffner |
Subject: |
[PATCH] fix cross-compilation of bash |
Date: |
Fri, 2 Apr 2004 06:09:16 +0100 |
The following patch makes it possible bash, by turning an AC_TRY_RUN
into an AC_TRY_COMPILE.
After applying this patch, one has to run "autoconf", which fixes
another bug of the same kind in the configure script (because of a
newer version of autoconf, I guess).
Martin Schaffner
--------------------------------------------------------------
--- a/aclocal.m4 Mon Mar 15 15:43:29 2004
+++ b/aclocal.m4 Mon Mar 15 17:40:56 2004
@@ -1656,14 +1656,11 @@
AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
AC_CACHE_CHECK([for mbstate_t], bash_cv_have_mbstate_t,
-[AC_TRY_RUN([
+[AC_TRY_COMPILE([
#include <wchar.h>
-int
-main ()
-{
+],[
mbstate_t ps;
- return 0;
-}], bash_cv_have_mbstate_t=yes, bash_cv_have_mbstate_t=no)])
+], bash_cv_have_mbstate_t=yes, bash_cv_have_mbstate_t=no)])
if test $bash_cv_have_mbstate_t = yes; then
AC_DEFINE(HAVE_MBSTATE_T)
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] fix cross-compilation of bash,
Martin Schaffner <=