]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ntp/files/readline.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ntp / files / readline.patch
1 --- ntp-4.1.2/configure.in.old  2004-12-31 23:50:21.000000000 +0000
2 +++ ntp-4.1.2/configure.in      2004-12-31 23:58:45.000000000 +0000
3 @@ -211,16 +211,17 @@
4  AC_CHECK_HEADERS(readline/history.h readline/readline.h)
5  case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
6   *no*) ;;
7 - *) AC_CHECK_LIB(readline, readline, ,
8 + *) AC_CHECK_LIB(readline, readline, READLINE_LIBS="-lreadline",
9       AC_MSG_NOTICE([Trying again with -lcurses])
10       unset ac_cv_lib_readline_readline
11       AC_CHECK_LIB(readline, readline,
12 -      LIBS="-lreadline -lcurses $LIBS"
13 +      READLINE_LIBS="-lreadline -lcurses"
14        AC_DEFINE(HAVE_LIBREADLINE)
15        AC_DEFINE(HAVE_LIBCURSES, , [Do we have the curses library?])
16        , , -lcurses))
17      ;;
18  esac
19 +AC_SUBST(READLINE_LIBS)
20  
21  dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt
22  dnl Solaris 2.6 only has -lposix4; in Solaris 7, this is a symlink to -lrt,
23 --- ntp-4.1.2/ntpdc/Makefile.am.old     2004-12-31 23:52:58.000000000 +0000
24 +++ ntp-4.1.2/ntpdc/Makefile.am 2005-01-01 00:04:43.000000000 +0000
25 @@ -4,6 +4,7 @@
26  INCLUDES = -I$(top_srcdir)/include
27  # LDADD might need RESLIB and ADJLIB
28  LDADD =        version.o ../libntp/libntp.a @LIBRSAREF@ 
29 +LIBADD = @READLINE_LIBS@
30  DISTCLEANFILES = .version version.c
31  noinst_HEADERS = ntpdc.h
32  #EXTRA_DIST = ntpdc.mak
33 --- ntp-4.1.2/ntpq/Makefile.am.old      2004-12-31 23:52:54.000000000 +0000
34 +++ ntp-4.1.2/ntpq/Makefile.am  2005-01-01 00:04:54.000000000 +0000
35 @@ -3,7 +3,8 @@
36  bin_PROGRAMS = ntpq
37  INCLUDES = -I$(top_srcdir)/include
38  # LDADD might need RESLIB and ADJLIB
39 -LDADD =        version.o ../libntp/libntp.a @LIBRSAREF@ 
40 +LDADD =        version.o ../libntp/libntp.a @LIBRSAREF@
41 +LIBADD = @READLINE_LIBS@
42  DISTCLEANFILES = .version version.c
43  noinst_HEADERS = ntpq.h
44  #EXTRA_DIST = ntpq.mak