20833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL" >&5
20834
$as_echo_n "checking for LIBNL... " >&6; }
20836
if test -n "$LIBNL_CFLAGS"; then
20837
pkg_cv_LIBNL_CFLAGS="$LIBNL_CFLAGS"
20838
elif test -n "$PKG_CONFIG"; then
20839
if test -n "$PKG_CONFIG" && \
20840
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.0-pre8\""; } >&5
20841
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.0-pre8") 2>&5
20843
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20844
test $ac_status = 0; }; then
20845
pkg_cv_LIBNL_CFLAGS=`$PKG_CONFIG --cflags "libnl-1 >= 1.0-pre8" 2>/dev/null`
20852
if test -n "$LIBNL_LIBS"; then
20853
pkg_cv_LIBNL_LIBS="$LIBNL_LIBS"
20854
elif test -n "$PKG_CONFIG"; then
20855
if test -n "$PKG_CONFIG" && \
20856
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.0-pre8\""; } >&5
20857
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.0-pre8") 2>&5
20859
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20860
test $ac_status = 0; }; then
20861
pkg_cv_LIBNL_LIBS=`$PKG_CONFIG --libs "libnl-1 >= 1.0-pre8" 2>/dev/null`
20871
if test $pkg_failed = yes; then
20872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20873
$as_echo "no" >&6; }
20875
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20876
_pkg_short_errors_supported=yes
20878
_pkg_short_errors_supported=no
20880
if test $_pkg_short_errors_supported = yes; then
20881
LIBNL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnl-1 >= 1.0-pre8" 2>&1`
20883
LIBNL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnl-1 >= 1.0-pre8" 2>&1`
20885
# Put the nasty error message in config.log where it belongs
20886
echo "$LIBNL_PKG_ERRORS" >&5
20888
as_fn_error $? "Package requirements (libnl-1 >= 1.0-pre8) were not met:
20892
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20893
installed software in a non-standard prefix.
20895
Alternatively, you may set the environment variables LIBNL_CFLAGS
20896
and LIBNL_LIBS to avoid the need to call pkg-config.
20897
See the pkg-config man page for more details." "$LINENO" 5
20899
elif test $pkg_failed = untried; then
20900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20901
$as_echo "no" >&6; }
20902
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20903
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20904
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20905
is in your PATH or set the PKG_CONFIG environment variable to the full
20906
path to pkg-config.
20908
Alternatively, you may set the environment variables LIBNL_CFLAGS
20909
and LIBNL_LIBS to avoid the need to call pkg-config.
20910
See the pkg-config man page for more details.
20912
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20913
See \`config.log' for more details" "$LINENO" 5; }
20916
LIBNL_CFLAGS=$pkg_cv_LIBNL_CFLAGS
20917
LIBNL_LIBS=$pkg_cv_LIBNL_LIBS
20918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20919
$as_echo "yes" >&6; }
20860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5
20861
$as_echo_n "checking for LIBNL3... " >&6; }
20863
if test -n "$LIBNL3_CFLAGS"; then
20864
pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS"
20865
elif test -n "$PKG_CONFIG"; then
20866
if test -n "$PKG_CONFIG" && \
20867
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
20868
($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
20870
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20871
test $ac_status = 0; }; then
20872
pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0" 2>/dev/null`
20879
if test -n "$LIBNL3_LIBS"; then
20880
pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS"
20881
elif test -n "$PKG_CONFIG"; then
20882
if test -n "$PKG_CONFIG" && \
20883
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
20884
($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
20886
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20887
test $ac_status = 0; }; then
20888
pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0" 2>/dev/null`
20898
if test $pkg_failed = yes; then
20899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20900
$as_echo "no" >&6; }
20902
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20903
_pkg_short_errors_supported=yes
20905
_pkg_short_errors_supported=no
20907
if test $_pkg_short_errors_supported = yes; then
20908
LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnl-3.0" 2>&1`
20910
LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnl-3.0" 2>&1`
20912
# Put the nasty error message in config.log where it belongs
20913
echo "$LIBNL3_PKG_ERRORS" >&5
20916
elif test $pkg_failed = untried; then
20917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20918
$as_echo "no" >&6; }
20921
LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS
20922
LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS
20923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924
$as_echo "yes" >&6; }
20929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL_ROUTE3" >&5
20930
$as_echo_n "checking for LIBNL_ROUTE3... " >&6; }
20932
if test -n "$LIBNL_ROUTE3_CFLAGS"; then
20933
pkg_cv_LIBNL_ROUTE3_CFLAGS="$LIBNL_ROUTE3_CFLAGS"
20934
elif test -n "$PKG_CONFIG"; then
20935
if test -n "$PKG_CONFIG" && \
20936
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
20937
($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
20939
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20940
test $ac_status = 0; }; then
20941
pkg_cv_LIBNL_ROUTE3_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0" 2>/dev/null`
20948
if test -n "$LIBNL_ROUTE3_LIBS"; then
20949
pkg_cv_LIBNL_ROUTE3_LIBS="$LIBNL_ROUTE3_LIBS"
20950
elif test -n "$PKG_CONFIG"; then
20951
if test -n "$PKG_CONFIG" && \
20952
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
20953
($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
20955
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956
test $ac_status = 0; }; then
20957
pkg_cv_LIBNL_ROUTE3_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0" 2>/dev/null`
20967
if test $pkg_failed = yes; then
20968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20969
$as_echo "no" >&6; }
20971
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20972
_pkg_short_errors_supported=yes
20974
_pkg_short_errors_supported=no
20976
if test $_pkg_short_errors_supported = yes; then
20977
LIBNL_ROUTE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnl-route-3.0" 2>&1`
20979
LIBNL_ROUTE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnl-route-3.0" 2>&1`
20981
# Put the nasty error message in config.log where it belongs
20982
echo "$LIBNL_ROUTE3_PKG_ERRORS" >&5
20984
have_libnl_route3=no
20985
elif test $pkg_failed = untried; then
20986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987
$as_echo "no" >&6; }
20988
have_libnl_route3=no
20990
LIBNL_ROUTE3_CFLAGS=$pkg_cv_LIBNL_ROUTE3_CFLAGS
20991
LIBNL_ROUTE3_LIBS=$pkg_cv_LIBNL_ROUTE3_LIBS
20992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20993
$as_echo "yes" >&6; }
20994
have_libnl_route3=yes
20996
if (test "${have_libnl3}" = "yes" -a "${have_libnl_route3}" = "yes"); then
20998
$as_echo "#define HAVE_LIBNL3 1" >>confdefs.h
21000
LIBNL_CFLAGS="$LIBNL3_CFLAGS $LIBNL_ROUTE3_CFLAGS"
21001
LIBNL_LIBS="$LIBNL3_LIBS $LIBNL_ROUTE3_LIBS"
21007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL2" >&5
21008
$as_echo_n "checking for LIBNL2... " >&6; }
21010
if test -n "$LIBNL2_CFLAGS"; then
21011
pkg_cv_LIBNL2_CFLAGS="$LIBNL2_CFLAGS"
21012
elif test -n "$PKG_CONFIG"; then
21013
if test -n "$PKG_CONFIG" && \
21014
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
21015
($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
21017
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21018
test $ac_status = 0; }; then
21019
pkg_cv_LIBNL2_CFLAGS=`$PKG_CONFIG --cflags "libnl-2.0" 2>/dev/null`
21026
if test -n "$LIBNL2_LIBS"; then
21027
pkg_cv_LIBNL2_LIBS="$LIBNL2_LIBS"
21028
elif test -n "$PKG_CONFIG"; then
21029
if test -n "$PKG_CONFIG" && \
21030
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
21031
($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
21033
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21034
test $ac_status = 0; }; then
21035
pkg_cv_LIBNL2_LIBS=`$PKG_CONFIG --libs "libnl-2.0" 2>/dev/null`
21045
if test $pkg_failed = yes; then
21046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047
$as_echo "no" >&6; }
21049
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21050
_pkg_short_errors_supported=yes
21052
_pkg_short_errors_supported=no
21054
if test $_pkg_short_errors_supported = yes; then
21055
LIBNL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnl-2.0" 2>&1`
21057
LIBNL2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnl-2.0" 2>&1`
21059
# Put the nasty error message in config.log where it belongs
21060
echo "$LIBNL2_PKG_ERRORS" >&5
21063
elif test $pkg_failed = untried; then
21064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21065
$as_echo "no" >&6; }
21068
LIBNL2_CFLAGS=$pkg_cv_LIBNL2_CFLAGS
21069
LIBNL2_LIBS=$pkg_cv_LIBNL2_LIBS
21070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21071
$as_echo "yes" >&6; }
21074
if (test "${have_libnl2}" = "yes"); then
21076
$as_echo "#define HAVE_LIBNL2 1" >>confdefs.h
21078
LIBNL_CFLAGS="$LIBNL2_CFLAGS"
21079
LIBNL_LIBS="$LIBNL2_LIBS"
21085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
21086
$as_echo_n "checking for LIBNL1... " >&6; }
21088
if test -n "$LIBNL1_CFLAGS"; then
21089
pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
21090
elif test -n "$PKG_CONFIG"; then
21091
if test -n "$PKG_CONFIG" && \
21092
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.0-pre8\""; } >&5
21093
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.0-pre8") 2>&5
21095
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21096
test $ac_status = 0; }; then
21097
pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1 >= 1.0-pre8" 2>/dev/null`
21104
if test -n "$LIBNL1_LIBS"; then
21105
pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
21106
elif test -n "$PKG_CONFIG"; then
21107
if test -n "$PKG_CONFIG" && \
21108
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.0-pre8\""; } >&5
21109
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.0-pre8") 2>&5
21111
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21112
test $ac_status = 0; }; then
21113
pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1 >= 1.0-pre8" 2>/dev/null`
21123
if test $pkg_failed = yes; then
21124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21125
$as_echo "no" >&6; }
21127
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21128
_pkg_short_errors_supported=yes
21130
_pkg_short_errors_supported=no
21132
if test $_pkg_short_errors_supported = yes; then
21133
LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnl-1 >= 1.0-pre8" 2>&1`
21135
LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnl-1 >= 1.0-pre8" 2>&1`
21137
# Put the nasty error message in config.log where it belongs
21138
echo "$LIBNL1_PKG_ERRORS" >&5
21141
elif test $pkg_failed = untried; then
21142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143
$as_echo "no" >&6; }
21146
LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
21147
LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
21148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21149
$as_echo "yes" >&6; }
21152
if (test "${have_libnl1}" = "yes"); then
21154
$as_echo "#define HAVE_LIBNL1 1" >>confdefs.h
21156
LIBNL_CFLAGS="$LIBNL1_CFLAGS"
21157
LIBNL_LIBS="$LIBNL1_LIBS"
21164
if (test "${have_libnl}" = "no"); then
21165
as_fn_error $? "libnl development header are required" "$LINENO" 5
21170
if (test "${libnl_version}" = "1"); then
20925
21172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl address caching bug" >&5
20926
21173
$as_echo_n "checking for libnl address caching bug... " >&6; }