|
|
@ -28,7 +28,6 @@
|
|
|
|
#include <tdeconfig.h>
|
|
|
|
#include <tdeconfig.h>
|
|
|
|
#include <kstaticdeleter.h>
|
|
|
|
#include <kstaticdeleter.h>
|
|
|
|
#include <tqregexp.h>
|
|
|
|
#include <tqregexp.h>
|
|
|
|
#include <tqdir.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <unistd.h>
|
|
|
@ -324,7 +323,7 @@ TDEConfig *cfg;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __OpenBSD__
|
|
|
|
#ifdef __OpenBSD__
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString libname = findMostRecentLib("/usr/lib" KDELIBSUFF, "crypto");
|
|
|
|
TQString libname = findMostRecentLib("/usr/" SYSTEM_LIBDIR, "crypto");
|
|
|
|
if (!libname.isNull())
|
|
|
|
if (!libname.isNull())
|
|
|
|
_cryptoLib = ll->globalLibrary(libname.latin1());
|
|
|
|
_cryptoLib = ll->globalLibrary(libname.latin1());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -349,13 +348,13 @@ TDEConfig *cfg;
|
|
|
|
#ifdef _AIX
|
|
|
|
#ifdef _AIX
|
|
|
|
<< "/opt/freeware/lib/"
|
|
|
|
<< "/opt/freeware/lib/"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
<< "/usr/lib" KDELIBSUFF "/"
|
|
|
|
<< "/usr/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/usr/ssl/lib" KDELIBSUFF "/"
|
|
|
|
<< "/usr/ssl/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/usr/local/lib" KDELIBSUFF "/"
|
|
|
|
<< "/usr/local/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/usr/local/openssl/lib" KDELIBSUFF "/"
|
|
|
|
<< "/usr/local/openssl/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/usr/local/ssl/lib" KDELIBSUFF "/"
|
|
|
|
<< "/usr/local/ssl/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/opt/openssl/lib" KDELIBSUFF "/"
|
|
|
|
<< "/opt/openssl/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "/lib" KDELIBSUFF "/"
|
|
|
|
<< "/" SYSTEM_LIBDIR "/"
|
|
|
|
<< "";
|
|
|
|
<< "";
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: #define here for the various OS types to optimize
|
|
|
|
// FIXME: #define here for the various OS types to optimize
|
|
|
@ -408,18 +407,6 @@ TDEConfig *cfg;
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
_cryptoLib = ll->globalLibrary(alib.latin1());
|
|
|
|
_cryptoLib = ll->globalLibrary(alib.latin1());
|
|
|
|
if (!_cryptoLib) {
|
|
|
|
|
|
|
|
// Multiarch triplet search
|
|
|
|
|
|
|
|
TQDir madir (*it);
|
|
|
|
|
|
|
|
TQStringList multiarchdirs = madir.entryList("*-*-*", TQDir::Dirs);
|
|
|
|
|
|
|
|
for (TQStringList::Iterator mait = multiarchdirs.begin(); mait != multiarchdirs.end(); ++mait ) {
|
|
|
|
|
|
|
|
TQString malib = *it + *mait + "/" + *shit;
|
|
|
|
|
|
|
|
TQString tmpStr(malib.latin1());
|
|
|
|
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
|
|
|
|
_cryptoLib = ll->globalLibrary(malib.latin1());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_cryptoLib) break;
|
|
|
|
if (_cryptoLib) break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_cryptoLib) break;
|
|
|
|
if (_cryptoLib) break;
|
|
|
@ -611,18 +598,6 @@ TDEConfig *cfg;
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
_sslLib = ll->globalLibrary(alib.latin1());
|
|
|
|
_sslLib = ll->globalLibrary(alib.latin1());
|
|
|
|
if (!_sslLib) {
|
|
|
|
|
|
|
|
// Multiarch triplet search
|
|
|
|
|
|
|
|
TQDir madir (*it);
|
|
|
|
|
|
|
|
TQStringList multiarchdirs = madir.entryList("*-*-*", TQDir::Dirs);
|
|
|
|
|
|
|
|
for (TQStringList::Iterator mait = multiarchdirs.begin(); mait != multiarchdirs.end(); ++mait ) {
|
|
|
|
|
|
|
|
TQString malib = *it + *mait + "/" + *shit;
|
|
|
|
|
|
|
|
TQString tmpStr(malib.latin1());
|
|
|
|
|
|
|
|
tmpStr.replace(TQRegExp("\\(.*\\)"), "");
|
|
|
|
|
|
|
|
if (!access(tmpStr.latin1(), R_OK))
|
|
|
|
|
|
|
|
_sslLib = ll->globalLibrary(malib.latin1());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_sslLib) break;
|
|
|
|
if (_sslLib) break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_sslLib) break;
|
|
|
|
if (_sslLib) break;
|
|
|
|