aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-03-21 13:50:12 +0100
committerChristian Hesse <mail@eworm.de>2016-03-21 13:50:12 +0100
commitbc8518ab979ae4d45db9912e8cf50e730b3ad3dc (patch)
tree6b88e372b04de0150910622c090307883cf1a977
parent66015cde8cb421915553e273adc5917ce75a5e9b (diff)
downloadvis-bc8518ab979ae4d45db9912e8cf50e730b3ad3dc.tar.gz
vis-bc8518ab979ae4d45db9912e8cf50e730b3ad3dc.tar.xz
configure: fix condition for ncurses
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 13d155a..f1eb730 100755
--- a/configure
+++ b/configure
@@ -231,8 +231,8 @@ for curses in ncursesw ncurses curses; do
if test "$have_pkgconfig" = "yes" ; then
CFLAGS_CURSES=$(pkg-config --cflags $curses 2>/dev/null)
LDFLAGS_CURSES=$(pkg-config --libs $curses 2>/dev/null)
- if $? -a $CC $CFLAGS $LDFLAGS $CFLAGS_CURSES $LDFLAGS_CURSES \
- -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
+ if test $? -eq 0 && $CC $CFLAGS $CFLAGS_CURSES "$tmpc" \
+ $LDFLAGS $LDFLAGS_CURSES -o /dev/null >/dev/null 2>&1 ; then
CONFIG_CURSES=1
printf "yes\n"
break
@@ -242,8 +242,8 @@ for curses in ncursesw ncurses curses; do
CFLAGS_CURSES="-I/usr/include/$curses"
LDFLAGS_CURSES="-l$curses"
- if $CC $CFLAGS $LDFLAGS $CFLAGS_CURSES $LDFLAGS_CURSES \
- -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
+ if $CC $CFLAGS $CFLAGS_CURSES "$tmpc" \
+ $LDFLAGS $LDFLAGS_CURSES -o /dev/null >/dev/null 2>&1 ; then
CONFIG_CURSES=1
printf "yes\n"
break