blob: 275092c56bbbc99f2b759246cb5b8ee327b4c42d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
$NetBSD: patch-configure.in,v 1.2 2012/10/10 03:07:12 taca Exp $
* Use separate @LIBREADLINE@ AC_SUBST.
* Avoid using "==" for argument of test(1).
--- configure.in.orig 2012-09-27 00:35:19.000000000 +0000
+++ configure.in
@@ -157,7 +157,7 @@ case "$use_python" in
AC_PATH_PROGS(PYTHON, $use_python)
;;
esac
- if test "X$PYTHON" == "X"
+ if test "X$PYTHON" = "X"
then
case "$use_python" in
unspec)
@@ -2322,23 +2322,18 @@ AC_SUBST(ISC_PLATFORM_NEEDSTRLCAT)
AC_ARG_WITH(readline,
[ --with-readline[=LIBSPEC] specify readline library [default -lreadline]],
- readline="$withval", readline="-lreadline")
+ readline="$withval", readline="readline")
case "$readline" in
no) ;;
*)
if test "x$readline" = "xyes"
then
- readline=-lreadline
- fi
- saved_LIBS="$LIBS"
- LIBS="$LIBS $readline"
- AC_CHECK_FUNCS(readline)
- if test "$ac_cv_func_readline" = "no"
- then
- LIBS="$saved_LIBS"
+ readline=readline
fi
+ AC_CHECK_LIB($readline, [readline], LIBREADLINE=-lreadline)
;;
esac
+AC_SUBST(LIBREADLINE)
ISC_PRINT_OBJS=
|