diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-19 08:33:18 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-19 08:33:18 +0000 |
commit | 3fb128d5bd4eaefc8725a93951cbb29c46d7075d (patch) | |
tree | c683b6de1b9f8378c996b600dd601872df2b45e3 | |
parent | 199284934c530611b801dcf33c782f97a761e003 (diff) | |
download | paxutils-3fb128d5bd4eaefc8725a93951cbb29c46d7075d.tar.gz |
(PU_RMT): Check for LIB_SETSOCKOPT
-rw-r--r-- | m4/rmt.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,18 @@ AC_DEFUN([PU_RMT],[ + # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary. + pu_save_LIBS=$LIBS + LIB_SETSOCKOPT= + AC_SEARCH_LIBS(setsockopt, [socket], , + [AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])]) + AC_SEARCH_LIBS(setsockopt, [nsl]) + + case "$ac_cv_search_setsockopt" in + -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt + esac + AC_SUBST(LIB_SETSOCKOPT) + LIBS=$pu_save_LIBS + AC_CHECK_FUNCS_ONCE([strerror]) enable_rmt() { if test $ac_cv_header_sys_mtio_h = yes; then |