From 14429f6c1175cbac4904cf191ef0e5718cf9a733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 26 May 2014 14:03:32 +0200 Subject: [PATCH] be more verbose about success and handle failure with an error --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 98df37f68e..1ae9b32871 100755 --- a/configure +++ b/configure @@ -9,9 +9,16 @@ if [ $os == 'Linux' ]; then for soname in ${sonames[@]} ; do if [ -f $location/$soname ]; then liblua51=$soname + echo "Detected Lua 5.1 library at "$location/$soname break fi done done - sed "s/@LIBLUA51@/${liblua51}/" thirdparty/Eluant.dll.config.in > Eluant.dll.config + if [ -z $liblua51 ]; then + echo "Lua 5.1 library detection failed." + exit 1 + else + sed "s/@LIBLUA51@/${liblua51}/" thirdparty/Eluant.dll.config.in > Eluant.dll.config + echo "Eluant.dll.config has been created successfully." + fi fi \ No newline at end of file