Ignore:
Timestamp:
Aug 16, 2011 5:44:46 AM (13 years ago)
Author:
ming
Message:

Re #1324: Add checking of iOS SDK frameworks in the configure script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r3691 r3701  
    697697ac_pa_use_oss 
    698698ac_pjmedia_video 
     699ac_pjmedia_video_has_ios 
    699700ac_ios_cflags 
    700701ac_pjmedia_video_has_qt 
     
    1168211683        ac_pjmedia_video=iphone_os 
    1168311684 
    11684         ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 
    11685         LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
    11686         { echo "$as_me:$LINENO: result: Checking video device backend... AVFoundation" >&5 
    11687 echo "${ECHO_T}Checking video device backend... AVFoundation" >&6; } 
     11685 
     11686        SAVED_LIBS="$LIBS" 
     11687        LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
     11688        cat >conftest.$ac_ext <<_ACEOF 
     11689/* confdefs.h.  */ 
     11690_ACEOF 
     11691cat confdefs.h >>conftest.$ac_ext 
     11692cat >>conftest.$ac_ext <<_ACEOF 
     11693/* end confdefs.h.  */ 
     11694 
     11695int 
     11696main () 
     11697{ 
     11698 
     11699  ; 
     11700  return 0; 
     11701} 
     11702_ACEOF 
     11703rm -f conftest.$ac_objext conftest$ac_exeext 
     11704if { (ac_try="$ac_link" 
     11705case "(($ac_try" in 
     11706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11707  *) ac_try_echo=$ac_try;; 
     11708esac 
     11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     11710  (eval "$ac_link") 2>conftest.er1 
     11711  ac_status=$? 
     11712  grep -v '^ *+' conftest.er1 >conftest.err 
     11713  rm -f conftest.er1 
     11714  cat conftest.err >&5 
     11715  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     11716  (exit $ac_status); } && { 
     11717         test -z "$ac_c_werror_flag" || 
     11718         test ! -s conftest.err 
     11719       } && test -s conftest$ac_exeext && 
     11720       $as_test_x conftest$ac_exeext; then 
     11721  ac_pjmedia_video_has_ios=yes 
     11722else 
     11723  echo "$as_me: failed program was:" >&5 
     11724sed 's/^/| /' conftest.$ac_ext >&5 
     11725 
     11726        ac_pjmedia_video_has_ios=no 
     11727fi 
     11728 
     11729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     11730      conftest$ac_exeext conftest.$ac_ext 
     11731        LIBS="$SAVED_LIBS" 
     11732        if test "$ac_pjmedia_video_has_ios" = "yes"; then 
     11733          ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 
     11734          LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
     11735          { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... yes" >&5 
     11736echo "${ECHO_T}Checking if AVFoundation framework is available... yes" >&6; } 
     11737        else 
     11738          { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... no" >&5 
     11739echo "${ECHO_T}Checking if AVFoundation framework is available... no" >&6; } 
     11740        fi 
    1168811741        ;; 
    1168911742  *darwin*) 
     
    1408714140ac_pa_use_oss!$ac_pa_use_oss$ac_delim 
    1408814141ac_pjmedia_video!$ac_pjmedia_video$ac_delim 
     14142ac_pjmedia_video_has_ios!$ac_pjmedia_video_has_ios$ac_delim 
    1408914143ac_ios_cflags!$ac_ios_cflags$ac_delim 
    1409014144ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim 
     
    1409914153ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim 
    1410014154ac_no_speex_codec!$ac_no_speex_codec$ac_delim 
    14101 ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim 
    1410214155_ACEOF 
    1410314156 
     
    1414114194for ac_last_try in false false false false false :; do 
    1414214195  cat >conf$$subs.sed <<_ACEOF 
     14196ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim 
    1414314197ac_sdl_cflags!$ac_sdl_cflags$ac_delim 
    1414414198ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim 
     
    1416014214_ACEOF 
    1416114215 
    14162   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then 
     14216  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then 
    1416314217    break 
    1416414218  elif $ac_last_try; then 
Note: See TracChangeset for help on using the changeset viewer.