no more "auto-detection"
diff --git a/luaconf.h b/luaconf.h
index cba433c..0e0b8f5 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
 /*
-** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 roberto Exp roberto $
+** $Id: luaconf.h,v 1.73 2005/11/16 11:56:28 roberto Exp $
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 */
@@ -28,26 +28,24 @@
 #define LUA_ANSI
 #endif
 
-
-#if !defined(LUA_ANSI)
-
-#if defined(__linux__)
+#if defined(LUA_USE_LINUX)
 #define LUA_USE_POSIX
+#define LUA_USE_DLOPEN		/* needs an extra library: -ldl */
+#define LUA_USE_READLINE	/* needs some extra libraries */
 #endif
 
-#if defined(__APPLE__) && defined(__MACH__)
+#if defined(LUA_USE_MACOSX)
 #define LUA_USE_POSIX
-#define LUA_DL_DYLD
-#endif
-
-#if defined(_WIN32)
-#define LUA_DL_DLL
-#endif
-
+#define LUA_DL_DYLD		/* does not need extra library */
 #endif
 
 
 
+/*
+@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
+@* Interfaces Extension (XSI).
+** CHANGE it (define it) if your system is XSI compatible.
+*/
 #if defined(LUA_USE_POSIX)
 #define LUA_USE_MKSTEMP
 #define LUA_USE_ISATTY
@@ -677,6 +675,10 @@
 #define LUA_DL_DLOPEN
 #endif
 
+#if !defined(LUA_ANSI) && defined(_WIN32)
+#define LUA_DL_DLL
+#endif
+
 
 /*
 @@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
diff --git a/makefile b/makefile
index 53cf4ca..516677d 100644
--- a/makefile
+++ b/makefile
@@ -29,7 +29,7 @@
 
 
 # enable Linux goodies
-MYCFLAGS= $(LOCAL) -DLUA_USE_DLOPEN -DLUA_USE_READLINE
+MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX
 MYLDFLAGS= -Wl,-E
 MYLIBS= -ldl -lreadline -lhistory -lncurses