Commit Graph

146 Commits

Author SHA1 Message Date
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 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
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 8d3bae32cd Regenerate configure script. This actually just updated the revision number... since my last merge changed it to an older number, while it was in fact generated from a much newer revision.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-08 22:05:45 +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 f903d0de0c Merged revisions 77071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77071 | file | 2007-07-25 14:14:14 -0300 (Wed, 25 Jul 2007) | 2 lines

Fix autoconf logic for finding OpenH323 when it is not in the first place searched (/usr/share/openh323).

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-25 17:16:11 +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
Joshua Colp a9ab6620f1 Merged revisions 74043 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74043 | file | 2007-07-09 11:34:33 -0300 (Mon, 09 Jul 2007) | 2 lines

Use AC_CHECK_HEADER to check for ptlib/openh323 to allow for cross compiling. (issue #9675 reported by zandbelt)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 14:38:19 +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
Russell Bryant 61fef615f9 Regenerate configure script after last change to acinclude.m4
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-14 16:08:48 +00:00