--- configure.orig 2013-09-07 03:11:08.000000000 +0200 +++ configure 2013-09-08 14:44:48.000000000 +0200 @@ -17820,6 +17820,9 @@ CFLAGS="${CFLAGS} -fno-common -Wall" LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names" ;; + *alpha*-freebsd* ) + CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall" + ;; *-freebsd* ) CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math" ;; @@ -21662,7 +21665,9 @@ LUA_INCLUDES="" LUA_LIBS="" - LUA_INSTALL_DIR="" + if test -z "$LUA_INSTALL_DIR" ; then + LUA_INSTALL_DIR="" + fi if test -n "$lua_inc"; then CFLAGS="$CFLAGS -I$lua_inc" @@ -21724,13 +21729,13 @@ pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null` if test "x$?" = "x0" ; then LUA_VERSION=`$PKGCONFIG --modversion lua$l` - LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l` + LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags-only-I lua$l` LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l` LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/`$PKGCONFIG --variable=V lua`" pkgconfig_lualib_found=`$PKGCONFIG --exists lualib$l 2>/dev/null` if test "x$?" = "x0"; then - LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lualib$l` + LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags-only-I lualib$l` LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lualib$l` fi break