<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][14459] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14459">14459</a></dd>
<dt>Author</dt> <dd>mikej</dd>
<dt>Date</dt> <dd>2009-08-05 11:22:23 -0500 (Wed, 05 Aug 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>merge build fixes to 14458</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtags104configurein">freeswitch/tags/1.0.4/configure.in</a></li>
<li><a href="#freeswitchtags104contribsevenREADME">freeswitch/tags/1.0.4/contrib/seven/README</a></li>
<li><a href="#freeswitchtags104contribsevenfsairFreeSWITCHAirair">freeswitch/tags/1.0.4/contrib/seven/fsair/FreeSWITCH-Air.air</a></li>
<li><a href="#freeswitchtags104contribsevenfsairsrcfsairas">freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.as</a></li>
<li><a href="#freeswitchtags104contribsevenfsairsrcfsairmxml">freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.mxml</a></li>
<li><a href="#freeswitchtags104srcmodendpointsmod_skypiaxmod_skypiaxc">freeswitch/tags/1.0.4/src/mod/endpoints/mod_skypiax/mod_skypiax.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtags104configurein"></a>
<div class="modfile"><h4>Modified: freeswitch/tags/1.0.4/configure.in (14458 => 14459)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/tags/1.0.4/configure.in        2009-08-04 20:17:47 UTC (rev 14458)
+++ freeswitch/tags/1.0.4/configure.in        2009-08-05 16:22:23 UTC (rev 14459)
</span><span class="lines">@@ -1,838 +1,838 @@
</span><del>-#                                               -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-# Must change all of the below together
-# For a release, set revision for that tagged release as well and uncomment
-AC_INIT([freeswitch], [1.0.4], BUG-REPORT-ADDRESS)
-AC_SUBST(SWITCH_VERSION_MAJOR, [1])
-AC_SUBST(SWITCH_VERSION_MINOR, [0])
-AC_SUBST(SWITCH_VERSION_MICRO, [4])
-AC_SUBST(SWITCH_VERSION_REVISION, [14452])
-
-AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
-
-AC_CONFIG_AUX_DIR(build/config)
-AM_INIT_AUTOMAKE(libfreeswitch,0.1)
-AC_CONFIG_SRCDIR([src/switch.c])
-AC_CONFIG_HEADER([src/include/switch_private.h])
-AC_CONFIG_HEADER([libs/xmlrpc-c/xmlrpc_amconfig.h])
-
-AC_PREFIX_DEFAULT(/usr/local/freeswitch)
-# AC_PREFIX_DEFAULT does not get expanded until too late so we need to do this to use prefix in this script
-if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
-    prefix='/usr/local/freeswitch'
-fi
-
-AC_CANONICAL_HOST
-
-# Absolute source/build directory
-switch_srcdir=`(cd $srcdir &amp;&amp; pwd)`
-switch_builddir=`pwd`
-AC_SUBST(switch_srcdir)
-AC_SUBST(switch_builddir)
-
-# Where to install the modules
-AC_ARG_WITH([modinstdir],
-        [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir=&quot;$withval&quot;], [modinstdir=&quot;${prefix}/mod&quot;])
-
-AC_SUBST(modinstdir)
-AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],&quot;${modinstdir}&quot;,[where to install the modules to])
-
-if test &quot;$sysconfdir&quot; = &quot;\${prefix}/etc&quot; ; then
-    confdir=&quot;$prefix/conf&quot;
-else
-    confdir=&quot;$sysconfdir&quot;
-fi
-
-AC_SUBST(confdir)
-AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],&quot;${confdir}&quot;,[directory for configuration files])
-
-#Set default language
-AC_LANG_C
-# Checks for programs.
-AC_PROG_CC
-AC_PROG_CXX
-
-#check if the g++ compiler works
-AC_CACHE_CHECK([whether the C++ compiler works], [ac_cv_sys_cxx_works], [
-    AC_LANG_PUSH([C++])
-    AC_COMPILE_IFELSE([int main() { }], [ac_cv_sys_cxx_works=yes],
-        [ac_cv_sys_cxx_works=no])
-    AC_LANG_POP([C++])
-    ])
-[ if [ &quot;x$ac_cv_sys_cxx_works&quot; = &quot;xno&quot; ]; then ]
-    AC_MSG_FAILURE([The C++ compiler does not work. Please (re)install the C++ compiler])
-[ fi ]
-
-AC_PROG_AWK
-AC_PROG_MAKE_SET
-AC_PROG_INSTALL
-
-#override some default libtool behavior and invoke AC_PROG_LIBTOOL (see http://lists.gnu.org/archive/html/libtool/2007-03/msg00000.html)
-m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
-m4_defun([_LT_AC_LANG_GCJ_CONFIG], [:])
-m4_defun([_LT_AC_LANG_RC_CONFIG], [:])
-AM_PROG_CC_C_O
-AC_PROG_LIBTOOL
-
-#Check for compiler vendor
-AX_COMPILER_VENDOR
-
-#  Optimize
-AC_ARG_ENABLE(optimization,
-[AC_HELP_STRING([--enable-optimization],[Set if you want us to add max optimising compiler flags])],[enable_optimizer=&quot;$enableval&quot;],[enable_optimizer=&quot;no&quot;])
-
-if test &quot;${enable_optimizer}&quot; = &quot;yes&quot; ; then
-        AC_DEFINE([OPTIMZER],[],[Enable Optimization.])
-        AX_CC_MAXOPT
-fi
-
-# set defaults for use on all platforms
-SWITCH_AM_CFLAGS=&quot;-I${switch_srcdir}/src/include -I${switch_srcdir}/libs/libteletone/src&quot;
-SWITCH_AM_CXXFLAGS=&quot;-I${switch_srcdir}/src/include -I${switch_srcdir}/libs/libteletone/src&quot;
-SWITCH_AM_LDFLAGS=&quot;-lm&quot;
-
-#set SOLINK variable based on compiler and host
-if test &quot;x${ax_cv_c_compiler_vendor}&quot;  =  &quot;xsun&quot; ; then
-    SOLINK=&quot;-Bdynamic -dy -G&quot;
-elif test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
-    case &quot;$host&quot; in
-        *darwin*)
-            SOLINK=&quot;-dynamic -bundle -force-flat-namespace&quot;
-        ;;
-        *-solaris2*)
-            SOLINK=&quot;-shared -Xlinker&quot;
-        ;;
-        *)
-            SOLINK=&quot;-shared -Xlinker -x&quot;
-        ;;
-    esac
-else
-    AC_ERROR([Please update configure.in with SOLINK values for your compiler])
-fi
-
-# set DYNAMIC_LIB_EXTEN
-# we should really be using libtool so we don't need to do this
-case &quot;$host&quot; in
-    *cygwin* | *mingw*)
-        DYNAMIC_LIB_EXTEN=&quot;dll&quot;
-    ;;
-    *)
-        DYNAMIC_LIB_EXTEN=&quot;so&quot;
-    ;;
-esac
-
-##
-# detect libtool major version,
-# set libtool library extension based on this
-# to work around some brokeness when using 'la' with libtool-1.5
-#
-AC_MSG_CHECKING([libtool major version])
-libtool=&quot;${switch_builddir}/libtool&quot;
-LIBTOOL_MAJOR_VERSION=&quot;`$libtool --version 2&gt;/dev/null| sed -e 's/([[^)]]*)//g;s/^[[^0-9]]*//;s/[[- ]].*//g;q'| awk  'BEGIN { FS = &quot;.&quot; } { print $1 }' `&quot;
-if test -z &quot;$LIBTOOL_MAJOR_VERSION&quot; ; then
-        LIBTOOL_MAJOR_VERSION=&quot;`sed -n -e '/^VERSION/{s/^.*=\&quot;\?\([[0-9]]\+\)\..\+/\1/;p;}' ${switch_srcdir}/build/config/ltmain.sh`&quot;
-fi
-if test -z &quot;$LIBTOOL_MAJOR_VERSION&quot; ; then
-        AC_MSG_ERROR([Failed to detect your libtool version, please open a bug report on http://jira.freeswitch.org/])
-fi
-AC_MSG_RESULT([${LIBTOOL_MAJOR_VERSION}])
-
-LIBTOOL_LIB_EXTEN=&quot;$DYNAMIC_LIB_EXTEN&quot;
-
-if test &quot;${LIBTOOL_MAJOR_VERSION}&quot; = &quot;2&quot; ; then
-   LIBTOOL_LIB_EXTEN=&quot;la&quot;
-fi
-AC_MSG_RESULT([using libtool library extension... ${LIBTOOL_LIB_EXTEN}])
-
-
-#  Enable 64 bit build
-AC_ARG_ENABLE(64,
-[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64=&quot;$enable_64&quot;],[enable_64=&quot;no&quot;])
-
-# tweak compiler specific flags
-if test &quot;x${ax_cv_c_compiler_vendor}&quot;  =  &quot;xsun&quot; ; then
-    APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
-    APR_ADDTO(SWITCH_AM_CFLAGS, -DPIC)
-    APR_ADDTO(SWITCH_AM_CFLAGS, -erroff=E_END_OF_LOOP_CODE_NOT_REACHED)
-    APR_ADDTO(SWITCH_AM_CFLAGS, -errtags=yes)
-    APR_ADDTO(SWITCH_AM_CXXFLAGS, -errtags=yes)
-    APR_ADDTO(SWITCH_AM_CXXFLAGS, -KPIC)
-    APR_ADDTO(SWITCH_AM_CXXFLAGS, -DPIC)
-    APR_ADDTO(SWITCH_AM_CXXFLAGS, &quot;-features=extensions&quot;)
-
-    APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
-    if test &quot;${enable_64}&quot; = &quot;yes&quot;; then
-        APR_ADDTO(SWITCH_AM_CFLAGS, -m64)
-        APR_ADDTO(SWITCH_AM_CXXFLAGS, -m64)
-        APR_ADDTO(SWITCH_AM_LDFLAGS, -m64)
-        LIBS=&quot;$LIBS -m64&quot;
-    fi
-elif test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
-    APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
-    APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
-    APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
-    if test &quot;${enable_64}&quot; = &quot;yes&quot;; then
-        LIBS=&quot;$LIBS -m64&quot;
-    fi
-fi
-
-#
-# gcc visibility cflag checks
-#
-AC_ARG_ENABLE([visibility],
-        [AS_HELP_STRING([--disable-visibility], [Disable or enable API visibility support (default: use if available)])],
-        [enable_visibility=&quot;${enableval}&quot;],
-        [enable_visibility=&quot;detect&quot;]
-)
-HAVE_VISIBILITY=&quot;no&quot;
-
-if test &quot;x${enable_visibility}&quot; != &quot;xno&quot; ; then
-
-        case &quot;${ax_cv_c_compiler_vendor}&quot; in
-        gnu)
-                save_CFLAGS=&quot;${CFLAGS}&quot;
-                CFLAGS=&quot;${CFLAGS} -fvisibility=hidden&quot;
-                AC_MSG_CHECKING([whether the compiler supports -fvisibility=hidden])
-                AC_COMPILE_IFELSE(
-                        [AC_LANG_PROGRAM(
-                                [int foo __attribute__ ((visibility(&quot;default&quot;)));],
-                                [;]
-                        )],
-
-                        [AC_MSG_RESULT([yes])
-                         APR_ADDTO([SWITCH_AM_CFLAGS],   [-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
-                         APR_ADDTO([SWITCH_AM_CXXFLAGS], [-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
-                         HAVE_VISIBILITY=&quot;yes&quot;],
-
-                        [AC_MSG_RESULT([no])]
-                )
-                CFLAGS=&quot;${save_CFLAGS}&quot;
-                ;
-
-        sun)
-        #        save_CFLAGS=&quot;${CFLAGS}&quot;
-        #        CFLAGS=&quot;${CFLAGS} -xldscope=hidden&quot;
-        #        AC_MSG_CHECKING([whether the compiler supports -xldscope=hidden])
-        #        AC_COMPILE_IFELSE(
-        #                [AC_LANG_PROGRAM(
-        #                        [int foo __attribute__ ((visibility(&quot;default&quot;)));],
-        #                        [;]
-        #                )],
-        #
-        #                [AC_MSG_RESULT([yes])
-        #                 APR_ADDTO([SWITCH_AM_CFLAGS],   [-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
-        #                 APR_ADDTO([SWITCH_AM_CXXFLAGS], [-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
-        #                 HAVE_VISIBILITY=&quot;yes&quot;],
-        #
-        #                [AC_MSG_RESULT([no])]
-        #        )
-        #        CFLAGS=&quot;${save_CFLAGS}&quot;
-                ;
-
-        *)
-                if test &quot;x${enable_visibility}&quot; = &quot;xyes&quot; ; then
-                        AC_MSG_ERROR([Non-GNU / SUN compilers are currently unsupported])
-                else
-                        AC_MSG_WARN([Non-GNU / SUN compilers are currently unsupported])
-                fi
-                ;
-        esac
-
-        #
-        # visibility explicitly requested but not supported by this compiler =&gt; error
-        #
-        if test &quot;x${enable_visibility}&quot; = &quot;xyes&quot; -a &quot;x${HAVE_VISIBILITY}&quot; = &quot;xno&quot; ; then
-                AC_MSG_ERROR([API visibility not supported by this compiler])
-        fi
-fi
-
-# Enable debugging (default: on)
-# (rename option if the default is changed)
-AC_ARG_ENABLE(debug,
-[AC_HELP_STRING([--disable-debug],[build without debug information])],[enable_debug=&quot;$enableval&quot;],[enable_debug=&quot;yes&quot;])
-
-if test &quot;${enable_debug}&quot; = &quot;yes&quot;; then
-        AC_DEFINE([DEBUG],[],[Enable extra debugging.])
-        AX_CFLAGS_WARN_ALL_ANSI
-
-        if test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
-            APR_ADDTO(SWITCH_AM_CFLAGS, -g -ggdb)
-            export DEBUG_CFLAGS=&quot;-g -ggdb&quot;
-        fi
-
-fi
-
-AC_ARG_ENABLE(zrtp,
-        [AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp=&quot;no&quot;])
-if test &quot;x$enable_zrtp&quot; = &quot;xyes&quot; ; then
-   saved_LIBS=$LIBS
-   LIBS=&quot;$saved_LIBS -L/usr/local/lib -lbn -lpthread&quot;
-   AC_CHECK_LIB(zrtp, zrtp_init, [has_zrtp=&quot;yes&quot;], [has_zrtp=&quot;no&quot;])
-   LIBS=$saved_LIBS
-   if test &quot;x$has_zrtp&quot; = &quot;xno&quot;; then
-      AC_ERROR([Cannot locate zrtp libraries])
-   fi
-   APR_ADDTO(SWITCH_AM_CFLAGS, -DENABLE_ZRTP)
-fi
-AM_CONDITIONAL([ENABLE_ZRTP],[test &quot;x$enable_zrtp&quot; != &quot;xno&quot;])
-
-
-AM_CONDITIONAL([WANT_DEBUG],[test &quot;${enable_debug}&quot; = &quot;yes&quot;])
-
-AC_ARG_ENABLE(core-odbc-support,     
-        [AS_HELP_STRING([--enable-core-odbc-support], [Compile with ODBC Support])],,[enable_core_odbc_support=&quot;no&quot;])
-AX_LIB_ODBC
-if test &quot;$ac_cv_found_odbc&quot; = &quot;yes&quot; ; then
-  enable_core_odbc_support=&quot;yes&quot;
-fi
-
-ESL_LDFLAGS=
-PLATFORM_CORE_DEPLIBS=
-# tweak platform specific flags
-case &quot;$host&quot; in
-    *darwin*)
-        APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
-        APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)
-        if test &quot;x$enable_core_odbc_support&quot; != &quot;xno&quot;; then
-                APR_ADDTO(PLATFORM_CORE_DEPLIBS, --framework CoreFoundation)
-        fi
-    ;;
-    *-solaris2*)
-        APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
-        APR_ADDTO(ESL_LDFLAGS, -lnsl -lsocket)
-    ;;
-    *bsd*)
-        APR_ADDTO(SWITCH_AM_CFLAGS, -I/usr/local/include)
-    ;;
-esac
-
-APR_REMOVEFROM(SWITCH_AM_CXXFLAGS, -std=c99)
-
-AC_SUBST(SWITCH_AM_CFLAGS)
-AC_SUBST(SWITCH_AM_CXXFLAGS)
-AC_SUBST(SWITCH_AM_LDFLAGS)
-AC_SUBST(ESL_LDFLAGS)
-AC_SUBST(PLATFORM_CORE_DEPLIBS)
-AC_SUBST(SOLINK)
-AC_SUBST(DYNAMIC_LIB_EXTEN)
-AC_SUBST(LIBTOOL_LIB_EXTEN)
-
-# Checks for header files.
-AC_HEADER_DIRENT
-AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h wchar.h sys/filio.h sys/ioctl.h netdb.h execinfo.h])
-
-# for xmlrpc-c config.h
-if test x&quot;$ac_cv_header_wchar_h&quot; = xyes; then
-  HAVE_WCHAR_H_DEFINE=1
-else
-  HAVE_WCHAR_H_DEFINE=0
-fi
-AC_SUBST(HAVE_WCHAR_H_DEFINE)
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_C_INLINE
-AC_TYPE_SIZE_T
-AC_HEADER_TIME
-AC_STRUCT_TM
-
-# Checks for library functions.
-AC_PROG_GCC_TRADITIONAL
-AC_FUNC_MALLOC
-AC_TYPE_SIGNAL
-AC_FUNC_STRFTIME
-AC_CHECK_FUNCS([gethostname vasprintf mmap mlock mlockall usleep getifaddrs])
-AC_CHECK_FUNCS([sched_setscheduler setpriority setrlimit setgroups initgroups])
-AC_CHECK_FUNCS([wcsncmp setgroups asprintf setenv pselect gettimeofday localtime_r gmtime_r strcasecmp stricmp _stricmp])
-
-AC_CHECK_LIB(rt, clock_gettime, [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])])
-AC_CHECK_LIB(rt, clock_nanosleep, [AC_DEFINE(HAVE_CLOCK_NANOSLEEP, 1, [Define if you have clock_nanosleep()])])
-AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
-
-AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[
-#include &lt;sys/types.h&gt;
-#include &lt;time.h&gt;])
-
-AC_CHECK_MEMBERS([struct tm.tm_zone],,,[
-#include &lt;sys/types.h&gt;
-#include &lt;time.h&gt;])
-
-AC_CHECK_DECL([RLIMIT_MEMLOCK],
-        [AC_DEFINE([HAVE_RLIMIT_MEMLOCK],[1],[RLIMIT_MEMLOCK constant for setrlimit])],,
-        [#ifdef HAVE_SYS_RESOURCE_H
-         #include &lt;sys/resource.h&gt;
-         #endif])
-
-AC_CHECK_DECL([SCHED_RR],
-        [AC_DEFINE([HAVE_SCHED_RR],[1],[SCHED_RR constant for sched_setscheduler])],,
-        [#ifdef HAVE_SCHED_H
-         #include &lt;sched.h&gt;
-         #endif])
-
-#
-# use mlockall only on linux (for now; if available)
-#
-if test &quot;x${ac_cv_func_mlockall}&quot; = &quot;xyes&quot;; then
-        AC_MSG_CHECKING([whether to use mlockall])
-        case &quot;$host&quot; in
-        *-linux-*)
-                AC_DEFINE([USE_MLOCKALL],[1],[Enable mlockall support])
-                AC_MSG_RESULT([yes])
-                USE_MLOCKALL=yes
-                ;
-        *-freebsd*)
-                AC_MSG_RESULT([no, broken for non-root users])
-                ;
-        *)
-                AC_MSG_RESULT([no])
-                ;
-        esac
-
-        #
-        # setrlimit prerequisites
-        #
-        if test &quot;x${USE_MLOCKALL}&quot; = &quot;xyes&quot; -a \
-                &quot;x${ac_cv_func_setrlimit}&quot; = &quot;xyes&quot; -a \
-                &quot;x${ac_cv_have_decl_RLIMIT_MEMLOCK}&quot; = &quot;xyes&quot;
-        then
-                AC_DEFINE([USE_SETRLIMIT],[1],[Use setrlimit to disable mlock limit for non-root users])
-        fi
-fi
-
-#
-# sched_setcheduler + round-robin scheduler prerequisites
-#
-if test &quot;x${ac_cv_func_sched_setscheduler}&quot; = &quot;xyes&quot; -a \
-        &quot;x${ac_cv_have_decl_SCHED_RR}&quot; = &quot;xyes&quot;
-then
-        AC_DEFINE([USE_SCHED_SETSCHEDULER],[1],[Enable round-robin scheduler using sched_setscheduler])
-fi
-
-#
-# xmlrpc-c checks
-#
-
-
-HAVE_LIBWWW_SSL_DEFINE=0
-AC_SUBST(HAVE_LIBWWW_SSL_DEFINE)
-
-DIRECTORY_SEPARATOR=&quot;/&quot;
-AC_SUBST(DIRECTORY_SEPARATOR)
-
-va_list_is_array=no
-AC_MSG_CHECKING(whether va_list is an array)
-AC_TRY_COMPILE([
-#include &lt;stdarg.h&gt;
-], [va_list list1, list2; list1 = list2;], , 
-va_list_is_array=yes)
-AC_MSG_RESULT($va_list_is_array)
-if test x&quot;$va_list_is_array&quot; = xyes; then
-  VA_LIST_IS_ARRAY_DEFINE=1
-else
-  VA_LIST_IS_ARRAY_DEFINE=0
-fi
-AC_SUBST(VA_LIST_IS_ARRAY_DEFINE)
-
-AC_MSG_CHECKING(whether compiler has __attribute__)
-AC_TRY_COMPILE(, [int x __attribute__((__unused__));],
-compiler_has_attribute=yes,
-compiler_has_attribute=no)
-AC_MSG_RESULT($compiler_has_attribute)
-if test x&quot;$compiler_has_attribute&quot; = xyes; then
-    ATTR_UNUSED=&quot;__attribute__((__unused__))&quot;
-else
-    ATTR_UNUSED=
-fi
-AC_SUBST(ATTR_UNUSED)
-
-
-
-
-AC_C_BIGENDIAN(AC_DEFINE([SWITCH_BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([SWITCH_BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
-
-# Checks for integer size
-AC_CHECK_SIZEOF(char, 1)
-AC_CHECK_SIZEOF(int, 4)
-AC_CHECK_SIZEOF(long, 4)
-AC_CHECK_SIZEOF(short, 2)
-AC_CHECK_SIZEOF(long long, 8)
-AC_TYPE_SIZE_T
-AC_CHECK_TYPE(ssize_t, int)
-
-# Checks for pointer size
-AC_CHECK_SIZEOF(void*, 4)
-
-if test &quot;x$ac_cv_sizeof_voidp&quot; != &quot;x&quot;; then
-    voidp_size=$ac_cv_sizeof_voidp
-else
-    AC_ERROR([Cannot determine size of void*])
-fi
-
-if test &quot;$ac_cv_sizeof_short&quot; = &quot;2&quot;; then
-    short_value=short
-fi
-if test &quot;$ac_cv_sizeof_int&quot; = &quot;4&quot;; then
-    int_value=int
-fi
-
-if test &quot;$ac_cv_sizeof_int&quot; = &quot;8&quot;; then
-    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;d&quot;'
-    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;u&quot;'
-    int64_value=&quot;int&quot;
-    long_value=int
-elif test &quot;$ac_cv_sizeof_long&quot; = &quot;8&quot;; then
-    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;ld&quot;'
-    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;lu&quot;'
-    int64_value=&quot;long&quot;
-    long_value=long
-    case &quot;$host&quot; in
-        *-solaris2*|*apple-darwin*)
-            if test &quot;$ac_cv_sizeof_long_long&quot; = &quot;8&quot;; then
-                int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;lld&quot;'
-                uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;llu&quot;'
-                int64_value=&quot;long long&quot;
-                long_value=&quot;long long&quot;
-            fi
-        ;
-    esac
-elif test &quot;$ac_cv_sizeof_long_long&quot; = &quot;8&quot;; then
-    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;lld&quot;'
-    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;llu&quot;'
-    int64_value=&quot;long long&quot;
-    long_value=&quot;long long&quot;
-elif test &quot;$ac_cv_sizeof_longlong&quot; = &quot;8&quot;; then
-    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;qd&quot;'
-    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;qu&quot;'
-    int64_value=&quot;__int64&quot;
-    long_value=&quot;__int64&quot;
-else
-    AC_ERROR([could not detect a 64-bit integer type])
-fi
-
-if test &quot;$ac_cv_type_size_t&quot; = &quot;yes&quot;; then
-    size_t_value=&quot;size_t&quot;
-else
-    size_t_value=&quot;switch_int32_t&quot;
-fi
-
-if test &quot;$ac_cv_type_ssize_t&quot; = &quot;yes&quot;; then
-    ssize_t_value=&quot;ssize_t&quot;
-else
-    ssize_t_value=&quot;switch_int32_t&quot;
-fi
-
-APR_CHECK_SIZEOF_EXTENDED([#include &lt;sys/types.h&gt;], ssize_t, 8)
-
-if test &quot;$ac_cv_sizeof_ssize_t&quot; = &quot;$ac_cv_sizeof_int&quot;; then
-    ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;d&quot;'
-elif test &quot;$ac_cv_sizeof_ssize_t&quot; = &quot;$ac_cv_sizeof_long&quot;; then
-    ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
-else
-    ssize_t_fmt='#error Can not determine the proper size for ssize_t'
-fi
-
-APR_CHECK_SIZEOF_EXTENDED([#include &lt;stddef.h&gt;], size_t, 8)
-
-if test &quot;$ac_cv_sizeof_size_t&quot; = &quot;$ac_cv_sizeof_int&quot;; then
-    size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;d&quot;'
-elif test &quot;$ac_cv_sizeof_size_t&quot; = &quot;$ac_cv_sizeof_long&quot;; then
-    size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
-else
-    size_t_fmt='#error Can not determine the proper size for size_t'
-fi
-
-# Basically, we have tried to figure out the correct format strings
-# for SWITCH types which vary between platforms, but we don't always get 
-# it right.  If you find that we don't get it right for your platform, 
-# you can override our decision below.
-# NOTE: borrowed much of this logic from apr.
-case $host in
-   s390*linux*)
-       # uniquely, the 31-bit Linux/s390 uses &quot;unsigned long int&quot;
-       # for size_t rather than &quot;unsigned int&quot;:
-       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
-       ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
-       ;;
-   *-os2*)
-       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
-       ;;
-   *-openbsd*)
-       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
-       ;;
-   *aix4*|*aix5*)
-       ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
-       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
-       ;;
-    *beos*)
-        ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
-        size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
-        ;;
-    *apple-darwin*)
-        osver=`uname -r`
-        case $osver in
-           [0-7].*)
-              ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;d&quot;'
-              ;;
-           *)
-              ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
-              ;;
-        esac
-        size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
-        ;;
-esac
-
-AC_SUBST(voidp_size)
-AC_SUBST(short_value)
-AC_SUBST(int_value)
-AC_SUBST(long_value)
-AC_SUBST(int64_value)
-AC_SUBST(size_t_value)
-AC_SUBST(ssize_t_value)
-AC_SUBST(int64_t_fmt) 
-AC_SUBST(uint64_t_fmt) 
-AC_SUBST(ssize_t_fmt) 
-AC_SUBST(size_t_fmt)
-AC_SUBST(libdir)
-AC_SUBST(bindir)
-AC_SUBST(includedir)
-
-AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
-AC_PATH_PROGS(TAR, gtar tar)
-AC_PATH_PROGS(WGET, wget)
-AC_PATH_PROGS(CURL, curl)
-GETLIB=&quot;cd $switch_srcdir/libs &amp;&amp; ${SHELL} $switch_srcdir/build/getlib.sh&quot;
-AC_SUBST(GETLIB)
-GETSOUNDS=&quot;${SHELL} $switch_srcdir/build/getsounds.sh&quot;
-AC_SUBST(GETSOUNDS)
-
-
-LIBCURL_CHECK_CONFIG([yes], [7.13.0], [LIBCURL_DEPS=''], [LIBCURL_DEPS='${switch_srcdir}/libs/curl/lib/libcurl.la';LIBCURL='${switch_srcdir}/libs/curl/lib/libcurl.la';LIBCURL_CPPFLAGS='-I${switch_srcdir}/libs/curl/include'])
-AC_SUBST(LIBCURL_DEPS)
-
-
-AC_ARG_ENABLE(core-libedit-support,     
-        [AS_HELP_STRING([--disable-core-libedit-support], [Compile without libedit Support])], [enable_core_libedit_support=&quot;$enableval&quot;], [enable_core_libedit_support=&quot;yes&quot;])
-
-if test &quot;$enable_core_libedit_support&quot; = &quot;yes&quot; ; then
-    AC_CHECK_LIB(ncurses, tgetent,,
-       [AC_CHECK_LIB(curses, tgetent,,
-          [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
-fi
-
-SAC_OPENSSL
-
-if test x$HAVE_OPENSSL = x1; then
-        openssl_CFLAGS=&quot;$openssl_CFLAGS -DHAVE_OPENSSL&quot;;
-fi
-
-AX_CHECK_JAVA
-
-
-AM_CONDITIONAL([ADD_ODBC],[test &quot;x$enable_core_odbc_support&quot; != &quot;xno&quot;])
-AM_CONDITIONAL([ADD_LIBEDIT],[test &quot;x$enable_core_libedit_support&quot; != &quot;xno&quot;])
-AM_CONDITIONAL([HAVE_MYSQL],[test &quot;$found_mysql&quot; = &quot;yes&quot;])
-
-#
-# Python checks for mod_python
-#
-AC_ARG_WITH(
-        [python],
-        [AS_HELP_STRING([--with-python], [Use system provided version of python (default: try)])],
-        [with_python=&quot;$withval&quot;],
-        [with_python=&quot;try&quot;]
-)
-
-if test &quot;$with_python&quot; != &quot;no&quot;
-then
-        save_CFLAGS=&quot;$CFLAGS&quot;
-        save_LIBS=&quot;$LIBS&quot;
-
-        if test &quot;$with_python&quot; != &quot;yes&quot; -a &quot;$with_python&quot; != &quot;try&quot; ; then
-                AC_MSG_CHECKING([for python])
-                if test ! -x &quot;$with_python&quot; ; then
-                        AC_MSG_ERROR([Specified python does not exist or is not executable: $with_python])
-                fi
-                AC_MSG_RESULT([$with_python])
-                AC_SUBST([PYTHON], [&quot;$with_python&quot;])
-        else
-                AC_PATH_PROG([PYTHON], [&quot;python&quot;], [&quot;no&quot;], [&quot;$PATH:/usr/bin:/usr/local/bin&quot;])
-        fi
-
-        if test &quot;$PYTHON&quot; != &quot;no&quot; ; then
-                AC_MSG_CHECKING([python version])
-                PYTHON_VER=&quot;`$PYTHON -V 2&gt;&amp;1 | cut -d' ' -f2`&quot;
-
-                if test -z &quot;$PYTHON_VER&quot; ; then
-                        AC_MSG_ERROR([Unable to detect python version])
-                fi
-                AC_MSG_RESULT([$PYTHON_VER])
-
-                AC_MSG_CHECKING([for python distutils])
-                python_result=&quot;`$PYTHON -c 'import distutils;' 2&gt;&amp;1`&quot;
-                if test -z &quot;$python_result&quot; ; then
-                        python_has_distutils=&quot;yes&quot;
-                else
-                        python_has_distutils=&quot;no&quot;
-                fi
-                AC_MSG_RESULT([$python_has_distutils])
-
-                if test &quot;$python_has_distutils&quot; != &quot;no&quot; ; then
-                        AC_MSG_CHECKING([location of site-packages])
-
-                        PYTHON_SITE_DIR=&quot;`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`&quot;
-
-                        if test -z &quot;$PYTHON_SITE_DIR&quot; ; then
-                                AC_MSG_ERROR([Unable to detect python site-packages path])
-                        elif test ! -d &quot;$PYTHON_SITE_DIR&quot; ; then
-                                AC_MSG_ERROR([Path $PYTHON_SITE_DIR returned by python does not exist!])
-                        fi
-                        AC_MSG_RESULT([$PYTHON_SITE_DIR])
-                        AC_SUBST([PYTHON_SITE_DIR], [$PYTHON_SITE_DIR])
-
-                        #
-                        # python distutils found, get settings from python directly
-                        #
-                        PYTHON_CFLAGS=&quot;`$PYTHON -c 'from distutils import sysconfig; flags = [[\&quot;-I\&quot; + sysconfig.get_python_inc(0), \&quot;-I\&quot; + sysconfig.get_python_inc(1), \&quot; \&quot;.join(sysconfig.get_config_var(\&quot;CFLAGS\&quot;).split())]]; print \&quot; \&quot;.join(flags);'`&quot;
-                        PYTHON_LDFLAGS=&quot;`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\&quot;LIBS\&quot;).split() + sysconfig.get_config_var(\&quot;SYSLIBS\&quot;).split(); libs.append(\&quot;-lpython\&quot;+sysconfig.get_config_var(\&quot;VERSION\&quot;)); print \&quot; \&quot;.join(libs);'`&quot;
-                        PYTHON_LIB=&quot;`$PYTHON -c 'from distutils import sysconfig; print \&quot;python\&quot; + sysconfig.get_config_var(\&quot;VERSION\&quot;);'`&quot;
-                        PYTHON_LIBDIR=&quot;`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\&quot;LIBDIR\&quot;);'`&quot;
-
-                        # handle python being installed into /usr/local
-                        AC_MSG_CHECKING([python libdir])
-                        if test -z &quot;`echo $PYTHON_LIBDIR | grep &quot;/usr/lib&quot;`&quot; ; then
-                                PYTHON_LDFLAGS=&quot;-L$PYTHON_LIBDIR $PYTHON_LDFLAGS&quot;
-                                LIBS=&quot;-L$PYTHON_LIBDIR $LIBS&quot;
-                        fi
-                        AC_MSG_RESULT([$PYTHON_LIBDIR])
-
-                        # check libpython
-                        AC_CHECK_LIB([$PYTHON_LIB], [main], [has_libpython=&quot;yes&quot;], [has_libpython=&quot;no&quot;])
-
-                        if test &quot;$has_libpython&quot; = &quot;no&quot; ; then
-                                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
-                                         [AC_MSG_WARN([$PYTHON_LIB is unusable])],
-                                        [AC_MSG_ERROR([$PYTHON_LIB is unusable])]
-                                )
-                        fi
-
-                        # check whether system libpython is usable and has threads support
-                        CFLAGS=&quot;$PYTHON_CFLAGS&quot;
-                        LIBS=&quot;$PYTHON_LDFLAGS&quot;
-                        AC_CHECK_FUNC([PyThread_init_thread], [python_has_threads=&quot;yes&quot;], [python_has_threads=&quot;no&quot;])
-
-                        if test &quot;$python_has_threads&quot; = &quot;no&quot;; then
-                                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
-                                        [AC_MSG_WARN([Your python lacks threads support, can not build mod_python])],
-                                        [AC_MSG_ERROR([Your python lacks threads support, can not build mod_python])]
-                                )
-                        else
-                                AC_MSG_NOTICE([Your python seems OK, do not forget to enable mod_python in modules.conf])
-                                AC_SUBST([PYTHON_CFLAGS],  [$PYTHON_CFLAGS])
-                                AC_SUBST([PYTHON_LDFLAGS], [$PYTHON_LDFLAGS])
-                        fi
-                else
-                        AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
-                                [AC_MSG_WARN([Could not find or use python distutils module: $python_result])],
-                                [AC_MSG_ERROR([Could not find or use python distutils module: $python_result])]
-                        )
-                fi
-
-                LIBS=&quot;$save_LIBS&quot;
-                CFLAGS=&quot;$save_CFLAGS&quot;
-
-                unset python_has_threads
-                unset python_has_distutils
-                unset python_result
-        else
-                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
-                        [AC_MSG_WARN([Could not find python, mod_python will not build, use --with-python to specify the location])],
-                        [AC_MSG_ERROR([Could not find python, use --with-python to specify the location])]
-                )
-        fi
-else
-        AC_MSG_WARN([python support disabled, building mod_python will fail!])
-fi
-
-CHECK_ERLANG
-
-AC_CONFIG_FILES([Makefile
-                src/Makefile
-                src/mod/Makefile
-                src/mod/endpoints/mod_sofia/Makefile
-                src/mod/asr_tts/mod_unimrcp/Makefile
-                src/mod/languages/mod_java/Makefile
-                src/mod/languages/mod_python/Makefile
-                src/mod/event_handlers/mod_erlang_event/Makefile
-                src/include/switch_am_config.h
-                build/getsounds.sh
-                build/getlib.sh
-                build/modmake.rules
-                libs/xmlrpc-c/include/xmlrpc-c/config.h
-                libs/xmlrpc-c/xmlrpc_config.h
-                scripts/gentls_cert])
-
-AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
-AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
-AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
-
-#some vars to sub into the Makefile.am's
-#LIBS+=&gt; core.log || error=&quot;yes&quot;;if test -n &quot;$(VERBOSE)&quot; -o &quot;$$error&quot; = &quot;yes&quot;;then cat core.log;fi;if test &quot;$$error&quot; = &quot;yes&quot;;then exit 1;fi
-LIBTOOL='`if test -z &quot;$(VERBOSE)&quot; ; then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(switch_builddir)/libtool; fi;`'
-TOUCH_TARGET='if test -f &quot;$@&quot;;then touch &quot;$@&quot;;fi;'
-CONF_MODULES='$$(grep -v &quot;\#&quot; $(switch_builddir)/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )'
-CONF_DISABLED_MODULES='$$(grep &quot;\#&quot; $(switch_builddir)/modules.conf | grep -v &quot;\#\#&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )'
-OUR_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-all ; done )&quot;; echo $$mods )'
-OUR_CLEAN_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-clean ; done )&quot;; echo $$mods )'
-OUR_INSTALL_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-install ; done)&quot;; echo $$mods )'
-OUR_UNINSTALL_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-uninstall ; done)&quot;; echo $$mods )'
-OUR_DISABLED_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-all ; done )&quot;; echo $$mods )'
-OUR_DISABLED_CLEAN_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;;  mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-clean ; done )&quot;; echo $$mods )'
-OUR_DISABLED_INSTALL_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-install ; done)&quot;; echo $$mods )'
-OUR_DISABLED_UNINSTALL_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-uninstall ; done)&quot;; echo $$mods )'
-
-AM_MAKEFLAGS='&quot;OUR_MODULES=$(OUR_MODS)&quot; &quot;OUR_CLEAN_MODULES=$(OUR_CLEAN_MODS)&quot; &quot;OUR_INSTALL_MODULES=$(OUR_INSTALL_MODS)&quot; &quot;OUR_UNINSTALL_MODULES=$(OUR_UNINSTALL_MODS)&quot; &quot;OUR_DISABLED_MODULES=$(OUR_DISABLED_MODS)&quot; &quot;OUR_DISABLED_CLEAN_MODULES=$(OUR_DISABLED_CLEAN_MODS)&quot; &quot;OUR_DISABLED_INSTALL_MODULES=$(OUR_DISABLED_INSTALL_MODS)&quot; &quot;OUR_DISABLED_UNINSTALL_MODULES=$(OUR_DISABLED_UNINSTALL_MODS)&quot; `test -n &quot;$(VERBOSE)&quot; || echo -s`'
-#AM_MAKEFLAGS='`test -n &quot;$(VERBOSE)&quot; || echo -s`'
-AC_SUBST(LIBTOOL)
-AC_SUBST(TOUCH_TARGET)
-AC_SUBST(CONF_DISABLED_MODULES)
-AC_SUBST(CONF_MODULES)
-
-AC_SUBST(OUR_MODS)
-AC_SUBST(OUR_CLEAN_MODS)
-AC_SUBST(OUR_INSTALL_MODS)
-AC_SUBST(OUR_UNINSTALL_MODS)
-AC_SUBST(OUR_DISABLED_MODS)
-AC_SUBST(OUR_DISABLED_CLEAN_MODS)
-AC_SUBST(OUR_DISABLED_INSTALL_MODS)
-AC_SUBST(OUR_DISABLED_UNINSTALL_MODS)
-AC_SUBST(AM_MAKEFLAGS)
-
-# Run configure in all the subdirs
-AC_CONFIG_SUBDIRS(libs/srtp)
-AC_CONFIG_SUBDIRS(libs/sqlite)
-if test &quot;$enable_core_libedit_support&quot; = &quot;yes&quot; ; then
-    AC_CONFIG_SUBDIRS(libs/libedit)
-fi
-
-AC_CONFIG_SUBDIRS(libs/pcre)
-AC_CONFIG_SUBDIRS(libs/apr)
-AC_CONFIG_SUBDIRS(libs/apr-util)
-AC_CONFIG_SUBDIRS(libs/voipcodecs)
-AC_CONFIG_SUBDIRS(libs/ilbc)
-AC_CONFIG_SUBDIRS(libs/curl)
-AC_CONFIG_SUBDIRS(libs/iksemel)
-AC_CONFIG_SUBDIRS(libs/js/nsprpub)
-AC_CONFIG_SUBDIRS(libs/js)
-AC_CONFIG_SUBDIRS(libs/libdingaling)
-AC_CONFIG_SUBDIRS(libs/libsndfile)
-AC_CONFIG_SUBDIRS(libs/sofia-sip)
-AC_CONFIG_SUBDIRS(libs/speex)
-AC_CONFIG_SUBDIRS(libs/portaudio)
-AC_CONFIG_SUBDIRS(libs/openzap)
-AC_CONFIG_SUBDIRS(libs/unimrcp)
-AC_CONFIG_SUBDIRS(libs/tiff-3.8.2)
-AC_CONFIG_SUBDIRS(libs/spandsp)
-
-AC_OUTPUT
</del><ins>+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+# Must change all of the below together
+# For a release, set revision for that tagged release as well and uncomment
+AC_INIT([freeswitch], [1.0.4], BUG-REPORT-ADDRESS)
+AC_SUBST(SWITCH_VERSION_MAJOR, [1])
+AC_SUBST(SWITCH_VERSION_MINOR, [0])
+AC_SUBST(SWITCH_VERSION_MICRO, [4])
+AC_SUBST(SWITCH_VERSION_REVISION, [14458])
+
+AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
+
+AC_CONFIG_AUX_DIR(build/config)
+AM_INIT_AUTOMAKE(libfreeswitch,0.1)
+AC_CONFIG_SRCDIR([src/switch.c])
+AC_CONFIG_HEADER([src/include/switch_private.h])
+AC_CONFIG_HEADER([libs/xmlrpc-c/xmlrpc_amconfig.h])
+
+AC_PREFIX_DEFAULT(/usr/local/freeswitch)
+# AC_PREFIX_DEFAULT does not get expanded until too late so we need to do this to use prefix in this script
+if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
+    prefix='/usr/local/freeswitch'
+fi
+
+AC_CANONICAL_HOST
+
+# Absolute source/build directory
+switch_srcdir=`(cd $srcdir &amp;&amp; pwd)`
+switch_builddir=`pwd`
+AC_SUBST(switch_srcdir)
+AC_SUBST(switch_builddir)
+
+# Where to install the modules
+AC_ARG_WITH([modinstdir],
+        [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir=&quot;$withval&quot;], [modinstdir=&quot;${prefix}/mod&quot;])
+
+AC_SUBST(modinstdir)
+AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],&quot;${modinstdir}&quot;,[where to install the modules to])
+
+if test &quot;$sysconfdir&quot; = &quot;\${prefix}/etc&quot; ; then
+    confdir=&quot;$prefix/conf&quot;
+else
+    confdir=&quot;$sysconfdir&quot;
+fi
+
+AC_SUBST(confdir)
+AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],&quot;${confdir}&quot;,[directory for configuration files])
+
+#Set default language
+AC_LANG_C
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_CXX
+
+#check if the g++ compiler works
+AC_CACHE_CHECK([whether the C++ compiler works], [ac_cv_sys_cxx_works], [
+    AC_LANG_PUSH([C++])
+    AC_COMPILE_IFELSE([int main() { }], [ac_cv_sys_cxx_works=yes],
+        [ac_cv_sys_cxx_works=no])
+    AC_LANG_POP([C++])
+    ])
+[ if [ &quot;x$ac_cv_sys_cxx_works&quot; = &quot;xno&quot; ]; then ]
+    AC_MSG_FAILURE([The C++ compiler does not work. Please (re)install the C++ compiler])
+[ fi ]
+
+AC_PROG_AWK
+AC_PROG_MAKE_SET
+AC_PROG_INSTALL
+
+#override some default libtool behavior and invoke AC_PROG_LIBTOOL (see http://lists.gnu.org/archive/html/libtool/2007-03/msg00000.html)
+m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
+m4_defun([_LT_AC_LANG_GCJ_CONFIG], [:])
+m4_defun([_LT_AC_LANG_RC_CONFIG], [:])
+AM_PROG_CC_C_O
+AC_PROG_LIBTOOL
+
+#Check for compiler vendor
+AX_COMPILER_VENDOR
+
+#  Optimize
+AC_ARG_ENABLE(optimization,
+[AC_HELP_STRING([--enable-optimization],[Set if you want us to add max optimising compiler flags])],[enable_optimizer=&quot;$enableval&quot;],[enable_optimizer=&quot;no&quot;])
+
+if test &quot;${enable_optimizer}&quot; = &quot;yes&quot; ; then
+        AC_DEFINE([OPTIMZER],[],[Enable Optimization.])
+        AX_CC_MAXOPT
+fi
+
+# set defaults for use on all platforms
+SWITCH_AM_CFLAGS=&quot;-I${switch_srcdir}/src/include -I${switch_srcdir}/libs/libteletone/src&quot;
+SWITCH_AM_CXXFLAGS=&quot;-I${switch_srcdir}/src/include -I${switch_srcdir}/libs/libteletone/src&quot;
+SWITCH_AM_LDFLAGS=&quot;-lm&quot;
+
+#set SOLINK variable based on compiler and host
+if test &quot;x${ax_cv_c_compiler_vendor}&quot;  =  &quot;xsun&quot; ; then
+    SOLINK=&quot;-Bdynamic -dy -G&quot;
+elif test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
+    case &quot;$host&quot; in
+        *darwin*)
+            SOLINK=&quot;-dynamic -bundle -force-flat-namespace&quot;
+        ;;
+        *-solaris2*)
+            SOLINK=&quot;-shared -Xlinker&quot;
+        ;;
+        *)
+            SOLINK=&quot;-shared -Xlinker -x&quot;
+        ;;
+    esac
+else
+    AC_ERROR([Please update configure.in with SOLINK values for your compiler])
+fi
+
+# set DYNAMIC_LIB_EXTEN
+# we should really be using libtool so we don't need to do this
+case &quot;$host&quot; in
+    *cygwin* | *mingw*)
+        DYNAMIC_LIB_EXTEN=&quot;dll&quot;
+    ;;
+    *)
+        DYNAMIC_LIB_EXTEN=&quot;so&quot;
+    ;;
+esac
+
+##
+# detect libtool major version,
+# set libtool library extension based on this
+# to work around some brokeness when using 'la' with libtool-1.5
+#
+AC_MSG_CHECKING([libtool major version])
+libtool=&quot;${switch_builddir}/libtool&quot;
+LIBTOOL_MAJOR_VERSION=&quot;`$libtool --version 2&gt;/dev/null| sed -e 's/([[^)]]*)//g;s/^[[^0-9]]*//;s/[[- ]].*//g;q'| awk  'BEGIN { FS = &quot;.&quot; } { print $1 }' `&quot;
+if test -z &quot;$LIBTOOL_MAJOR_VERSION&quot; ; then
+        LIBTOOL_MAJOR_VERSION=&quot;`sed -n -e '/^VERSION/{s/^.*=\&quot;\?\([[0-9]]\+\)\..\+/\1/;p;}' ${switch_srcdir}/build/config/ltmain.sh`&quot;
+fi
+if test -z &quot;$LIBTOOL_MAJOR_VERSION&quot; ; then
+        AC_MSG_ERROR([Failed to detect your libtool version, please open a bug report on http://jira.freeswitch.org/])
+fi
+AC_MSG_RESULT([${LIBTOOL_MAJOR_VERSION}])
+
+LIBTOOL_LIB_EXTEN=&quot;$DYNAMIC_LIB_EXTEN&quot;
+
+if test &quot;${LIBTOOL_MAJOR_VERSION}&quot; = &quot;2&quot; ; then
+   LIBTOOL_LIB_EXTEN=&quot;la&quot;
+fi
+AC_MSG_RESULT([using libtool library extension... ${LIBTOOL_LIB_EXTEN}])
+
+
+#  Enable 64 bit build
+AC_ARG_ENABLE(64,
+[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64=&quot;$enable_64&quot;],[enable_64=&quot;no&quot;])
+
+# tweak compiler specific flags
+if test &quot;x${ax_cv_c_compiler_vendor}&quot;  =  &quot;xsun&quot; ; then
+    APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
+    APR_ADDTO(SWITCH_AM_CFLAGS, -DPIC)
+    APR_ADDTO(SWITCH_AM_CFLAGS, -erroff=E_END_OF_LOOP_CODE_NOT_REACHED)
+    APR_ADDTO(SWITCH_AM_CFLAGS, -errtags=yes)
+    APR_ADDTO(SWITCH_AM_CXXFLAGS, -errtags=yes)
+    APR_ADDTO(SWITCH_AM_CXXFLAGS, -KPIC)
+    APR_ADDTO(SWITCH_AM_CXXFLAGS, -DPIC)
+    APR_ADDTO(SWITCH_AM_CXXFLAGS, &quot;-features=extensions&quot;)
+
+    APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
+    if test &quot;${enable_64}&quot; = &quot;yes&quot;; then
+        APR_ADDTO(SWITCH_AM_CFLAGS, -m64)
+        APR_ADDTO(SWITCH_AM_CXXFLAGS, -m64)
+        APR_ADDTO(SWITCH_AM_LDFLAGS, -m64)
+        LIBS=&quot;$LIBS -m64&quot;
+    fi
+elif test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
+    APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
+    APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
+    APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+    if test &quot;${enable_64}&quot; = &quot;yes&quot;; then
+        LIBS=&quot;$LIBS -m64&quot;
+    fi
+fi
+
+#
+# gcc visibility cflag checks
+#
+AC_ARG_ENABLE([visibility],
+        [AS_HELP_STRING([--disable-visibility], [Disable or enable API visibility support (default: use if available)])],
+        [enable_visibility=&quot;${enableval}&quot;],
+        [enable_visibility=&quot;detect&quot;]
+)
+HAVE_VISIBILITY=&quot;no&quot;
+
+if test &quot;x${enable_visibility}&quot; != &quot;xno&quot; ; then
+
+        case &quot;${ax_cv_c_compiler_vendor}&quot; in
+        gnu)
+                save_CFLAGS=&quot;${CFLAGS}&quot;
+                CFLAGS=&quot;${CFLAGS} -fvisibility=hidden&quot;
+                AC_MSG_CHECKING([whether the compiler supports -fvisibility=hidden])
+                AC_COMPILE_IFELSE(
+                        [AC_LANG_PROGRAM(
+                                [int foo __attribute__ ((visibility(&quot;default&quot;)));],
+                                [;]
+                        )],
+
+                        [AC_MSG_RESULT([yes])
+                         APR_ADDTO([SWITCH_AM_CFLAGS],   [-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
+                         APR_ADDTO([SWITCH_AM_CXXFLAGS], [-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
+                         HAVE_VISIBILITY=&quot;yes&quot;],
+
+                        [AC_MSG_RESULT([no])]
+                )
+                CFLAGS=&quot;${save_CFLAGS}&quot;
+                ;
+
+        sun)
+        #        save_CFLAGS=&quot;${CFLAGS}&quot;
+        #        CFLAGS=&quot;${CFLAGS} -xldscope=hidden&quot;
+        #        AC_MSG_CHECKING([whether the compiler supports -xldscope=hidden])
+        #        AC_COMPILE_IFELSE(
+        #                [AC_LANG_PROGRAM(
+        #                        [int foo __attribute__ ((visibility(&quot;default&quot;)));],
+        #                        [;]
+        #                )],
+        #
+        #                [AC_MSG_RESULT([yes])
+        #                 APR_ADDTO([SWITCH_AM_CFLAGS],   [-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
+        #                 APR_ADDTO([SWITCH_AM_CXXFLAGS], [-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1])
+        #                 HAVE_VISIBILITY=&quot;yes&quot;],
+        #
+        #                [AC_MSG_RESULT([no])]
+        #        )
+        #        CFLAGS=&quot;${save_CFLAGS}&quot;
+                ;
+
+        *)
+                if test &quot;x${enable_visibility}&quot; = &quot;xyes&quot; ; then
+                        AC_MSG_ERROR([Non-GNU / SUN compilers are currently unsupported])
+                else
+                        AC_MSG_WARN([Non-GNU / SUN compilers are currently unsupported])
+                fi
+                ;
+        esac
+
+        #
+        # visibility explicitly requested but not supported by this compiler =&gt; error
+        #
+        if test &quot;x${enable_visibility}&quot; = &quot;xyes&quot; -a &quot;x${HAVE_VISIBILITY}&quot; = &quot;xno&quot; ; then
+                AC_MSG_ERROR([API visibility not supported by this compiler])
+        fi
+fi
+
+# Enable debugging (default: on)
+# (rename option if the default is changed)
+AC_ARG_ENABLE(debug,
+[AC_HELP_STRING([--disable-debug],[build without debug information])],[enable_debug=&quot;$enableval&quot;],[enable_debug=&quot;yes&quot;])
+
+if test &quot;${enable_debug}&quot; = &quot;yes&quot;; then
+        AC_DEFINE([DEBUG],[],[Enable extra debugging.])
+        AX_CFLAGS_WARN_ALL_ANSI
+
+        if test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then
+            APR_ADDTO(SWITCH_AM_CFLAGS, -g -ggdb)
+            export DEBUG_CFLAGS=&quot;-g -ggdb&quot;
+        fi
+
+fi
+
+AC_ARG_ENABLE(zrtp,
+        [AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp=&quot;no&quot;])
+if test &quot;x$enable_zrtp&quot; = &quot;xyes&quot; ; then
+   saved_LIBS=$LIBS
+   LIBS=&quot;$saved_LIBS -L/usr/local/lib -lbn -lpthread&quot;
+   AC_CHECK_LIB(zrtp, zrtp_init, [has_zrtp=&quot;yes&quot;], [has_zrtp=&quot;no&quot;])
+   LIBS=$saved_LIBS
+   if test &quot;x$has_zrtp&quot; = &quot;xno&quot;; then
+      AC_ERROR([Cannot locate zrtp libraries])
+   fi
+   APR_ADDTO(SWITCH_AM_CFLAGS, -DENABLE_ZRTP)
+fi
+AM_CONDITIONAL([ENABLE_ZRTP],[test &quot;x$enable_zrtp&quot; != &quot;xno&quot;])
+
+
+AM_CONDITIONAL([WANT_DEBUG],[test &quot;${enable_debug}&quot; = &quot;yes&quot;])
+
+AC_ARG_ENABLE(core-odbc-support,     
+        [AS_HELP_STRING([--enable-core-odbc-support], [Compile with ODBC Support])],,[enable_core_odbc_support=&quot;no&quot;])
+AX_LIB_ODBC
+if test &quot;$ac_cv_found_odbc&quot; = &quot;yes&quot; ; then
+  enable_core_odbc_support=&quot;yes&quot;
+fi
+
+ESL_LDFLAGS=
+PLATFORM_CORE_DEPLIBS=
+# tweak platform specific flags
+case &quot;$host&quot; in
+    *darwin*)
+        APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
+        APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)
+        if test &quot;x$enable_core_odbc_support&quot; != &quot;xno&quot;; then
+                APR_ADDTO(PLATFORM_CORE_DEPLIBS, --framework CoreFoundation)
+        fi
+    ;;
+    *-solaris2*)
+        APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
+        APR_ADDTO(ESL_LDFLAGS, -lnsl -lsocket)
+    ;;
+    *bsd*)
+        APR_ADDTO(SWITCH_AM_CFLAGS, -I/usr/local/include)
+    ;;
+esac
+
+APR_REMOVEFROM(SWITCH_AM_CXXFLAGS, -std=c99)
+
+AC_SUBST(SWITCH_AM_CFLAGS)
+AC_SUBST(SWITCH_AM_CXXFLAGS)
+AC_SUBST(SWITCH_AM_LDFLAGS)
+AC_SUBST(ESL_LDFLAGS)
+AC_SUBST(PLATFORM_CORE_DEPLIBS)
+AC_SUBST(SOLINK)
+AC_SUBST(DYNAMIC_LIB_EXTEN)
+AC_SUBST(LIBTOOL_LIB_EXTEN)
+
+# Checks for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h wchar.h sys/filio.h sys/ioctl.h netdb.h execinfo.h])
+
+# for xmlrpc-c config.h
+if test x&quot;$ac_cv_header_wchar_h&quot; = xyes; then
+  HAVE_WCHAR_H_DEFINE=1
+else
+  HAVE_WCHAR_H_DEFINE=0
+fi
+AC_SUBST(HAVE_WCHAR_H_DEFINE)
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_SIZE_T
+AC_HEADER_TIME
+AC_STRUCT_TM
+
+# Checks for library functions.
+AC_PROG_GCC_TRADITIONAL
+AC_FUNC_MALLOC
+AC_TYPE_SIGNAL
+AC_FUNC_STRFTIME
+AC_CHECK_FUNCS([gethostname vasprintf mmap mlock mlockall usleep getifaddrs])
+AC_CHECK_FUNCS([sched_setscheduler setpriority setrlimit setgroups initgroups])
+AC_CHECK_FUNCS([wcsncmp setgroups asprintf setenv pselect gettimeofday localtime_r gmtime_r strcasecmp stricmp _stricmp])
+
+AC_CHECK_LIB(rt, clock_gettime, [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])])
+AC_CHECK_LIB(rt, clock_nanosleep, [AC_DEFINE(HAVE_CLOCK_NANOSLEEP, 1, [Define if you have clock_nanosleep()])])
+AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
+
+AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[
+#include &lt;sys/types.h&gt;
+#include &lt;time.h&gt;])
+
+AC_CHECK_MEMBERS([struct tm.tm_zone],,,[
+#include &lt;sys/types.h&gt;
+#include &lt;time.h&gt;])
+
+AC_CHECK_DECL([RLIMIT_MEMLOCK],
+        [AC_DEFINE([HAVE_RLIMIT_MEMLOCK],[1],[RLIMIT_MEMLOCK constant for setrlimit])],,
+        [#ifdef HAVE_SYS_RESOURCE_H
+         #include &lt;sys/resource.h&gt;
+         #endif])
+
+AC_CHECK_DECL([SCHED_RR],
+        [AC_DEFINE([HAVE_SCHED_RR],[1],[SCHED_RR constant for sched_setscheduler])],,
+        [#ifdef HAVE_SCHED_H
+         #include &lt;sched.h&gt;
+         #endif])
+
+#
+# use mlockall only on linux (for now; if available)
+#
+if test &quot;x${ac_cv_func_mlockall}&quot; = &quot;xyes&quot;; then
+        AC_MSG_CHECKING([whether to use mlockall])
+        case &quot;$host&quot; in
+        *-linux-*)
+                AC_DEFINE([USE_MLOCKALL],[1],[Enable mlockall support])
+                AC_MSG_RESULT([yes])
+                USE_MLOCKALL=yes
+                ;
+        *-freebsd*)
+                AC_MSG_RESULT([no, broken for non-root users])
+                ;
+        *)
+                AC_MSG_RESULT([no])
+                ;
+        esac
+
+        #
+        # setrlimit prerequisites
+        #
+        if test &quot;x${USE_MLOCKALL}&quot; = &quot;xyes&quot; -a \
+                &quot;x${ac_cv_func_setrlimit}&quot; = &quot;xyes&quot; -a \
+                &quot;x${ac_cv_have_decl_RLIMIT_MEMLOCK}&quot; = &quot;xyes&quot;
+        then
+                AC_DEFINE([USE_SETRLIMIT],[1],[Use setrlimit to disable mlock limit for non-root users])
+        fi
+fi
+
+#
+# sched_setcheduler + round-robin scheduler prerequisites
+#
+if test &quot;x${ac_cv_func_sched_setscheduler}&quot; = &quot;xyes&quot; -a \
+        &quot;x${ac_cv_have_decl_SCHED_RR}&quot; = &quot;xyes&quot;
+then
+        AC_DEFINE([USE_SCHED_SETSCHEDULER],[1],[Enable round-robin scheduler using sched_setscheduler])
+fi
+
+#
+# xmlrpc-c checks
+#
+
+
+HAVE_LIBWWW_SSL_DEFINE=0
+AC_SUBST(HAVE_LIBWWW_SSL_DEFINE)
+
+DIRECTORY_SEPARATOR=&quot;/&quot;
+AC_SUBST(DIRECTORY_SEPARATOR)
+
+va_list_is_array=no
+AC_MSG_CHECKING(whether va_list is an array)
+AC_TRY_COMPILE([
+#include &lt;stdarg.h&gt;
+], [va_list list1, list2; list1 = list2;], , 
+va_list_is_array=yes)
+AC_MSG_RESULT($va_list_is_array)
+if test x&quot;$va_list_is_array&quot; = xyes; then
+  VA_LIST_IS_ARRAY_DEFINE=1
+else
+  VA_LIST_IS_ARRAY_DEFINE=0
+fi
+AC_SUBST(VA_LIST_IS_ARRAY_DEFINE)
+
+AC_MSG_CHECKING(whether compiler has __attribute__)
+AC_TRY_COMPILE(, [int x __attribute__((__unused__));],
+compiler_has_attribute=yes,
+compiler_has_attribute=no)
+AC_MSG_RESULT($compiler_has_attribute)
+if test x&quot;$compiler_has_attribute&quot; = xyes; then
+    ATTR_UNUSED=&quot;__attribute__((__unused__))&quot;
+else
+    ATTR_UNUSED=
+fi
+AC_SUBST(ATTR_UNUSED)
+
+
+
+
+AC_C_BIGENDIAN(AC_DEFINE([SWITCH_BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([SWITCH_BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
+
+# Checks for integer size
+AC_CHECK_SIZEOF(char, 1)
+AC_CHECK_SIZEOF(int, 4)
+AC_CHECK_SIZEOF(long, 4)
+AC_CHECK_SIZEOF(short, 2)
+AC_CHECK_SIZEOF(long long, 8)
+AC_TYPE_SIZE_T
+AC_CHECK_TYPE(ssize_t, int)
+
+# Checks for pointer size
+AC_CHECK_SIZEOF(void*, 4)
+
+if test &quot;x$ac_cv_sizeof_voidp&quot; != &quot;x&quot;; then
+    voidp_size=$ac_cv_sizeof_voidp
+else
+    AC_ERROR([Cannot determine size of void*])
+fi
+
+if test &quot;$ac_cv_sizeof_short&quot; = &quot;2&quot;; then
+    short_value=short
+fi
+if test &quot;$ac_cv_sizeof_int&quot; = &quot;4&quot;; then
+    int_value=int
+fi
+
+if test &quot;$ac_cv_sizeof_int&quot; = &quot;8&quot;; then
+    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;d&quot;'
+    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;u&quot;'
+    int64_value=&quot;int&quot;
+    long_value=int
+elif test &quot;$ac_cv_sizeof_long&quot; = &quot;8&quot;; then
+    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;ld&quot;'
+    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;lu&quot;'
+    int64_value=&quot;long&quot;
+    long_value=long
+    case &quot;$host&quot; in
+        *-solaris2*|*apple-darwin*)
+            if test &quot;$ac_cv_sizeof_long_long&quot; = &quot;8&quot;; then
+                int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;lld&quot;'
+                uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;llu&quot;'
+                int64_value=&quot;long long&quot;
+                long_value=&quot;long long&quot;
+            fi
+        ;
+    esac
+elif test &quot;$ac_cv_sizeof_long_long&quot; = &quot;8&quot;; then
+    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;lld&quot;'
+    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;llu&quot;'
+    int64_value=&quot;long long&quot;
+    long_value=&quot;long long&quot;
+elif test &quot;$ac_cv_sizeof_longlong&quot; = &quot;8&quot;; then
+    int64_t_fmt='#define SWITCH_INT64_T_FMT &quot;qd&quot;'
+    uint64_t_fmt='#define SWITCH_UINT64_T_FMT &quot;qu&quot;'
+    int64_value=&quot;__int64&quot;
+    long_value=&quot;__int64&quot;
+else
+    AC_ERROR([could not detect a 64-bit integer type])
+fi
+
+if test &quot;$ac_cv_type_size_t&quot; = &quot;yes&quot;; then
+    size_t_value=&quot;size_t&quot;
+else
+    size_t_value=&quot;switch_int32_t&quot;
+fi
+
+if test &quot;$ac_cv_type_ssize_t&quot; = &quot;yes&quot;; then
+    ssize_t_value=&quot;ssize_t&quot;
+else
+    ssize_t_value=&quot;switch_int32_t&quot;
+fi
+
+APR_CHECK_SIZEOF_EXTENDED([#include &lt;sys/types.h&gt;], ssize_t, 8)
+
+if test &quot;$ac_cv_sizeof_ssize_t&quot; = &quot;$ac_cv_sizeof_int&quot;; then
+    ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;d&quot;'
+elif test &quot;$ac_cv_sizeof_ssize_t&quot; = &quot;$ac_cv_sizeof_long&quot;; then
+    ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
+else
+    ssize_t_fmt='#error Can not determine the proper size for ssize_t'
+fi
+
+APR_CHECK_SIZEOF_EXTENDED([#include &lt;stddef.h&gt;], size_t, 8)
+
+if test &quot;$ac_cv_sizeof_size_t&quot; = &quot;$ac_cv_sizeof_int&quot;; then
+    size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;d&quot;'
+elif test &quot;$ac_cv_sizeof_size_t&quot; = &quot;$ac_cv_sizeof_long&quot;; then
+    size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
+else
+    size_t_fmt='#error Can not determine the proper size for size_t'
+fi
+
+# Basically, we have tried to figure out the correct format strings
+# for SWITCH types which vary between platforms, but we don't always get 
+# it right.  If you find that we don't get it right for your platform, 
+# you can override our decision below.
+# NOTE: borrowed much of this logic from apr.
+case $host in
+   s390*linux*)
+       # uniquely, the 31-bit Linux/s390 uses &quot;unsigned long int&quot;
+       # for size_t rather than &quot;unsigned int&quot;:
+       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
+       ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
+       ;;
+   *-os2*)
+       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
+       ;;
+   *-openbsd*)
+       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
+       ;;
+   *aix4*|*aix5*)
+       ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
+       size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
+       ;;
+    *beos*)
+        ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
+        size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;ld&quot;'
+        ;;
+    *apple-darwin*)
+        osver=`uname -r`
+        case $osver in
+           [0-7].*)
+              ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;d&quot;'
+              ;;
+           *)
+              ssize_t_fmt='#define SWITCH_SSIZE_T_FMT &quot;ld&quot;'
+              ;;
+        esac
+        size_t_fmt='#define SWITCH_SIZE_T_FMT &quot;lu&quot;'
+        ;;
+esac
+
+AC_SUBST(voidp_size)
+AC_SUBST(short_value)
+AC_SUBST(int_value)
+AC_SUBST(long_value)
+AC_SUBST(int64_value)
+AC_SUBST(size_t_value)
+AC_SUBST(ssize_t_value)
+AC_SUBST(int64_t_fmt) 
+AC_SUBST(uint64_t_fmt) 
+AC_SUBST(ssize_t_fmt) 
+AC_SUBST(size_t_fmt)
+AC_SUBST(libdir)
+AC_SUBST(bindir)
+AC_SUBST(includedir)
+
+AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
+AC_PATH_PROGS(TAR, gtar tar)
+AC_PATH_PROGS(WGET, wget)
+AC_PATH_PROGS(CURL, curl)
+GETLIB=&quot;cd $switch_srcdir/libs &amp;&amp; ${SHELL} $switch_srcdir/build/getlib.sh&quot;
+AC_SUBST(GETLIB)
+GETSOUNDS=&quot;${SHELL} $switch_srcdir/build/getsounds.sh&quot;
+AC_SUBST(GETSOUNDS)
+
+
+LIBCURL_CHECK_CONFIG([yes], [7.13.0], [LIBCURL_DEPS=''], [LIBCURL_DEPS='${switch_srcdir}/libs/curl/lib/libcurl.la';LIBCURL='${switch_srcdir}/libs/curl/lib/libcurl.la';LIBCURL_CPPFLAGS='-I${switch_srcdir}/libs/curl/include'])
+AC_SUBST(LIBCURL_DEPS)
+
+
+AC_ARG_ENABLE(core-libedit-support,     
+        [AS_HELP_STRING([--disable-core-libedit-support], [Compile without libedit Support])], [enable_core_libedit_support=&quot;$enableval&quot;], [enable_core_libedit_support=&quot;yes&quot;])
+
+if test &quot;$enable_core_libedit_support&quot; = &quot;yes&quot; ; then
+    AC_CHECK_LIB(ncurses, tgetent,,
+       [AC_CHECK_LIB(curses, tgetent,,
+          [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
+fi
+
+SAC_OPENSSL
+
+if test x$HAVE_OPENSSL = x1; then
+        openssl_CFLAGS=&quot;$openssl_CFLAGS -DHAVE_OPENSSL&quot;;
+fi
+
+AX_CHECK_JAVA
+
+
+AM_CONDITIONAL([ADD_ODBC],[test &quot;x$enable_core_odbc_support&quot; != &quot;xno&quot;])
+AM_CONDITIONAL([ADD_LIBEDIT],[test &quot;x$enable_core_libedit_support&quot; != &quot;xno&quot;])
+AM_CONDITIONAL([HAVE_MYSQL],[test &quot;$found_mysql&quot; = &quot;yes&quot;])
+
+#
+# Python checks for mod_python
+#
+AC_ARG_WITH(
+        [python],
+        [AS_HELP_STRING([--with-python], [Use system provided version of python (default: try)])],
+        [with_python=&quot;$withval&quot;],
+        [with_python=&quot;try&quot;]
+)
+
+if test &quot;$with_python&quot; != &quot;no&quot;
+then
+        save_CFLAGS=&quot;$CFLAGS&quot;
+        save_LIBS=&quot;$LIBS&quot;
+
+        if test &quot;$with_python&quot; != &quot;yes&quot; -a &quot;$with_python&quot; != &quot;try&quot; ; then
+                AC_MSG_CHECKING([for python])
+                if test ! -x &quot;$with_python&quot; ; then
+                        AC_MSG_ERROR([Specified python does not exist or is not executable: $with_python])
+                fi
+                AC_MSG_RESULT([$with_python])
+                AC_SUBST([PYTHON], [&quot;$with_python&quot;])
+        else
+                AC_PATH_PROG([PYTHON], [&quot;python&quot;], [&quot;no&quot;], [&quot;$PATH:/usr/bin:/usr/local/bin&quot;])
+        fi
+
+        if test &quot;$PYTHON&quot; != &quot;no&quot; ; then
+                AC_MSG_CHECKING([python version])
+                PYTHON_VER=&quot;`$PYTHON -V 2&gt;&amp;1 | cut -d' ' -f2`&quot;
+
+                if test -z &quot;$PYTHON_VER&quot; ; then
+                        AC_MSG_ERROR([Unable to detect python version])
+                fi
+                AC_MSG_RESULT([$PYTHON_VER])
+
+                AC_MSG_CHECKING([for python distutils])
+                python_result=&quot;`$PYTHON -c 'import distutils;' 2&gt;&amp;1`&quot;
+                if test -z &quot;$python_result&quot; ; then
+                        python_has_distutils=&quot;yes&quot;
+                else
+                        python_has_distutils=&quot;no&quot;
+                fi
+                AC_MSG_RESULT([$python_has_distutils])
+
+                if test &quot;$python_has_distutils&quot; != &quot;no&quot; ; then
+                        AC_MSG_CHECKING([location of site-packages])
+
+                        PYTHON_SITE_DIR=&quot;`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`&quot;
+
+                        if test -z &quot;$PYTHON_SITE_DIR&quot; ; then
+                                AC_MSG_ERROR([Unable to detect python site-packages path])
+                        elif test ! -d &quot;$PYTHON_SITE_DIR&quot; ; then
+                                AC_MSG_ERROR([Path $PYTHON_SITE_DIR returned by python does not exist!])
+                        fi
+                        AC_MSG_RESULT([$PYTHON_SITE_DIR])
+                        AC_SUBST([PYTHON_SITE_DIR], [$PYTHON_SITE_DIR])
+
+                        #
+                        # python distutils found, get settings from python directly
+                        #
+                        PYTHON_CFLAGS=&quot;`$PYTHON -c 'from distutils import sysconfig; flags = [[\&quot;-I\&quot; + sysconfig.get_python_inc(0), \&quot;-I\&quot; + sysconfig.get_python_inc(1), \&quot; \&quot;.join(sysconfig.get_config_var(\&quot;CFLAGS\&quot;).split())]]; print \&quot; \&quot;.join(flags);'`&quot;
+                        PYTHON_LDFLAGS=&quot;`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\&quot;LIBS\&quot;).split() + sysconfig.get_config_var(\&quot;SYSLIBS\&quot;).split(); libs.append(\&quot;-lpython\&quot;+sysconfig.get_config_var(\&quot;VERSION\&quot;)); print \&quot; \&quot;.join(libs);'`&quot;
+                        PYTHON_LIB=&quot;`$PYTHON -c 'from distutils import sysconfig; print \&quot;python\&quot; + sysconfig.get_config_var(\&quot;VERSION\&quot;);'`&quot;
+                        PYTHON_LIBDIR=&quot;`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\&quot;LIBDIR\&quot;);'`&quot;
+
+                        # handle python being installed into /usr/local
+                        AC_MSG_CHECKING([python libdir])
+                        if test -z &quot;`echo $PYTHON_LIBDIR | grep &quot;/usr/lib&quot;`&quot; ; then
+                                PYTHON_LDFLAGS=&quot;-L$PYTHON_LIBDIR $PYTHON_LDFLAGS&quot;
+                                LIBS=&quot;-L$PYTHON_LIBDIR $LIBS&quot;
+                        fi
+                        AC_MSG_RESULT([$PYTHON_LIBDIR])
+
+                        # check libpython
+                        AC_CHECK_LIB([$PYTHON_LIB], [main], [has_libpython=&quot;yes&quot;], [has_libpython=&quot;no&quot;])
+
+                        if test &quot;$has_libpython&quot; = &quot;no&quot; ; then
+                                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
+                                         [AC_MSG_WARN([$PYTHON_LIB is unusable])],
+                                        [AC_MSG_ERROR([$PYTHON_LIB is unusable])]
+                                )
+                        fi
+
+                        # check whether system libpython is usable and has threads support
+                        CFLAGS=&quot;$PYTHON_CFLAGS&quot;
+                        LIBS=&quot;$PYTHON_LDFLAGS&quot;
+                        AC_CHECK_FUNC([PyThread_init_thread], [python_has_threads=&quot;yes&quot;], [python_has_threads=&quot;no&quot;])
+
+                        if test &quot;$python_has_threads&quot; = &quot;no&quot;; then
+                                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
+                                        [AC_MSG_WARN([Your python lacks threads support, can not build mod_python])],
+                                        [AC_MSG_ERROR([Your python lacks threads support, can not build mod_python])]
+                                )
+                        else
+                                AC_MSG_NOTICE([Your python seems OK, do not forget to enable mod_python in modules.conf])
+                                AC_SUBST([PYTHON_CFLAGS],  [$PYTHON_CFLAGS])
+                                AC_SUBST([PYTHON_LDFLAGS], [$PYTHON_LDFLAGS])
+                        fi
+                else
+                        AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
+                                [AC_MSG_WARN([Could not find or use python distutils module: $python_result])],
+                                [AC_MSG_ERROR([Could not find or use python distutils module: $python_result])]
+                        )
+                fi
+
+                LIBS=&quot;$save_LIBS&quot;
+                CFLAGS=&quot;$save_CFLAGS&quot;
+
+                unset python_has_threads
+                unset python_has_distutils
+                unset python_result
+        else
+                AS_IF([test &quot;$with_python&quot; = &quot;try&quot;],
+                        [AC_MSG_WARN([Could not find python, mod_python will not build, use --with-python to specify the location])],
+                        [AC_MSG_ERROR([Could not find python, use --with-python to specify the location])]
+                )
+        fi
+else
+        AC_MSG_WARN([python support disabled, building mod_python will fail!])
+fi
+
+CHECK_ERLANG
+
+AC_CONFIG_FILES([Makefile
+                src/Makefile
+                src/mod/Makefile
+                src/mod/endpoints/mod_sofia/Makefile
+                src/mod/asr_tts/mod_unimrcp/Makefile
+                src/mod/languages/mod_java/Makefile
+                src/mod/languages/mod_python/Makefile
+                src/mod/event_handlers/mod_erlang_event/Makefile
+                src/include/switch_am_config.h
+                build/getsounds.sh
+                build/getlib.sh
+                build/modmake.rules
+                libs/xmlrpc-c/include/xmlrpc-c/config.h
+                libs/xmlrpc-c/xmlrpc_config.h
+                scripts/gentls_cert])
+
+AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
+AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
+AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
+
+#some vars to sub into the Makefile.am's
+#LIBS+=&gt; core.log || error=&quot;yes&quot;;if test -n &quot;$(VERBOSE)&quot; -o &quot;$$error&quot; = &quot;yes&quot;;then cat core.log;fi;if test &quot;$$error&quot; = &quot;yes&quot;;then exit 1;fi
+LIBTOOL='`if test -z &quot;$(VERBOSE)&quot; ; then echo $(SHELL) $(switch_builddir)/quiet_libtool ;else echo $(switch_builddir)/libtool; fi;`'
+TOUCH_TARGET='if test -f &quot;$@&quot;;then touch &quot;$@&quot;;fi;'
+CONF_MODULES='$$(grep -v &quot;\#&quot; $(switch_builddir)/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )'
+CONF_DISABLED_MODULES='$$(grep &quot;\#&quot; $(switch_builddir)/modules.conf | grep -v &quot;\#\#&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )'
+OUR_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-all ; done )&quot;; echo $$mods )'
+OUR_CLEAN_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-clean ; done )&quot;; echo $$mods )'
+OUR_INSTALL_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-install ; done)&quot;; echo $$mods )'
+OUR_UNINSTALL_MODS='$$(if test -z &quot;$(MODULES)&quot; ; then tmp_mods=&quot;$(CONF_MODULES)&quot;; else tmp_mods=&quot;$(MODULES)&quot; ; fi ; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-uninstall ; done)&quot;; echo $$mods )'
+OUR_DISABLED_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-all ; done )&quot;; echo $$mods )'
+OUR_DISABLED_CLEAN_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;;  mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-clean ; done )&quot;; echo $$mods )'
+OUR_DISABLED_INSTALL_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-install ; done)&quot;; echo $$mods )'
+OUR_DISABLED_UNINSTALL_MODS='$$(tmp_mods=&quot;$(CONF_DISABLED_MODULES)&quot;; mods=&quot;$$(for i in $$tmp_mods ; do echo $$i-uninstall ; done)&quot;; echo $$mods )'
+
+AM_MAKEFLAGS='&quot;OUR_MODULES=$(OUR_MODS)&quot; &quot;OUR_CLEAN_MODULES=$(OUR_CLEAN_MODS)&quot; &quot;OUR_INSTALL_MODULES=$(OUR_INSTALL_MODS)&quot; &quot;OUR_UNINSTALL_MODULES=$(OUR_UNINSTALL_MODS)&quot; &quot;OUR_DISABLED_MODULES=$(OUR_DISABLED_MODS)&quot; &quot;OUR_DISABLED_CLEAN_MODULES=$(OUR_DISABLED_CLEAN_MODS)&quot; &quot;OUR_DISABLED_INSTALL_MODULES=$(OUR_DISABLED_INSTALL_MODS)&quot; &quot;OUR_DISABLED_UNINSTALL_MODULES=$(OUR_DISABLED_UNINSTALL_MODS)&quot; `test -n &quot;$(VERBOSE)&quot; || echo -s`'
+#AM_MAKEFLAGS='`test -n &quot;$(VERBOSE)&quot; || echo -s`'
+AC_SUBST(LIBTOOL)
+AC_SUBST(TOUCH_TARGET)
+AC_SUBST(CONF_DISABLED_MODULES)
+AC_SUBST(CONF_MODULES)
+
+AC_SUBST(OUR_MODS)
+AC_SUBST(OUR_CLEAN_MODS)
+AC_SUBST(OUR_INSTALL_MODS)
+AC_SUBST(OUR_UNINSTALL_MODS)
+AC_SUBST(OUR_DISABLED_MODS)
+AC_SUBST(OUR_DISABLED_CLEAN_MODS)
+AC_SUBST(OUR_DISABLED_INSTALL_MODS)
+AC_SUBST(OUR_DISABLED_UNINSTALL_MODS)
+AC_SUBST(AM_MAKEFLAGS)
+
+# Run configure in all the subdirs
+AC_CONFIG_SUBDIRS(libs/srtp)
+AC_CONFIG_SUBDIRS(libs/sqlite)
+if test &quot;$enable_core_libedit_support&quot; = &quot;yes&quot; ; then
+    AC_CONFIG_SUBDIRS(libs/libedit)
+fi
+
+AC_CONFIG_SUBDIRS(libs/pcre)
+AC_CONFIG_SUBDIRS(libs/apr)
+AC_CONFIG_SUBDIRS(libs/apr-util)
+AC_CONFIG_SUBDIRS(libs/voipcodecs)
+AC_CONFIG_SUBDIRS(libs/ilbc)
+AC_CONFIG_SUBDIRS(libs/curl)
+AC_CONFIG_SUBDIRS(libs/iksemel)
+AC_CONFIG_SUBDIRS(libs/js/nsprpub)
+AC_CONFIG_SUBDIRS(libs/js)
+AC_CONFIG_SUBDIRS(libs/libdingaling)
+AC_CONFIG_SUBDIRS(libs/libsndfile)
+AC_CONFIG_SUBDIRS(libs/sofia-sip)
+AC_CONFIG_SUBDIRS(libs/speex)
+AC_CONFIG_SUBDIRS(libs/portaudio)
+AC_CONFIG_SUBDIRS(libs/openzap)
+AC_CONFIG_SUBDIRS(libs/unimrcp)
+AC_CONFIG_SUBDIRS(libs/tiff-3.8.2)
+AC_CONFIG_SUBDIRS(libs/spandsp)
+
+AC_OUTPUT
</ins></span></pre></div>
<a id="freeswitchtags104contribsevenREADME"></a>
<div class="modfile"><h4>Modified: freeswitch/tags/1.0.4/contrib/seven/README (14458 => 14459)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/tags/1.0.4/contrib/seven/README        2009-08-04 20:17:47 UTC (rev 14458)
+++ freeswitch/tags/1.0.4/contrib/seven/README        2009-08-05 16:22:23 UTC (rev 14459)
</span><span class="lines">@@ -1 +1 @@
</span><del>-Currently blank...
</del><ins>+fsair - FreeSWITCH Air http://wiki.freeswitch.org/wiki/FsAir
</ins></span></pre></div>
<a id="freeswitchtags104contribsevenfsairFreeSWITCHAirair"></a>
<div class="binary"><h4>Modified: freeswitch/tags/1.0.4/contrib/seven/fsair/FreeSWITCH-Air.air</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="freeswitchtags104contribsevenfsairsrcfsairas"></a>
<div class="modfile"><h4>Modified: freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.as (14458 => 14459)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.as        2009-08-04 20:17:47 UTC (rev 14458)
+++ freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.as        2009-08-05 16:22:23 UTC (rev 14459)
</span><span class="lines">@@ -12,11 +12,18 @@
</span><span class="cx">                 
</span><span class="cx">                 var ring_win:MessageWindow = new MessageWindow();
</span><span class="cx">                 
</span><ins>+                var connect_timer:Timer  = new Timer(2000);
+                var re_connect_timer:Timer  = new Timer(2000);
+                
</ins><span class="cx">                 function initApp():void {
</span><span class="cx">                         trace(NativeApplication.nativeApplication.runtimeVersion);
</span><span class="cx">                         ringBox.visible = false;
</span><span class="cx">                         getSettings();
</span><span class="cx">                         esl = new ESL(esl_pass.text);
</span><ins>+                        
+                        connect_timer.addEventListener(TimerEvent.TIMER, post_connect);
+                        re_connect_timer.addEventListener(TimerEvent.TIMER, re_connect);
+                                        
</ins><span class="cx">                         connect();
</span><span class="cx">                         
</span><span class="cx">                 }
</span><span class="lines">@@ -40,9 +47,7 @@
</span><span class="cx">                                 esl.addEventCallback(&quot;CUSTOM|portaudio::ringing&quot;, onRing);
</span><span class="cx">                                 esl.addEventCallback(&quot;CHANNEL_HANGUP|-&quot;, onHangup);
</span><span class="cx">                            
</span><del>-                            var timer:Timer = new Timer(2000);
-                                timer.addEventListener(TimerEvent.TIMER, post_connect);
-                                timer.start();
</del><ins>+                                connect_timer.start();
</ins><span class="cx">                                 msg(&quot;timer started&quot;);
</span><span class="cx">                         }
</span><span class="cx">                           
</span><span class="lines">@@ -54,8 +59,31 @@
</span><span class="cx">                  
</span><span class="cx">                 }
</span><span class="cx">                 
</span><ins>+                function re_connect(event:TimerEvent):void {
+
+                        event.target.stop();
+                        
+                        event.target.delay += 2000;
+                        
+                        if (event.target.delay &gt; 120000) {
+                                event.target.delay = 2000;
+                        }
+                          
+                        msg(&quot;Connect faild. will reconnect in &quot; + event.target.delay + &quot; seconds&quot; );
+                        connect();
+                        
+                }
+                
</ins><span class="cx">                 function post_connect(event:TimerEvent):void {
</span><ins>+                        
</ins><span class="cx">                         event.target.stop();
</span><ins>+                        
+                        if (!esl.connected) {
+                                event.target.stop();
+                                re_connect_timer.start();
+                                return;
+                        }
+                        
</ins><span class="cx">                         msg(&quot;timer stoped&quot;);
</span><span class="cx">                         initDevList();
</span><span class="cx"> //                        esl.esl_event(&quot;ALL&quot;);
</span><span class="lines">@@ -91,11 +119,20 @@
</span><span class="cx">                 }
</span><span class="cx">                 function ioErrorHandler(event:IOErrorEvent):void {
</span><span class="cx">                         msg(event.type + ' ' + event.toString());
</span><del>-                        setTitle('IOError');        
</del><ins>+                        setTitle('IOError');
+                        
+                        if (!esl.connected) {
+                                connect();
+                        }        
</ins><span class="cx">                 }
</span><span class="cx">                 function securityErrorHandler(event:SecurityErrorEvent):void {
</span><span class="cx">                         msg(event.type + ' ' + event.toString());
</span><del>-                        setTitle('SecurityError');        
</del><ins>+                        setTitle('SecurityError');
+
+                         if (!esl.connected) {
+                                connect();
+                        }        
+        
</ins><span class="cx">                 }
</span><span class="cx">                 
</span><span class="cx">                 function onRing(eslev:ESL_event):void {
</span><span class="lines">@@ -303,4 +340,13 @@
</span><span class="cx">                         esl_port.text = _get_settings(&quot;esl_port&quot;) || &quot;8021&quot;;
</span><span class="cx">                         esl_pass.text = _get_settings(&quot;esl_pass&quot;) || &quot;ClueCon&quot;;
</span><span class="cx">                 }
</span><ins>+                
+                function runFS():void {
+                        
+                }
+                
+                function shutdownFS():void {
+                        esl.api(&quot;fsctl shutdown&quot;);
+                }
+                
</ins><span class="cx">                 
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="freeswitchtags104contribsevenfsairsrcfsairmxml"></a>
<div class="modfile"><h4>Modified: freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.mxml (14458 => 14459)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.mxml        2009-08-04 20:17:47 UTC (rev 14458)
+++ freeswitch/tags/1.0.4/contrib/seven/fsair/src/fsair.mxml        2009-08-05 16:22:23 UTC (rev 14459)
</span><span class="lines">@@ -62,7 +62,8 @@
</span><span class="cx">                         &lt;mx:Button x=&quot;271&quot; y=&quot;182&quot; label=&quot;Save&quot; click=&quot;saveSettings()&quot;/&gt;
</span><span class="cx">                         &lt;mx:Label x=&quot;175&quot; y=&quot;80&quot; text=&quot;Password&quot; width=&quot;58&quot;/&gt;
</span><span class="cx">                         &lt;mx:TextInput x=&quot;175&quot; y=&quot;106&quot; width=&quot;71&quot; text=&quot;ClueCon&quot; id=&quot;esl_pass&quot;/&gt;
</span><del>-
</del><ins>+                        &lt;mx:Button x=&quot;10&quot; y=&quot;182&quot; label=&quot;Shutdown FS&quot; click=&quot;shutdownFS()&quot;/&gt;
+                        
</ins><span class="cx">                 &lt;/mx:Canvas&gt;
</span><span class="cx">                 &lt;mx:Panel label=&quot;Logs&quot; width=&quot;100%&quot; height=&quot;100%&quot; layout=&quot;absolute&quot;&gt;
</span><span class="cx">                         &lt;mx:TextArea width=&quot;326&quot; height=&quot;196&quot; id=&quot;logBox&quot; x=&quot;0&quot; y=&quot;2&quot;/&gt;
</span></span></pre></div>
<a id="freeswitchtags104srcmodendpointsmod_skypiaxmod_skypiaxc"></a>
<div class="modfile"><h4>Modified: freeswitch/tags/1.0.4/src/mod/endpoints/mod_skypiax/mod_skypiax.c (14458 => 14459)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/tags/1.0.4/src/mod/endpoints/mod_skypiax/mod_skypiax.c        2009-08-04 20:17:47 UTC (rev 14458)
+++ freeswitch/tags/1.0.4/src/mod/endpoints/mod_skypiax/mod_skypiax.c        2009-08-05 16:22:23 UTC (rev 14459)
</span><span class="lines">@@ -1323,8 +1323,8 @@
</span><span class="cx">                         close(tech_pvt-&gt;SkypiaxHandles.fdesc[0]);
</span><span class="cx">                         shutdown(tech_pvt-&gt;SkypiaxHandles.fdesc[1], 2);
</span><span class="cx">                         close(tech_pvt-&gt;SkypiaxHandles.fdesc[1]);
</span><ins>+#endif /* WIN32 */
</ins><span class="cx">                 }
</span><del>-#endif /* WIN32 */
</del><span class="cx"> 
</span><span class="cx">         }
</span><span class="cx">         switch_safe_free(globals.dialplan);
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>