Changeset 4331 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jan 23, 2013 6:18:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r4271 r4331 1321 1321 ]) 1322 1322 1323 dnl # opencore-amrnb alt prefix1323 dnl # Obsolete option --with-opencore-amrnb 1324 1324 AC_ARG_WITH(opencore-amrnb, 1325 1325 AC_HELP_STRING([--with-opencore-amrnb=DIR], 1326 [Specify alternate libopencore-amrnb prefix]), 1326 [This option is obsolete and replaced by --with-opencore-amr=DIR]), 1327 [AC_MSG_ERROR(This option is obsolete and replaced by --with-opencore-amr=DIR)], 1328 [] 1329 ) 1330 1331 dnl # opencore-amr alt prefix 1332 AC_ARG_WITH(opencore-amr, 1333 AC_HELP_STRING([--with-opencore-amr=DIR], 1334 [Specify alternate libopencore-amr prefix]), 1327 1335 [], 1328 [with_opencore_amr nb=no]1336 [with_opencore_amr=no] 1329 1337 ) 1330 1338 1331 dnl # Do not use default opencore-amr nbinstallation if we are cross-compiling1332 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr nb" = "xno"; then1333 enable_opencore_amr nb=no1339 dnl # Do not use default opencore-amr installation if we are cross-compiling 1340 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then 1341 enable_opencore_amr=no 1334 1342 fi 1335 1343 1336 dnl # Include opencore-amrnb support 1344 dnl # vo-amrwbenc alt prefix 1345 AC_ARG_WITH(opencore-amrwbenc, 1346 AC_HELP_STRING([--with-opencore-amrwbenc=DIR], 1347 [Specify alternate libvo-amrwbenc prefix]), 1348 [], 1349 [with_opencore_amrwbenc=no] 1350 ) 1351 1352 dnl # Do not use default vo-amrwbenc installation if we are cross-compiling 1353 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then 1354 enable_opencore_amrwbenc=no 1355 fi 1356 1357 1358 dnl # Include opencore-amr support 1337 1359 AC_SUBST(ac_no_opencore_amrnb) 1338 AC_ARG_ENABLE(opencore_amrnb, 1339 AC_HELP_STRING([--disable-opencore-amrnb], 1340 [Exclude OpenCORE AMR-NB support from the build (default: autodetect)]) 1360 AC_SUBST(ac_no_opencore_amrwb) 1361 AC_ARG_ENABLE(opencore_amr, 1362 AC_HELP_STRING([--disable-opencore-amr], 1363 [Exclude OpenCORE AMR support from the build (default: autodetect)]) 1341 1364 , 1342 1365 [ 1343 if test "$enable_opencore_amr nb" = "no"; then1366 if test "$enable_opencore_amr" = "no"; then 1344 1367 [ac_no_opencore_amrnb=1] 1368 [ac_no_opencore_amrwb=1] 1345 1369 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1346 AC_MSG_RESULT([Checking if OpenCORE AMR-NB support is disabled... yes]) 1370 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRWB_CODEC,0) 1371 AC_MSG_RESULT([Checking if OpenCORE AMR support is disabled... yes]) 1347 1372 fi 1348 1373 ], 1349 1374 [ 1350 AC_MSG_RESULT([checking for OpenCORE AMR-NB installations..]) 1351 if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then 1352 CFLAGS="$CFLAGS -I$with_opencore_amrnb/include" 1353 LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib" 1354 AC_MSG_RESULT([Using OpenCORE AMR-NB prefix... $with_opencore_amrnb]) 1355 fi 1375 AC_MSG_RESULT([checking for OpenCORE AMR installations..]) 1376 if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then 1377 CFLAGS="$CFLAGS -I$with_opencore_amr/include" 1378 LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib" 1379 AC_MSG_RESULT([Using OpenCORE AMR prefix... $with_opencore_amr]) 1380 fi 1381 if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then 1382 CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include" 1383 LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib" 1384 AC_MSG_RESULT([Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc]) 1385 fi 1356 1386 AC_SUBST(opencore_amrnb_h_present) 1357 1387 AC_SUBST(opencore_amrnb_present) … … 1365 1395 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1366 1396 fi 1397 AC_SUBST(opencore_amrwb_enc_h_present) 1398 AC_SUBST(opencore_amrwb_enc_present) 1399 AC_SUBST(opencore_amrwb_dec_h_present) 1400 AC_SUBST(opencore_amrwb_dec_present) 1401 AC_CHECK_HEADER(vo-amrwbenc/enc_if.h,[opencore_amrwb_enc_h_present=1]) 1402 AC_CHECK_HEADER(opencore-amrwb/dec_if.h,[opencore_amrwb_dec_h_present=1]) 1403 AC_CHECK_LIB(opencore-amrwb,D_IF_init,[opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"]) 1404 AC_CHECK_LIB(vo-amrwbenc,E_IF_init,[opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"]) 1405 if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then 1406 AC_MSG_RESULT([OpenCORE AMR-WB library found, AMR-WB support enabled]) 1407 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRWB_CODEC,1) 1408 else 1409 [ac_no_opencore_amrwb=1] 1410 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRWB_CODEC,0) 1411 fi 1412 1367 1413 ]) 1368 1414
Note: See TracChangeset
for help on using the changeset viewer.