Skip to content
This repository
Browse code

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

…ain their fork of GCC.
  • Loading branch information...
commit 8a82e2c2d4a3c7e42195890fd1173c8811c77b4f 1 parent c897aac
Peter Powell SaberUK authored Pogs McPoggerson committed

Showing 1 changed file with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. +10 2 configure
12 configure
@@ -229,8 +229,12 @@ if ($config{OSNAME} =~ /darwin/i)
229 229 {
230 230 $config{IS_DARWIN} = "YES";
231 231 $config{STARTSCRIPT} = "org.inspircd.plist"; # start script for OSX.
  232 + $config{CC} = "clang++"; # C++ compiler for OSX.
  233 +}
  234 +else
  235 +{
  236 + $config{CC} = "g++"; # C++ compiler
232 237 }
233   -$config{CC} = "g++"; # C++ compiler
234 238 if (defined $opt_cc)
235 239 {
236 240 $config{CC} = $opt_cc;
@@ -248,7 +252,11 @@ if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) {
248 252 }
249 253
250 254 if (($config{GCCVER} eq "") || ($config{GCCMINOR} eq "")) {
251   - print $config{CC} . " was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
  255 + if ($config{IS_DARWIN} eq "YES") {
  256 + print $config{CC} . " was not found! You require clang++ (the LLVN C++ compiler, part of the OSX developer tools) to build InspIRCd!\n";
  257 + } else {
  258 + print $config{CC} . " was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
  259 + }
252 260 exit;
253 261 }
254 262

0 comments on commit 8a82e2c

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