| OLD | NEW |
| 1 dnl Process this file with autoconf to produce a configure script. -*-m4-*- | 1 dnl Process this file with autoconf to produce a configure script. -*-m4-*- |
| 2 | 2 |
| 3 dnl The package_version file will be automatically synced to the git revision | 3 dnl The package_version file will be automatically synced to the git revision |
| 4 dnl by the update_version script when configured in the repository, but will | 4 dnl by the update_version script when configured in the repository, but will |
| 5 dnl remain constant in tarball releases unless it is manually edited. | 5 dnl remain constant in tarball releases unless it is manually edited. |
| 6 m4_define([CURRENT_VERSION], | 6 m4_define([CURRENT_VERSION], |
| 7 m4_esyscmd([ ./update_version 2>/dev/null || true | 7 m4_esyscmd([ ./update_version 2>/dev/null || true |
| 8 if test -e package_version; then | 8 if test -e package_version; then |
| 9 . ./package_version | 9 . ./package_version |
| 10 printf "$PACKAGE_VERSION" | 10 printf "$PACKAGE_VERSION" |
| 11 else | 11 else |
| 12 printf "unknown" | 12 printf "unknown" |
| 13 fi ])) | 13 fi ])) |
| 14 | 14 |
| 15 AC_INIT([opus],[CURRENT_VERSION],[opus@xiph.org]) | 15 AC_INIT([opus],[CURRENT_VERSION],[opus@xiph.org]) |
| 16 | 16 |
| 17 AC_CONFIG_SRCDIR(src/opus_encoder.c) | 17 AC_CONFIG_SRCDIR(src/opus_encoder.c) |
| 18 AC_CONFIG_MACRO_DIR([m4]) | 18 AC_CONFIG_MACRO_DIR([m4]) |
| 19 | 19 |
| 20 dnl enable silent rules on automake 1.11 and later | 20 dnl enable silent rules on automake 1.11 and later |
| 21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | 21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 22 | 22 |
| 23 # For libtool. | 23 # For libtool. |
| 24 dnl Please update these for releases. | 24 dnl Please update these for releases. |
| 25 OPUS_LT_CURRENT=5 | 25 OPUS_LT_CURRENT=6 |
| 26 OPUS_LT_REVISION=3 | 26 OPUS_LT_REVISION=1 |
| 27 OPUS_LT_AGE=5 | 27 OPUS_LT_AGE=6 |
| 28 | 28 |
| 29 AC_SUBST(OPUS_LT_CURRENT) | 29 AC_SUBST(OPUS_LT_CURRENT) |
| 30 AC_SUBST(OPUS_LT_REVISION) | 30 AC_SUBST(OPUS_LT_REVISION) |
| 31 AC_SUBST(OPUS_LT_AGE) | 31 AC_SUBST(OPUS_LT_AGE) |
| 32 | 32 |
| 33 AM_INIT_AUTOMAKE([no-define]) | 33 AM_INIT_AUTOMAKE([no-define]) |
| 34 AM_MAINTAINER_MODE([enable]) | 34 AM_MAINTAINER_MODE([enable]) |
| 35 | 35 |
| 36 AC_CANONICAL_HOST | 36 AC_CANONICAL_HOST |
| 37 AC_MINGW32 | 37 AC_MINGW32 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 NE10_CFLAGS="-I$NE10_includes" | 414 NE10_CFLAGS="-I$NE10_includes" |
| 415 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then | 415 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then |
| 416 NE10_CFLAGS="" | 416 NE10_CFLAGS="" |
| 417 elif test "x$ogg_prefix" != "x" ; then | 417 elif test "x$ogg_prefix" != "x" ; then |
| 418 NE10_CFLAGS="-I$NE10_prefix/include" | 418 NE10_CFLAGS="-I$NE10_prefix/include" |
| 419 elif test "x$prefix" != "xNONE"; then | 419 elif test "x$prefix" != "xNONE"; then |
| 420 NE10_CFLAGS="-I$prefix/include" | 420 NE10_CFLAGS="-I$prefix/include" |
| 421 fi | 421 fi |
| 422 | 422 |
| 423 AC_MSG_CHECKING(for NE10) | 423 AC_MSG_CHECKING(for NE10) |
| 424 save_CFLAGS="$CFLAGS"; CFLAGS="$NE10_CFLAGS" | 424 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS" |
| 425 save_LIBS="$LIBS"; LIBS="$NE10_LIBS $LIBM" | 425 save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM" |
| 426 AC_LINK_IFELSE( | 426 AC_LINK_IFELSE( |
| 427 [ | 427 [ |
| 428 AC_LANG_PROGRAM( | 428 AC_LANG_PROGRAM( |
| 429 [[#include <NE10_init.h> | 429 [[#include <NE10_dsp.h> |
| 430 ]], | 430 ]], |
| 431 [[ | 431 [[ |
| 432 ne10_fft_cfg_float32_t cfg; | 432 ne10_fft_cfg_float32_t cfg; |
| 433 cfg = ne10_fft_alloc_c2c_float32_neon(480); | 433 cfg = ne10_fft_alloc_c2c_float32_neon(480); |
| 434 ]] | 434 ]] |
| 435 ) | 435 ) |
| 436 ],[ | 436 ],[ |
| 437 HAVE_ARM_NE10=1 | 437 HAVE_ARM_NE10=1 |
| 438 AC_MSG_RESULT([yes]) | 438 AC_MSG_RESULT([yes]) |
| 439 ],[ | 439 ],[ |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 ]],[[ | 708 ]],[[ |
| 709 unsigned int CPUInfo0; | 709 unsigned int CPUInfo0; |
| 710 unsigned int CPUInfo1; | 710 unsigned int CPUInfo1; |
| 711 unsigned int CPUInfo2; | 711 unsigned int CPUInfo2; |
| 712 unsigned int CPUInfo3; | 712 unsigned int CPUInfo3; |
| 713 unsigned int InfoType; | 713 unsigned int InfoType; |
| 714 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo
3); | 714 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo
3); |
| 715 ]])], | 715 ]])], |
| 716 [AC_MSG_RESULT([C method]) | 716 [AC_MSG_RESULT([C method]) |
| 717 AC_DEFINE([CPU_INFO_BY_C], [1], [Get CPU Info by c method])], | 717 AC_DEFINE([CPU_INFO_BY_C], [1], [Get CPU Info by c method])], |
| 718 [AC_MSG_ERROR([no supported Get CPU Info method, please disable intr
insics])])])]) | 718 [AC_MSG_ERROR([no supported Get CPU Info method, please disable run-
time CPU capabilities detection or intrinsics])])])]) |
| 719 ], | 719 ], |
| 720 [ | 720 [ |
| 721 AC_MSG_WARN([No intrinsics support for your architecture]) | 721 AC_MSG_WARN([No intrinsics support for your architecture]) |
| 722 intrinsics_support="no" | 722 intrinsics_support="no" |
| 723 ]) | 723 ]) |
| 724 ], | 724 ], |
| 725 [ | 725 [ |
| 726 intrinsics_support="no" | 726 intrinsics_support="no" |
| 727 ]) | 727 ]) |
| 728 | 728 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 ]) | 760 ]) |
| 761 | 761 |
| 762 AC_ARG_ENABLE([fuzzing], | 762 AC_ARG_ENABLE([fuzzing], |
| 763 [AS_HELP_STRING([--enable-fuzzing],[causes the encoder to make random decisi
ons])],, | 763 [AS_HELP_STRING([--enable-fuzzing],[causes the encoder to make random decisi
ons])],, |
| 764 [enable_fuzzing=no]) | 764 [enable_fuzzing=no]) |
| 765 | 765 |
| 766 AS_IF([test "$enable_fuzzing" = "yes"], [ | 766 AS_IF([test "$enable_fuzzing" = "yes"], [ |
| 767 AC_DEFINE([FUZZING], [1], [Fuzzing]) | 767 AC_DEFINE([FUZZING], [1], [Fuzzing]) |
| 768 ]) | 768 ]) |
| 769 | 769 |
| 770 AC_ARG_ENABLE([check-asm], |
| 771 [AS_HELP_STRING([--enable-check-asm], |
| 772 [enable bit-exactness checks between optimized and c impleme
ntations])],, |
| 773 [enable_check_asm=no]) |
| 774 |
| 775 AS_IF([test "$enable_check_asm" = "yes"], [ |
| 776 AC_DEFINE([OPUS_CHECK_ASM], [1], [Run bit-exactness checks between optimized a
nd c implementations]) |
| 777 ]) |
| 778 |
| 770 AC_ARG_ENABLE([ambisonics], | 779 AC_ARG_ENABLE([ambisonics], |
| 771 [AS_HELP_STRING([--enable-ambisonics],[enable experimental ambisonic encodin
g and decoding support])],, | 780 [AS_HELP_STRING([--enable-ambisonics],[enable experimental ambisonic encodin
g and decoding support])],, |
| 772 [enable_ambisonics=no]) | 781 [enable_ambisonics=no]) |
| 773 | 782 |
| 774 AS_IF([test "$enable_ambisonics" = "yes"], [ | 783 AS_IF([test "$enable_ambisonics" = "yes"], [ |
| 775 AC_DEFINE([ENABLE_EXPERIMENTAL_AMBISONICS], [1], [Ambisonics Support]) | 784 AC_DEFINE([ENABLE_EXPERIMENTAL_AMBISONICS], [1], [Ambisonics Support]) |
| 776 ]) | 785 ]) |
| 777 | 786 |
| 778 AC_ARG_ENABLE([doc], | 787 AC_ARG_ENABLE([doc], |
| 779 [AS_HELP_STRING([--disable-doc], [Do not build API documentation])],, | 788 [AS_HELP_STRING([--disable-doc], [Do not build API documentation])],, |
| 780 [enable_doc=yes]) | 789 [enable_doc=yes]) |
| 781 | 790 |
| 782 AS_IF([test "$enable_doc" = "yes"], [ | 791 AS_IF([test "$enable_doc" = "yes"], [ |
| 783 AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], [yes], [no]) | 792 AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], [yes], [no]) |
| 793 AC_CHECK_PROG(HAVE_DOT, [dot], [yes], [no]) |
| 784 ],[ | 794 ],[ |
| 785 HAVE_DOXYGEN=no | 795 HAVE_DOXYGEN=no |
| 786 ]) | 796 ]) |
| 787 | 797 |
| 788 AM_CONDITIONAL([HAVE_DOXYGEN], [test "$HAVE_DOXYGEN" = "yes"]) | 798 AM_CONDITIONAL([HAVE_DOXYGEN], [test "$HAVE_DOXYGEN" = "yes"]) |
| 789 | 799 |
| 790 AC_ARG_ENABLE([extra-programs], | 800 AC_ARG_ENABLE([extra-programs], |
| 791 [AS_HELP_STRING([--disable-extra-programs], [Do not build extra programs (de
mo and tests)])],, | 801 [AS_HELP_STRING([--disable-extra-programs], [Do not build extra programs (de
mo and tests)])],, |
| 792 [enable_extra_programs=yes]) | 802 [enable_extra_programs=yes]) |
| 793 | 803 |
| 794 AM_CONDITIONAL([EXTRA_PROGRAMS], [test "$enable_extra_programs" = "yes"]) | 804 AM_CONDITIONAL([EXTRA_PROGRAMS], [test "$enable_extra_programs" = "yes"]) |
| 795 | 805 |
| 796 | 806 |
| 807 AC_ARG_ENABLE([update-draft], |
| 808 AS_HELP_STRING([--enable-update-draft], [Enable bitstream changes from draft-i
etf-codec-opus-update]),, |
| 809 [enable_update_draft=no]) |
| 810 |
| 811 AS_IF([test "$enable_update_draft" = "yes"], [ |
| 812 AC_DEFINE([ENABLE_UPDATE_DRAFT], [1], [Enable bitstream changes from draft-iet
f-codec-opus-update]) |
| 813 ]) |
| 814 |
| 815 |
| 797 saved_CFLAGS="$CFLAGS" | 816 saved_CFLAGS="$CFLAGS" |
| 798 CFLAGS="$CFLAGS -fvisibility=hidden" | 817 CFLAGS="$CFLAGS -fvisibility=hidden" |
| 799 AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) | 818 AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) |
| 800 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])], | 819 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])], |
| 801 [ AC_MSG_RESULT([yes]) ], | 820 [ AC_MSG_RESULT([yes]) ], |
| 802 [ AC_MSG_RESULT([no]) | 821 [ AC_MSG_RESULT([no]) |
| 803 CFLAGS="$saved_CFLAGS" | 822 CFLAGS="$saved_CFLAGS" |
| 804 ]) | 823 ]) |
| 805 | 824 |
| 806 CFLAGS="$CFLAGS -W" | 825 CFLAGS="$CFLAGS -W" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 Floating point support: ........ ${enable_float} | 871 Floating point support: ........ ${enable_float} |
| 853 Fast float approximations: ..... ${enable_float_approx} | 872 Fast float approximations: ..... ${enable_float_approx} |
| 854 Fixed point debugging: ......... ${enable_fixed_point_debug} | 873 Fixed point debugging: ......... ${enable_fixed_point_debug} |
| 855 Inline Assembly Optimizations: . ${inline_optimization} | 874 Inline Assembly Optimizations: . ${inline_optimization} |
| 856 External Assembly Optimizations: ${asm_optimization} | 875 External Assembly Optimizations: ${asm_optimization} |
| 857 Intrinsics Optimizations.......: ${intrinsics_support} | 876 Intrinsics Optimizations.......: ${intrinsics_support} |
| 858 Run-time CPU detection: ........ ${rtcd_support} | 877 Run-time CPU detection: ........ ${rtcd_support} |
| 859 Custom modes: .................. ${enable_custom_modes} | 878 Custom modes: .................. ${enable_custom_modes} |
| 860 Assertion checking: ............ ${enable_assertions} | 879 Assertion checking: ............ ${enable_assertions} |
| 861 Fuzzing: ....................... ${enable_fuzzing} | 880 Fuzzing: ....................... ${enable_fuzzing} |
| 862 Ambisonics support: .............${enable_ambisonics} | 881 Check ASM: ..................... ${enable_check_asm} |
| 882 Ambisonics support: ............ ${enable_ambisonics} |
| 863 | 883 |
| 864 API documentation: ............. ${enable_doc} | 884 API documentation: ............. ${enable_doc} |
| 865 Extra programs: ................ ${enable_extra_programs} | 885 Extra programs: ................ ${enable_extra_programs} |
| 866 ------------------------------------------------------------------------ | 886 ------------------------------------------------------------------------ |
| 867 | 887 |
| 868 Type "make; make install" to compile and install | 888 Type "make; make install" to compile and install |
| 869 Type "make check" to run the test suite | 889 Type "make check" to run the test suite |
| 870 ]) | 890 ]) |
| 871 | 891 |
| OLD | NEW |