From 104a74ff6cfd48ec8de0cebbe72ac0589a96f57c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 4 Dec 2010 09:36:05 +0100 Subject: [PATCH] configure.in: Make the pkg-config name of liblua configurable. --- configure.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 5f99eaa6..267932e5 100644 --- a/configure.in +++ b/configure.in @@ -1983,9 +1983,15 @@ with_liblua_ldflags="" with_liblua_libs="" with_liblua="yes" +AC_ARG_VAR([LIBLUA_PKG_CONFIG_NAME], [Name of liblua used by pkg-config]) +if test "x$LIBLUA_PKG_CONFIG_NAME" = "x" +then + LIBLUA_PKG_CONFIG_NAME="lua5.1" +fi + if test "x$with_liblua" = "xyes" then - $PKG_CONFIG --exists lua5.1 2>/dev/null + $PKG_CONFIG --exists $LIBLUA_PKG_CONFIG_NAME 2>/dev/null lua_config_status=$? if test 0 -ne $lua_config_status @@ -1996,9 +2002,9 @@ fi if test "x$with_liblua" = "xyes" then - with_liblua_cppflags=`$PKG_CONFIG --cflags-only-I lua5.1` || with_liblua="no" - with_liblua_ldflags=`$PKG_CONFIG --libs-only-L lua5.1` || with_liblua="no" - with_liblua_libs=`$PKG_CONFIG --libs-only-l lua5.1` || with_liblua="no" + with_liblua_cppflags=`$PKG_CONFIG --cflags-only-I $LIBLUA_PKG_CONFIG_NAME` || with_liblua="no" + with_liblua_ldflags=`$PKG_CONFIG --libs-only-L $LIBLUA_PKG_CONFIG_NAME` || with_liblua="no" + with_liblua_libs=`$PKG_CONFIG --libs-only-l $LIBLUA_PKG_CONFIG_NAME` || with_liblua="no" fi if test "x$with_liblua" = "xyes" then -- 2.11.0