]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Configure no longer allows gcc 2.x compilers AT ALL >:)
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 20 Feb 2006 00:46:58 +0000 (00:46 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 20 Feb 2006 00:46:58 +0000 (00:46 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3264 e03df62e-2008-0410-955e-edbf42e46eb7

configure

index 05ffecef6ea23177faa0be2326ea5abb3f544225..41539016711ecdd8c37103fa070e8049b43eaec1 100755 (executable)
--- a/configure
+++ b/configure
@@ -248,26 +248,29 @@ Your operating system is: \033[1;32m$config{OSNAME}\033[0m ($wholeos), fdmax: $c
 $config{CHANGE_COMPILER} = "n";
 print "I have detected the following compiler: \033[1;32m$config{CC}\033[0m (version \033[1;32m$config{GCCVER}.$config{GCC34}\033[0m)\n";
 
-if ($config{GCCVER} < 3) {
+while (($config{GCCVER} < 3) || ($config{GCCVER} eq "")) {
        print "\033[1;32mIMPORTANT!\033[0m A GCC 2.x compiler has been detected, and
-should NOT be used. You should probably specify a newer compiler.\n";
-}
-yesno(CHANGE_COMPILER,"Do you want to change the compiler?");
-if ($config{CHANGE_COMPILER} =~ /y/i) {
-       print "What command do you want to use to invoke your compiler?\n";
-       print "[\033[1;32m$config{CC}\033[0m] -> ";
-       chomp($config{CC} = <STDIN>);
-       if ($config{CC} eq "") {
-               $config{CC} = "g++";
-       }
-       chomp($foo = `$config{CC} -dumpversion | cut -c 1`);
-       if ($foo ne "") {
-               chomp($config{GCCVER}       = `$config{CC} -dumpversion | cut -c 1`); # we must redo these if we change
-               chomp($config{GCC34}        = `$config{CC} -dumpversion | cut -c 3`); # the compiler path
-               print "Queried compiler: \033[1;32m$config{CC}\033[0m (version \033[1;32m$config{GCCVER}.$config{GCC34}\033[0m)\n";
-       }
-       else {
-               print "\033[1;32mWARNING!\033[0m Could not execute the compiler you specified. You may want to try again.\n";
+should NOT be used. You should probably specify a newer compiler.\n\n";
+       yesno(CHANGE_COMPILER,"Do you want to change the compiler?");
+       if ($config{CHANGE_COMPILER} =~ /y/i) {
+               print "What command do you want to use to invoke your compiler?\n";
+               print "[\033[1;32m$config{CC}\033[0m] -> ";
+               chomp($config{CC} = <STDIN>);
+               if ($config{CC} eq "") {
+                       $config{CC} = "g++";
+               }
+               chomp($foo = `$config{CC} -dumpversion | cut -c 1`);
+               if ($foo ne "") {
+                       chomp($config{GCCVER}       = `$config{CC} -dumpversion | cut -c 1`); # we must redo these if we change
+                       chomp($config{GCC34}        = `$config{CC} -dumpversion | cut -c 3`); # the compiler path
+                       print "Queried compiler: \033[1;32m$config{CC}\033[0m (version \033[1;32m$config{GCCVER}.$config{GCC34}\033[0m)\n";
+                       if ($config{GCCVER} < 3) {
+                               print "\033[1;32mGCC 2.x WILL NOT WORK!\033[0m. Let's try that again, shall we?\n";
+                       }
+               }
+               else {
+                       print "\033[1;32mWARNING!\033[0m Could not execute the compiler you specified. You may want to try again.\n";
+               }
        }
 }