Make config honor build system specified config defines
authorsapier <Sapier at GMX dot net>
Sun, 6 Apr 2014 08:48:04 +0000 (10:48 +0200)
committersapier <Sapier at GMX dot net>
Wed, 9 Apr 2014 18:47:21 +0000 (20:47 +0200)
src/config.h

index 55bbb5beecd2420a3280202050af36778a1e9ffa..1558ebe09777072b7dc66dffbf473515a406063f 100644 (file)
@@ -9,12 +9,24 @@
 #define PROJECT_NAME "Minetest"
 #define RUN_IN_PLACE 0
 #define USE_GETTEXT 0
-#define USE_SOUND 0
-#define USE_CURL 0
+#ifndef USE_SOUND
+       #define USE_SOUND 0
+#endif
+
+#ifndef USE_CURL
+       #define USE_CURL 0
+#endif
+
 #define USE_FREETYPE 0
 #define STATIC_SHAREDIR ""
-#define USE_LEVELDB 0
-#define USE_LUAJIT 0
+
+#ifndef USE_LEVELDB
+       #define USE_LEVELDB 0
+#endif
+
+#ifndef USE_LUAJIT
+       #define USE_LUAJIT 0
+#endif
 
 #ifdef USE_CMAKE_CONFIG_H
        #include "cmake_config.h"