diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -5515,6 +5515,13 @@ fi if test x$with_libnl != xno ; then have_any_nl="no" + incdir=-I/usr/include/libnl3 + libnldir= + if test x$withval != x ; then + libnldir=-L${withval}/lib/.libs + incdir=-I${withval}/include + fi + # # Try libnl 3.x first. # @@ -5524,7 +5531,7 @@ if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lnl-3 $LIBS" +LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5559,7 +5566,7 @@ if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then : # # Yes, we have libnl 3.x. # - LIBS="-lnl-genl-3 -lnl-3 $LIBS" + LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS" $as_echo "#define HAVE_LIBNL 1" >>confdefs.h @@ -5572,7 +5579,7 @@ $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h - V_INCLS="$V_INCLS -I/usr/include/libnl3" + V_INCLS="$V_INCLS ${incdir}" have_any_nl="yes" fi @@ -5623,7 +5630,7 @@ if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then : # # Yes, we have libnl 2.x. # - LIBS="-lnl-genl -lnl $LIBS" + LIBS="${libnldir} -lnl-genl -lnl $LIBS" $as_echo "#define HAVE_LIBNL 1" >>confdefs.h @@ -5687,7 +5694,7 @@ if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then : # # Yes. # - LIBS="-lnl $LIBS" + LIBS="${libnldir} -lnl $LIBS" $as_echo "#define HAVE_LIBNL 1" >>confdefs.h |