mirror of
https://github.com/znc/znc.git
synced 2026-05-09 14:54:53 +02:00
Look, an invisible pink unicorn!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1928 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-1
@@ -907,10 +907,11 @@ bool CModules::FindModPath(const CString& sModule, CString& sModPath,
|
||||
|
||||
CModules::ModDirList CModules::GetModDirs() {
|
||||
ModDirList ret;
|
||||
CString sDir;
|
||||
|
||||
#ifdef RUN_FROM_SOURCE
|
||||
// ./modules
|
||||
CString sDir = CZNC::Get().GetCurPath() + "/modules/";
|
||||
sDir = CZNC::Get().GetCurPath() + "/modules/";
|
||||
ret.push(std::make_pair(sDir, sDir));
|
||||
|
||||
// ./modules/extra
|
||||
|
||||
@@ -2816,7 +2816,7 @@ fi
|
||||
|
||||
# Check whether --enable-run-from-source was given.
|
||||
if test "${enable_run_from_source+set}" = set; then :
|
||||
enableval=$enable_run_from_source; if test "x$withval" = "xyes" ; then
|
||||
enableval=$enable_run_from_source; if test "x$enableval" = "xyes" ; then
|
||||
appendCXX -DRUN_FROM_SOURCE
|
||||
fi
|
||||
fi
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ AC_ARG_ENABLE( [c-ares],
|
||||
[ARES="auto"])
|
||||
AC_ARG_ENABLE( [run-from-source],
|
||||
AS_HELP_STRING([--enable-run-from-source], [znc will be runnable without installation]),
|
||||
[if test "x$withval" = "xyes" ; then
|
||||
[if test "x$enableval" = "xyes" ; then
|
||||
appendCXX -DRUN_FROM_SOURCE
|
||||
fi])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user