aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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