From 3396bbbcb08750a2dea1497047da52e0b3c2f2a6 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 4 Jan 2010 18:59:57 +0000 Subject: Fix makefile remake target to work in BSD make and avoid looping when .config.cache is updated git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12242 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index fb4d5d842..f6823752a 100755 --- a/configure +++ b/configure @@ -232,8 +232,6 @@ if (defined $opt_noipv6) { $config{IPV6} = "n"; } -chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Version -chomp($config{GCCMINOR} = `g++ -dumpversion | cut -c 3`); $config{_SOMAXCONN} = SOMAXCONN; # Max connections in accept queue $config{OSNAME} = $^O; # Operating System Name $config{IS_DARWIN} = "NO"; # Is OSX? @@ -408,6 +406,11 @@ print ((!getcache()) ? "not found\n" : "found\n"); $config{SYSTEM} = lc $^O; print "Checking operating system version... $config{SYSTEM}\n"; +$exec = $config{CC} . " -dumpversion | cut -c 1"; +chomp($config{GCCVER} = `$exec`); # Major GCC Version +$exec = $config{CC} . " -dumpversion | cut -c 3"; +chomp($config{GCCMINOR} = `$exec`); + printf "Checking if stdint.h exists... "; $config{HAS_STDINT} = "true"; our $fail = 0; -- cgit v1.2.3