comparison configure @ 335:700e9ad49711 bqaudiostream

Update configure
author Chris Cannam
date Thu, 24 Jan 2019 15:30:35 +0000
parents 4819abbd24bb
children 9d547101e7cd
comparison
equal deleted inserted replaced
334:ba3c0e70b5dd 335:700e9ad49711
622 622
623 ac_subst_vars='LTLIBOBJS 623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS 624 LIBOBJS
625 QMAKE_CONFIG 625 QMAKE_CONFIG
626 HAVES 626 HAVES
627 CXXFLAGS_MINIMAL 627 CXXSTANDARD
628 CUT 628 CUT
629 SHA1SUM 629 SHA1SUM
630 MAKEDEPEND 630 MAKEDEPEND
631 XARGS 631 XARGS
632 PERL 632 PERL
633 opus_LIBS
634 opus_CFLAGS
633 id3tag_LIBS 635 id3tag_LIBS
634 id3tag_CFLAGS 636 id3tag_CFLAGS
635 mad_LIBS 637 mad_LIBS
636 mad_CFLAGS 638 mad_CFLAGS
637 fishsound_LIBS 639 fishsound_LIBS
759 fishsound_CFLAGS 761 fishsound_CFLAGS
760 fishsound_LIBS 762 fishsound_LIBS
761 mad_CFLAGS 763 mad_CFLAGS
762 mad_LIBS 764 mad_LIBS
763 id3tag_CFLAGS 765 id3tag_CFLAGS
764 id3tag_LIBS' 766 id3tag_LIBS
767 opus_CFLAGS
768 opus_LIBS'
765 769
766 770
767 # Initialize some variables set by options. 771 # Initialize some variables set by options.
768 ac_init_help= 772 ac_init_help=
769 ac_init_version=false 773 ac_init_version=false
1421 mad_CFLAGS C compiler flags for mad, overriding pkg-config 1425 mad_CFLAGS C compiler flags for mad, overriding pkg-config
1422 mad_LIBS linker flags for mad, overriding pkg-config 1426 mad_LIBS linker flags for mad, overriding pkg-config
1423 id3tag_CFLAGS 1427 id3tag_CFLAGS
1424 C compiler flags for id3tag, overriding pkg-config 1428 C compiler flags for id3tag, overriding pkg-config
1425 id3tag_LIBS linker flags for id3tag, overriding pkg-config 1429 id3tag_LIBS linker flags for id3tag, overriding pkg-config
1430 opus_CFLAGS C compiler flags for opus, overriding pkg-config
1431 opus_LIBS linker flags for opus, overriding pkg-config
1426 1432
1427 Use these variables to override the choices made by `configure' or to help 1433 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations. 1434 it to find libraries and programs with nonstandard names/locations.
1429 1435
1430 Report bugs to the package provider. 1436 Report bugs to the package provider.
4366 esac 4372 esac
4367 4373
4368 4374
4369 4375
4370 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" 4376 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
4371 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING" 4377 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS"
4372 SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE"
4373 4378
4374 # Now we have: USER_CXXFLAGS contains any flags the user set 4379 # Now we have: USER_CXXFLAGS contains any flags the user set
4375 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought 4380 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
4376 # we should use. If we have GCC, we override the latter but then 4381 # we should use. If we have GCC, we override the latter but then
4377 # allow ourselves to be overridden (later) by the former 4382 # allow ourselves to be overridden (later) by the former
4378 4383
4379 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" 4384 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4385 OPTFLAGS_DEBUG="-O2"
4386 LDFLAGS_DEBUG=""
4380 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" 4387 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4381 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" 4388 OPTFLAGS_RELEASE="-O2"
4389 LDFLAGS_RELEASE=""
4390 CXXSTANDARD=c++14
4382 4391
4383 if test "x$GCC" = "xyes"; then 4392 if test "x$GCC" = "xyes"; then
4384 CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" 4393 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
4385 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror" 4394 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
4386 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math" 4395 OPTFLAGS_DEBUG="-O2"
4387 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0" 4396 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0"
4388 fi 4397 OPTFLAGS_RELEASE="-O3 -ffast-math"
4389 4398 LIBS_DEBUG="$LIBS"
4390 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" 4399 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh`
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5
4401 $as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; }
4402 if eval \${$as_CACHEVAR+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405
4406 ax_check_save_flags=$CXXFLAGS
4407 CXXFLAGS="$CXXFLAGS --std=$CXXSTANDARD"
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410
4411 int
4412 main ()
4413 {
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_cxx_try_compile "$LINENO"; then :
4420 eval "$as_CACHEVAR=yes"
4421 else
4422 eval "$as_CACHEVAR=no"
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 CXXFLAGS=$ax_check_save_flags
4426 fi
4427 eval ac_res=\$$as_CACHEVAR
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4429 $as_echo "$ac_res" >&6; }
4430 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
4431 :
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&5
4434 $as_echo "$as_me: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&6;}
4435 CXXSTANDARD=c++11
4436 fi
4437
4438 fi
4439
4440 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE $OPTFLAGS_RELEASE"
4441 LDFLAGS_BUILD="$LDFLAGS_RELEASE $OPTFLAGS_RELEASE"
4391 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" 4442 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
4392 4443
4393 QMAKE_CONFIG="release" 4444 QMAKE_CONFIG="release"
4394 4445
4395 # Check whether --enable-debug was given. 4446 # Check whether --enable-debug was given.
4396 if test "${enable_debug+set}" = set; then : 4447 if test "${enable_debug+set}" = set; then :
4397 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 4448 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
4398 $as_echo "$as_me: enabling debug build" >&6;} 4449 $as_echo "$as_me: enabling debug build" >&6;}
4399 QMAKE_CONFIG="debug" 4450 QMAKE_CONFIG="debug"
4400 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" 4451 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG $OPTFLAGS_DEBUG"
4452 LDFLAGS_BUILD="$LDFLAGS_DEBUG"
4401 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" 4453 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4454 LIBS="$LIBS_DEBUG"
4402 fi 4455 fi
4403 4456
4404 4457
4405 if test x"$USER_CXXFLAGS" != x; then 4458 if test x"$USER_CXXFLAGS" != x; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
4407 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} 4460 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5
4409 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} 4462 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
4410 CXXFLAGS_BUILD="$USER_CXXFLAGS" 4463 CXXFLAGS_BUILD="$USER_CXXFLAGS"
4411 CXXFLAGS_MINIMAL="$USER_CXXFLAGS" 4464 LDFLAGS_BUILD=""
4412 fi 4465 fi
4413 4466
4414 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" 4467 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
4468 LDFLAGS="$LDFLAGS_BUILD"
4415 4469
4416 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4418 inttypes.h stdint.h unistd.h 4472 inttypes.h stdint.h unistd.h
4419 do : 4473 do :
6415 fi 6469 fi
6416 6470
6417 fi 6471 fi
6418 fi 6472 fi
6419 fi 6473 fi
6474
6475
6476 SV_MODULE_MODULE=opus
6477 SV_MODULE_VERSION_TEST="opusfile"
6478 SV_MODULE_HEADER=opus/opusfile.h
6479 SV_MODULE_LIB=opusfile
6480 SV_MODULE_FUNC=op_read_float
6481 SV_MODULE_HAVE=HAVE_$(echo opus | tr 'a-z' 'A-Z')
6482 SV_MODULE_FAILED=1
6483 if test -n "$opus_LIBS" ; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
6485 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
6486 CXXFLAGS="$CXXFLAGS $opus_CFLAGS"
6487 LIBS="$LIBS $opus_LIBS"
6488 SV_MODULE_FAILED=""
6489 fi
6490 if test -z "$SV_MODULE_VERSION_TEST" ; then
6491 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
6492 fi
6493 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
6494
6495 pkg_failed=no
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus" >&5
6497 $as_echo_n "checking for opus... " >&6; }
6498
6499 if test -n "$opus_CFLAGS"; then
6500 pkg_cv_opus_CFLAGS="$opus_CFLAGS"
6501 elif test -n "$PKG_CONFIG"; then
6502 if test -n "$PKG_CONFIG" && \
6503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6504 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; }; then
6508 pkg_cv_opus_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6509 test "x$?" != "x0" && pkg_failed=yes
6510 else
6511 pkg_failed=yes
6512 fi
6513 else
6514 pkg_failed=untried
6515 fi
6516 if test -n "$opus_LIBS"; then
6517 pkg_cv_opus_LIBS="$opus_LIBS"
6518 elif test -n "$PKG_CONFIG"; then
6519 if test -n "$PKG_CONFIG" && \
6520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6521 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
6525 pkg_cv_opus_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6526 test "x$?" != "x0" && pkg_failed=yes
6527 else
6528 pkg_failed=yes
6529 fi
6530 else
6531 pkg_failed=untried
6532 fi
6533
6534
6535
6536 if test $pkg_failed = yes; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539
6540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6541 _pkg_short_errors_supported=yes
6542 else
6543 _pkg_short_errors_supported=no
6544 fi
6545 if test $_pkg_short_errors_supported = yes; then
6546 opus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6547 else
6548 opus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
6549 fi
6550 # Put the nasty error message in config.log where it belongs
6551 echo "$opus_PKG_ERRORS" >&5
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6554 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6555 elif test $pkg_failed = untried; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
6559 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6560 else
6561 opus_CFLAGS=$pkg_cv_opus_CFLAGS
6562 opus_LIBS=$pkg_cv_opus_LIBS
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6564 $as_echo "yes" >&6; }
6565 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $opus_CFLAGS";LIBS="$LIBS $opus_LIBS";SV_MODULE_FAILED=""
6566 fi
6567 fi
6568 if test -n "$SV_MODULE_FAILED"; then
6569 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6570 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6572 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6575 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6576 fi
6577
6578
6579 if test -z "$SV_MODULE_FAILED"; then
6580 if test -n "$SV_MODULE_LIB"; then
6581 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6583 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6584 if eval \${$as_ac_Lib+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 ac_check_lib_save_LIBS=$LIBS
6588 LIBS="-l$SV_MODULE_LIB $LIBS"
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591
6592 /* Override any GCC internal prototype to avoid an error.
6593 Use char because int might match the return type of a GCC
6594 builtin and then its argument prototype would still apply. */
6595 #ifdef __cplusplus
6596 extern "C"
6597 #endif
6598 char $SV_MODULE_FUNC ();
6599 int
6600 main ()
6601 {
6602 return $SV_MODULE_FUNC ();
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_cxx_try_link "$LINENO"; then :
6608 eval "$as_ac_Lib=yes"
6609 else
6610 eval "$as_ac_Lib=no"
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6614 LIBS=$ac_check_lib_save_LIBS
6615 fi
6616 eval ac_res=\$$as_ac_Lib
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6618 $as_echo "$ac_res" >&6; }
6619 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6620 LIBS="$LIBS -l$SV_MODULE_LIB"
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6623 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6624 fi
6625
6626 fi
6627 fi
6628 fi
6629
6630
6420 6631
6421 6632
6422 6633
6423 6634
6424 6635