Changeset 5347 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jun 16, 2016 10:38:34 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5310 r5347 734 734 ac_android_cflags="$ac_android_cflags -DPJMEDIA_VIDEO_DEV_HAS_ANDROID=1" 735 735 ;; 736 *-apple-darwin_ios*) 737 ac_pjmedia_video=iphone_os 738 AC_SUBST(ac_pjmedia_video_has_ios) 739 AC_SUBST(ac_ios_cflags) 736 *darwin*) 737 ac_pjmedia_video=darwin_os 738 AC_SUBST(ac_pjmedia_video_has_darwin) 739 AC_SUBST(ac_pjmedia_video_has_ios_opengl) 740 AC_SUBST(ac_darwin_cflags) 740 741 SAVED_LIBS="$LIBS" 741 742 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 742 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_ios=yes],[ac_pjmedia_video_has_ios=no]) 743 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 744 [ac_pjmedia_video_has_darwin=yes], 745 [ac_pjmedia_video_has_darwin=no]) 746 LIBS="-framework OpenGLES" 747 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 748 [ac_pjmedia_video_has_ios_opengl=yes], 749 [ac_pjmedia_video_has_ios_opengl=no]) 743 750 LIBS="$SAVED_LIBS" 744 if test "$ac_pjmedia_video_has_ ios" = "yes"; then745 ac_ ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1 -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1"746 LIBS="$LIBS -framework OpenGLES -frameworkAVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"751 if test "$ac_pjmedia_video_has_darwin" = "yes"; then 752 ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_DARWIN=1" 753 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 747 754 AC_MSG_RESULT([Checking if AVFoundation framework is available... yes]) 748 755 else 749 756 AC_MSG_RESULT([Checking if AVFoundation framework is available... no]) 750 757 fi 751 ;; 752 *darwin*) 753 ac_pjmedia_video=mac_os 754 AC_SUBST(ac_pjmedia_video_has_qt) 755 AC_SUBST(ac_qt_cflags) 756 SAVED_LIBS="$LIBS" 757 LIBS="-framework QTKit" 758 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_qt=yes],[ac_pjmedia_video_has_qt=no]) 759 LIBS="$SAVED_LIBS" 760 if test "$ac_pjmedia_video_has_qt" = "yes"; then 761 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 762 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 763 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 758 if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then 759 ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1" 760 LIBS="$LIBS -framework OpenGLES" 761 AC_MSG_RESULT([Checking if OpenGLES framework is available... yes]) 764 762 else 765 AC_MSG_RESULT([Checking if QTKitframework is available... no])763 AC_MSG_RESULT([Checking if OpenGLES framework is available... no]) 766 764 fi 767 ;; 765 if false; then 766 # QTKit is deprecated, see ticket #1931. 767 ac_pjmedia_video=mac_os 768 AC_SUBST(ac_pjmedia_video_has_qt) 769 AC_SUBST(ac_qt_cflags) 770 SAVED_LIBS="$LIBS" 771 LIBS="-framework QTKit" 772 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_qt=yes],[ac_pjmedia_video_has_qt=no]) 773 LIBS="$SAVED_LIBS" 774 if test "$ac_pjmedia_video_has_qt" = "yes"; then 775 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 776 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 777 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 778 else 779 AC_MSG_RESULT([Checking if QTKit framework is available... no]) 780 fi 781 fi 782 ;; 768 783 esac 769 784 fi
Note: See TracChangeset
for help on using the changeset viewer.