@@ -144,24 +144,12 @@ AC_ARG_WITH([miniupnpc],
144
144
[ use_upnp=$withval] ,
145
145
[ use_upnp=auto] )
146
146
147
- AC_ARG_ENABLE ( [ upnp-default] ,
148
- [ AS_HELP_STRING ( [ --enable-upnp-default] ,
149
- [ if UPNP is enabled, turn it on at startup (default is no)] ) ] ,
150
- [ use_upnp_default=$enableval] ,
151
- [ use_upnp_default=no] )
152
-
153
147
AC_ARG_WITH ( [ natpmp] ,
154
148
[ AS_HELP_STRING ( [ --with-natpmp] ,
155
149
[ enable NAT-PMP (default is yes if libnatpmp is found)] ) ] ,
156
150
[ use_natpmp=$withval] ,
157
151
[ use_natpmp=auto] )
158
152
159
- AC_ARG_ENABLE ( [ natpmp-default] ,
160
- [ AS_HELP_STRING ( [ --enable-natpmp-default] ,
161
- [ if NAT-PMP is enabled, turn it on at startup (default is no)] ) ] ,
162
- [ use_natpmp_default=$enableval] ,
163
- [ use_natpmp_default=no] )
164
-
165
153
AC_ARG_ENABLE ( tests ,
166
154
AS_HELP_STRING ( [ --disable-tests] ,[ do not compile tests (default is to compile)] ) ,
167
155
[ use_tests=$enableval] ,
@@ -1609,16 +1597,8 @@ if test x$have_miniupnpc = xno; then
1609
1597
else
1610
1598
if test x$use_upnp != xno; then
1611
1599
AC_MSG_RESULT ( yes )
1612
- AC_MSG_CHECKING ( [ whether to build with UPnP enabled by default] )
1613
1600
use_upnp=yes
1614
- upnp_setting=0
1615
- if test x$use_upnp_default != xno; then
1616
- use_upnp_default=yes
1617
- upnp_setting=1
1618
- fi
1619
- AC_MSG_RESULT ( $use_upnp_default )
1620
- AC_DEFINE_UNQUOTED ( [ USE_UPNP] ,[ $upnp_setting] ,[ UPnP support not compiled if undefined, otherwise value (0 or 1) determines default state] )
1621
- if test x$TARGET_OS = xwindows; then
1601
+ AC_DEFINE ( [ USE_UPNP] , [ 1] , [ Define to 1 if UPnP support should be compiled in.] ) if test x$TARGET_OS = xwindows; then
1622
1602
MINIUPNPC_CPPFLAGS="-DSTATICLIB -DMINIUPNP_STATICLIB"
1623
1603
fi
1624
1604
else
@@ -1637,15 +1617,8 @@ if test "x$have_natpmp" = xno; then
1637
1617
else
1638
1618
if test "x$use_natpmp" != xno; then
1639
1619
AC_MSG_RESULT ( [ yes] )
1640
- AC_MSG_CHECKING ( [ whether to build with NAT-PMP enabled by default] )
1641
1620
use_natpmp=yes
1642
- natpmp_setting=0
1643
- if test "x$use_natpmp_default" != xno; then
1644
- use_natpmp_default=yes
1645
- natpmp_setting=1
1646
- fi
1647
- AC_MSG_RESULT ( $use_natpmp_default )
1648
- AC_DEFINE_UNQUOTED ( [ USE_NATPMP] , [ $natpmp_setting] , [ NAT-PMP support not compiled if undefined, otherwise value (0 or 1) determines default state] )
1621
+ AC_DEFINE ( [ USE_NATPMP] , [ 1] , [ Define to 1 if UPnP support should be compiled in.] )
1649
1622
if test x$TARGET_OS = xwindows; then
1650
1623
NATPMP_CPPFLAGS="-DSTATICLIB -DNATPMP_STATICLIB"
1651
1624
fi
0 commit comments