Changeset 906:15c3f35412ca in mediastreamer2


Ignore:
Timestamp:
Mar 12, 2010 6:51:17 PM (3 years ago)
Author:
Simon Morlat <simon.morlat@…>
Branch:
default
Message:

strongly encourage the use of libv4l

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r856 r906  
    456456        *) AC_MSG_ERROR(bad value ${enableval} for --disable-gsm) ;; 
    457457      esac],[gsm=true]) 
    458  
     458       
    459459if test x$gsm = xtrue; then 
    460460 
     
    559559AM_CONDITIONAL(BUILD_V4L, test x$found_v4l = xyes ) 
    560560 
     561AC_ARG_ENABLE(libv4l, 
     562      [  --disable-libv4l    Disable usage of libv4l, really discouraged], 
     563      [case "${enableval}" in 
     564        yes) libv4l=true ;; 
     565        no)  libv4l=false ;; 
     566        *) AC_MSG_ERROR(bad value ${enableval} for --disable-libv4l) ;; 
     567      esac],[libv4l=true])b 
     568 
    561569PKG_CHECK_MODULES(LIBV4L2, libv4l2, 
    562         [AC_DEFINE(HAVE_LIBV4L2,1,[Defined if we have libv4l2])] 
     570        [AC_DEFINE(HAVE_LIBV4L2,1,[Defined if we have libv4l2]) 
     571        have_libv4l2=yes] 
    563572        ,[echo "No libv4l2 found."] 
    564573) 
    565574PKG_CHECK_MODULES(LIBV4L1, libv4l1, 
    566         [AC_DEFINE(HAVE_LIBV4L1,1,[Defined if we have libv4l1])] 
     575        [AC_DEFINE(HAVE_LIBV4L1,1,[Defined if we have libv4l1]) 
     576        have_libv4l1=yes] 
    567577        ,[echo "No libv4l1 found."] 
    568578) 
     579 
     580if test "$found_v4l" = "yes" && test "$have_libv4l2" != "yes" ; then 
     581        if test "$libv4l" = "no" ; then 
     582                AC_MSG_ERROR( 
     583[ 
     584Missing libv4l2. It is highly recommended to build with 
     585libv4l2 headers and library. Many camera will won't work or will crash 
     586your application if libv4l2 is not installed. 
     587If you know what you are doing, you can use --disable-libv4l to disable 
     588this check. 
     589]) 
     590        fi 
     591fi 
    569592 
    570593dnl ################################################## 
Note: See TracChangeset for help on using the changeset viewer.