gnulib-tool: Use the Python implementation by default.
[gnulib.git] / modules / net_if-tests
blob116bf62ea6a73d71bda2c574eca7175473597fdb
1 Files:
2 tests/test-net_if.c
3 tests/signature.h
5 Depends-on:
6 net_if-c++-tests
8 configure.ac:
9 NET_IF_LIB=
10 gl_saved_libs="$LIBS"
11 AC_SEARCH_LIBS([if_nameindex], [socket],
12   [AC_DEFINE([HAVE_IF_NAMEINDEX], [1], [Define if you have if_nameindex.])
13    if test "$ac_cv_search_if_nameindex" != "none required"; then
14      NET_IF_LIB="$ac_cv_search_if_nameindex"
15    fi])
16 LIBS="$gl_saved_libs"
17 AC_SUBST([NET_IF_LIB])
19 Makefile.am:
20 TESTS += test-net_if
21 check_PROGRAMS += test-net_if
22 test_net_if_LDADD = $(LDADD) @NET_IF_LIB@