Ignore:
Timestamp:
Oct 14, 2011 4:15:15 AM (13 years ago)
Author:
bennylp
Message:

Committing re #1388: Support for OpenCORE AMR-NB codec (thank you Dan Arrhenius for the contribution!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/aconfigure.ac

    r3599 r3816  
    998998              ]) 
    999999 
     1000dnl # Include opencore-amrnb support 
     1001AC_SUBST(ac_no_opencore_amrnb) 
     1002AC_ARG_ENABLE(opencore_amrnb, 
     1003              AC_HELP_STRING([--disable-opencore-amrnb], 
     1004                             [Exclude OpenCORE AMR-NB support from the build (default: autodetect)]) 
     1005              , 
     1006              [ 
     1007                if test "$enable_opencore_amrnb" = "no"; then 
     1008                 [ac_no_opencore_amrnb=1] 
     1009                 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 
     1010                 AC_MSG_RESULT([Checking if OpenCORE AMR-NB support is disabled... yes]) 
     1011                fi 
     1012              ], 
     1013              [ 
     1014                AC_MSG_RESULT([checking for OpenCORE AMR-NB installations..]) 
     1015                AC_SUBST(opencore_amrnb_h_present) 
     1016                AC_SUBST(opencore_amrnb_present) 
     1017                AC_CHECK_HEADER(opencore-amrnb/interf_enc.h,[opencore_amrnb_h_present=1]) 
     1018                AC_CHECK_LIB(opencore-amrnb,Encoder_Interface_init,[opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"]) 
     1019                if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 
     1020                        AC_MSG_RESULT([OpenCORE AMR-NB library found, AMR-NB support enabled]) 
     1021                        AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,1) 
     1022                else 
     1023                        [ac_no_opencore_amrnb=1] 
     1024                        AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 
     1025                fi 
     1026              ]) 
     1027 
    10001028 
    10011029dnl ########################################## 
Note: See TracChangeset for help on using the changeset viewer.