8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

A little better behavior when standard editline library requested but not found

This commit is contained in:
alexpeshkoff 2009-08-05 13:55:03 +00:00
parent 3212d7df65
commit 72e5680b4f

View File

@ -422,12 +422,13 @@ AC_ARG_WITH(system-editline,
READLINE=edit # builtin default
saveLIBS=$LIBS
if test "$STD_EDITLINE" = "true"; then
AC_CHECK_LIB(edit, readline, READLINE=edit,
AC_CHECK_LIB(editline, readline, READLINE=editline,
AC_CHECK_LIB(readline, readline, READLINE=readline, STD_EDITLINE=false)))
fi
if test "$STD_EDITLINE" = "true"; then
EDITLINE_FLG=Y
AC_CHECK_LIB(edit, readline, [READLINE=edit EDITLINE_FLG=Y],
AC_CHECK_LIB(editline, readline, [READLINE=editline EDITLINE_FLG=Y],
AC_CHECK_LIB(readline, readline, [READLINE=readline EDITLINE_FLG=Y],
[STD_EDITLINE=false
if test "$EDITLINE_FLG" = "Y"; then
AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])])))
fi
fi
LIBS=$saveLIBS