]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Bad detection of macos 10.3+
authoreldy <>
Sun, 27 Mar 2005 14:50:22 +0000 (14:50 +0000)
committereldy <>
Sun, 27 Mar 2005 14:50:22 +0000 (14:50 +0000)
tools/awstats_configure.pl

index 8158822a32d05e8e227a9866115a2c782ef0e064..88b119876d7962de6e4372eac458888d1d1329c9 100644 (file)
@@ -292,8 +292,8 @@ print "Read the AWStats documentation (docs/index.html).\n";
 # Detect OS type
 # --------------
 if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='linux'; $CR=''; }
-elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
-elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
+if ("$^O" !~ /linux/i && -d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
+if ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
 if (! $OS) {
     print "configure.pl was not able to detect your OS. You must configure AWStats\n";
        print "manually following the setup documentation (docs/index.html).\n";