10 AC_SEARCH_LIBS([if_nameindex], [socket],
11 [AC_DEFINE([HAVE_IF_NAMEINDEX], [1], [Define if you have if_nameindex.])
12 if test "$ac_cv_search_if_nameindex" != "none required"; then
13 NET_IF_LIB="$ac_cv_search_if_nameindex"
16 AC_SUBST([NET_IF_LIB])
20 check_PROGRAMS += test-net_if
21 test_net_if_LDADD = $(LDADD) @NET_IF_LIB@