Skip to content
Browse files

Switch configure script to use clang on OS X as Apple no longer maint…

…ain their fork of GCC.
  • Loading branch information...
1 parent c897aac commit 8a82e2c2d4a3c7e42195890fd1173c8811c77b4f @SaberUK SaberUK committed with Pogs McPoggerson Mar 21, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 configure
View
12 configure
@@ -229,8 +229,12 @@ if ($config{OSNAME} =~ /darwin/i)
{
$config{IS_DARWIN} = "YES";
$config{STARTSCRIPT} = "org.inspircd.plist"; # start script for OSX.
+ $config{CC} = "clang++"; # C++ compiler for OSX.
+}
+else
+{
+ $config{CC} = "g++"; # C++ compiler
}
-$config{CC} = "g++"; # C++ compiler
if (defined $opt_cc)
{
$config{CC} = $opt_cc;
@@ -248,7 +252,11 @@ if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) {
}
if (($config{GCCVER} eq "") || ($config{GCCMINOR} eq "")) {
- print $config{CC} . " was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
+ if ($config{IS_DARWIN} eq "YES") {
+ print $config{CC} . " was not found! You require clang++ (the LLVN C++ compiler, part of the OSX developer tools) to build InspIRCd!\n";
+ } else {
+ print $config{CC} . " was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
+ }
exit;
}

0 comments on commit 8a82e2c

Please sign in to comment.
Something went wrong with that request. Please try again.