@@ -367,6 +367,12 @@ AC_ARG_ENABLE([airtunes],
367
367
[ use_airtunes=$enableval] ,
368
368
[ use_airtunes=auto] )
369
369
370
+ AC_ARG_ENABLE ( [ upnp] ,
371
+ [ AS_HELP_STRING ( [ --disable-upnp] ,
372
+ [ disable UPnP support (default is enabled)] ) ] ,
373
+ [ use_upnp=$enableval] ,
374
+ [ use_upnp=yes] )
375
+
370
376
AC_ARG_ENABLE ( [ ffmpeg_libvorbis] ,
371
377
[ AS_HELP_STRING ( [ --enable-ffmpeg-libvorbis] ,
372
378
[ enable FFmpeg vorbis encoding (default is no)] ) ] ,
@@ -2134,6 +2140,15 @@ else
2134
2140
final_message="$final_message\n AirTunes support:\tNo"
2135
2141
fi
2136
2142
2143
+ if test "x$use_upnp" != "xno"; then
2144
+ final_message="$final_message\n UPnP support:\t\tYes"
2145
+ USE_UPNP=1
2146
+ AC_DEFINE ( [ USE_UPNP] , [ 1] , [ Define to 1 to enable UPnP support.] )
2147
+ else
2148
+ USE_UPNP=0
2149
+ final_message="$final_message\n UPnP support:\t\tNo"
2150
+ fi
2151
+
2137
2152
if test "$use_optical_drive" = "yes"; then
2138
2153
final_message="$final_message\n Optical drive:\tYes"
2139
2154
else
@@ -2244,6 +2259,7 @@ OUTPUT_FILES="Makefile \
2244
2259
xbmc/guilib/Makefile \
2245
2260
xbmc/interfaces/Makefile \
2246
2261
xbmc/network/Makefile \
2262
+ xbmc/network/upnp/Makefile \
2247
2263
lib/libRTV/Makefile \
2248
2264
lib/libexif/Makefile \
2249
2265
lib/libXDAAP/Makefile \
@@ -2342,6 +2358,7 @@ AC_SUBST(USE_LIBCEC)
2342
2358
AC_SUBST ( USE_CEC_RPI_API )
2343
2359
AC_SUBST ( USE_MYSQL )
2344
2360
AC_SUBST ( USE_WEB_SERVER )
2361
+ AC_SUBST ( USE_UPNP )
2345
2362
AC_SUBST ( USE_ANDROID )
2346
2363
AC_SUBST ( GTEST_CONFIGURED )
2347
2364
0 commit comments