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.ac

    r3691 r3701  
    600600  arm-apple-darwin*) 
    601601        ac_pjmedia_video=iphone_os 
     602        AC_SUBST(ac_pjmedia_video_has_ios) 
    602603        AC_SUBST(ac_ios_cflags) 
    603         ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 
    604         LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
    605         AC_MSG_RESULT([Checking video device backend... AVFoundation]) 
     604        SAVED_LIBS="$LIBS" 
     605        LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
     606        AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_ios=yes],[ac_pjmedia_video_has_ios=no]) 
     607        LIBS="$SAVED_LIBS" 
     608        if test "$ac_pjmedia_video_has_ios" = "yes"; then 
     609          ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 
     610          LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 
     611          AC_MSG_RESULT([Checking if AVFoundation framework is available... yes]) 
     612        else 
     613          AC_MSG_RESULT([Checking if AVFoundation framework is available... no]) 
     614        fi 
    606615        ;; 
    607616  *darwin*) 
Note: See TracChangeset for help on using the changeset viewer.