From ad4eb036dc02de47615dcbb392eb29109c916eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 7 Jul 2012 01:52:45 +0200 Subject: [PATCH] Work around `gl_CANONICALIZE_LGPL' bug when cross-compiling to GNU/Hurd. * gnulib-local/m4/canonicalize.m4.diff: New file. * Makefile.am (EXTRA_DIST): Add it. --- gnulib-local/m4/canonicalize.m4.diff | 17 +++++++++++++++++ m4/canonicalize.m4 | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gnulib-local/m4/canonicalize.m4.diff b/gnulib-local/m4/canonicalize.m4.diff index 5b4d06ad0..57f44726f 100644 --- a/gnulib-local/m4/canonicalize.m4.diff +++ b/gnulib-local/m4/canonicalize.m4.diff @@ -48,3 +48,20 @@ index 69b3f4c..3c4c5ee 100644 + esac fi ]) + + +Now, work around a second bug: fix default value when cross-compiling +for GNU/Hurd. + +index 69b3f4c..111ddf8 100644 +--- a/m4/canonicalize.m4 ++++ b/m4/canonicalize.m4 +@@ -95,7 +95,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS], + [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *gnu*) gl_cv_func_realpath_works="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esac diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4 index 3c4c5ee3e..37df6fc5f 100644 --- a/m4/canonicalize.m4 +++ b/m4/canonicalize.m4 @@ -107,7 +107,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS], [gl_cv_func_realpath_works=no], [case "$host_os" in # Guess yes on glibc systems. - *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; + *gnu*) gl_cv_func_realpath_works="guessing yes" ;; # If we don't know, assume the worst. *) gl_cv_func_realpath_works="guessing no" ;; esac