mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
build: remove potential for duplciate natpmp linking
Consolidate the lib checking logic to be the same as miniupnpc.
This commit is contained in:
parent
4e95096952
commit
b74e449ffa
1 changed files with 6 additions and 3 deletions
|
@ -1455,9 +1455,12 @@ dnl Check for libnatpmp (optional).
|
||||||
if test "$use_natpmp" != "no"; then
|
if test "$use_natpmp" != "no"; then
|
||||||
TEMP_CPPFLAGS="$CPPFLAGS"
|
TEMP_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $NATPMP_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $NATPMP_CPPFLAGS"
|
||||||
AC_CHECK_HEADERS([natpmp.h],
|
AC_CHECK_HEADERS([natpmp.h], [], [have_natpmp=no])
|
||||||
[AC_CHECK_LIB([natpmp], [initnatpmp], [NATPMP_LIBS="$NATPMP_LIBS -lnatpmp"], [have_natpmp=no], [$NATPMP_LIBS])],
|
|
||||||
[have_natpmp=no])
|
if test "$have_natpmp" != "no"; then
|
||||||
|
AC_CHECK_LIB([natpmp], [initnatpmp], [NATPMP_LIBS="$NATPMP_LIBS -lnatpmp"], [have_natpmp=no], [$NATPMP_LIBS])
|
||||||
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$TEMP_CPPFLAGS"
|
CPPFLAGS="$TEMP_CPPFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue