Skip to content
Snippets Groups Projects
Commit e7e781a8 authored by Freddy DISSAUX's avatar Freddy DISSAUX
Browse files

On Solaris, inet_aton and inet_ntoa require '-lsocket -lnsl'.

configure.ac can't find this functions:

...
checking for inet_ntoa... no
checking for inet_ntop... no
...
Libraries: -lz -lcrypto -lssl -levent -lasr -lsocket -lfts -lrt -lresolv

Add "--with-libs='-lnsl'" don't fix:

...
checking for inet_ntoa... no
checking for inet_ntop... no
...
Libraries: -lz -lcrypto -lssl -levent -lasr -lsocket -lfts -lrt -lresolv  -lnsl

Because --with-libs is check too late. Move it before 'AC_SEARCH_LIBS' fix the problem:

...
checking for inet_ntoa... yes
checking for inet_ntop... yes
...
Libraries: -lz -lcrypto -lssl -levent -lasr -lsocket -lfts -lrt -lresolv  -lnsl
parent ca47fa85
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,14 @@ AC_CHECK_DECLS([writev], [], [], [
AC_C_INLINE
AC_ARG_WITH([libs],
[ --with-libs Specify additional libraries to link with],
[
if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
LIBS="$LIBS $withval"
fi
]
)
#
# CHECKS FOR LIBRARY FUNCTIONS
#
......@@ -707,14 +715,6 @@ AC_ARG_WITH([ldflags],
fi
]
)
AC_ARG_WITH([libs],
[ --with-libs Specify additional libraries to link with],
[
if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
LIBS="$LIBS $withval"
fi
]
)
AC_ARG_WITH([Werror],
[ --with-Werror Build main code with -Werror],
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment