aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-21 15:40:26 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-21 16:05:04 +0200
commit36940845e7621f3b375da7218259e3d7b22664b6 (patch)
tree6d7a307df8fb06de4bb4d9fedd98b44e46a1a45e /configure
parent74757be0a9359a0b1a2c276068b7cbdf2feb357b (diff)
downloadpingu-36940845e7621f3b375da7218259e3d7b22664b6.tar.bz2
pingu-36940845e7621f3b375da7218259e3d7b22664b6.tar.xz
configure: add --with-luapc option
This lets users to specify the pkg-config package name, eg. lua5.1 or lua5.2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index f78da45..50815f7 100755
--- a/configure
+++ b/configure
@@ -55,6 +55,9 @@ Optional features:
--enable-debug build with debugging information [disabled]
--enable-warnings build with recommended warnings flags [enabled]
--enable-werror build with -Werror [disabled]
+ --enable-lua build Lua client binding [disabled]
+ --with-luapc=LUAPC build Lua client binding, using LUAPC pkg-config
+ package [disabled]
Some influential environment variables:
CC C compiler command [detected]
@@ -81,6 +84,7 @@ mandir='$(datarootdir)/man'
enable_debug=false
enable_warnings=true
enable_werror=false
+enable_lua=false
for arg; do
case "$arg" in
@@ -100,6 +104,7 @@ case "$arg" in
--disable-warnings) enable_warnings=false ;;
--enable-werror) enable_werror=true ;;
--disable-werror) enable_werror=false ;;
+--with-luapc=*) with_luapc=${arg#*=};;
-* ) die "$0: unknown option $arg" ;;
CC=*) CC=${arg#*=} ;;
CFLAGS=*) CFLAGS=${arg#*=} ;;
@@ -121,6 +126,14 @@ if $enable_werror; then
CFLAGS="$CFLAGS -Werror"
fi
+echo -n "Checking for Lua support: "
+if [ -n "$with_luapc" ]; then
+ LUAPC="$with_luapc"
+ echo $with_luapc
+else
+ echo disabled
+fi
+
cc=${CC:-gcc}
cat > $TMPC << EOF
@@ -176,6 +189,7 @@ localstatedir
libdir
datarootdir
mandir
+LUAPC
CC
CFLAGS
LDFLAGS