From 7fd32ef40e73782d36684f8590d61ae6466d1579 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 16 Dec 2004 10:23:44 +0000 Subject: [PATCH] [project @ 2004-12-16 10:23:44 by simonmar] --with-gcc: export the CC environment variable, so the setting gets picked up by sub-configures. Perhaps we should be advising people to use CC=c:/mingw/bin/gcc ./configure because that works for all configure scripts, not just the top level one. Background: - We want --with-gcc to do the right thing, because we don't want to require Cygwin users to put c:/mingw/bin first on their path: that would break their Cygwin environment. - The build system should work with *no* gcc on your PATH, as long as you use --with-gcc (equivalently, CC=... ./configure). --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 75ab52c..388fa5c 100644 --- a/configure.ac +++ b/configure.ac @@ -622,7 +622,9 @@ AC_ARG_WITH(gcc, withval=`cygpath -w ${withval} | sed -e 's@\\\\@/@g' ` fi fi; - CC="$withval"], + CC="$withval" + export CC + ], [WhatGccIsCalled="gcc"] ) AC_SUBST(WhatGccIsCalled) -- 1.7.10.4