Commit Graph

479 Commits

Author SHA1 Message Date
Tilghman Lesher 91dde03ba8 Detect eaccess (or euidaccess) before using it.
Reported by Andrew Lindh via the -dev list.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-30 17:40:58 +00:00
Tilghman Lesher 25cea89d90 Merged revisions 190092 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r190092 | tilghman | 2009-04-22 16:35:03 -0500 (Wed, 22 Apr 2009) | 7 lines
  
  Detect availability of pthread_rwlock_timedwrlock() before using it.
  (closes issue #14930)
   Reported by: tilghman
   Patches: 
         20090420__bug14930.diff.txt uploaded by tilghman (license 14)
   Tested by: mvanbaak, tilghman
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-22 21:38:15 +00:00
Tilghman Lesher 07a115bead Detect liblua on SuSE, and add libm for linking for Fedora.
(Reported via the -dev list, Subject: Compiling Asterisk with LUA)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@189813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-22 06:33:08 +00:00
Doug Bailey f431c867dd Merged revisions 189601 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r189601 | dbailey | 2009-04-21 09:00:55 -0500 (Tue, 21 Apr 2009) | 3 lines
  
  Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h 
  This allows config.c to compile when linked against uclibc that does not support these parameters
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@189629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-21 14:28:04 +00:00
Jeff Peeler 1172c38647 Add service maintenance message support
This is the companion commit to libpri r732. Service messages are now supported
for switch types 4ess/5ess. A new option service_message_support has been added
to chan_dahdi.conf and is noted in the sample config file. The service message
support is turned off by default. The current implementation relies on AstDB
to keep track of channel state, which allows the statuses to be preserved
across Asterisk restarts. Below is a description of the storage format.

The state and reason for the service state are in the form <state>:<reason>,
where:
<state> ::= { 'O' }  // 'O' – Out Of Service
<reason> ::= { '0' | '1' | '2' | '3' }, where:
'0' – No reason (backwards compatibility)
'1' – NEAR END
'2' – FAR END
'3' – both NEAR and FAR END

The new CLI commands to handle channel service state are:
pri service disable channel <chan>
pri service enable channel <chan>

Many people contributed to the development of this functionality. Because I
entered at the very end I do not know the exact history. Special thanks to 
all who moved the bug forward one way or another:
cmaj, PCadach, markster, mattf, drmac, MikeJ, serge-v, murf, kanelbullar, Seb7,
tilghman, lmadsen, and especially dhubbard (he answered lots of my questions
and did a large portion of the work)

(closes issue #3450)
Reported by: cmaj



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-14 15:54:16 +00:00
Russell Bryant 4210f17abb Merged revisions 183241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r183241 | russell | 2009-03-19 12:52:52 -0500 (Thu, 19 Mar 2009) | 2 lines

Remove the use of RTLD_NOLOAD, as it is not behaving like expected.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@183242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-19 18:00:15 +00:00
Russell Bryant 0bdd99ad64 Merged revisions 182810 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r182810 | russell | 2009-03-17 21:09:13 -0500 (Tue, 17 Mar 2009) | 44 lines

Fix cases where the internal poll() was not being used when it needed to be.

We have seen a number of problems caused by poll() not working properly on 
Mac OSX.  If you search around, you'll find a number of references to using 
select() instead of poll() to work around these issues.  In Asterisk, we've 
had poll.c which implements poll() using select() internally.  However, we 
were still getting reports of problems.

vadim investigated a bit and realized that at least on his system, even 
though we were compiling in poll.o, the system poll() was still being used.  
So, the primary purpose of this patch is to ensure that we're using the 
internal poll() when we want it to be used.

The changes are:

1) Remove logic for when internal poll should be used from the Makefile.  
   Instead, put it in the configure script.  The logic in the configure 
   script is the same as it was in the Makefile.  Ideally, we would have 
   a functionality test for the problem, but that's not actually possible, 
   since we would have to be able to run an application on the _target_ 
   system to test poll() behavior.

2) Always include poll.o in the build, but it will be empty if AST_POLL_COMPAT
   is not defined.

3) Change uses of poll() throughout the source tree to ast_poll().  I feel 
   that it is good practice to give the API call a new name when we are 
   changing its behavior and not using the system version directly in all cases.
   So, normally, ast_poll() is just redefined to poll().  On systems where 
   AST_POLL_COMPAT is defined, ast_poll() is redefined to ast_internal_poll().

4) Change poll() in main/poll.c to be ast_internal_poll().

It's worth noting that any code that still uses poll() directly will work fine 
(if they worked fine before).  So, for example, out of tree modules that are 
using poll() will not stop working or anything.  However, for modules to work 
properly on Mac OSX, ast_poll() needs to be used.

(closes issue #13404)
Reported by: agalbraith
Tested by: russell, vadim

http://reviewboard.digium.com/r/198/

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-18 02:28:55 +00:00
Russell Bryant 77a6840fd3 Add MFC/R2 support for chan_dahdi.
This commit introduces official support for R2 signaling in chan_dahdi.  The
modifications to chan_dahdi, and the supporting library, LibOpenR2, were both
written by Moises Silva.

Many users are using this code, or a variant of it, in Asterisk 1.2, 1.4 and 1.6
in Brazil, México and Argentina. An unknown number of users (but at least 1) 
are using it in each of the following countries: Colombia, Nepal, Thailand, 
Venezuela, Perú, and probably others.

To use this code, LibOpenR2 must be installed from http://www.libopenr2.org/.
Information about configuration can be found in configs/chan_dahdi.conf.sample.

The code committed is the most up to date version, which was being maintained
in svn/asterisk/team/moy/mfcr2/.

I would also like to include a Thank You to the many others that tested this
code beyond those listed in this commit message.  These are the names that I
could find in the mantis issue.

(closes issue #12509)
Reported by: moy
Patches:
      chan_zap-mfr2.patch uploaded by moy (license 222)
Tested by: moy, korihor, viniciusfontes, Skarmeth, loloski, asbestoshead, titogarrido, heliocoelhojr, konsultex, ncorrare, ecarruda, rtorresduque, PTorres, ychen

Review: http://reviewboard.digium.com/r/40/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-16 20:35:58 +00:00
Jason Parker d555f6b98b Merged revisions 181436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r181436 | qwell | 2009-03-11 17:18:42 -0500 (Wed, 11 Mar 2009) | 4 lines
  
  Allow prefix to set localstatedir (when used and different from the default).
  
  This is similar to the /etc change that was made for the non-FreeBSD case.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-11 22:20:13 +00:00
Jason Parker 1322112da0 Merged revisions 180941 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r180941 | qwell | 2009-03-10 17:02:18 -0500 (Tue, 10 Mar 2009) | 1 line
  
  Make things happier when using autoconf 2.62+
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@180944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-10 22:03:41 +00:00
Tilghman Lesher 4ac2fd4cde Use notification when timezone files change and re-scan then.
(closes issue #14300)
 Reported by: jamessan
 Patches: 
       20090127__bug14300.diff.txt uploaded by tilghman (license 14)
       20090224__bug14300.diff uploaded by jamessan (license 246)
 Tested by: jamessan
 Review: http://reviewboard.digium.com/r/136/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-25 19:24:44 +00:00
Jeff Peeler c8fe75da36 Modify h323 to build against PTLib as well as the older PWLib
Several changes in PTLib have occurred requiring build time detection. Changes
accounted for include the library name change, config option change, install
location change, and a boolean type change which is handled by ast_ptlib.h.
Also, the sed check has been modified to properly work with autoconf >= 2.62.

(closes issue #14224)
Reported by: bergolth
Patches:
      asterisk-autoconf-sed.patch uploaded by bergolth (license 661)
      asterisk-pwlib-v3.patch uploaded by bergolth (license 661)
Tested by: jpeeler


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@177162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 20:11:57 +00:00
Tilghman Lesher e179e613f7 1. Make OS X compile cleanly with app_stack.
2. Use curl to download sound files, as curl is installed natively on OS X,
whereas wget and fetch are not.
(closes issue #14332)
 Reported by: oej
 Tested by: Corydon76


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-03 00:29:49 +00:00
Doug Bailey 9a28a07739 change VMWI to use new DAHDI_VMWI ioctl call.
Change configure script to detect the new ioctl call data structure.    
(issue #14104)
Reported by: alecdavis
Patches:
      mwiioctl_structure_asterisk.diff4.txt uploaded by dbailey (license )
Tested by: alecdavis, dbailey


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-22 15:49:24 +00:00
Kevin P. Fleming 9a7efae8fd remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB logic that includes copying the relevant LIB and INCLUDE data from either UnixODBC or iODBC, based on which was found; if both were found, prefer UnixODBC
this stops modules from being linked against both sets of libraries on systems that have both installed



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@168734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-15 20:18:53 +00:00
Tilghman Lesher fd3cb90841 Some platforms (notably, the BSDs) have a more efficient implementation called
closefrom(3).


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@168522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-12 23:06:12 +00:00
Matthew Fredrickson 775033301a Add configuration support for half_full DAHDI buffer policy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-19 21:44:18 +00:00
Michiel van Baak d2d96b10ac introduce 'core show sysinfo' for systems that dont have the Linux-ish sysinfo stuff but do have sysctl.
(closes issue #13433)
Reported by: mvanbaak
Patches:
      2008121300_sysinfosysctl.diff.txt uploaded by mvanbaak (license 7)
	  with two free calls replaced with ast_free based on feedback on reviewboard
Review:
      http://reviewboard.digium.com/r/91/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-16 20:08:34 +00:00
Joshua Colp 8be6bc5f67 Make app_fax compatible with newer versions of spandsp. This remains backwards compatible with earlier versions though so do not fret.
(closes issue #14073)
Reported by: seandarcy


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-15 15:41:22 +00:00
Tilghman Lesher 94172b4ba3 Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone
is compiled statically.
(closes issue #13887)
 Reported by: tzafrir


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-11 20:02:35 +00:00
Tilghman Lesher fc547b5fa0 Use AST_EXT_LIB_SETUP before using AST_EXT_LIB_CHECK or bad things happen.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-01 21:23:37 +00:00
Eliel C. Sardanons 033bffd32f Introduce CLI permissions.
Based on cli_permissions.conf configuration file, we are able to permit or deny
cli commands based on some patterns and the local user and group running rasterisk.

(Sorry if I missed some of the testers).

Reviewboard: http://reviewboard.digium.com/r/11/

(closes issue #11123)
Reported by: eliel
Tested by: eliel, IgorG, Laureano, otherwiseguy, mvanbaak



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-01 18:52:14 +00:00
Kevin P. Fleming 887e28d7aa incorporates r159808 from branches/1.4:
------------------------------------------------------------------------
r159808 | kpfleming | 2008-11-29 10:58:29 -0600 (Sat, 29 Nov 2008) | 7 lines

update dev-mode compiler flags to match the ones used by default on Ubuntu Intrepid, so all developers will see the same warnings and errors

since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them

format attributes in a consistent way


------------------------------------------------------------------------

in addition:

move some format attributes from main/utils.c to the header files they belong in, and fix up references to the relevant functions based on new compiler warnings



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-29 17:57:39 +00:00
Kevin P. Fleming e14dfcbedc improve handling of API calls provided by loaded modules through use of some GCC features; this makes app_stack's usage of AGI APIs even cleaner, and will allow it to work 'as expected' either with or without res_agi being loaded
reviewed at http://reviewboard.digium.com/r/62



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-26 21:20:50 +00:00
Tilghman Lesher ac296a4ad3 Merged revisions 159025 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r159025 | tilghman | 2008-11-24 22:50:00 -0600 (Mon, 24 Nov 2008) | 3 lines
  
  System call ioperm is non-portable, so check for its existence in autoconf.
  (Closes issue #13863)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-25 05:02:11 +00:00
Mark Michelson 0e5367f7eb Merge the changes from the res_timing_timerfd branch.
This provides a new timing interface. In order to use it,
you must be running a Linux with a kernel version of
2.6.25 or newer and glibc 2.8 or newer.

This timing interface is a good alternative if a timing
source is necessary (e.g. for IAX trunking) but DAHDI is
otherwise unnecessary for the system.

For now, this commit contains the actual work done in the
res_timing_timerfd branch. There are no notices in the README
or CHANGES files yet, but they will be added in my next commit.

The timing API of Asterisk also needs to have a bit of work done
with regards to choosing which timing interface to use. This commit
makes the choice a build-time decision, by only allowing one of
the timer interfaces to be chosen in menuselect. It would be preferable
if the choice could be made at run-time, however. The preferred timing
interface could be loaded and tested, and if it does not work, choice
number two may be used instead. That sort of thing. That is beyond
the scope of work in this branch though.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-19 19:37:32 +00:00
Tilghman Lesher 3d8fb2d878 Add check for t38_terminal_init in spandsp (not found in 0.0.6, so it should fail reasonably)
(closes issue #13473)
 Reported by: genie
 Patches: 
       20080916__bug13473.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-19 18:28:14 +00:00
Sean Bright 559e644b63 Fix a few build problems on Solaris (and check for an md5 utility in
configure instead of the icky loop I was doing before).

(closes issue #13842)
Reported by: snuffy
Patches:
      bug13842_20081106.diff uploaded by snuffy (license 35)
      13842.diff uploaded by seanbright (license 71)
Tested by: snuffy


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-19 00:27:45 +00:00
Matthew Fredrickson 5250201d8b Make compilation of chan_dahdi so that it does not require the new pri_progress_with_cause function to have libpri support work.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-05 20:45:03 +00:00
Kevin P. Fleming 448562af93 improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met
along the way, change tags used in configure script, menuselect-deps and code for various dependencies to be consistently named



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-04 15:07:54 +00:00
Kevin P. Fleming a67790c6f5 instead of trying to forcibly load res_agi when app_stack is loaded (even if the administrator didn't want it loaded), use GCC weak symbols to determine whether it was loaded already or not; if it was loaded, then use it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-02 23:34:39 +00:00
Russell Bryant 44b84b3a14 Add a handy makefile target so that you can validate the documentation against the DTD
by running "make validate-docs"


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-02 05:55:46 +00:00
Russell Bryant 5b168ee34b Merge changes from team/group/appdocsxml
This commit introduces the first phase of an effort to manage documentation of the
interfaces in Asterisk in an XML format.  Currently, a new format is available for
applications and dialplan functions.  A good number of conversions to the new format
are also included.

For more information, see the following message to asterisk-dev:

http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-01 21:10:07 +00:00
Kevin P. Fleming 21592959cf Merged revisions 151241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r151241 | kpfleming | 2008-10-20 07:57:33 +0300 (Mon, 20 Oct 2008) | 2 lines
  
  rename this macro to properly reflect what it does
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-20 05:00:56 +00:00
Matthew Fredrickson d745aa4573 Update configure check to check for new function in libpri (pri_progress_with_cause)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-17 21:48:07 +00:00
Mark Michelson c40adb92e4 Change configure script to search for openais in
both /usr/lib and /usr/lib64 since some distros
place 64-bit libraries only in the /usr/lib64 
directory.

(closes issue #13721)
Reported by: jcollie
Patches:
      0007-Look-in-64bit-dirs-for-openais.patch uploaded by jcollie (license 412)




git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-16 21:23:38 +00:00
Kevin P. Fleming 8fb0564c4d reverting this change... had not read the commit list yet, didn't realize the code had been upgraded
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-15 10:16:29 +00:00
Kevin P. Fleming 87b8602128 do complete version check for SpanDSP, since the app_fax code is not compatible with 0.0.6 yet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-15 09:59:12 +00:00
Steve Murphy e235a07376 (closes issue #13557)
Reported by: nickpeirson
Patches:
      pbx.c.patch uploaded by nickpeirson (license 579)
      replace_bzero+bcopy.patch uploaded by nickpeirson (license 579)
Tested by: nickpeirson, murf

1. replaced all refs to bzero and bcopy to memset and memmove instead.
2. added a note to the CODING-GUIDELINES
3. add two macros to asterisk.h to prevent bzero, bcopy from creeping
   back into the source
4. removed bzero from configure, configure.ac, autoconfig.h.in




git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-09 14:17:33 +00:00
Michiel van Baak 1693e79100 Make format_vorbis_ogg compile on OpenBSD
(closes issue #13639)
Reported by: mvanbaak
Patches:
      2008100700_oggsupportOBSD.diff.txt uploaded by mvanbaak (license 7)
      2008100700_oggsupportOBSD-configurescript.diff.txt uploaded by mvanbaak (license 7)
Tested by: mvanbaak


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-07 20:15:27 +00:00
Michiel van Baak dc20e8c4fd Make sure the configs on OpenBSD are in /etc/asterisk by default
(closes issue #13641)
Reported by: jtodd


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-07 18:53:34 +00:00
Michiel van Baak 4560279c69 All ODBC parts can now use either unixodbc or iodbc.
This allows for the ODBC parts to work on OpenBSD as well.

99.99% of the work is done by seanbright (bow, bow) and I actually
did nothing but test and yell at him that it still didn't work :)

Thanks for helping out !


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-06 23:14:33 +00:00
Sean Bright 9b0a2e5231 Pretty-print a couple configure options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-06 17:32:02 +00:00
Sean Bright 3e102d8cfc This is much cleaner, methinks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@145771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-02 15:28:48 +00:00
Sean Bright 2640afa40f Try a test compile using the GMime library. Some distros install gmime-config
in the base package instead of the -devel package.  Now we print a notice and
disable GMime support instead of bombing during the main compilation.

(closes issue #13583)
Reported by: arkadia


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@145692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-01 23:48:16 +00:00
Sean Bright 54d9ba7671 Bring in the configure and makeopts jazz for -Wshadow, but don't add it to the
Makefile yet.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-08 18:19:33 +00:00
Sean Bright 6cf6d9eca5 Merge in changes that allow Asterisk to be built against the Hoard
memory allocator.  See doc/hoard.txt for more details.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-03 16:14:14 +00:00
Tilghman Lesher e9fa4afa4e Merged revisions 134649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134649 | tilghman | 2008-07-30 16:38:50 -0500 (Wed, 30 Jul 2008) | 4 lines

Qwell pointed out, via IRC, that the previous fix only worked when explicitly
set.  When nothing is set, and the option is implied, it breaks, because
configure sets the prefix to 'NONE'.  Fixing.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-30 21:40:08 +00:00
Tilghman Lesher d37e1c898f Merged revisions 134536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134536 | tilghman | 2008-07-30 14:47:16 -0500 (Wed, 30 Jul 2008) | 4 lines

Only override sysconfdir and mandir when prefix=/usr
(closes issue #13093)
 Reported by: pabelanger

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-30 19:48:37 +00:00
Mark Michelson 99db9f65b5 This commit compensates for buggy poll(2)
implementations. Asterisk has, for a long time,
had its own implementation of poll(2) which
just used the input arguments to call select(2).
In 1.4, this internal implementation was used
for Darwin systems. This was removed in Asterisk
trunk at some point, but it seems as though this
was not the right move to make.

On Mac OS X, it appears as though the poll used
to gather CLI input does not respond properly
when connecting via a remote Asterisk console.
Reverting to the use of Asterisk's poll fixed
the issue.

Also, there is now an option for the configure
script, --enable-internal-poll, which will allow
for anyone to use Asterisk's internal poll
implementation in case they suspect that their
system's poll implementation is buggy.

closes issue #11928)
Reported by: adriavidal
Patches:
      1.6.0-configurev2.patch uploaded by putnopvut (license 60)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-28 19:53:56 +00:00
Kevin P. Fleming d9e31c744a Merged revisions 132704 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132704 | kpfleming | 2008-07-22 15:49:41 -0500 (Tue, 22 Jul 2008) | 2 lines

make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-22 20:54:07 +00:00
Kevin P. Fleming 8115a6a9bf Merged revisions 132641 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132641 | kpfleming | 2008-07-22 14:49:11 -0500 (Tue, 22 Jul 2008) | 2 lines

use renamed libpri API call for controlling this feature (was improperly named before)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-22 19:59:10 +00:00
Russell Bryant c87f901cfd Remove libresample from the Asterisk source tree. It is now available in its
own repository, and must be installed like any other library for Asterisk to
use.  The two modules that require it are codec_resample and app_jack.

To install libresample:

$ svn co http://svn.digium.com/svn/libresample/trunk libresample
$ cd libresample
$ ./configure
$ make
$ sudo make install

This code is currently in our own repository because the build system did not
include the appropriate targets for building a dynamic library or for installing
the library.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-21 14:47:41 +00:00
Kevin P. Fleming b968349e19 Merged revisions 130039 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130039 | kpfleming | 2008-07-11 10:41:56 -0500 (Fri, 11 Jul 2008) | 4 lines

add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today

(related to issue #13042)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 15:57:17 +00:00
Kevin P. Fleming e99eece42a some minor fixes found while working on issue #12911 (and block the rev from 1.4 since the equivalent is already here)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-03 16:22:02 +00:00
Kevin P. Fleming 00696f5f37 make the AIS checking a little more generic, and have a more useful configure script command line option for OpenAIS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-01 17:22:47 +00:00
Kevin P. Fleming 71b3fd1ef7 various minor fixes created while i worked on getting *every* Asterisk module to build on laptop in dev mode:
remove weird pre-setting of LUA paths; they are not necessary; also use the proper path for including the files in pbx_lua.c

add searching for OpenAIS libraries in /usr/lib/openais if a path is not specified; not sure if this is really the optimal solution, but it works

make the compiler shut up about some ignored function results in pbx_gtkconsole; this module is badly coded anyway



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-29 16:19:29 +00:00
Sean Bright 19830f3359 Merge in changes from my cdr-tds-conversion branch. This changes the internal
implementation from using the volatile libtds, to using the db-lib front end.
The unintended side effect of this is that we support (at least) versions 0.62
through 0.82 of the FreeTDS distribution without any #ifdef ugliness.

(closes issue #12844)
Reported by: jcollie


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-28 21:28:16 +00:00
Kevin P. Fleming fd4a60c459 Merged revisions 125132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r125132 | kpfleming | 2008-06-25 17:21:30 -0500 (Wed, 25 Jun 2008) | 10 lines

allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places

don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it

get app_rpt building again after the DAHDI changes

(closes issue #12911)
Reported by: tzafrir


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-25 23:05:28 +00:00
Tilghman Lesher 4522c60ec8 Detect if the installed gcc version supports the warn_unused_result attribute.
Reported by mvanbaak via IRC -dev.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 17:55:34 +00:00
Jeff Peeler ef3b214728 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 17:27:55 +00:00
Russell Bryant 661a2201ec Merge a couple of configure script checks in from team/russell/events. This adds
the checks for the CLM and EVT services from the SAForum AIS.  I'm going to work
on merging in changes from this branch in pieces.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@121403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-10 00:43:06 +00:00
Russell Bryant 64ee2bd3d7 After determining that the version of spandsp installed is an acceptable version,
do a build and link test to ensure that the library is usable, and that libtiff
is also available


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-02 15:57:43 +00:00
Russell Bryant ef4a7eaf52 Add a configure script check for spandsp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-02 15:43:40 +00:00
Matthew Fredrickson 5e3d36e4aa Add Zap MTP2 support to chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-11 03:23:05 +00:00
Joshua Colp ea483db47a Merged revisions 115579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115579 | file | 2008-05-09 13:34:08 -0300 (Fri, 09 May 2008) | 2 lines

Improve res_ninit and res_ndestroy autoconf logic on the Darwin platform.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-09 16:36:58 +00:00
Joshua Colp 2090cff75e Merged revisions 115341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115341 | file | 2008-05-06 10:54:15 -0300 (Tue, 06 May 2008) | 2 lines

Add in missing argument.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-06 13:55:44 +00:00
Joshua Colp fc120bf827 Merged revisions 115327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115327 | file | 2008-05-05 19:10:05 -0300 (Mon, 05 May 2008) | 2 lines

Make sure that either the main speex library contains preprocess functions or that speexdsp does. If both fail then speex stuff can not be built.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 22:13:57 +00:00
Tilghman Lesher 0113bd4bcf Okay, maybe FreeBSD will like this better.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-02 02:56:39 +00:00
Brett Bryant 4f3e4e22ef Add two new console commands "pri show version" and "ss7 show version" that will show the version of each library respectively.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 23:09:08 +00:00
Joshua Colp a4d544714c Update autoconf logic with latest API change for libss7.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-28 13:42:13 +00:00
Sean Bright 2f1f326924 Merged revisions 114695 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114695 | seanbright | 2008-04-26 21:26:15 -0400 (Sat, 26 Apr 2008) | 5 lines

When we don't explicitly pass a path to the --with-tds configure option, we
may end up finding tds.h in /usr/local/include instead of /usr/include.  If
this happens, the grep that looks for the version (from tdsver.h) will fail
and we'll have some problems during the build.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-27 01:28:32 +00:00
Sean Bright ad3748d6c5 Fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 00:28:39 +00:00
Terry Wilson e727d15d34 Replace minimime with superior GMime library so that the entire contents of an http post are not read into memory.
This does introduce a dependency on the GMime library for handling HTTP POSTs, but it is available in most distros.

If the library is present, then the compile flag for ENABLE_UPLOADS is enabled by default in menuselect.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-17 22:10:06 +00:00
Kevin P. Fleming 451c76c3b1 don't define Zaptel features as libraries, they aren't, and we don't want '--with-zaptel-<foo>' configure options for them
also some minor cleanups


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-17 17:31:46 +00:00
Kevin P. Fleming 5875146526 Merged revisions 107461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107461 | kpfleming | 2008-03-11 09:33:45 -0500 (Tue, 11 Mar 2008) | 2 lines

stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 14:37:03 +00:00
Kevin P. Fleming c7eebb3db8 Merged revisions 107408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107408 | kpfleming | 2008-03-11 09:07:59 -0500 (Tue, 11 Mar 2008) | 5 lines

check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4)

(closes issue #12179)
Reported by: Netview

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 14:09:49 +00:00
Kevin P. Fleming 90786d21c9 Merged revisions 107405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107405 | kpfleming | 2008-03-11 08:57:08 -0500 (Tue, 11 Mar 2008) | 2 lines

fix small bug in IMAP toolkit testing

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 13:58:37 +00:00
Doug Bailey 552b782fc2 Add protection to chan_zap build when NEONMWI events are not defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-22 23:56:55 +00:00
Joshua Colp edad328409 Disable epoll as it has caused more obscure issues then any of my previous code. I will continue to work on it in a separate branch to make it stable for a release and test it against the following issues.
(closes issue #11253)
Reported by: falves11
(closes issue #11657)
Reported by: davevg
(closes issue #11033)
Reported by: falves11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-21 16:44:57 +00:00
Joshua Colp c3a1ec6d98 Merged revisions 103812 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103812 | file | 2008-02-19 13:31:32 -0400 (Tue, 19 Feb 2008) | 4 lines

Don't look for launchd when cross compiling.
(closes issue #12029)
Reported by: ovi

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-19 17:33:55 +00:00
Mark Michelson 6923be5f30 Merged revisions 103722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103722 | mmichelson | 2008-02-15 11:26:37 -0600 (Fri, 15 Feb 2008) | 8 lines

Final round of changes for configure script logic for IMAP

Now if a directory is specified, then we will search that directory for
a source installation of the IMAP toolkit. If none is found, then we will
use that directory as the basis for detecting a package installation of
the IMAP c-client. If that check fails, then configure will fail.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-15 17:32:43 +00:00
Mark Michelson cd7f33a39f Merging of changes from 1.4 revision 103713.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-15 15:11:23 +00:00
Mark Michelson d3b1054f6a Same changes as made to 1.4 in revision 103710
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-15 00:59:21 +00:00
Mark Michelson f92d84211d See commit message for svn revision 103698. This behavior is the same as what is described
there. The difference is that trunk already had the --with-imap=system option, but it only
checked the include path for headers in the imap directory and not also the c-client directory.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 23:39:47 +00:00
Jason Parker 85c7af3810 Modify ldap autoconf function, so that an incorrect ldap library is not found on Solaris (it is incompatible).
Also removes second check for awk, which causes Solaris to find an incompatible version of awk.

(closes issue #11829)
Reported by: snuffy
Patches:
      bug-11829.diff uploaded by snuffy (license 35)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 21:21:53 +00:00
Tilghman Lesher 1dc86caf30 Merged revisions 102323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102323 | tilghman | 2008-02-04 15:06:09 -0600 (Mon, 04 Feb 2008) | 7 lines

Cross-platform fix:  OS X now deprecates the use of the daemon(3) API.
(closes issue #11908)
 Reported by: oej
 Patches: 
       20080204__bug11908.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-04 21:15:18 +00:00
Russell Bryant aa30cd9bc5 Change the version number in the configure script from 1.4 to 1.6
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-03 06:43:57 +00:00
Tilghman Lesher bfd26b9cfd Merged revisions 101894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101894 | tilghman | 2008-02-01 13:36:12 -0600 (Fri, 01 Feb 2008) | 2 lines

Change detection of getifaddrs to use AST_C_COMPILE_CHECK, backported from trunk (as suggested by kpfleming)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 19:44:39 +00:00
Tilghman Lesher 1ce6a2d5ec Merged revisions 101772 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101772 | tilghman | 2008-02-01 09:55:58 -0600 (Fri, 01 Feb 2008) | 2 lines

Compatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 16:01:22 +00:00
Mark Michelson f007eba6d9 Re-inserting chan_vpb into trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-28 21:07:18 +00:00
Tilghman Lesher 8fd1e10d3d Normalize the detection for execinfo, so that Linux (glibc) and other platforms
with libexecinfo will generate inline stack backtraces correctly.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-28 18:27:29 +00:00
Mark Michelson 7a90863973 Removing chan_vpb from the tree
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-25 22:39:35 +00:00
Tilghman Lesher cfa0ec1f97 Add res_config_ldap for realtime LDAP engine.
(closes issue #5768)
 Reported by: mguesdon
 Patches: 
       res_config_ldap-v0.7.tar.gz uploaded by mguesdon (license 121)
       res_ldap.conf.sample uploaded by suretec (license 70)
       asterisk-v3.1.4.ldif uploaded by suretec (license 70)
       asterisk-v3.1.4.schema uploaded by suretec (license 70)
 Tested by: oej, mguesdon, suretec, cthorner


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-22 22:33:20 +00:00
Jason Parker f2d31ec0c8 Change AST_EXT_TOOL_CHECK to attempt to build against <package>_LIB, per recommendations from Russell.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-16 23:08:11 +00:00
Jason Parker 19b4c52bf4 Partially revert r93898, because it broke the way netsnmp was being detected.
rizzo, do you want to discuss so we can rethink this, or do you have another way?


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-16 19:41:25 +00:00
Joshua Colp c692e1cacb Merged revisions 98951 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98951 | file | 2008-01-15 21:13:27 -0400 (Tue, 15 Jan 2008) | 4 lines

Add autoconf logic for speexdsp. Later versions use a separate library for some things so we need to use it if present in codec_speex.
(closes issue #11693)
Reported by: yzg

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-16 01:17:25 +00:00
Russell Bryant d20cb305af Add configure script check for JACK.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-13 18:08:50 +00:00
Russell Bryant bed72d73b0 Remove KDE configure script check that isn't used
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-13 18:01:56 +00:00
Russell Bryant 25275cc862 Add some extra checking to help out with a potential error when trying to
run "make asterisk.pdf" when not all of the right packages are installed.

(closes issue #10763)
Reported by: Corydon76
Patches:
      20070919__bug10763.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-11 23:57:01 +00:00
Russell Bryant de1176ee28 Use AST_EXT_TOOL_CHECK() for the GTK check again. I changed this to an inline
implementation to fix a small bug, but after a discussion with rizzo, I went to
change it back.  Also, it turns out that the implementation of the macro already
supported what was needed to fix the problem.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:27:03 +00:00
Russell Bryant c53f95e29f Merged revisions 97734 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97734 | russell | 2008-01-10 10:10:09 -0600 (Thu, 10 Jan 2008) | 4 lines

Remove pbx_kdeconsole from the tree.  It hasn't worked in ages, and nobody has
complained.
(closes issue #11706, reported by caio1982)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:15:43 +00:00
Russell Bryant 4bc52d1abe re-add check for gtk1, which is used for pbx_gtkconsole
(related to issue #11706)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 22:51:15 +00:00
Kevin P. Fleming f4fba89489 [commit message]
(closes issue #10393)
Reported by: tzafrir
Patches:
      chan_alarm_asterisk.diff uploaded by tzafrir (license 46) (modified by me and added configure script support)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04 17:21:25 +00:00
Joshua Colp 54567cf2f7 Don't use AST_C_DEFINE_CHECK for the two pthread things that may not actually be definitions, they could be enums for example.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 22:40:55 +00:00
Kevin P. Fleming cbfd5678ea improve AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but just check for its existence
finish implementation of check for Zaptel HWGAIN support
add check for Zaptel ECHOCANCEL_PARAMS support


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 19:34:33 +00:00
Kevin P. Fleming 78c35db4da actually check for a function present in libiconv (don't know how this test could have worked before) and don't do the check on Linux/GNU systems because libiconv is not present there and attempting to link with '-liconv' always fails (it's not necessary as the iconv functionality is always available)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 14:20:46 +00:00
Luigi Rizzo b1c35179e6 implement "configure" checks for libiconv, and add the
iconv dependency for func_iconv.
This fixes some build issues on CYGWIN and FreeBSD and probably
other platforms where libiconv is not there by default



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-01 22:08:32 +00:00
Russell Bryant 7d0eacfb03 Add configure script checking for portaudio.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-31 15:20:30 +00:00
Russell Bryant 0e08d5e7dc Merged revisions 94077 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94077 | russell | 2007-12-19 16:48:48 -0600 (Wed, 19 Dec 2007) | 4 lines

Check for the existence of the soxmix application on the target platform and have
the result available in autoconfig.h.
(part of issue #11589)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-19 22:51:03 +00:00
Luigi Rizzo ea8af9b995 Properly document AST_EXT_TOOL_CHECK() and use it to check for
NETSMP and GTK (GTK is not used thoug).

AST_EXT_TOOL_CHECK() could be used for checking curl status
as well, perhaps with a small addition because we currently seem
to require a curl version greater than X.Y.Z

Add a NETSMP_INCLUDE entry in makeopts.in

We don't have yet any macros for using pkg-config to check
for a specific package (right now there is only gtk2+
in the category).




git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-19 08:57:45 +00:00
Kevin P. Fleming 01f8a6959b make the configure script detect that it is running on a Windows platform, and report that information so that menuselect can use it (all information that is used to decide whether to build modules or not must be fed to menuselect so the user knows what will be built and why... don't make module build decisions in the makefiles, please)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17 17:11:06 +00:00
Kevin P. Fleming 100ef27af9 Merged revisions 93180 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93180 | kpfleming | 2007-12-16 22:44:51 -0800 (Sun, 16 Dec 2007) | 23 lines

In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
rizzo brought up some issues related to the way that the metadata required
for menuselect and the rest of the build system is extracted from the source
files. Since I had a few hours to kill on an airplane today, I decided to
improve this situation... so now the system caches the extracted metadata
and uses it to build the menuselect 'tree' as much as it can. The result
of this is that when a single source file is changed, only the metadata for
that file needs to be extracted again, and the rest is used from the cache
files. I also reduced the number of forked processes required to do the
metadata extraction; it was actually possible to do most of what we needed
in the Makefiles themselves without using any shell scripts at all! On my
laptop, these changes resulted in an 80% decrease in the time required
for the 'menuselect.makeopts' automatic check to occur after editing a single
source file.

While doing this work I also cleaned up a few minor things in the Makefiles,
adding a check for 'awk' to the configure script and changed all remaining
places we use 'grep' or 'awk' to use the ones found by the configure script,
and changed the 'prep_tarball' script to build the menuselect metadata so
that tarballs of Asterisk will include it and won't require the user to
wait while it is extracted after unpacking.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17 07:25:35 +00:00
Tilghman Lesher 2d93695fba Merged revisions 92463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92463 | tilghman | 2007-12-12 10:52:56 -0600 (Wed, 12 Dec 2007) | 4 lines

Test directly for the API that fixed AST-2007-026, to ensure that older
versions of PostgreSQL are no longer acceptable.
(Closes issue #11526)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-12 16:56:12 +00:00
Mark Michelson 6711a5d567 Trunk build would fail due to the nonexistence of zaptel hwgain
structures missing. Patched configure to check for this stuff and
put a #ifdef around the offending code in chan_zap. Thanks to file
for overseeing this.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-11 22:10:43 +00:00
Russell Bryant 9bd421dd10 Update the configure script check for libpri to check for the newest function
that was just added.

Cresl1n, please keep this in mind when making these changes to libpri or libss7.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-26 22:52:36 +00:00
Luigi Rizzo 6dfc36b639 enable support for stack backtrace for stuff built in utils/
(this was present in the main tree but forgotten here).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 21:30:24 +00:00
Luigi Rizzo 2ff174e62e add check for video4linux
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 01:29:45 +00:00
Luigi Rizzo b4ab6b5652 X11 checks (at least some - for other platforms with
unusual X11 locations you might need to add more directories)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 00:22:41 +00:00
Russell Bryant 2626c511da i got a little carried away with commas ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-20 19:29:08 +00:00
Russell Bryant 90296ccdfe fix the zaptel configure script check
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-20 19:11:18 +00:00
Luigi Rizzo 52619b6ec5 add an argument for extra headers to AC_EXT_LIB_CHECK,
and on passing simplify the code.
Too bad that every time we need to regenerate configure...



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-20 15:39:00 +00:00
Joshua Colp 3f0324ea1f Change autoconf logic a bit so it says what it is looking for in two instances where it didn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-18 16:43:08 +00:00
Joshua Colp 42b08b4eb8 Use autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_RECURSIVE_NP. Enclose error message from network.h in "
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 23:03:16 +00:00
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
Also remove some unnecessary includes.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 14:11:53 +00:00
Luigi Rizzo 59efa92285 timersub is a macro not a function, so write the check in a way
that detects both formats.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 09:30:22 +00:00
Russell Bryant 505499588b Update the configure script check for sys/poll.h to also provide the result in
include/asterisk/autoconfig.h.  Also, move the conditional include of sys/poll.h
or asterisk/poll-compat.h into asterisk/config.h instead of the two headers it
existed in before.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 06:33:07 +00:00
Luigi Rizzo aeba4fef65 add detection for timersub() and winsock.h/winsock2.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 04:17:53 +00:00
Luigi Rizzo 3b1f69deea use autoconf to check for the existence of sys/poll.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 02:57:40 +00:00
Luigi Rizzo 732c1d30c3 acinclude.m4: add a function to help checking sdl-config, gtk-config
and the like (this could be used for gtk and gtk2 as well)
Other files: add tests for sdl, sdl_image and avcodec and regenerate
	configure and autoconfig.h.in



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 01:49:26 +00:00
Luigi Rizzo d209cb090e add check for the presence of glob
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-17 00:31:32 +00:00
Tilghman Lesher 32701f5031 Set up detection of IP_PKTINFO in autoconf for chan_unistim
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-06 15:01:56 +00:00
Tilghman Lesher e8c781b215 Add pbx_lua as a method of doing extensions
Reported by: mnicholson
Patch by: mnicholson
Closes issue #11140


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-02 15:36:34 +00:00
Jason Parker 2902601eea Remove traces of gnutls, since we no longer use/need it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-01 23:26:51 +00:00
Joshua Colp c8777404b3 Add autoconf checks for extra suppserv definitions that are not present in releases yet. chan_misdn should now build against the latest release.
(closes issue #11103)
Reported by: IgorG


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-29 16:34:45 +00:00
Russell Bryant 0706014b1b Update the configure script for the last libss7 API change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-27 15:41:38 +00:00
Russell Bryant b119e1c8a1 Change the configure script to check for a function that was recently added to libss7.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-14 15:47:01 +00:00
Tilghman Lesher e3ebc3a6ed Autoconf requires version 2.60, not 2.59, to process (Closes issue #10842)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-28 14:35:36 +00:00
Tilghman Lesher 48f56ba8b4 Fixes for FreeBSD... testing for every conceivable math function now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-22 02:07:53 +00:00
Tilghman Lesher 78a94595f6 Check for the presence of trunc and round, and make the ISOC99 detection a little more sane (closes issue #10776)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-21 14:25:51 +00:00
Russell Bryant bf28185fce Merged revisions 82385 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82385 | russell | 2007-09-14 10:50:49 -0500 (Fri, 14 Sep 2007) | 3 lines

Add checking for libusb here, so nobody has to deal with conflicts in the
chan_usbradio-1.4 branch every time the configure script gets changed

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-14 15:52:28 +00:00
Joshua Colp 2190931e37 Don't check for epoll support when cross compiling.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-07 12:32:04 +00:00
Joshua Colp 5923c7fe8c Actually check the return value of epoll_create to make sure it works.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-18 23:58:51 +00:00
Joshua Colp 22114b509d Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-08 21:44:58 +00:00
Joshua Colp 520cab6aee Merged revisions 78166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78166 | file | 2007-08-06 11:18:20 -0300 (Mon, 06 Aug 2007) | 4 lines

(closes issue #10383)
Reported by: rizzo
Include stdlib.h so NULL gets defined for gethostbyname_r checks.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-06 14:20:04 +00:00
Joshua Colp 1e4bd7a192 Instead of adding the SOLARIS check to each HAVE_SYSINFO check let's just make the sysinfo autoconf logic a bit pickier about what it considers a usable sysinfo.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-01 19:37:59 +00:00
Joshua Colp e03296f7cb Don't look for /dev/urandom when cross compiling. Just assume it is not available.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-01 18:56:31 +00:00
Joshua Colp 021c0ca0d6 Merged revisions 77865 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77865 | file | 2007-08-01 14:42:52 -0300 (Wed, 01 Aug 2007) | 2 lines

And for my last trick... make sure that if gethostbyname_r is exported by a library that it is used.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-01 17:47:05 +00:00
Joshua Colp d51079b70a Merged revisions 77863 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77863 | file | 2007-08-01 14:22:35 -0300 (Wed, 01 Aug 2007) | 2 lines

Extend autoconf logic to determine which version of gethostbyname_r is on the system.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-01 17:27:09 +00:00
Joshua Colp 91c3d90e8f Use autoconf logic to determine byte swapping macro presence. This should now also use other macros if present.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-23 13:46:57 +00:00
Joshua Colp 93b72115d1 Add support for using /dev/urandom to get random numbers on systems that support it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-21 14:39:52 +00:00
Joshua Colp 0b0e64fe2f Add in check for the GCC attribute deprecated. It may be used soon!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-16 18:36:02 +00:00
Joshua Colp 2d3f9ce25b Merged revisions 74572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74572 | file | 2007-07-11 14:03:08 -0300 (Wed, 11 Jul 2007) | 2 lines

Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 17:06:54 +00:00
Jason Parker 8a5cea16bc Merged revisions 74374 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10133)
................
r74374 | qwell | 2007-07-10 13:39:30 -0500 (Tue, 10 Jul 2007) | 13 lines

Merged revisions 74373 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r74373 | qwell | 2007-07-10 13:37:23 -0500 (Tue, 10 Jul 2007) | 5 lines

Use res_ndestroy on systems that have it.  Otherwise, use res_nclose.
This prevents a memleak on NetBSD - and possibly others.

Issue 10133, patch by me, reported and tested by scw

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-10 18:41:03 +00:00
Russell Bryant 54d8fd0968 Merged revisions 74211 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74211 | russell | 2007-07-09 16:31:30 -0500 (Mon, 09 Jul 2007) | 5 lines

Update the configure script to check for a required function that is not present
in the 1.2 version of libpri.  This will prevent the configure script from thinking
that it has compatible libpri support for Asterisk 1.4, when it actually does not
because the installed version is from 1.2.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 21:32:53 +00:00
Tilghman Lesher 935bd057f8 Restore EXP2 and LOG2 functions, by providing mathematical identify functions, when the underlying C functions are not available.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-08 21:01:28 +00:00
Steve Murphy 1827bcba77 These changes fix 10145 and 10150, a prob with BSD and exp2/log2 not existing, as well as the bootstrap needing a small upgrade for openbsd. Many thanks to mvanbaak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-07 16:44:57 +00:00
Russell Bryant 8a4447c45a Merged revisions 72766 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72766 | russell | 2007-06-30 11:50:40 -0500 (Sat, 30 Jun 2007) | 3 lines

Tweak the configure script so that error output isn't spewed to the console
when searching for GTK2 libs, and they aren't found.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-30 16:53:25 +00:00
Russell Bryant 4a6f3770f9 Fix my recent change for sending large files via the http server. This code
*must* write the file to the FILE *, and not the raw fd.  Otherwise, it breaks
TLS support.

Thanks to rizzo for catching this!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-29 21:24:40 +00:00
Russell Bryant 408dbc4304 Merge changes from team/russell/http_filetxfer
Handle transferring large files from the built-in http server.  Previously, the
code attempted to malloc a block as large as the file itself.  Now it uses the
sendfile() system call so that the file isn't copied into userspace at all if
it is available.  Otherwise, it just uses a read/write of small chunks at a time.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-29 20:35:09 +00:00
Jason Parker 7412b3bf0d Apparently some builds of gcc don't have declaration-after-statement.
This checks for it in configure, and only uses it if it's available.

If it's wrong, somebody please yell at me and tell me why.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-28 21:31:00 +00:00
Mark Michelson d2f93119c5 Fixes a problem where Asterisk would not compile if IMAP_STORAGE was enabled.
Needed to add a space between file name and options.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 00:10:09 +00:00
Russell Bryant ab56fcce5c Allow compilation off app_voicemail with IMAP_STORAE against a system installed
version of the c-client library.  (issue #10047, jcollie)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 19:20:07 +00:00
Russell Bryant 43658278ff Merged revisions 69702 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69702 | russell | 2007-06-18 11:35:02 -0500 (Mon, 18 Jun 2007) | 6 lines

To prevent 92138749238754 more reports of "I have unixodbc installed, but
still can't build *_odbc.so!", check for ltdl directly, instead of just listing
it as another library to include in the unixodbc check in the configure script.
This also makes ltdl show up as a dependency in menuselect so people know what
to go install.  (related to issue #9989, patch by me)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-18 16:35:51 +00:00
Russell Bryant becbe90833 Merged revisions 67026 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67026 | russell | 2007-06-04 11:02:31 -0500 (Mon, 04 Jun 2007) | 6 lines

Change the configure script to build a test program against libcurl to make
sure the results from curl-config can be used to compile successfully.  This is
intended to help prevent a situation where you are cross compiling, and the
configure script finds the curl library installed on the host.
(issue #9865, reported and patched by zandbelt)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 16:03:19 +00:00
Kevin P. Fleming f371a4c756 more minor fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-25 15:07:26 +00:00
Kevin P. Fleming c74518e3ff Merged revisions 66157 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66157 | kpfleming | 2007-05-25 10:28:46 -0400 (Fri, 25 May 2007) | 3 lines

handle the GNUTLS library properly in the configure script and build system
don't build in OSP support unless we have found and are allowed to use SSL support

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-25 14:37:55 +00:00
Kevin P. Fleming 4573b36af1 use the OpenSSL AES implementation if it's available (unless configured not to)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24 22:07:50 +00:00
Jason Parker 09e734a563 Merged revisions 66029-66030 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66029 | qwell | 2007-05-24 15:53:18 -0500 (Thu, 24 May 2007) | 2 lines

Following moving strip to AC_PATH_TOOL, we need to do something similar for ar.

........
r66030 | qwell | 2007-05-24 15:54:16 -0500 (Thu, 24 May 2007) | 2 lines

Rebuild configure script for previous ar fix.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24 20:55:51 +00:00
Russell Bryant b66c646519 Merged revisions 66026 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66026 | russell | 2007-05-24 15:42:53 -0500 (Thu, 24 May 2007) | 3 lines

Checking for the strip application needs to be done with AC_PATH_TOOL
instead of AC_PATH_PROG to properly handle cross compilation environments.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24 20:44:46 +00:00
Joshua Colp 97d93d091b Add a configure script check for sysinfo support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 20:21:18 +00:00
Russell Bryant 0a9750ef9f Merged revisions 60603 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r60603 | russell | 2007-04-06 15:58:43 -0500 (Fri, 06 Apr 2007) | 13 lines

To be able to achieve the things that we would like to achieve with the
Asterisk GUI project, we need a fully functional HTTP interface with access
to the Asterisk manager interface.  One of the things that was intended to be
a part of this system, but was never actually implemented, was the ability for
the GUI to be able to upload files to Asterisk.  So, this commit adds this in
the most minimally invasive way that we could come up with.

A lot of work on minimime was done by Steve Murphy.  He fixed a lot of bugs in
the parser, and updated it to be thread-safe.  The ability to check
permissions of active manager sessions was added by Dwayne Hubbard.  Then,
hacking this all together and do doing the modifications necessary to the HTTP
interface was done by me.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 21:16:38 +00:00
Nadi Sarrar 24d8595d00 Merged revisions 59202 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r59202 | nadi | 2007-03-26 17:25:53 +0200 (Mo, 26 Mär 2007) | 4 lines

* mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.
* add a check for linux/mISDNdsp.h to configure.ac and update the autogenerated files: 'configure', 'autoconfig.h.in'
  (the 'configure' script was not in sync with the latest configure.ac, so the diff is a bit bigger than expected).

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@59203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-26 15:59:56 +00:00
Russell Bryant 7f31b58b21 Merged revisions 58947 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58947 | russell | 2007-03-15 18:53:26 -0500 (Thu, 15 Mar 2007) | 3 lines

Add configure script checking for GTK2 and some additional Makefile targets
to support gmenuselect

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-15 23:56:10 +00:00
Russell Bryant 1cf3a12047 Merged revisions 58931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58931 | russell | 2007-03-15 17:25:12 -0500 (Thu, 15 Mar 2007) | 13 lines

Merge changes from svn/asterisk/team/russell/LaTeX_docs.

* Convert most of the doc directory into a single LaTeX formatted document
  so that we can generate a PDF, HTML, or other formats from this
  information.
* Add a CLI command to dump the application documentation into LaTeX format
  which will only be include if the configure script is run with 
  --enable-dev-mode.
* The PDF turned out to be close to 1 MB, so it is not included.  However, you
  can simply run "make asterisk.pdf" to generate it yourself.  We may include
  it in release tarballs or have automatically generated ones on the web site,
  but that has yet to be decided.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-15 22:29:45 +00:00
Russell Bryant 5bea998a55 Merge changes from team/russell/sqlite:
* Add new module, cdr_sqlite3_custom which allows logging custom CDRs into a
  SQLite3 database.  (issue #7149, alerios)
* Add new module, res_config_sqlite, which adds realtime database configuration
  support for SQLite version 2.  I decided that this was ok since we didn't have
  any realtime support for version 3.  If someone ports this to version 3, then
  version 2 support can be removed or marked deprecated.
  (issue #7790, rbarun_proformatique)
* Mark cdr_sqlite as deprecated in favor of cdr_sqlite3_custom.

Also, note that there were other modules on the bug tracker that did not make
the cut because they provided some duplicated functionality.  Those are:

* cdr_sqlite3 (issue #6754, moy)
* cdr_sqlite3 (issue #8694, bsd)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-13 21:22:33 +00:00
Russell Bryant 9266a6b8d8 Merged revisions 58320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58320 | russell | 2007-03-07 19:01:46 -0600 (Wed, 07 Mar 2007) | 6 lines

If we receive ZT_EVENT_REMOVED, destroy the specified channel. 
(issue #7256, tzafrir)

Also, update the configure script to make sure that we don't try to build 
chan_zap if the installed version of zaptel does not include ZT_EVENT_REMOVED.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-08 01:06:00 +00:00
Russell Bryant 7ce36c7469 Merged revisions 57556 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57556 | russell | 2007-03-02 17:03:01 -0600 (Fri, 02 Mar 2007) | 3 lines

Update the check that is used to determine whether zaptel transcoder support
is present.  The interface has changed.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-02 23:05:25 +00:00
Russell Bryant a347807103 Merged revisions 55052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r55052 | russell | 2007-02-16 18:40:34 -0600 (Fri, 16 Feb 2007) | 3 lines

If the pg_config application is found, but there is probably executing it,
then consider postgres unavailable.  (issue #8637)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-17 01:11:32 +00:00
Kevin P. Fleming ee770b99dd Merged revisions 53850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53850 | kpfleming | 2007-02-10 00:06:08 -0600 (Sat, 10 Feb 2007) | 3 lines

don't display the --with-imap message unless --with-imap was specified without a path
use '-n' instead of '! -z' for tests

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-10 06:14:55 +00:00
Kevin P. Fleming 119d6d5a64 Merged revisions 53715 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53715 | kpfleming | 2007-02-09 10:42:22 -0600 (Fri, 09 Feb 2007) | 2 lines

clarify the fact that voicemail IMAP storage cannot be built against a distro's binary c-client library package (at least not at this time)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-09 16:43:36 +00:00
Russell Bryant f722121ca0 Merged revisions 52997 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r52997 | russell | 2007-01-30 17:23:24 -0600 (Tue, 30 Jan 2007) | 5 lines

When we are checking for a system installed version of libgsm, we need to check
for gsm.h as well.  Furthermore, when checking for this header, it may be
located in a gsm/ sub directory, so check for that, as well.
(issue #8773)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-30 23:27:16 +00:00
Tilghman Lesher c7c4f86fa1 Merged revisions 52462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r52462 | tilghman | 2007-01-27 23:15:07 -0600 (Sat, 27 Jan 2007) | 2 lines

Suggested change to fix normal usage of --with-tds=/usr/local (Sean Bright, via asterisk-dev mailing list)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-28 05:18:02 +00:00
Luigi Rizzo 243d426ce0 another freebsd-specific check for zaptel compatibility
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 15:59:05 +00:00
Luigi Rizzo 68a84d56e3 add comments that AC_USE_SYSTEM_EXTENSIONS and AST_PROG_LD
do not work on FreeBSD - presumably they depend on some
auto* feature that is not installed by default.

I am not sure on what is a proper fix. In my local copy
i simply comment them out.

The AST_PROG_LD is a long standing isse, there were attempts
to fix it in the past but probably not enough has been copied
to acinclude.m4, and i had forgotten about it because i
commented out this call in configure.ac long ago



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 09:44:55 +00:00
Luigi Rizzo badb8129a2 Add check for backtrace support on platforms that do not have
it natively.

Part of it leaked in in a previous commit.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 09:39:02 +00:00
Luigi Rizzo eec01e4535 remove a useless (and harmful on some platforms) -lnsl
from IKSEMEL_LIB.

Actually i am not even sure whether
-lgcrypt -lgpg-error are needed.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 09:36:27 +00:00
Luigi Rizzo 551fabf140 simplify checking for zaptel version and location
(for linux, this is functionally equivalent to the previous
method; for FreeBSD, it re-adds inspection in $PREFIX/zaptel.h).

Please wait to regenerate the "configure" file as i have
another few pending changes to configure.ac

Not applicable to 1.4 until acinclude.m4 is also updated.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 09:32:13 +00:00
Kevin P. Fleming 74f401d05f Merged revisions 50867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50867 | kpfleming | 2007-01-15 09:03:06 -0600 (Mon, 15 Jan 2007) | 2 lines

use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler pthreads support... should improve portability to platforms with unusual pthreads requirements

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-15 15:08:45 +00:00
Kevin P. Fleming ecfc328d1a Merged revisions 49866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49866 | kpfleming | 2007-01-07 21:53:53 -0600 (Sun, 07 Jan 2007) | 2 lines

since we use AC_PATH_TOOL to find tools, we should use the results it provides for us (reported by Brian Capouch on the asterisk-dev list)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 03:56:06 +00:00
Kevin P. Fleming cb97e0c353 Merged revisions 49102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49102 | kpfleming | 2007-01-01 17:34:35 -0600 (Mon, 01 Jan 2007) | 2 lines

check specifically for VLDTMF and transcoding support in the system's Zaptel installation, and make only the modules that need those features dependent on them (this will allow building the other Zaptel-using parts of Asterisk against older versions of Zaptel or those on other platforms that haven't caught up yet to the Linux version)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-01 23:43:43 +00:00
Joshua Colp b3ab530077 Merged revisions 48960 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48960 | file | 2006-12-25 12:04:48 -0500 (Mon, 25 Dec 2006) | 2 lines

Clean up autoconf file (gets rid of warnings seen when rebuilding configure) and rebuild configure.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 17:06:58 +00:00
Jason Parker a504d9e64e ctrl-w != w (nano search) (surprisingly, the fix was ever so slightly different in 1.4)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 16:57:24 +00:00
Kevin P. Fleming a40b78b885 Merged revisions 48528 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48528 | kpfleming | 2006-12-16 15:34:41 -0600 (Sat, 16 Dec 2006) | 2 lines

use m4 quoting for AC_MSG_NOTICE calls, to keep these calls from thinking they have multiple arguments

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-16 21:38:10 +00:00
Jason Parker 7b52b8fbd9 Merged revisions 48279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48279 | qwell | 2006-12-05 14:42:52 -0600 (Tue, 05 Dec 2006) | 4 lines

Fix curl version number testing to be much more friendly to non-bash shells.

Issue 8508, patch by me.  This *SHOULD* be POSIX compliant now..

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 20:44:12 +00:00
Russell Bryant c1a36cb52f Merged revisions 48190 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48190 | russell | 2006-12-01 18:16:28 -0500 (Fri, 01 Dec 2006) | 12 lines

FreeBSD 6.1 does not include wget by default.  However, it has fetch which will
work just fine for our purposes of downloading the sounds packages.  So, check
for both wget and fetch and the configure script and use what was found to
download them.  If neither one was found, and sound packages are selected that
must be downloaded, the install process will print out an informative error
message indicating the situation.

Also, fix a couple places where "make" was hard coded into some output messages
by replacing them with the $(MAKE) variable.

(issue #8451, initial patch by pabelanger, with additional modifications by me)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 23:20:17 +00:00
Kevin P. Fleming 197928cef3 Merged revisions 47758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47758 | kpfleming | 2006-11-16 14:09:10 -0600 (Thu, 16 Nov 2006) | 2 lines

check for pre-1.4 versions of Zaptel and abort the configure script if found with an appropriate error message

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 20:10:59 +00:00
Russell Bryant 7cfa2154f9 Merged revisions 47327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47327 | russell | 2006-11-08 11:31:59 -0500 (Wed, 08 Nov 2006) | 4 lines

Copy the macros from libtool.m4 to our own acinclude.m4 such that libtool is
no longer required to be installed to be able to generate the configure
script.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 16:36:45 +00:00
Russell Bryant 6676c55a66 add a comment about where AC_PROG_LD comes from
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 03:13:46 +00:00
Joshua Colp aebb4aaa0d I'm crazy so I will add this... pthread rwlock wrappers, along with autoconf stuff that detects the presence of the initializer and the ability to set the kind of lock (in our case we rather like writer preferred locks so writer starvation doesn't occur... but on something like Darwin we don't get that)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 16:28:13 +00:00
Russell Bryant f89ccdc0f3 Merged revisions 46847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46847 | russell | 2006-11-01 17:51:21 -0500 (Wed, 01 Nov 2006) | 3 lines

Fixes for cross-compilation on mips 
(issue #8058, ywalther, with some modifications)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 22:54:15 +00:00
Russell Bryant ae1133d8a9 Merged revisions 46845 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46845 | russell | 2006-11-01 17:32:12 -0500 (Wed, 01 Nov 2006) | 5 lines

Add a check in the configure script to determine whether ld is GNU ld or not.
This is needed because module embedding only works for gnu ld.  GNU ld is now
listed as a dependency for all of the module embedding options in menuselect.
(issue #8143)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 22:35:52 +00:00
Joshua Colp 6b4c7b6923 Merged revisions 46506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46506 | file | 2006-10-30 16:09:13 -0500 (Mon, 30 Oct 2006) | 2 lines

Don't explicitly link in crypt as it is not used on some platforms.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 21:11:37 +00:00
Luigi Rizzo c15f7953c8 Fix a few issues in the previous (disabled) HTTPS code,
and support linux as well (using fopencookie(), which should
be available in glibc).

Update configure.ac to check for funopen (BSD) and fopencookie(glibc),
and while we are at it also for gethostbyname_r
(the generated files need to be updated, or you need
to run bootstrap.sh yourself).

Document the new options in http.conf.sample
(names are only tentative, better ones are welcome).

At this point we can safely enable the option.
Anyone willing to try this on Sun and Apple platforms ?



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-22 19:09:25 +00:00
Kevin P. Fleming 0638096e5c Merged revisions 45027 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r45027 | kpfleming | 2006-10-13 10:41:14 -0500 (Fri, 13 Oct 2006) | 2 lines

use a configure script test for PMTU discovery control instead of just assuming it's available on Linux

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 15:47:42 +00:00
Luigi Rizzo f4cd569b12 Basically, this commit only simplifies configure.ac and makes the
mechanism more flexible, but otherwise should not affect your build
even if you regenerate the "configure" script.
(Most likely you need to run bootstrap.sh as you really need to re-run
autoheader for reasons that i do not completely understand).

If you don't regenerate "configure", of course you will see no difference.

In detail:

- restructure the check for mandatory modules to remove some
  redundant code blocks;

- extend the AST_EXT_LIB_CHECK so that it can used also for
  checking headers;

- define the AST_C_DEFINE_CHECK macro to test for #defined symbols;

- for the two above macros, add a last argument that getscopied into
  HAVE_$1_VERSION so the source can adapt to different versions of the
  same libraries/header/etc

- document the above;

- document a problem that existed before and i did not manage to solve:
  the 'description' argument to AC_DEFINE does not substiture shell variables
  so you will not see the actual values in the comments (in autoconfig.h)..




git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-05 15:42:14 +00:00
Luigi Rizzo 13dc7ac7d2 simplify checks for OSS using AST_EXT_LIB_CHECK;
remove two repeated blocks using better logic.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 23:52:23 +00:00
Luigi Rizzo e7db78a404 restore proper CPPFLAGS and LDFLAGS for FreeBSD,
until a better solution is found.

Please do not commit the regenerated "configure" file yet,
as there are some more simplifications to be applied to
configure.ac and acinclude.m4 in the next few days.

For the same reason, i am postponing the commit to the 1.4 branch
until the above changes are complete.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 22:59:02 +00:00
Luigi Rizzo 3ef55bbf81 comment the fact that autoconf2.59 is ok to process this file, but we want to
use 2.60 in case the generated "configure" file must me committed back to the
repository, so we keep differences to a minimum.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-03 15:48:57 +00:00
Kevin P. Fleming e92c34cc38 Merged revisions 44055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines

fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-29 22:48:43 +00:00
Kevin P. Fleming 89050169c8 Merged revisions 43996-43997,44008,44011-44012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43996 | kpfleming | 2006-09-29 11:47:05 -0500 (Fri, 29 Sep 2006) | 2 lines

another cross-compile fix

........
r43997 | kpfleming | 2006-09-29 11:52:27 -0500 (Fri, 29 Sep 2006) | 2 lines

support --without-curl in configure script

........
r44008 | kpfleming | 2006-09-29 13:25:49 -0500 (Fri, 29 Sep 2006) | 2 lines

don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead

........
r44011 | kpfleming | 2006-09-29 13:40:17 -0500 (Fri, 29 Sep 2006) | 2 lines

missed one conversion to ASTCFLAGS

........
r44012 | kpfleming | 2006-09-29 13:49:07 -0500 (Fri, 29 Sep 2006) | 2 lines

yet another place where we were not using the correct CFLAGS by default

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-29 18:54:21 +00:00
Joshua Colp 4116cfc387 Add ability to set high ToS bits as non-root on Linux using libcap (issue #7047 reported by maddison)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 21:48:01 +00:00
Matthew Fredrickson bd76cda68d Merge in SS7 changes.... need to still cleanup zapata.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-21 18:41:33 +00:00
Tilghman Lesher 993adde868 Merged revisions 43410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43410 | tilghman | 2006-09-21 11:31:59 -0500 (Thu, 21 Sep 2006) | 10 lines

Merged revisions 43409 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43409 | tilghman | 2006-09-21 11:18:19 -0500 (Thu, 21 Sep 2006) | 2 lines

TDS 0.64 updates

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-21 16:38:16 +00:00
Matthew Fredrickson 2cc96500bd Mergeing in Paul Cadach's chan_h323 changes *holds breath*
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 17:07:22 +00:00
Jason Parker ba1a158641 Let's order these better..
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 14:24:14 +00:00
Jason Parker 52ad644087 Add a few more 'generic' platforms
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 14:19:54 +00:00
Kevin P. Fleming 44f60a288d restore ability for Makefiles to use 'generic' platform names when needed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 14:04:15 +00:00
Jason Parker e3f0ca05e5 This totally worked when I tested it...
Reverting for now..


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 23:59:23 +00:00
Jason Parker 3334bdebb7 This was silly. Nowhere else do we use [ or [[
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 23:37:25 +00:00
Jason Parker 23def858f7 We have autoconf...let's actually use it.
(note, M4 wasn't used, so...bye)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 19:57:09 +00:00
Kevin P. Fleming fb23c753d3 handle config.guess name for FreeBSD properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 19:30:10 +00:00
Jason Parker f18cbf77df Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.c
Every OS uses strcompat now - this was done on purpose.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-15 17:16:00 +00:00
Joshua Colp 5418a7a1a8 Update configure script to check for Zaptel VLDTMF support since this will now be required. If you build and don't have Zap stuff, upgrade your zaptel copy. As well - change some minor things so that we get "checking for" and not "checking checking for".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 01:48:04 +00:00
Russell Bryant 3a83fbed5b menuselect doesn't use asterisk's autoconfig.h anymore, so this ifdef can be
removed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-26 17:15:38 +00:00
Kevin P. Fleming aa7b32d175 more optimizations for embedded systems:
when LOADABLE_MODULES is off, don't export symbols from the main binary
  when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-26 16:45:35 +00:00
Russell Bryant 3a6dfec6c3 fix redirect typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 19:10:15 +00:00
Kevin P. Fleming aad5f19a12 fix a typo and clarify something else
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 18:58:52 +00:00
Russell Bryant 3c886e6451 remove the make version check, and instead, check for the actual bug that
causes our build system to blow up.

If anyone still sees problems and configure didn't detect a problem with make,
please let me know.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 18:55:26 +00:00
Russell Bryant 2eb7c010c7 we use autoconf 2.60.
Note that this only affects people regenerating the configure script.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 16:19:58 +00:00
Russell Bryant 5008225fcf get cflags for libcurl as well as libs (patch from qwell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 00:13:03 +00:00
Kevin P. Fleming 7eecf0bfbc use RTLD_NOLOAD if it's available to make loading dynamic modules a little faster and less resource-intensive
also, keep trying to dlclose() a module until it actually goes away, since it may have other modules it brought in when it was loaded (thanks PCadach for pointing this problem out to me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-23 19:28:13 +00:00
Kevin P. Fleming 4cc09eb1e4 remove requirement for libtasn1, which appears to be a Debian thing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-22 16:32:41 +00:00
Kevin P. Fleming a394f4ad64 use a customized configure macro to tell the script that uCLinux does not have fork() that works
drop all startup options and code related to forking if it is not available


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 20:12:18 +00:00
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00
Matt O'Gorman 57ee805062 changes to configure to support older c-client than the
2004 version.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 22:39:48 +00:00
Russell Bryant 6ec6d652bd print a warning at the end of the configure script if the version of GNU Make
in use is a version earlier than 3.81

This is for file :)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 06:16:00 +00:00
Russell Bryant 7d63b7d9ff support ./configure --silent
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-14 00:08:35 +00:00
Tilghman Lesher d99e7d4f8e Move curl version test to autoconf script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-15 21:39:26 +00:00
Russell Bryant b8481e8103 avoid an error from configure by not doing a cat on a file that doesn't exist
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-07 05:51:29 +00:00
Kevin P. Fleming 3be4c8d3eb actually do proper searching for c-client and output the results so app_voicemail can be built against it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-07 02:20:04 +00:00
Kevin P. Fleming 72c9c5def1 allow codec_gsm to be built using internal GSM library again (oops!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 21:28:30 +00:00
Kevin P. Fleming d646abbab7 update OSS so it works again
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 20:15:43 +00:00
Kevin P. Fleming d5b7bf2ab7 massive rework of configure script, and split of AST_EXT_LIB into separate macros, reducing code duplication
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 19:59:34 +00:00
Kevin P. Fleming f761d2f6f0 prepare Asterisk for new zaptel.h/tonezone.h installation locations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 16:44:41 +00:00
Russell Bryant 95c0ddd674 match the change made to AST_EXT_LIB in asterisk-addons
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 00:01:32 +00:00
Russell Bryant 40bae2fba3 add support for atomic operations provided by mac osx
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-30 15:54:13 +00:00
Kevin P. Fleming 98a465fc09 move FreeTDS version check into configure script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-29 07:50:01 +00:00
Kevin P. Fleming 51453628a0 clean up some damage from today's commit
convert codecs Makefile to new style


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-24 23:12:22 +00:00
Kevin P. Fleming e61d3d91f3 The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
support the new location for zaptel.h and tonezone.h
use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries
combine the common rules into a top-level Makefile.rules file
remove all (now) unnecessary stuff from subdir Makefiles
change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory)
alphabetize --with-<foo> options in configure script
enhance Net-SNMP support in configure script to provide a --with-netsnmp option
fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated
add 'optional package' usage to modules now that menuselect can output it
allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-24 19:43:31 +00:00