Changeset 4265 for pjproject/trunk
- Timestamp:
- Sep 25, 2012 2:23:06 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r4159 r4265 624 624 ac_host 625 625 ac_linux_poll 626 silk_present 627 silk_h_present 628 ac_no_silk 626 629 opencore_amrnb_present 627 630 opencore_amrnb_h_present … … 780 783 with_opencore_amrnb 781 784 enable_opencore_amrnb 785 with_silk 786 enable_silk 782 787 ' 783 788 ac_precious_vars='build_alias … … 1440 1445 (default: autodetect) 1441 1446 1447 --disable-silk Exclude SILK support from the build (default: 1448 autodetect) 1449 1442 1450 1443 1451 Optional Packages: … … 1468 1476 --with-opencore-amrnb=DIR 1469 1477 Specify alternate libopencore-amrnb prefix 1478 --with-silk=DIR Specify alternate SILK prefix 1470 1479 1471 1480 Some influential environment variables: … … 7189 7198 else 7190 7199 ac_no_opencore_amrnb=1 7191 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB _CODEC 0" >>confdefs.h7200 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB444_CODEC 0" >>confdefs.h 7192 7201 7193 7202 fi 7194 7203 7195 7204 fi 7205 7206 7207 7208 # Check whether --with-silk was given. 7209 if test "${with_silk+set}" = set; then : 7210 withval=$with_silk; 7211 else 7212 with_silk=no 7213 7214 fi 7215 7216 7217 if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then 7218 enable_silk=no 7219 fi 7220 7221 7222 # Check whether --enable-silk was given. 7223 if test "${enable_silk+set}" = set; then : 7224 enableval=$enable_silk; 7225 if test "$enable_silk" = "no"; then 7226 ac_no_silk=1 7227 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h 7228 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5 7230 $as_echo "Checking if SILK support is disabled... yes" >&6; } 7231 fi 7232 7233 else 7234 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5 7236 $as_echo "checking for SILK installations.." >&6; } 7237 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then 7238 CFLAGS="$CFLAGS -I$with_silk/interface" 7239 LDFLAGS="$LDFLAGS -L$with_silk" 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5 7241 $as_echo "Using SILK prefix... $with_silk" >&6; } 7242 fi 7243 7244 7245 ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default" 7246 if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then : 7247 silk_h_present=1 7248 fi 7249 7250 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5 7252 $as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; } 7253 if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255 else 7256 ac_check_lib_save_LIBS=$LIBS 7257 LIBS="-lSKP_SILK_SDK $LIBS" 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259 /* end confdefs.h. */ 7260 7261 /* Override any GCC internal prototype to avoid an error. 7262 Use char because int might match the return type of a GCC 7263 builtin and then its argument prototype would still apply. */ 7264 #ifdef __cplusplus 7265 extern "C" 7266 #endif 7267 char SKP_Silk_SDK_get_version (); 7268 int 7269 main () 7270 { 7271 return SKP_Silk_SDK_get_version (); 7272 ; 7273 return 0; 7274 } 7275 _ACEOF 7276 if ac_fn_c_try_link "$LINENO"; then : 7277 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes 7278 else 7279 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no 7280 fi 7281 rm -f core conftest.err conftest.$ac_objext \ 7282 conftest$ac_exeext conftest.$ac_ext 7283 LIBS=$ac_check_lib_save_LIBS 7284 fi 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5 7286 $as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; } 7287 if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then : 7288 silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK" 7289 fi 7290 7291 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5 7293 $as_echo "SILK library found, SILK support enabled" >&6; } 7294 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h 7295 7296 else 7297 ac_no_silk=1 7298 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h 7299 7300 fi 7301 7302 fi 7303 7196 7304 7197 7305 -
pjproject/trunk/aconfigure.ac
r4159 r4265 1367 1367 ]) 1368 1368 1369 dnl # SILK prefix 1370 AC_ARG_WITH(silk, 1371 AC_HELP_STRING([--with-silk=DIR], 1372 [Specify alternate SILK prefix]), 1373 [], 1374 [with_silk=no] 1375 ) 1376 1377 dnl # Do not use default SILK installation if we are cross-compiling 1378 if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then 1379 enable_silk=no 1380 fi 1381 1382 dnl # Include SILK support 1383 AC_SUBST(ac_no_silk) 1384 AC_ARG_ENABLE(silk, 1385 AC_HELP_STRING([--disable-silk], 1386 [Exclude SILK support from the build (default: autodetect)]) 1387 , 1388 [ 1389 if test "$enable_silk" = "no"; then 1390 [ac_no_silk=1] 1391 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,0) 1392 AC_MSG_RESULT([Checking if SILK support is disabled... yes]) 1393 fi 1394 ], 1395 [ 1396 AC_MSG_RESULT([checking for SILK installations..]) 1397 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then 1398 CFLAGS="$CFLAGS -I$with_silk/interface" 1399 LDFLAGS="$LDFLAGS -L$with_silk" 1400 AC_MSG_RESULT([Using SILK prefix... $with_silk]) 1401 fi 1402 AC_SUBST(silk_h_present) 1403 AC_SUBST(silk_present) 1404 AC_CHECK_HEADER(SKP_Silk_SDK_API.h,[silk_h_present=1]) 1405 AC_CHECK_LIB(SKP_SILK_SDK,SKP_Silk_SDK_get_version,[silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"]) 1406 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then 1407 AC_MSG_RESULT([SILK library found, SILK support enabled]) 1408 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,1) 1409 else 1410 [ac_no_silk=1] 1411 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,0) 1412 fi 1413 ]) 1414 1415 1369 1416 dnl ########################################## 1370 1417 dnl # -
pjproject/trunk/pjmedia/build/Makefile
r4150 r4265 114 114 h263_packetizer.o h264_packetizer.o \ 115 115 $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 116 ipp_codecs.o $(CODEC_OBJS) \116 ipp_codecs.o opencore_amrnb.o silk.o $(CODEC_OBJS) \ 117 117 g7221_sdp_match.o amr_sdp_match.o 118 118 export PJMEDIA_CODEC_CFLAGS += $(_CFLAGS) $(GSM_CFLAGS) $(SPEEX_CFLAGS) \
Note: See TracChangeset
for help on using the changeset viewer.