]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't hardcode conf/inspircd.conf as the config file, allow the configure script...
authorattilamolnar <attilamolnar@hush.com>
Sat, 21 Jul 2012 11:28:05 +0000 (13:28 +0200)
committerattilamolnar <attilamolnar@hush.com>
Sat, 21 Jul 2012 14:01:39 +0000 (16:01 +0200)
Fixes #264 reported by @ampt

configure
src/inspircd.cpp

index 8edcdfe08b0a2179c54c47f88f696d3d809c6530..5a54b286be341fcb9ef9525a2f00bb51ae0076cd 100755 (executable)
--- a/configure
+++ b/configure
@@ -861,6 +861,7 @@ sub writefiles {
 #define CoreExport /**/
 #define DllExport /**/
 
+#define CONFIG_PATH "$config{CONFIG_DIR}"
 #define MOD_PATH "$config{MODULE_DIR}"
 #define SOMAXCONN_S "$config{_SOMAXCONN}"
 #define ENTRYPOINT int main(int argc, char** argv)
index aa03d62dee4835f8d67300ea1c0e3ff6bb2fe992..4abfb496a3e26e80b63aa186fa3b1453b98a2999 100644 (file)
@@ -303,7 +303,7 @@ void InspIRCd::WritePID(const std::string &filename)
 }
 
 InspIRCd::InspIRCd(int argc, char** argv) :
-        ConfigFileName("conf/inspircd.conf"),
+        ConfigFileName(CONFIG_PATH "/inspircd.conf"),
 
         /* Functor pointer initialisation.
          *