Changeset 363eb9d


Ignore:
Timestamp:
Sep 15, 2009, 4:21:18 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d193e28
Parents:
cc1eeac
git-author:
Nelson Elhage <nelhage@mit.edu> (09/14/09 23:44:12)
git-committer:
Nelson Elhage <nelhage@mit.edu> (09/15/09 16:21:18)
Message:
configure.ac: Use AC_SEARCH_LIBS for lib{nsl,socket,resolv}.

We only want these libraries if the normal C libraries don't contain
the symbols we're looking for, which is what SEARCH_LIBS is
for. libnsl is in fact the example in autoconf's documentation of when
you want AC_SEARCH_LIBS over AC_CHECK_LIBS.

Signed-off-by: Nelson Elhage <nelhage@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rcc1eeac r363eb9d  
    2323
    2424AC_CHECK_LIB(ncursesw, initscr,, AC_MSG_ERROR(No libncursesw found.))
    25 AC_CHECK_LIB(nsl, gethostbyname)
    26 AC_CHECK_LIB(socket, socket)
    27 AC_CHECK_LIB(resolv, res_search)
     25AC_SEARCH_LIBS([gethostbyname], [nsl])
     26AC_SEARCH_LIBS([socket], [socket])
     27AC_SEARCH_LIBS([res_search], [resolv])
    2828
    2929AC_ARG_WITH([zephyr],
Note: See TracChangeset for help on using the changeset viewer.