Changeset 1502 for pjproject/trunk/aconfigure
- Timestamp:
- Oct 16, 2007 8:54:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r1449 r1502 866 866 --disable-speex-codec Exclude Speex codecs in the build 867 867 --disable-ilbc-codec Exclude iLBC codec in the build 868 --enable-libsamplerate Link with libsamplerate when available. Note that 869 PJMEDIA_RESAMPLE_IMP must also be configured 868 870 --disable-ssl Exclude SSL support the build (default: autodetect) 869 871 … … 9418 9420 fi; 9419 9421 9422 # Check whether --enable-libsamplerate or --disable-libsamplerate was given. 9423 if test "${enable_libsamplerate+set}" = set; then 9424 enableval="$enable_libsamplerate" 9425 9426 echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 9427 echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6 9428 if test "${ac_cv_lib_samplerate_src_new+set}" = set; then 9429 echo $ECHO_N "(cached) $ECHO_C" >&6 9430 else 9431 ac_check_lib_save_LIBS=$LIBS 9432 LIBS="-lsamplerate $LIBS" 9433 cat >conftest.$ac_ext <<_ACEOF 9434 /* confdefs.h. */ 9435 _ACEOF 9436 cat confdefs.h >>conftest.$ac_ext 9437 cat >>conftest.$ac_ext <<_ACEOF 9438 /* end confdefs.h. */ 9439 9440 /* Override any gcc2 internal prototype to avoid an error. */ 9441 #ifdef __cplusplus 9442 extern "C" 9443 #endif 9444 /* We use char because int might match the return type of a gcc2 9445 builtin and then its argument prototype would still apply. */ 9446 char src_new (); 9447 int 9448 main () 9449 { 9450 src_new (); 9451 ; 9452 return 0; 9453 } 9454 _ACEOF 9455 rm -f conftest.$ac_objext conftest$ac_exeext 9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9457 (eval $ac_link) 2>conftest.er1 9458 ac_status=$? 9459 grep -v '^ *+' conftest.er1 >conftest.err 9460 rm -f conftest.er1 9461 cat conftest.err >&5 9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9463 (exit $ac_status); } && 9464 { ac_try='test -z "$ac_c_werror_flag" 9465 || test ! -s conftest.err' 9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9467 (eval $ac_try) 2>&5 9468 ac_status=$? 9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9470 (exit $ac_status); }; } && 9471 { ac_try='test -s conftest$ac_exeext' 9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9473 (eval $ac_try) 2>&5 9474 ac_status=$? 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); }; }; then 9477 ac_cv_lib_samplerate_src_new=yes 9478 else 9479 echo "$as_me: failed program was:" >&5 9480 sed 's/^/| /' conftest.$ac_ext >&5 9481 9482 ac_cv_lib_samplerate_src_new=no 9483 fi 9484 rm -f conftest.err conftest.$ac_objext \ 9485 conftest$ac_exeext conftest.$ac_ext 9486 LIBS=$ac_check_lib_save_LIBS 9487 fi 9488 echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 9489 echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6 9490 if test $ac_cv_lib_samplerate_src_new = yes; then 9491 cat >>confdefs.h <<_ACEOF 9492 #define HAVE_LIBSAMPLERATE 1 9493 _ACEOF 9494 9495 LIBS="-lsamplerate $LIBS" 9496 9497 fi 9498 9499 else 9500 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 9501 echo "${ECHO_T}Skipping libsamplerate detection" >&6 9502 9503 fi; 9420 9504 9421 9505
Note: See TracChangeset
for help on using the changeset viewer.