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
This commit is contained in:
aet 2002-03-24 20:30:53 +00:00
parent 2142557bb8
commit 441bbb5265
1 changed files with 12 additions and 4 deletions

View File

@ -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"