aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-11-04 11:02:12 -0600
committerJack Nagel2013-11-04 11:02:18 -0600
commit6f11b315d44f00a99e821b1c4f2dbefdc3a5e6f2 (patch)
treeeccc6ba0fb495fef37b9f4eb2cb6e16c01120ffc /Library/Homebrew
parenta81ca4188d525eb35980b0b951a9865259caf385 (diff)
downloadhomebrew-6f11b315d44f00a99e821b1c4f2dbefdc3a5e6f2.tar.bz2
Disable make_fuss when running configure invoked by make
The cc wrapper's make_fuss is only enabled when HOMEBREW_CCCFG contains 'O', which is set by the make wrapper. This means it is disable when running configure scripts. However, this does not include configure scripts invoked by make, which inherit the value of HOMEBREW_CCCFG from the make process. make_fuss will be enabled for these scripts, cause breakage. Configure scripts generated by autoconf 2.56 (November 2002) or later export DUALCASE into the environment of subprocesses. This variable is only used by the MKS shell, so we can use it as a heuristic to determine if we are running as a subprocess of a configure script.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 6c05bddb4..ce8de00d0 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -52,6 +52,10 @@ module Superenv
delete('CDPATH') # avoid make issues that depend on changing directories
delete('GREP_OPTIONS') # can break CMake
delete('CLICOLOR_FORCE') # autotools doesn't like this
+
+ # Configure scripts generated by autoconf 2.56 or later export DUALCASE,
+ # which we use as a heuristic for running under configure
+ delete('DUALCASE')
end
def setup_build_environment(formula=nil)