Revision 7211be1c configure.in

View differences:

configure.in
134 134
	AC_DEFINE_UNQUOTED(PATH_CONTROL_SOCKET_DIR, "$localstatedir")
135 135
fi
136 136

  
137
CLIENT=
138
CLIENT_LIBS=
137 139
if test "$enable_client" = yes ; then
138 140
	CLIENT=client
139
else
140
	CLIENT=
141
	AC_CHECK_LIB(history, add_history, CLIENT_LIBS="-lhistory")
142
	AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses,
143
		AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses,
144
			AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap)))
145
	AC_CHECK_LIB(readline, readline, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB",
146
		AC_MSG_ERROR([[The client requires GNU readline library. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB)
141 147
fi
142 148
AC_SUBST(CLIENT)
149
AC_SUBST(CLIENT_LIBS)
143 150

  
144 151
mkdir -p $objdir/sysdep
145 152
AC_CONFIG_HEADER($objdir/sysdep/autoconf.h:sysdep/autoconf.h.in)

Also available in: Unified diff