$NetBSD: patch-aa,v 1.6 2007/06/21 15:52:16 jlam Exp $

--- configure.orig	2006-11-19 08:46:47.000000000 -0500
+++ configure
@@ -2959,7 +2959,7 @@ _ACEOF
 
 
 		echo > config.asciidoc-unsafe.txt
-		if "$ASCIIDOC" --unsafe config.asciidoc-unsafe.txt >&/dev/null; then
+		if "$ASCIIDOC" --unsafe config.asciidoc-unsafe.txt 1>/dev/null 2>&1; then
 			ASCIIDOC_FLAGS=--unsafe
 		fi
 		rm config.asciidoc-unsafe.*
@@ -17578,7 +17578,7 @@ if test -z "$disable_lua"; then
 	for luadir in "$withval" "" /usr /usr/local; do
 		for suffix in "" 50 51; do
 			if test "$cf_result" = no; then
-				LUA_LIBS="-llua$suffix -llualib$suffix -lm"
+				LUA_LIBS="-llua$suffix -lm"
 
 				if test ! -z "$luadir"; then
 					LUA_LIBS="-L$luadir/lib $LUA_LIBS"
@@ -17602,10 +17602,10 @@ int
 main ()
 {
 	lua_State *L = lua_open();
-						lua_baselibopen(L);
-						lua_mathlibopen(L);
-						lua_strlibopen(L);
-						lua_tablibopen(L);
+						luaopen_base(L);
+						luaopen_math(L);
+						luaopen_string(L);
+						luaopen_table(L);
 						lua_pushboolean(L, 1);
 						lua_close(L);
   ;
@@ -23243,7 +23243,7 @@ _ACEOF
 
 
 # Create LIBDIR #define for config.h
-LIBDIR=`eval echo "$libdir"`
+LIBDIR="$LOCALEDIR"
 
 cat >>confdefs.h <<_ACEOF
 #define LIBDIR "$LIBDIR"
