Skip to content
Snippets Groups Projects
  1. Apr 20, 2018
  2. Apr 03, 2018
    • Corey Farrell's avatar
      Build System: Fixes for configure script. · 66f13ed6
      Corey Farrell authored
      * Replace all 'else if' statements with 'elif'.
      * Use loop to detect versioned lua headers and libraries.
      
      The loop for detecting lua fixes a bug where LUA_INCLUDE would be
      appended with the directory of every lua version after the first one is
      found.
      
      Change-Id: I3276f9aee955014108345be6092f51c932b43a0f
      66f13ed6
  3. Mar 22, 2018
  4. Mar 20, 2018
    • Alexander Traud's avatar
      BuildSystem: For consistency, avoid extra libs to be empty. · bfefde5b
      Alexander Traud authored
      AST_EXT_LIB_CHECK has several optional parameters. When an optional parameter
      is left empty, [] is used to indicate this. However, this is done in the script
      ./configure only then, when a further parameter is not empty. For example, when
      no extra libraries are needed to test the checked library, parameter 5 is not
      mentioned. Except parameter 6 and higher are used, then parameter 5 must be
      empty.
      
      However, this general rule was broken
      * four times for parameter 5 (extra libs) and
      * three times for parameter 4 (header)
      as found via the Regular Expression \[\]\). In case of parameter 5, all cases
      were changed, because that happened for no reason. In case of parameter 4, an
      [] improves readability actually. Therefore for parameter 4, the only case which
      did not do it was changed. All this aims to create more consistency: Only do
      something different if there is a reason to do so.
      
      Change-Id: I037ef170cf1ad94497151a9ea5071a31c656cafe
      bfefde5b
  5. Mar 17, 2018
    • Alexander Traud's avatar
      BuildSystem: Check for header file of OGG. · e61b50b6
      Alexander Traud authored
      Asterisk uses various symbols of the shared library libogg within the module
      format_ogg_vorbis. However, the source code of that module did not include the
      header file of libogg explicitly but implicitly. Because that header was not
      included before Asterisk 14, the script ./configure was told not to check for
      it.
      
      Anyway, even Asterisk 13 LTS uses symbols of libogg. Therefore, that header
      should be included explicitly. Therefore, ./configure should check for that
      header.
      
      Change-Id: I98c50d56311b68880d1084fcc62c35ab2f8692db
      e61b50b6
    • Alexander Traud's avatar
      BuildSystem: When no download utility is available, display the explanation. · f697025a
      Alexander Traud authored
      ./configure --with-pjproject-bundled
      did not display an explanation, when no download utility like wget, curl, or
      fetch was installed beforehand, although an explanation existed in code. This
      happened because the code expected the variable DOWNLOAD_TO_STDOUT to be empty.
      However, the script ./configure set that variable always.
      
      Change-Id: I64c99b76a03525c69471e5055bf124b36a51bbd4
      f697025a
    • Alexander Traud's avatar
      BuildSystem: Remove unused dependency on libltdl. · 10a97882
      Alexander Traud authored
      Asterisk does not need the development package of libltdl, because it does not
      use any symbol of -lltdl directly. Instead, it uses the runtime package via the
      shared library -lodbc. On the supported platforms, that shared library declares
      its dependency on -lltdl correctly, otherwise AST_EXT_LIB_CHECK would have
      failed.
      
      ASTERISK-27745
      
      Change-Id: Icd315809b8e7978203431f3afb66240dd3a040ba
      10a97882
  6. Mar 16, 2018
    • Alexander Traud's avatar
      BuildSystem: In NetBSD, the Python Programming Language is python-X.Y. · be0e9920
      Alexander Traud authored
      ASTERISK-27717
      
      Change-Id: If90ddf9c396c32e7402a894f42dce215c30049d1
      be0e9920
    • Alexander Traud's avatar
      BuildSystem: Avoid an extra case for OpenBSD. · 02fa145a
      Alexander Traud authored
      Nine years ago with Mantis 13639 (now ASTERISK-12841) an extra case for OpenBSD
      was introduced: Vorbis required Ogg to be specified manually, because the shared
      library libvorbis.so did not specify its required dependency on -logg itself.
      
      Today with OpenBSD 6.2, all libvorbis*.so declare their dependencies correctly.
      Therefore, an extra case is not required anymore.
      
      Change-Id: Ifd04e0994ce9f1e4ad29c3948a0398b91d1e97bc
      02fa145a
    • Alexander Traud's avatar
      BuildSystem: Enable Advanced Linux Sound Architecture (ALSA) in NetBSD. · 00789174
      Alexander Traud authored
      In the script ./configure, AST_EXT_LIB_CHECK checks for external libraries. Some
      libraries do not specify all their dependencies and require additional shared
      libraries. In AST_EXT_LIB_CHECK, this is the fifth parameter. However, if a
      library is specified there, it must exist on the platform, because ./configure
      tries to compile/link/execute a small app using those statements. For example,
      the library libdl.so is Linux specific and does not exist on BSD-like platforms.
      
      Furthermore, no supported platform/version was found, which still (ever?)
      requires those additional libraries. Therefore, they were simply removed.
      
      Finally, this change adds the error code ESTRPIPE to the channel driver
      chan_alsa for those platforms which lack it, again for example NetBSD.
      
      ASTERISK-27720
      
      Change-Id: I3b21f2135f6cbfac7590ccdc2df753257f426e0b
      00789174
  7. Mar 13, 2018
  8. Mar 09, 2018
    • Alexander Traud's avatar
      BuildSystem: Add NetBSD. · 5b525c97
      Alexander Traud authored
      Headers, libraries, and rpath.
      
      ASTERISK-27728
      ASTERISK-11015
      Reported by: Curt Sampson
      
      Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7
      5b525c97
    • Alexander Traud's avatar
      BuildSystem: For consistency, avoid double-checking via if clauses. · c5f23329
      Alexander Traud authored
      In the script ./configure, AST_EXT_LIB_CHECK and AST_PKG_CONFIG_CHECK first test
      whether parameter 1 was already found. Consequently, an if-test on PBX_ just a
      line below is redundant, if exactly the same parameter 1 is used again.
      
      No performance gain is expected by this change. However, because this strategy
      is used all over in ./configure except for two places, this change aims to
      create more consistency: Only do something different if there is a reason to do
      so.
      
      Change-Id: I4a6f48127b7af3a48168c917e888be1f70625027
      c5f23329
    • Alexander Traud's avatar
      BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD. · 36c8885c
      Alexander Traud authored
      ASTERISK-27641
      
      Change-Id: I587e8ba0123c70fc10cfd8b0ac3299551f61d84b
      36c8885c
  9. Mar 08, 2018
    • Alexander Traud's avatar
      BuildSystem: Re-check for another UUID library only when previous check failed. · 75cebc3e
      Alexander Traud authored
      As a side-effect, this avoids the ambiguous output:
       checking for uuid_generate_random... no
      which was printed always previously.
      
      ASTERISK-25586
      Reported by: John Nemeth
      
      Change-Id: I6d541dfcf453932a9856c5e251aa22e0e6c233c9
      75cebc3e
    • Alexander Traud's avatar
      BuildSystem: Instead of $PJPROJECT_LIBS with s, use $PJPROJECT_LIB everywhere. · fc64a0e2
      Alexander Traud authored
      In the script ./configure,
      xyz_LIB  is set by AST_PKG_CONFIG_CHECK and
      xyz_LIBS is set by PKG_CHECK_MODULES within
      AST_PKG_CONFIG_CHECK. Both are the same. In Asterisk normally the former and
      only three times the latter was used. Let us use xyz_LIB without s, for
      consistency with AST_EXT_LIB_CHECK. That eases understanding because now readers
      do not have to know that xyz_LIB equals xyz_LIBS.
      
      Change-Id: I7359860a5d730cdc784c2c48e501a082196434d3
      fc64a0e2
    • Alexander Traud's avatar
      BuildSystem: Enable PortAudio in NetBSD. · 16f6e940
      Alexander Traud authored
      In NetBSD, PortAudio 1 is still the default version. PortAudio 2 can be
      installed side by side but gets placed in a 'portaudio2' subdirectory. To
      find PortAudio 2 even in a subdirectory, the tool pkg-config is queried via
      AST_PKG_CONFIG_CHECK. For those platforms, which do not list PowerAudio 2
      via pkg-config, the previous check remains and is executed thereafter.
      
      ASTERISK-27721
      
      Change-Id: I4175500126909ad1b181fff8e11bb4a3a6ae4fa9
      16f6e940
  10. Mar 06, 2018
  11. Mar 03, 2018
  12. Mar 02, 2018
  13. Feb 16, 2018
  14. Feb 14, 2018
  15. Feb 12, 2018
    • Corey Farrell's avatar
      core: Remove embedded editline. · 9fddc8b4
      Corey Farrell authored
      This removes the embedded copy of editline from the Asterisk source
      tree, making a system copy of libedit mandatory in Asterisk 16+.
      
      ASTERISK-27634 #close
      
      Change-Id: Iedb64ad92acb78419f3caefedaa2bb7cd2a1a33f
      9fddc8b4
  16. Jan 26, 2018
    • Alexander Traud's avatar
      BuildSystem: Raise autoconf version requirement to 2.60a. · 6da970bf
      Alexander Traud authored
      AC_COMPUTE_INT requires at least autoconf 2.60a.
      
      This affects only those who contribute to Asterisk, only those who had to use
      the script ./bootstrap.sh. Furthermore, this change just makes sure nobody is
      using a too old autoconf.
      
      ASTERISK-16951
      
      Change-Id: Ibca850e2fe0e77d935207bd959bacf7197d7f637
      6da970bf
  17. Jan 25, 2018
  18. Jan 20, 2018
  19. Jan 17, 2018
    • Alexander Traud's avatar
      BuildSystem: In OpenBSD, xmlstarlet is xml. · 7e7a2064
      Alexander Traud authored
      ASTERISK-27593
      
      Change-Id: I1c7087f7f7582e40b3312c690d912c9a86466805
      7e7a2064
    • Alexander Traud's avatar
      BuildSystem: Detect external library Lua in version 5.3. · 8f31b702
      Alexander Traud authored
      On some platforms, you decide to go for one specific version of Lua, for
      example in OpenBSD. On other platforms, you are able to install several versions
      side-by-side, for example in Ubuntu and Fedora. Asterisk already works with
      Lua 5.3. Asterisk failed to detect Lua 5.3 on those platforms which allow
      several versions.
      
      ASTERISK-27592
      
      Change-Id: If7a4b395d844a464e9a1f4f626c5bff4ee67eed8
      8f31b702
  20. Jan 15, 2018
  21. Jan 06, 2018
    • Alexander Traud's avatar
      BuildSystem: Really do not pass unknown-warning options to the compiler. · 512286e3
      Alexander Traud authored
      When an older GCC version is called with a too new warning option, GCC exited
      with an error and Asterisk was not built. Therefore, the configure script tests
      the installed compiler whether it supports that warning option. If not, Asterisk
      does not pass it to the installed compiler. However, some compilers (like clang)
      do not exit (error) but give just a warning in such a case. Because the compiler
      did not exit, Asterisk passed the unknown-warning option.
      
      ASTERISK-27560
      
      Change-Id: Ia9b7747f649b27ff5e9f75c3db3fee4fe7a29621
      512286e3
  22. Nov 28, 2017
    • Corey Farrell's avatar
      autoconf: Fix call to AC_CONFIG_AUX_DIR. · 87a57e8d
      Corey Farrell authored
      The `pwd` parameter to AC_CONFIG_AUX_DIR is unnecessary, the default
      value is $srcdir.
      
      Additionally remove the AC_REVISION call.  It only added a comment and
      is pointless without SVN tag replacements.
      
      Change-Id: I99299a3217f095bddcb2edefb3b9af0ab147bc29
      87a57e8d
  23. Nov 20, 2017
  24. Nov 19, 2017
    • Corey Farrell's avatar
      Build: Fix OSX build issues. · b4f7f825
      Corey Farrell authored
      OSX does not support 'readlink -f' or 'sed -r'.  Replace readlink with
      the GNU make macro 'realpath'.  Replace sed with grep in one place, cut
      in the other.
      
      ASTERISK-27332
      
      Change-Id: I5d34ecca905384decb22ead45c913ae5e8aff748
      b4f7f825
  25. Nov 10, 2017
    • Corey Farrell's avatar
      Build: Make function constructor/destructor attributes mandatory. · e9f8b317
      Corey Farrell authored
      This change causes the configure script to fail if the C compiler does
      not support both function attributes constructor and destructor.  These
      were already required as modules cannot function without these attributes
      and Asterisk requires modules.
      
      This also has AST_GCC_ATTRIBUTE set a variable
      ax_cv_have_func_attribute_$1.  This is the same variable name used by
      autoconf-archive's AX_GCC_FUNC_ATTRIBUTE, used for the same purpose.
      
      Change-Id: Id68e8a1447f2a6d707c54b56350e7bfdb33fb663
      e9f8b317
  26. Nov 06, 2017
    • Corey Farrell's avatar
      configure: Add autoconf check for libopusfile. · 4013bfa5
      Corey Farrell authored
      This check is being added to make it easier for end-users of third party
      open source Opus modules.  This was removed by ASTERISK-26426 but only
      the module needed to be removed.
      
      Change-Id: I62b9cd0c4fa8a77596ab0e042948a643a1152677
      4013bfa5
Loading