]> granicus.if.org Git - graphviz/commitdiff
improve construction of archsitedir for lua
authorellson <devnull@localhost>
Thu, 24 Apr 2008 02:08:42 +0000 (02:08 +0000)
committerellson <devnull@localhost>
Thu, 24 Apr 2008 02:08:42 +0000 (02:08 +0000)
configure.ac

index 6d635ff2772e4b5d6e9e120640306eb569e71a3c..8c2855003231a225eca079476ff0b48e11e83007 100644 (file)
@@ -643,7 +643,7 @@ if test "x$enable_lua" = "xyes" ; then
                    LUA_VERSION=`$PKGCONFIG --modversion lua$l`
                     LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l`
                     LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l`
-                   LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/5.1"
+                   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