]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added verbose output
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 11 Feb 2006 15:31:33 +0000 (15:31 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 11 Feb 2006 15:31:33 +0000 (15:31 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3149 e03df62e-2008-0410-955e-edbf42e46eb7

configure

index 4755e609cb81f743ad225753fddd97bdee6e3ba3..3b8b2ee1f98a55e8c4433df310ace6dc6a009733 100755 (executable)
--- a/configure
+++ b/configure
@@ -618,9 +618,15 @@ print "\033[0mGnuTLS Support:\033[1;32m\t\t\t$config{USE_GNUTLS}\033[0m\n";
 print "\033[0mOpenSSL Support:\033[1;32m\t\t$config{USE_OPENSSL}\033[0m\n\n";
 
 if ($config{USE_GNUTLS} eq "y") {
-       system("cd src/modules");
-       system("ln -s extra/m_ssl_gnutls.cpp");
-       system("cd ../..");
+       $failed = 0;
+       open(TMP, "<src/modules/m_ssl_gnutls.cpp") or $failed = 1;
+       close(TMP);
+       if ($failed) {
+               print "Symlinking src/modules/m_ssl_gnutls.cpp from extra/\n";
+               system("cd src/modules");
+               system("ln -s extra/m_ssl_gnutls.cpp");
+               system("cd ../..");
+       }
        getmodules();
        $failed = 0;
        open(TMP, "<$config{CONFIG_DIR}/key.pem") or $failed = 1;
@@ -646,9 +652,15 @@ if ($config{USE_GNUTLS} eq "y") {
                print "SSL Certificates found, skipping.\n\n"
        }       
 } elsif ($config{USE_OPENSSL} eq "y") {
-       system("cd src/modules");
-       system("ln -s extra/m_ssl_openssl.cpp");
-       system("cd ../..");
+       $failed = 0;
+       open(TMP, "<src/modules/m_ssl_openssl.cpp") or $failed = 1;
+       close(TMP);
+       if ($failed) {
+               print "Symlinking src/modules/m_ssl_openssl.cpp from extra/\n";
+               system("cd src/modules");
+               system("ln -s extra/m_ssl_openssl.cpp");
+               system("cd ../..");
+       }
        getmodules();
        $failed = 0;
        open(TMP, "<$config{CONFIG_DIR}/key.pem") or $failed = 1;