Ignore:
Timestamp:
Mar 20, 2014 5:35:27 AM (8 years ago)
Author:
riza
Message:

Re #1751: Fix build error when using 'disable-libsamplerate' on configure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r4732 r4800  
    871871dnl # Include libsamplerate 
    872872AC_ARG_ENABLE(libsamplerate, 
    873               AC_HELP_STRING([--enable-libsamplerate], 
    874                              [Link with libsamplerate when available.]), 
    875               [ AC_CHECK_LIB(samplerate,src_new) ] 
    876               [ac_pjmedia_resample=libsamplerate], 
    877               AC_MSG_RESULT([Skipping libsamplerate detection]) 
    878              ) 
     873           AC_HELP_STRING([--enable-libsamplerate], 
     874                    [Link with libsamplerate when available.]), 
     875           [ 
     876           if test "$enable_libsamplerate" = "yes"; then 
     877             AC_MSG_RESULT([Checking if libsamplerate is enabled...yes]) 
     878             AC_CHECK_LIB(samplerate,src_new) 
     879             [ac_pjmedia_resample=libsamplerate] 
     880           else 
     881             AC_MSG_RESULT([Checking if libsamplerate is enabled...no]) 
     882           fi 
     883           ], AC_MSG_RESULT([Checking if libsamplerate is enabled...no])) 
    879884 
    880885AC_SUBST(ac_resample_dll) 
Note: See TracChangeset for help on using the changeset viewer.