<!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][16238] </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=16238">16238</a></dd>
<dt>Author</dt> <dd>mikej</dd>
<dt>Date</dt> <dd>2010-01-11 08:36:29 -0600 (Mon, 11 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>wip move towards adding directory layout control to configure</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkMakefileam">freeswitch/trunk/Makefile.am</a></li>
<li><a href="#freeswitchtrunkbuildmodmakerulesin">freeswitch/trunk/build/modmake.rules.in</a></li>
<li><a href="#freeswitchtrunkbuildmodmakerulesam">freeswitch/trunk/build/modmake.rulesam</a></li>
<li><a href="#freeswitchtrunkconfigurein">freeswitch/trunk/configure.in</a></li>
<li><a href="#freeswitchtrunksrcswitch_corec">freeswitch/trunk/src/switch_core.c</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#freeswitchtrunkbuildconfiglayout">freeswitch/trunk/build/config.layout</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkMakefileam"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/Makefile.am (16237 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/Makefile.am        2010-01-11 11:33:18 UTC (rev 16237)
+++ freeswitch/trunk/Makefile.am        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -317,11 +317,10 @@
</span><span class="cx"> 
</span><span class="cx"> install-data-local:
</span><span class="cx">         @echo Installing $(NAME)
</span><del>-        @for x in mod db log log/xml_cdr bin scripts grammar recordings ; do \
-                $(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
</del><ins>+        @for x in @modulesdir@ @runtimedir@ @dbdir@ @logfiledir@ @logfiledir@/xml_cdr @bindir@ @scriptdir@ @recordingsdir@ ; do \
+                $(mkinstalldirs) $(DESTDIR)$$x ; \
</ins><span class="cx">          done
</span><del>-        $(mkinstalldirs) $(DESTDIR)@recordingsdir@
-        $(mkinstalldirs) $(DESTDIR)@modinstdir@
</del><ins>+        $(mkinstalldirs) $(DESTDIR)$(prefix)/grammar
</ins><span class="cx">         test -d $(DESTDIR)@confdir@ || $(MAKE) samples-conf
</span><span class="cx">         test -d $(DESTDIR)$(prefix)/htdocs || $(MAKE) samples-htdocs
</span><span class="cx"> 
</span><span class="lines">@@ -530,7 +529,7 @@
</span><span class="cx"> 
</span><span class="cx"> scripts/fsxs: scripts/fsxs.in
</span><span class="cx">         @echo creating fsxs
</span><del>-        @sed -e &quot;s,@MODULES_DIR\@,@modinstdir@,&quot; \
</del><ins>+        @sed -e &quot;s,@MODULES_DIR\@,@modulesdir@,&quot; \
</ins><span class="cx">             -e &quot;s,@LIB_DIR\@,@libdir@,&quot; \
</span><span class="cx">             -e &quot;s,@BIN_DIR\@,@bindir@,&quot; \
</span><span class="cx">             -e &quot;s,@INC_DIR\@,@includedir@,&quot; \
</span></span></pre></div>
<a id="freeswitchtrunkbuildconfiglayout"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/build/config.layout (0 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/build/config.layout                                (rev 0)
+++ freeswitch/trunk/build/config.layout        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+##
+##  config.layout -- Pre-defined Installation Path Layouts
+##
+##  Hints:
+##  - layouts can be loaded with configure's --enable-layout=ID option
+##  - when no --enable-layout option is given, the default layout is `FreeSWITCH'
+##  - a trailing plus character (`+') on paths is replaced with a 
+##    `/&lt;target&gt;' suffix where &lt;target&gt; is currently hardcoded to 'freeswitch'.
+##    (This may become a configurable parameter at some point.)
+##
+
+#   Default FreeSWITCH path layout.
+&lt;Layout FreeSWITCH&gt;
+    prefix:         /usr/local/freeswitch
+    exec_prefix:    ${prefix}
+    bindir:         ${exec_prefix}/bin
+    sbindir:        ${exec_prefix}/bin
+    libdir:         ${exec_prefix}/lib
+    libexecdir:     ${exec_prefix}/modules
+    modulesdir:     ${exec_prefix}/modules
+    mandir:         ${prefix}/man
+    sysconfdir:     ${prefix}/conf
+    datadir:        ${prefix}
+    includedir:     ${prefix}/include
+    localstatedir:  ${prefix}
+    runtimedir:     ${localstatedir}/log
+    logfiledir:     ${localstatedir}/log
+&lt;/Layout&gt;
+
+#   GNU standards conforming path layout.
+#   See FSF's GNU project `make-stds' document for details.
+&lt;Layout GNU&gt;
+    prefix:         /usr/local
+    exec_prefix:    ${prefix}
+    bindir:         ${exec_prefix}/bin
+    sbindir:        ${exec_prefix}/sbin
+    libdir:         ${exec_prefix}/lib
+    libexecdir:     ${exec_prefix}/libexec
+    modulesdir:     ${libdir}/freeswitch/modules
+    mandir:         ${prefix}/man
+    sysconfdir:     ${prefix}/etc/freeswitch
+    datadir:        ${prefix}/share/freeswitch
+    includedir:     ${prefix}/include/freeswitch
+    localstatedir:  ${prefix}/var/freeswitch
+    runtimedir:     ${localstatedir}/run
+    logfiledir:     ${localstatedir}/log
+&lt;/Layout&gt;
+
+# Linux FHS (File Hierarchy Standard) layout
+# see 
+&lt;Layout FHS&gt;
+    prefix:         /usr
+    exec_prefix:    ${prefix}
+    bindir:         ${exec_prefix}/bin
+    sbindir:        ${exec_prefix}/sbin
+    libdir:         ${exec_prefix}/lib/freeswitch
+    libexecdir:     ${exec_prefix}/libexec
+    modulesdir:     ${libdir}/modules
+    mandir:         ${prefix}/man
+    sysconfdir:     /etc/freeswitch
+    datadir:        ${prefix}/share/freeswitch
+    includedir:     ${prefix}/include/freeswitch
+    localstatedir:  /var/lib/freeswitch
+    runtimedir:     /var/run/freeswitch
+    logfiledir:     /var/log/freeswitch
+&lt;/Layout&gt;
</ins></span></pre></div>
<a id="freeswitchtrunkbuildmodmakerulesin"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/build/modmake.rules.in (16237 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/build/modmake.rules.in        2010-01-11 11:33:18 UTC (rev 16237)
+++ freeswitch/trunk/build/modmake.rules.in        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -7,6 +7,17 @@
</span><span class="cx"> host=@host@
</span><span class="cx"> target=$(host)
</span><span class="cx"> 
</span><ins>+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+libexecdir=@libexecdir@
+includedir=@includedir@
+modulesdir=@modulesdir@
+runtimedir=@runtimedir@
+logfiledir=@logfiledir@
+sysconfdir=@sysconfdir@
+localstatedir=@localstatedir@
+
</ins><span class="cx"> CC=@CC@
</span><span class="cx"> CXX=@CXX@
</span><span class="cx"> AWK=@AWK@
</span><span class="lines">@@ -31,8 +42,6 @@
</span><span class="cx"> 
</span><span class="cx"> LIBS=$(switch_builddir)/libfreeswitch.la
</span><span class="cx"> DEFS=@DEFS@
</span><del>-PREFIX = @prefix@
-MODINSTDIR = @modinstdir@
</del><span class="cx"> 
</span><span class="cx"> DYLD_LIBRARY_PATH=@libdir@:$DYLD_LIBRARY_PATH
</span><span class="cx"> LD_LIBRARY_PATH=@libdir@:$LD_LIBRARY_PATH
</span><span class="lines">@@ -46,18 +55,20 @@
</span><span class="cx"> LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@ $(OUR_LDFLAGS)
</span><span class="cx"> 
</span><span class="cx"> ALL_CFLAGS   = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CFLAGS@ @CFLAGS@ @SWITCH_ANSI_CFLAGS@ -D_GNU_SOURCE $(OUR_CFLAGS)
</span><del>-ALL_CXXFLAGS   = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CXXFLAGS@ @CXXFLAGS@ -D_GNU_SOURCE $(OUR_CFLAGS)
</del><ins>+ALL_CXXFLAGS = $(LOCAL_CFLAGS) $(MOD_CFLAGS) @SWITCH_AM_CXXFLAGS@ @CXXFLAGS@ -D_GNU_SOURCE $(OUR_CFLAGS)
</ins><span class="cx"> 
</span><del>-DEFAULT_ARGS:= --build=$(build) --host=$(host) --target=$(target) --prefix=$(PREFIX) --disable-shared --with-pic
</del><span class="cx"> DEFAULT_VARS:= CFLAGS=&quot;$(CFLAGS)&quot; CPPFLAGS=&quot;$(CXXFLAGS)&quot; LDFLAGS=&quot;$(LDFLAGS)&quot; CC=&quot;$(CC)&quot; CXX=&quot;$(CXX)&quot;
</span><ins>+DEFAULT_ARGS:= --build=$(build) --host=$(host) --target=$(target) \
+        --prefix=&quot;$(prefix)&quot; --exec_prefix=&quot;$(exec_prefix)&quot; --libdir=&quot;$(libdir)&quot; \
+        --disable-shared --with-pic
</ins><span class="cx"> 
</span><del>-COMPILE      = $(CC) $(ALL_CFLAGS) $(DEFS)
</del><ins>+COMPILE = $(CC) $(ALL_CFLAGS) $(DEFS)
</ins><span class="cx"> LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(COMPILE)
</span><del>-LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(ALL_CFLAGS) $(LDFLAGS) -shared -module -avoid-version -rpath $(MODINSTDIR) -o $@
</del><ins>+LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(ALL_CFLAGS) $(LDFLAGS) -shared -module -avoid-version -rpath $(modulesdir) -o $@
</ins><span class="cx"> 
</span><span class="cx"> CXXCOMPILE = $(CXX) $(ALL_CXXFLAGS) $(DEFS)
</span><span class="cx"> LTCXXCOMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXXCOMPILE)
</span><del>-CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(ALL_CXXFLAGS) $(LDFLAGS) -shared -module -avoid-version -rpath $(MODINSTDIR) -o $@
</del><ins>+CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(ALL_CXXFLAGS) $(LDFLAGS) -shared -module -avoid-version -rpath $(modulesdir) -o $@
</ins><span class="cx"> 
</span><span class="cx"> CSOURCEFILE=$(MODNAME).c
</span><span class="cx"> CXXSOURCEFILE=$(MODNAME).cpp
</span><span class="lines">@@ -128,22 +139,22 @@
</span><span class="cx">         @test -d .libs || mkdir .libs
</span><span class="cx">         @error=&quot;&quot;;\
</span><span class="cx">         if test -f &quot;$(CSOURCEFILE)&quot; -o -f &quot;$(MODDIR)/$(CSOURCEFILE)&quot;; then \
</span><del>-        $(LINK) $(SOLINK) $(MODNAME).lo $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS_POST) $(LINK_OUTPUT_REDIR) ;\
</del><ins>+                $(LINK) $(SOLINK) $(MODNAME).lo $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS_POST) $(LINK_OUTPUT_REDIR) ;\
</ins><span class="cx">         else \
</span><del>-        $(CXXLINK) $(SOLINK) $(MODNAME).lo $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS_POST) $(LINK_OUTPUT_REDIR) ;\
</del><ins>+                $(CXXLINK) $(SOLINK) $(MODNAME).lo $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS_POST) $(LINK_OUTPUT_REDIR) ;\
</ins><span class="cx">         fi;
</span><span class="cx"> 
</span><span class="cx"> mod_clean:
</span><span class="cx">         @rm -fr *.$(LIBTOOL_LIB_EXTEN) *.o *.lo *~ .libs $(LOCAL_OBJS)
</span><span class="cx"> 
</span><del>-mod_install: $(DESTDIR)$(MODINSTDIR)/$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</del><ins>+mod_install: $(DESTDIR)$(modulesdir)/$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</ins><span class="cx"> 
</span><del>-$(DESTDIR)$(MODINSTDIR)/$(MODNAME).$(LIBTOOL_LIB_EXTEN):$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</del><ins>+$(DESTDIR)$(modulesdir)/$(MODNAME).$(LIBTOOL_LIB_EXTEN):$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</ins><span class="cx">         @echo installing $&lt;
</span><del>-        @$(LTINSTALL) $(MODNAME).$(LIBTOOL_LIB_EXTEN) $(DESTDIR)$(MODINSTDIR) &gt;/dev/null
</del><ins>+        @$(LTINSTALL) $(MODNAME).$(LIBTOOL_LIB_EXTEN) $(DESTDIR)$(modulesdir) &gt;/dev/null
</ins><span class="cx"> 
</span><span class="cx"> mod_uninstall:
</span><del>-        @$(LTUNINSTALL) $(DESTDIR)$(MODINSTDIR)/$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</del><ins>+        @$(LTUNINSTALL) $(DESTDIR)$(modulesdir)/$(MODNAME).$(LIBTOOL_LIB_EXTEN)
</ins><span class="cx"> 
</span><span class="cx"> # define these in your makefile if you wish
</span><span class="cx"> local_all local_depend local_clean depend_install local_install local_distclean local_extraclean local_uninstall:
</span></span></pre></div>
<a id="freeswitchtrunkbuildmodmakerulesam"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/build/modmake.rulesam (16237 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/build/modmake.rulesam        2010-01-11 11:33:18 UTC (rev 16237)
+++ freeswitch/trunk/build/modmake.rulesam        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> # Dirty trick to override the link output
</span><span class="cx"> LIBS+=&gt; $(MODNAME).log || error=&quot;yes&quot;;if test -n &quot;$(VERBOSE)&quot; -o &quot;$$error&quot; = &quot;yes&quot;;then cat $(MODNAME).log;fi;if test &quot;$$error&quot; = &quot;yes&quot;;then exit 1;fi
</span><span class="cx"> 
</span><del>-moddir=@modinstdir@
</del><ins>+moddir=@modulesdir@
</ins><span class="cx"> 
</span><span class="cx"> all-modules: all
</span><span class="cx"> depend-modules: depend
</span></span></pre></div>
<a id="freeswitchtrunkconfigurein"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/configure.in (16237 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/configure.in        2010-01-11 11:33:18 UTC (rev 16237)
+++ freeswitch/trunk/configure.in        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -34,18 +34,28 @@
</span><span class="cx"> 
</span><span class="cx"> # Where to install the modules
</span><span class="cx"> AC_ARG_WITH([modinstdir],
</span><del>-        [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir=&quot;$withval&quot;], [modinstdir=&quot;${prefix}/mod&quot;])
</del><ins>+        [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modulesdir=&quot;$withval&quot;], [modulesdir=&quot;${prefix}/mod&quot;])
+AC_SUBST(modulesdir)
+AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],&quot;${modulesdir}&quot;,[where to install the modules to])
</ins><span class="cx"> 
</span><del>-AC_SUBST(modinstdir)
-AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],&quot;${modinstdir}&quot;,[where to install the modules to])
-
</del><span class="cx"> # Where to put pidfile
</span><span class="cx"> AC_ARG_WITH([rundir],
</span><del>-        [AS_HELP_STRING([--with-rundir=DIR], [Put pidfile into this location (default: $prefix/log)])], [rundir=&quot;$withval&quot;], [rundir=&quot;${prefix}/log&quot;])
</del><ins>+        [AS_HELP_STRING([--with-rundir=DIR], [Put pidfile into this location (default: $prefix/run)])], [runtimedir=&quot;$withval&quot;], [runtimedir=&quot;${prefix}/run&quot;])
+AC_SUBST(runtimedir)
+AC_DEFINE_UNQUOTED([SWITCH_RUN_DIR],&quot;${runtimedir}&quot;,[where to put pidfile to])
</ins><span class="cx"> 
</span><del>-AC_SUBST(rundir)
-AC_DEFINE_UNQUOTED([SWITCH_RUN_DIR],&quot;${rundir}&quot;,[where to put pidfile to])
</del><ins>+logfiledir=&quot;${prefix}/log&quot;
+AC_SUBST(logfiledir)
+AC_DEFINE_UNQUOTED([SWITCH_LOG_DIR],&quot;${logfiledir}&quot;,[where to put log files])
</ins><span class="cx"> 
</span><ins>+dbdir=&quot;${prefix}/db&quot;
+AC_SUBST(dbdir)
+AC_DEFINE_UNQUOTED([SWITCH_DB_DIR],&quot;${dbdir}&quot;,[where to put db files])
+
+scriptdir=&quot;${prefix}/scripts&quot;
+AC_SUBST(scriptdir)
+AC_DEFINE_UNQUOTED([SWITCH_SCRIPT_DIR],&quot;${scriptdir}&quot;,[where to put script files])
+
</ins><span class="cx"> recordingsdir=&quot;${prefix}/recordings&quot;
</span><span class="cx"> AC_SUBST(recordingsdir)
</span><span class="cx"> AC_DEFINE_UNQUOTED([SWITCH_RECORDINGS_DIR],&quot;${recordingsdir}&quot;,[where to put recording files])
</span><span class="lines">@@ -56,6 +66,8 @@
</span><span class="cx">     confdir=&quot;$sysconfdir&quot;
</span><span class="cx"> fi
</span><span class="cx"> 
</span><ins>+sysconfdir=&quot;$confdir&quot;
+
</ins><span class="cx"> AC_SUBST(confdir)
</span><span class="cx"> AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],&quot;${confdir}&quot;,[directory for configuration files])
</span><span class="cx"> 
</span><span class="lines">@@ -887,33 +899,56 @@
</span><span class="cx"> AC_SUBST(OUR_DISABLED_UNINSTALL_MODS)
</span><span class="cx"> AC_SUBST(AM_MAKEFLAGS)
</span><span class="cx"> 
</span><del>-ac_configure_args=&quot;$ac_configure_args \&quot;CONFIGURE_CFLAGS=$CFLAGS\&quot; \&quot;CONFIGURE_CXXFLAGS=$CXXFLAGS\&quot; \&quot;CONFIGURE_LDFLAGS=$LDFLAGS\&quot;&quot;
</del><ins>+ac_configure_args=&quot;$ac_configure_args \&quot;CONFIGURE_CFLAGS=$CFLAGS\&quot; \&quot;CONFIGURE_CXXFLAGS=$CXXFLAGS\&quot; \&quot;CONFIGURE_LDFLAGS=$LDFLAGS\&quot; \
+        --prefix='$prefix' --exec_prefix='$exec_prefix' --libdir='$libdir' --libexecdir='$libexecdir' --bindir='$bindir' --sbindir='$sbindir' \
+        --localstatedir='$localstatedir' --datadir='$datadir'&quot;
</ins><span class="cx"> 
</span><span class="cx"> # Run configure in all the subdirs
</span><del>-AC_CONFIG_SUBDIRS(libs/srtp)
-AC_CONFIG_SUBDIRS(libs/sqlite)
</del><ins>+AC_CONFIG_SUBDIRS([libs/srtp])
+AC_CONFIG_SUBDIRS([libs/sqlite])
</ins><span class="cx"> if test &quot;$enable_core_libedit_support&quot; = &quot;yes&quot; ; then
</span><del>-    AC_CONFIG_SUBDIRS(libs/libedit)
</del><ins>+    AC_CONFIG_SUBDIRS([libs/libedit])
</ins><span class="cx"> fi
</span><span class="cx"> 
</span><del>-AC_CONFIG_SUBDIRS(libs/pcre)
-AC_CONFIG_SUBDIRS(libs/apr)
-AC_CONFIG_SUBDIRS(libs/apr-util)
-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_CONFIG_SUBDIRS(libs/broadvoice)
-AC_CONFIG_SUBDIRS(libs/libg722_1)
</del><ins>+AC_CONFIG_SUBDIRS([libs/pcre])
+AC_CONFIG_SUBDIRS([libs/apr])
+AC_CONFIG_SUBDIRS([libs/apr-util])
+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_CONFIG_SUBDIRS([libs/broadvoice])
+AC_CONFIG_SUBDIRS([libs/libg722_1])
</ins><span class="cx"> 
</span><span class="cx"> AC_OUTPUT
</span><ins>+
+##
+## Configuration summary
+##
+
+echo
+echo &quot;-------------------------- FreeSWITCH configuration ------------------------&quot;
+echo &quot;&quot;
+echo &quot;  Locations:&quot;
+echo &quot;      Selected layout: ${layout_name}&quot;
+echo &quot;&quot;
+echo &quot;      prefix:          ${prefix}&quot;
+echo &quot;      exec_prefix:     ${exec_prefix}&quot;
+echo &quot;      bindir:          ${bindir}&quot;
+echo &quot;      libdir:          ${libdir}&quot;
+echo &quot;      modulesdir:      ${modulesdir}&quot;
+echo &quot;      sysconfdir:      ${sysconfdir}&quot;
+echo &quot;      runtimedir:      ${runtimedir}&quot;
+echo &quot;      logfiledir:      ${logfiledir}&quot;
+echo &quot;&quot;
+echo &quot;----------------------------------------------------------------------------&quot;
</ins></span></pre></div>
<a id="freeswitchtrunksrcswitch_corec"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_core.c (16237 => 16238)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_core.c        2010-01-11 11:33:18 UTC (rev 16237)
+++ freeswitch/trunk/src/switch_core.c        2010-01-11 14:36:29 UTC (rev 16238)
</span><span class="lines">@@ -454,7 +454,7 @@
</span><span class="cx"> #ifdef SWITCH_RUN_DIR
</span><span class="cx">                 switch_snprintf(SWITCH_GLOBAL_dirs.run_dir, BUFSIZE, &quot;%s&quot;, SWITCH_RUN_DIR);
</span><span class="cx"> #else
</span><del>-                switch_snprintf(SWITCH_GLOBAL_dirs.run_dir, BUFSIZE, &quot;%s%slog&quot;, base_dir, SWITCH_PATH_SEPARATOR);
</del><ins>+                switch_snprintf(SWITCH_GLOBAL_dirs.run_dir, BUFSIZE, &quot;%s%srun&quot;, base_dir, SWITCH_PATH_SEPARATOR);
</ins><span class="cx"> #endif
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>