Changeset 5361 for pjproject/trunk/aconfigure
- Timestamp:
- Jun 28, 2016 2:32:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5355 r5361 623 623 ac_main_obj 624 624 ac_host 625 ac_no_yuv 625 626 opus_present 626 627 opus_h_present … … 643 644 ac_webrtc_ldflags 644 645 ac_webrtc_cflags 645 ac_libyuv_ldflags646 ac_libyuv_cflags647 646 ac_openh264_ldflags 648 647 ac_openh264_cflags … … 683 682 ac_pjmedia_snd 684 683 ac_pjmedia_resample 684 ac_external_yuv 685 685 ac_srtp_shutdown_present 686 686 ac_srtp_deinit_present … … 780 780 with_external_gsm 781 781 with_external_srtp 782 with_external_yuv 782 783 enable_resample 783 784 enable_sound … … 805 806 with_openh264 806 807 enable_openh264 807 with_libyuv808 enable_libyuv809 808 with_webrtc 810 809 enable_webrtc … … 823 822 with_opus 824 823 enable_opus 824 enable_libyuv 825 825 ' 826 826 ac_precious_vars='build_alias … … 1475 1475 --disable-v4l2 Disable Video4Linux2 (default: not disabled) 1476 1476 --disable-openh264 Disable OpenH264 (default: not disabled) 1477 --disable-libyuv Exclude libyuv in the build1478 1477 --disable-webrtc Exclude webrtc in the build 1479 1478 --enable-ipp Enable Intel IPP support. Specify the Intel IPP … … 1492 1491 autodetect) 1493 1492 1493 --disable-libyuv Exclude libyuv in the build 1494 1494 1495 1495 Optional Packages: … … 1511 1511 CFLAGS and LDFLAGS env var to set the include/lib 1512 1512 paths) 1513 --with-external-yuv Use external libyuv development files, not the one 1514 in "third_party" directory. When this option is set, 1515 make sure that libyuv is accessible to use (hint: 1516 use CFLAGS and LDFLAGS env var to set the 1517 include/lib paths) 1513 1518 --with-external-pa Use external PortAudio development files, not the 1514 1519 one in "third_party" directory. When this option is … … 1519 1524 --with-ffmpeg=DIR Specify alternate FFMPEG prefix 1520 1525 --with-openh264=DIR Specify alternate OpenH264 prefix 1521 --with-libyuv=DIR Specify alternate libyuv prefix1522 1526 --with-webrtc=DIR Specify alternate WebRtc prefix 1523 1527 --with-ipp=DIR Specify the Intel IPP location … … 6050 6054 fi 6051 6055 6056 6057 ac_external_yuv=0 6058 6059 6060 # Check whether --with-external-yuv was given. 6061 if test "${with_external_yuv+set}" = set; then : 6062 withval=$with_external_yuv; 6063 if test "x$with_external_yuv" != "xno"; then 6064 # Test libyuv installation 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external libyuv devkit is installed" >&5 6066 $as_echo_n "checking if external libyuv devkit is installed... " >&6; } 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068 /* end confdefs.h. */ 6069 #include <libyuv.h> 6070 int 6071 main () 6072 { 6073 RGB24ToI420(0,0,0,0,0,0,0,0,0,0); 6074 ; 6075 return 0; 6076 } 6077 _ACEOF 6078 if ac_fn_c_try_compile "$LINENO"; then : 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 6080 $as_echo "yes!!" >&6; } 6081 ac_external_yuv="1" 6082 6083 else 6084 as_fn_error $? "Unable to use external libyuv. If libyuv development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 6085 fi 6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6087 fi 6088 6089 6090 fi 6091 6092 6093 6052 6094 ac_pjmedia_resample=libresample 6053 6095 … … 6213 6255 6214 6256 6257 # Disable video on mingw 6258 case $target in 6259 *mingw*) 6260 enable_video="no" 6261 ;; 6262 esac 6263 6215 6264 # Check whether --enable-video was given. 6216 6265 if test "${enable_video+set}" = set; then : … … 6871 6920 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 6872 6921 av_pkg="$av_pkg libswscale" 6922 enable_libyuv="no" 6873 6923 fi 6874 6924 if $PKG_CONFIG --exists libavutil; then … … 7109 7159 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 7110 7160 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" 7161 enable_libyuv="no" 7111 7162 7112 7163 fi … … 7321 7372 rm -f core conftest.err conftest.$ac_objext \ 7322 7373 conftest$ac_exeext conftest.$ac_ext 7323 7324 7325 fi7326 7327 7328 7329 # Check whether --with-libyuv was given.7330 if test "${with_libyuv+set}" = set; then :7331 withval=$with_libyuv;7332 else7333 with_libyuv=no7334 7335 fi7336 7337 7338 if test "x$ac_cross_compile" != "x" -a "x$with_libyuv" = "xno"; then7339 enable_libyuv=no7340 fi7341 7342 7343 7344 # Check whether --enable-libyuv was given.7345 if test "${enable_libyuv+set}" = set; then :7346 enableval=$enable_libyuv; if test "$enable_libyuv" = "no"; then7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&57348 $as_echo "Checking if libyuv is disabled...yes" >&6; }7349 fi7350 else7351 7352 if test "x$with_libyuv" != "xno" -a "x$with_libyuv" != "x"; then7353 LIBYUV_PREFIX=$with_libyuv7354 LIBYUV_CFLAGS="-I$LIBYUV_PREFIX/include"7355 7356 case $target in7357 *-apple-darwin_ios*)7358 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out_ios/Release-iphoneos"7359 case $ARCH in7360 *arm*)7361 LIBYUV_LIBS="-lyuv_neon"7362 ;;7363 *)7364 ;;7365 esac7366 ;;7367 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*)7368 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out/Release"7369 ;;7370 *)7371 LIBYUV_CFLAGS=""7372 LIBYUV_LDFLAGS=""7373 ;;7374 esac7375 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using libyuv prefix... $with_libyuv" >&57377 $as_echo "Using libyuv prefix... $with_libyuv" >&6; }7378 else7379 LIBYUV_CFLAGS=""7380 LIBYUV_LDFLAGS=""7381 fi7382 7383 LIBYUV_LIBS="$LIBYUV_LIBS -lyuv"7384 7385 SAVED_LIBS="$LIBS"7386 SAVED_LDFLAGS="$LDFLAGS"7387 SAVED_CFLAGS="$CFLAGS"7388 7389 LIBS="$LIBYUV_LIBS $LIBS"7390 LDFLAGS="$LIBYUV_LDFLAGS $LDFLAGS"7391 CFLAGS="$LIBYUV_CFLAGS $CFLAGS"7392 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I420Scale in -lyuv" >&57394 $as_echo_n "checking for I420Scale in -lyuv... " >&6; }7395 if ${ac_cv_lib_yuv_I420Scale+:} false; then :7396 $as_echo_n "(cached) " >&67397 else7398 ac_check_lib_save_LIBS=$LIBS7399 LIBS="-lyuv7400 $LIBS"7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7402 /* end confdefs.h. */7403 7404 /* Override any GCC internal prototype to avoid an error.7405 Use char because int might match the return type of a GCC7406 builtin and then its argument prototype would still apply. */7407 #ifdef __cplusplus7408 extern "C"7409 #endif7410 char I420Scale ();7411 int7412 main ()7413 {7414 return I420Scale ();7415 ;7416 return 0;7417 }7418 _ACEOF7419 if ac_fn_c_try_link "$LINENO"; then :7420 ac_cv_lib_yuv_I420Scale=yes7421 else7422 ac_cv_lib_yuv_I420Scale=no7423 fi7424 rm -f core conftest.err conftest.$ac_objext \7425 conftest$ac_exeext conftest.$ac_ext7426 LIBS=$ac_check_lib_save_LIBS7427 fi7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yuv_I420Scale" >&57429 $as_echo "$ac_cv_lib_yuv_I420Scale" >&6; }7430 if test "x$ac_cv_lib_yuv_I420Scale" = xyes; then :7431 ac_libyuv_cflags="-DPJMEDIA_HAS_LIBYUV=1 $LIBYUV_CFLAGS"7432 ac_libyuv_ldflags="$LIBYUV_LDFLAGS $LIBYUV_LIBS"7433 7434 else7435 LIBS="$SAVED_LIBS"7436 LDFLAGS="$SAVED_LDFLAGS"7437 CFLAGS="$SAVED_CFLAGS"7438 7439 fi7440 7374 7441 7375 … … 8441 8375 fi 8442 8376 8377 fi 8378 8379 8380 8381 # Check whether --enable-libyuv was given. 8382 if test "${enable_libyuv+set}" = set; then : 8383 enableval=$enable_libyuv; if test "$enable_libyuv" = "no"; then 8384 ac_no_yuv=1, 8385 $as_echo "#define PJMEDIA_HAS_LIBYUV 0" >>confdefs.h 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&5 8388 $as_echo "Checking if libyuv is disabled...yes" >&6; } 8389 fi 8390 else 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...no" >&5 8392 $as_echo "Checking if libyuv is disabled...no" >&6; } 8443 8393 fi 8444 8394
Note: See TracChangeset
for help on using the changeset viewer.