Project Info Name.......: gnu-hello
Description: GNU Hello


gnu-hello       
Info
Commit...:7567389e7d595d0988ea451a57b9ad59d9520b04
Author...:karl <>
Committer:karl <>
Date.....:Mon Aug 28 17:48:55 2006 +0000
Parents..:1d06236487699e13a7d722d54724d1c1cf5c6c7b

Message
[project @ 2006-08-28 17:48:55 by karl]
do not call help2man when cross-compiling

Changes
diff --git a/ChangeLog b/ChangeLog
line changes: +4/-0
index e77675c..34e897f
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-28  Bruno Haible  <bruno@clisp.org>
+
+	* configure.ac: Set HELP2MAN to a dummy when cross-compiling.
+
 2006-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
 
 	* configure.ac (AC_CONFIG_FILES): Drop backslashes.

diff --git a/configure.ac b/configure.ac
line changes: +8/-1
index 4006889..28ab828
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,14 @@ gl_INIT
 
 # GNU help2man creates man pages from --help output; in many cases, this
 # is sufficient, and obviates the need to maintain man pages separately.
-AM_MISSING_PROG(HELP2MAN, help2man)
+# However, this means invoking executables, which we generally cannot do
+# when cross-compiling, so we test to avoid that (the variable
+# "cross_compiling" is set by AC_PROG_CC).
+if test $cross_compiling = no; then
+  AM_MISSING_PROG(HELP2MAN, help2man)
+else
+  HELP2MAN=:
+fi
 
 # i18n support from GNU gettext.
 AM_GNU_GETTEXT_VERSION([0.15])

This website is licensed under AGPL-3.0. Feel free to copy!