Skip to content

Commit

Permalink
configure: fix condition for liblua
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de committed Mar 21, 2016
1 parent 9907ea6 commit 6d70e4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ EOF
if test "$have_pkgconfig" = "yes" ; then
CFLAGS_LUA=$(pkg-config --cflags $liblua 2>/dev/null)
LDFLAGS_LUA=$(pkg-config --libs $liblua 2>/dev/null)
if test $? -eq 0 && $CC $CFLAGS $LDFLAGS $CFLAGS_LUA $LDFLAGS_LUA \
-o /dev/null "$tmpc" >/dev/null 2>&1 ; then
if test $? -eq 0 && $CC $CFLAGS $CFLAGS_LUA "$tmpc" \
$LDFLAGS $LDFLAGS_LUA -o /dev/null >/dev/null 2>&1 ; then
CONFIG_LUA=1
printf "yes\n"
break
Expand All @@ -319,8 +319,8 @@ EOF
CFLAGS_LUA="-I/usr/include/$liblua"
LDFLAGS_LUA="-l$liblua -lm"

if $CC $CFLAGS $LDFLAGS $CFLAGS_LUA $LDFLAGS_LUA \
-o /dev/null "$tmpc" >/dev/null 2>&1 ; then
if $CC $CFLAGS $CFLAGS_LUA "$tmpc" \
$LDFLAGS $LDFLAGS_LUA -o /dev/null >/dev/null 2>&1 ; then
CONFIG_LUA=1
printf "yes\n"
break
Expand Down

0 comments on commit 6d70e4d

Please sign in to comment.