Files
pkgsrc-ng/textproc/enca/patches/patch-configure
2013-09-26 17:14:40 +02:00

31 lines
668 B
Plaintext

$NetBSD: patch-configure,v 1.2 2013/05/10 14:33:01 riastradh Exp $
Pass CC_FOR_BUILD through for make_hash.
--- configure.orig 2012-09-11 09:12:23.000000000 +0000
+++ configure
@@ -635,6 +635,7 @@ ac_includes_default="\
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
+CC_FOR_BUILD
SHELL_RANDOM_FILENAME
DEFAULT_CONVERTER_LIST
DEFAULT_EXTERNAL_CONVERTER
@@ -12446,6 +12447,15 @@ else
$as_echo "no" >&6; }
fi
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = xno; then
+ CC_FOR_BUILD="$CC"
+ else
+ as_fn_error $? "can't compile tools on host without CC_FOR_BUILD" "$LINENO" 5
+ fi
+fi
+
+
if test "$GCC" = yes; then