Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c7c678

Browse files
committed
Got rid of --with-readline, at last.
1 parent 9b5dbed commit 3c7c678

1 file changed

Lines changed: 4 additions & 59 deletions

File tree

configure.in

Lines changed: 4 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -270,66 +270,11 @@ LIBS="$withval $LIBS"
270270
], AC_MSG_RESULT(no))
271271

272272
AC_MSG_CHECKING(for --with(out)-readline)
273-
use_readline="yes"
274273
AC_ARG_WITH(readline,
275-
[--with-readline=DIRECTORY search GNU readline library in DIRECTORY
276-
--without-readline do not use GNU readline library],
277-
[AC_MSG_RESULT($withval); use_readline="$withval"],
278-
[AC_MSG_RESULT((default) yes)])
279-
if test "$use_readline" != "no"
280-
then
281-
if test "$use_readline" != "yes"
282-
then add_ldflags="-L$use_readline"
283-
else add_ldflags=""
284-
fi
285-
# See where the termcap interface could be hiding...
286-
AC_MSG_CHECKING(for readline and termcap libraries)
287-
AC_CACHE_VAL(ac_cv_readline_termcap,
288-
[
289-
AC_MSG_RESULT(have to find out)
290-
save_libs="$LIBS"
291-
save_ldflags="$LDFLAGS"
292-
LDFLAGS="$save_ldflags $add_ldflags"
293-
rl="-lreadline"
294-
first=""
295-
# Hack for SGI IRIX 5.x.
296-
# Both termcap and gl have an entry point clear().
297-
# When linking with both shared libraries, we're in trouble.
298-
# We don't need the one in termcap.
299-
# By forcing a static link for termcap, we avoid
300-
# linking its clear() entry point.
301-
if test -f /usr/lib/libgl.so -a -f /usr/lib/libtermcap.a
302-
then first="/usr/lib/libtermcap.a"
303-
fi
304-
for add_lib in \
305-
"$first" "-ltermcap" "-ltermlib" "-lcurses" "-lncurses"
306-
do
307-
AC_MSG_CHECKING(for $rl $add_lib)
308-
LIBS="$save_libs $rl $add_lib"
309-
AC_TRY_LINK([extern char *readline();],
310-
[char *line=readline();],
311-
[AC_MSG_RESULT(yes);
312-
ac_cv_readline_termcap="$rl $add_lib"],
313-
[AC_MSG_RESULT(no)])
314-
if test "$ac_cv_readline_termcap" != ""
315-
then break
316-
fi
317-
done
318-
LIBS="$save_libs"
319-
LDFLAGS="$save_ldflags"
320-
AC_MSG_CHECKING(result from check for readline and termcap)
321-
])
322-
if test "$ac_cv_readline_termcap" = ""
323-
then
324-
AC_MSG_RESULT(no)
325-
AC_MSG_WARN(cannot link with GNU readline -- see config.log)
326-
else
327-
AC_MSG_RESULT($ac_cv_readline_termcap)
328-
LIBS="$LIBS $ac_cv_readline_termcap"
329-
LDFLAGS="$LDFLAGS $add_ldflags"
330-
AC_DEFINE(WITH_READLINE)
331-
fi
332-
fi
274+
[--with(out)-readline obsolete, edit Modules/Setup instead],
275+
[AC_MSG_RESULT($withval)
276+
AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)],
277+
[AC_MSG_RESULT(not specified.)])
333278

334279
AC_MSG_CHECKING(for --with-dec-threads)
335280
AC_SUBST(LDLAST)

0 commit comments

Comments
 (0)