0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Fix build on systems with dirty headers

This commit is contained in:
Ondrej Zajicek (work) 2017-05-17 16:05:07 +02:00
parent a01e951d0f
commit 81edd3b3a7

View File

@ -303,7 +303,11 @@ case $sysdesc in
AC_CHECK_HEADER([linux/rtnetlink.h], AC_CHECK_HEADER([linux/rtnetlink.h],
[], [],
[AC_MSG_ERROR([Appropriate version of Linux kernel headers not found.])], [AC_MSG_ERROR([Appropriate version of Linux kernel headers not found.])],
[] dnl Force new AC_CHECK_HEADER semantics [
dnl Some older versions of Linux kernel headers require these includes
#include <asm/types.h>
#include <sys/socket.h>
]
) )
;; ;;
esac esac
@ -337,7 +341,7 @@ if test "$enable_client" = yes ; then
AC_CHECK_HEADERS([curses.h], AC_CHECK_HEADERS([curses.h],
[], [],
[AC_MSG_ERROR([The client requires ncurses library. Either install the library or use --disable-client to compile without the client.])], [AC_MSG_ERROR([The client requires ncurses library. Either install the library or use --disable-client to compile without the client.])],
[] dnl Force new AC_CHECK_HEADER semantics [AC_INCLUDES_DEFAULT]
) )
AC_SEARCH_LIBS([tgetent], [tinfo tinfow ncurses curses termcap], AC_SEARCH_LIBS([tgetent], [tinfo tinfow ncurses curses termcap],
@ -348,7 +352,7 @@ if test "$enable_client" = yes ; then
AC_CHECK_HEADERS([readline/readline.h readline/history.h], AC_CHECK_HEADERS([readline/readline.h readline/history.h],
[], [],
[AC_MSG_ERROR([The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client.])], [AC_MSG_ERROR([The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client.])],
[] dnl Force new AC_CHECK_HEADER semantics [AC_INCLUDES_DEFAULT]
) )
AC_SEARCH_LIBS([add_history], [history], AC_SEARCH_LIBS([add_history], [history],