]> git.pld-linux.org Git - packages/freeciv.git/blame - freeciv-link.patch
- updated to 2.6.6
[packages/freeciv.git] / freeciv-link.patch
CommitLineData
912b6ed7
JB
1--- freeciv-2.6.6/configure.ac.orig 2022-04-15 22:10:01.560412321 +0200
2+++ freeciv-2.6.6/configure.ac 2022-04-15 22:31:30.240097611 +0200
3@@ -1236,7 +1236,7 @@ if test "x$server" = "xyes"; then
19a72140
JR
4 SERVER_LIBS="-lm ${SERVER_LIBS}"
5
20dc8367
JB
6 dnl Some systems (e.g., BeOS) need this lib
7- AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")
8+ AC_CHECK_FUNC(gethostbyaddr,,[AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")])
9
10 dnl Readline library and header files.
11 FC_HAS_READLINE()
912b6ed7 12@@ -1364,13 +1364,13 @@ dnl Check for extra socket libraries.
20dc8367
JB
13 dnl If the AC_CHECK_FUNCS check finds the function, we don't look any
14 dnl further. This is rumoured to prevent choosing the wrong libs on IRIX.
15 if test $ac_cv_func_gethostbyname = no; then
16- AC_CHECK_LIB(nsl, gethostbyname, LIBS="-lnsl $LIBS")
17+ AC_SEARCH_LIBS(gethostbyname, nsl)
18 fi
19 if test $ac_cv_func_connect = no; then
20- AC_CHECK_LIB(socket, connect, LIBS="-lsocket $LIBS")
21+ AC_SEARCH_LIBS(connect, socket)
22 fi
23 if test $ac_cv_func_bind = no; then
24- AC_CHECK_LIB(bind, gethostbyaddr, LIBS="-lbind $LIBS")
25+ AC_SEARCH_LIBS(gethostbyaddr, bind)
26 fi
27
19a72140 28 dnl Windows fdopen does not work with sockets.
This page took 0.123552 seconds and 4 git commands to generate.