-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed again configure.ac and .gitignore
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# =========================================================================== | ||
# http://www.gnu.org/software/autoconf-archive/ax_lib_socket_nsl.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_LIB_SOCKET_NSL | ||
# | ||
# DESCRIPTION | ||
# | ||
# This macro figures out what libraries are required on this platform to | ||
# link sockets programs. | ||
# | ||
# The common cases are not to need any extra libraries, or to need | ||
# -lsocket and -lnsl. We need to avoid linking with libnsl unless we need | ||
# it, though, since on some OSes where it isn't necessary it will totally | ||
# break networking. Unisys also includes gethostbyname() in libsocket but | ||
# needs libnsl for socket(). | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Russ Allbery <[email protected]> | ||
# Copyright (c) 2008 Stepan Kasal <[email protected]> | ||
# Copyright (c) 2008 Warren Young <[email protected]> | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 6 | ||
|
||
AU_ALIAS([LIB_SOCKET_NSL], [AX_LIB_SOCKET_NSL]) | ||
AC_DEFUN([AX_LIB_SOCKET_NSL], | ||
[ | ||
AC_SEARCH_LIBS([gethostbyname], [nsl]) | ||
AC_SEARCH_LIBS([socket], [socket], [], [ | ||
AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"], | ||
[], [-lnsl])]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters