From 441bbb5265fd0c72b46cd0ab567b45dfaeecae73 Mon Sep 17 00:00:00 2001 From: aet Date: Sun, 24 Mar 2002 20:30:53 +0000 Subject: [PATCH] Add missing AC_MSG_RESULT texts to libreadline check git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@385 c6295689-39f2-0310-b995-f0e70906c6a9 --- configure.in | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 91895d2a..aa826c6c 100644 --- a/configure.in +++ b/configure.in @@ -265,10 +265,10 @@ AC_SUBST(LIBDL) AC_CHECK_LIB(dl, dlopen, [LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes], ac_cv_func_dlopen_ldl=no) AC_SUBST(LIBREADLINE) -# libreadline will also need libtermcap on some OSes saved_LIBS="$LIBS" +# libreadline will also need libtermcap on some OSes for add in "" "-ltermcap"; do - if test "X$add" != "X"; then + if test "x$add" != x; then AC_MSG_CHECKING([whether -lreadline requires $add]) fi LIBS="$saved_LIBS $add" @@ -277,9 +277,17 @@ for add in "" "-ltermcap"; do LIBREADLINE="-lreadline $add" ac_cv_func_readline_lreadline=yes ], ac_cv_func_readline_lreadline=no) - test "$ac_cv_func_readline_lreadline" = yes && break + if test "x$ac_cv_func_readline_lreadline" = xyes; then + if test "x$add" != x; then + AC_MSG_RESULT(yes) + fi + break; + else + if test "x$add" != x; then + AC_MSG_RESULT(no) + fi + fi done - LIBS="$LIBS $LIBREADLINE" AC_CHECK_FUNCS(readline) LIBS="$saved_LIBS"