<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,31 +5,7 @@
 
 SUBDIRS = lib bin doc plugins
 
-EXTRA_DIST = examples/plane.gto                         \
-             examples/cube.gto                          \
-             python/gtoContainer/gtoContainer.py        \
-             python/gtoContainer/example.py             \
-             python/gtoContainer/gtomerge.py            \
-             plugins/python/setup.py                    \
-             plugins/python/src/gtoHeader.cpp           \
-             plugins/python/src/gtoHeader.h             \
-             plugins/python/src/gtomodule.cpp           \
-             plugins/python/src/gtomodule.h             \
-             plugins/python/src/gtoReader.cpp           \
-             plugins/python/src/gtoReader.h             \
-             plugins/python/src/gtoWriter.cpp           \
-             plugins/python/src/gtoWriter.h             \
-             plugins/python/examples/example.py         \
-             plugins/python/examples/example2.py        \
-             plugins/maya/GtoInDataBase.h               \
-             plugins/maya/GtoInNURBS.h                  \
-             plugins/maya/GtoInObject.h                 \
-             plugins/maya/GtoInParticle.h               \
-             plugins/maya/GtoInPoly.h                   \
-             plugins/maya/GtoInReader.h                 \
-             plugins/maya/GtoInSet.h                    \
-             plugins/maya/GtoInTransform.h              \
-             plugins/maya/GtoIO.h                       \
-             plugins/maya/GtoOut.h                      \
-             plugins/maya/version.h                     \
-             plugins/maya/gtoExportOptions.mel
+EXTRA_DIST = examples/          \
+             plugins/python     \
+             plugins/gelato     \
+             plugins/houdini</diff>
      <filename>Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,31 @@
 
+* Version 3.5.1
+
+    o Fixed autoconf/automake:
+
+      * Should always work if maya/rman are disabled (the default)
+
+      * Removed checking for specific versions of maya &amp; compiler
+        combinations--there's too many to check them all.
+
+      * Tries to use the 'buildconfig' file included in the Maya distro when
+        building maya plugins.  This should make supporting different
+        versions and platforms a lot easier.
+
+      * Rman is not tested recently, but is much simpler than maya, so it
+        should work
+
+    o Added gtoDB python module, as a faster replacement for gtoContainer.py
+
+      * gtoDB is written in swig.  The cpp file is in the dist, so swig itself
+        is only needed if the .i files are changed.
+
+    o gtoIO and GtoDeformer build, but GtoCacheEmitter, GtoParticleDisplay, and
+      GtoParticleExport are missing dependencies from the Tweak source tree.
+      I'm leaving them in the distro in case someone wants to use them as a
+      starting point.  Maybe someday they'll get fixed.
+
+
 * Version 3.5
 
     o Added houndini geo converter and four new maya plugins: GtoDeformer,</diff>
      <filename>NEWS</filename>
    </modified>
    <modified>
      <diff>@@ -107,18 +107,11 @@ Or just drop us a line telling us you're using it.
 
 3. Notes on building:
 
-    1. Currently, the Maya plugin is known to work on Maya 4.0, 4.5, and 5.0 on
-       Linux.  We will someday be distributing a Windows version as well.  We
-       suspect that it could be made to work on OSX if we had the right 
-       compiler...
-
-    2. Building the Maya 4.x plugins on Linux requires gcc 2.96, Maya 5.x
-       requires gcc 3.2 or higher.
-    
-    3. The Python module is known to work with Python 2.2.x on Linux and OSX.
-       It ought to work with other versions, but it's not tested.
+    1. Currently, the Maya plugins are known to work on Maya 7 - 2008 on
+       Linux &amp; OSX.  As far as we know, they work on Windows too, but you'll
+       have to figure out how to build them yourself.
     
-    4. If you want to build the Python module, you have to do so manually for
+    2. If you want to build the Python modules, you have to do so manually for
        now:
             cd plugins/python
             ./setup.py build
@@ -126,10 +119,11 @@ Or just drop us a line telling us you're using it.
             ./setup.py install
             exit
 
-    5. The Renderman&#174; plugin should (theoretically) work with any
+    3. The Renderman&#174; plugin should (theoretically) work with any
        Renderman&#174;-compliant renderer.  So far it has been used extensively 
-       with Entropy, and has been compiled (but not really tested) for 
-       prman 11.1 on RedHat 7
+       with Entropy, and prman 13.* on FC4.
 
-    6. The houdini ggto geo converter may require houdini 9 or better and
-       the SDK
+    4. The houdini ggto geo converter may require houdini 9 or better and
+       the SDK.  The current Makefile is currently non-functional, and is
+       included as a hint.  Hopefully we'll get it into autoconf before
+       too long.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,2 @@
-This is release version 3.5
+
+This is release version 3.5.1</diff>
      <filename>RELEASE_VERSION</filename>
    </modified>
    <modified>
      <diff>@@ -41,7 +41,7 @@ fi
 
 dnl ********************** Processing starts here...
 
-AC_INIT(Gto, 3.5.0)
+AC_INIT(Gto, 3.5.1)
 dnl AC_PREREQ(2.57)
 
 AC_CONFIG_AUX_DIR(config)
@@ -57,34 +57,17 @@ if test `uname` = Darwin ; then
     LDFLAGS=&quot;$LDFLAGS -L/sw/lib&quot;
 fi
 
-SHARED_VERSION_INFO=&quot;3:2:0&quot;
+SHARED_VERSION_INFO=&quot;3:5:1&quot;
 AC_DISABLE_SHARED()
 AC_PROG_LIBTOOL()
 
-if test $MAYA_LOCATION; then :; else
-    MAYA_LOCATION=/usr/aw/maya
-fi
-
-AC_SUBST(gto_maya_location,$MAYA_LOCATION)
-
-if test $RMANTREE; then 
-    AC_SUBST(gto_rman_location,$RMANTREE)
-else 
-    if test $ENTROPYHOME;  then
-        AC_SUBST(gto_rman_location,$ENTROPYHOME)
-    else
-        AC_SUBST(gto_rman_location,&quot;/usr/local/prman&quot;)
-    fi
-fi
-
-
 dnl ********************** ./configure options ***********************
 
 AC_ARG_WITH([maya-dir],
             [AC_HELP_STRING([--with-maya-dir=DIR],
                             [Maya install location])],
             [gto_maya_location=$withval])
-
+AC_SUBST(gto_maya_location,$gto_maya_location)
 
 AC_ARG_ENABLE([maya-plugin],
           [AC_HELP_STRING([--enable-maya-plugin],
@@ -98,6 +81,7 @@ AC_ARG_WITH([rman-dir],
             [AC_HELP_STRING([--with-rman-dir=DIR],
                             [Renderman&#174; install location])],
             [gto_rman_location=$withval])
+AC_SUBST(gto_rman_location,$gto_rman_location)
 
 AC_ARG_ENABLE([rman-plugin],
           [AC_HELP_STRING([--enable-rman-plugin],
@@ -138,6 +122,7 @@ if test &quot;$ac_cv_cxx_have_stl&quot; = yes; then :; else
     AC_MSG_ERROR(STL Support is required)
 fi
 
+AC_SUBST([CYCLE_OBJ])
 if test `uname` = Linux; then
         # Keeps maya includes from complaining about deprecated #pragmas
         AC_DEFINE( LINUX )
@@ -159,190 +144,36 @@ AC_MSG_CHECKING(for ios_base)
 dnl ********************** Maya Checks ***********************
 
 if test &quot;$gto_build_maya&quot; = yes; then
-maya_version=0
-
-AC_MSG_CHECKING(for Maya 4.x)
-AC_RUN_IFELSE([AC_LANG_PROGRAM(
-    [
-    #define _BOOL
-    #include &quot;${MAYA_LOCATION}/include/maya/MTypes.h&quot;
-    ],[
-    if( !( MAYA_API_VERSION &gt;= 400 &amp;&amp; MAYA_API_VERSION &lt; 500 ) ) return 1;
-    ])],
-[AC_MSG_RESULT(yes)
- maya_version=4],
-[AC_MSG_RESULT(no) 
-]) # end AC_RUN_IFELSE
-
-AC_MSG_CHECKING(for Maya 5.x)
-AC_RUN_IFELSE([AC_LANG_PROGRAM(
-    [
-    #define _BOOL
-    #include &quot;${MAYA_LOCATION}/include/maya/MTypes.h&quot;
-    ],[
-    if( !( MAYA_API_VERSION &gt;= 500 &amp;&amp; MAYA_API_VERSION &lt; 600 ) ) return 1;
-    ])],
-[AC_MSG_RESULT(yes)
-AC_DEFINE( REQUIRE_IOSTREAM )
-maya_version=5],
-[AC_MSG_RESULT(no) 
-]) # end AC_RUN_IFELSE
-
-AC_MSG_CHECKING(for Maya 6.x)
-AC_RUN_IFELSE([AC_LANG_PROGRAM(
-    [
-    #define _BOOL
-    #include &quot;${MAYA_LOCATION}/include/maya/MTypes.h&quot;
-    ],[
-    if( !( MAYA_API_VERSION &gt;= 600 &amp;&amp; MAYA_API_VERSION &lt; 700 ) ) return 1;
-    ])],
-[AC_MSG_RESULT(yes)
-AC_DEFINE( REQUIRE_IOSTREAM )
-maya_version=6],
-[AC_MSG_RESULT(no) 
-]) # end AC_RUN_IFELSE
-
-AC_MSG_CHECKING(for Maya 7.x)
-AC_RUN_IFELSE([AC_LANG_PROGRAM(
-    [
-    #define _BOOL
-    #include &quot;${MAYA_LOCATION}/include/maya/MTypes.h&quot;
-    ],[
-    if( !( MAYA_API_VERSION &gt;= 700 &amp;&amp; MAYA_API_VERSION &lt; 800 ) ) return 1;
-    ])],
-[AC_MSG_RESULT(yes)
-AC_DEFINE( REQUIRE_IOSTREAM )
-maya_version=7],
-[AC_MSG_RESULT(no) 
-]) # end AC_RUN_IFELSE
-
-
-if test `uname` = Linux; then
-
-if test &quot;$maya_version&quot; = 4; then
-    AC_MSG_CHECKING([for gcc 2.96])
-    AC_RUN_IFELSE([AC_LANG_PROGRAM([],[
-        if( ! ( ( __GNUC__ == 2 )
-          &amp;&amp; ( __GNUC_MINOR__ == 96 ) ) ) return 1;])],
-    [AC_MSG_RESULT(yes)],
-    [AC_MSG_ERROR(
-[
-
-Building the Maya 4.x plugin requires gcc 2.96
-
-If you are using RedHat 8.0 or 9.0, install the following RPMs,
-and re-run configure with CXX=g++296.
-
-    compat-gcc-7.3-2.96
-    compat-gcc-c++-7.3-2.96
-    compat-libstdc++-7.3-2.96
-    compat-libstdc++-devel-7.3-2.96
-]) # end AC_MSG_ERROR
-]) # end AC_RUN_IFELSE
-
-fi # end test $maya_version = 4...
-
-if test &quot;$maya_version&quot; = 5; then
-    AC_MSG_CHECKING([for gcc 3.2+])
-    AC_RUN_IFELSE([AC_LANG_PROGRAM([],[
-        if( ! ( ( __GNUC__ == 3 )
-          &amp;&amp; ( __GNUC_MINOR__ &gt;= 2 ) ) ) return 1;])],
-    [AC_MSG_RESULT(yes)],
-    [AC_MSG_ERROR(
-[
-
-Building the Maya 5.x plugin requires gcc 3.2 or higher.
-
-]) # end AC_MSG_ERROR
-]) # end AC_RUN_IFELSE
-
-fi # end test $maya_version = 5...
-
-if test &quot;$maya_version&quot; = 6; then
-    AC_MSG_CHECKING([for gcc 3.3.x])
-    AC_RUN_IFELSE([AC_LANG_PROGRAM([],[
-        if( ! ( ( __GNUC__ == 3 )
-          &amp;&amp; ( __GNUC_MINOR__ == 3 )
-          &amp;&amp; ( __GNUC_PATCHLEVEL__ &gt;= 4 ) ) ) return 1;])],
-    [AC_MSG_RESULT(yes)],
-    [AC_MSG_ERROR(
-[
-
-Building the Maya 6.x plugin requires gcc 3.3.x (where x is 4 or higher).
-
-]) # end AC_MSG_ERROR
-]) # end AC_RUN_IFELSE
-
-fi # end test $maya_version = 6...
-
-if test &quot;$maya_version&quot; = 7; then
-    AC_MSG_CHECKING([for gcc 3.3.x])
-    AC_RUN_IFELSE([AC_LANG_PROGRAM([],[
-        if( ! ( ( __GNUC__ == 3 )
-          &amp;&amp; ( __GNUC_MINOR__ == 3 )
-          &amp;&amp; ( __GNUC_PATCHLEVEL__ &gt;= 4 ) ) ) return 1;])],
-    [AC_MSG_RESULT(yes)],
-    [AC_MSG_ERROR(
-[
-
-Building the Maya 7.x plugin requires gcc 3.3.x (where x is 4 or higher).
-
-]) # end AC_MSG_ERROR
-]) # end AC_RUN_IFELSE
-
-fi # end test $maya_version = 7...
-
-if test $maya_version = 0; then
-AC_MSG_ERROR(&quot;No valid installation of Maya was found&quot;)
-fi
 
+    if test -e $gto_maya_location/include/maya/MGlobal.h ; then
+        AC_SUBST(DEVKIT_LOCATION,$gto_maya_location)
+    else
+        if test -e $gto_maya_location/../../devkit/include/maya/MGlobal.h ; then
+            AC_SUBST(DEVKIT_LOCATION,$gto_maya_location/../../devkit)
+        else
+            AC_MSG_ERROR(&quot;No valid installation of Maya was found.&quot;)
+        fi
+    fi
+    AC_MSG_RESULT([Using Maya Location: $gto_maya_location])
+    AC_SUBST(MAYA_LOCATION,$gto_maya_location)
 else
-AC_MSG_WARN([
-
-The Maya plugin currently only builds on Linux.  It has been
-gotten to work on Windows, but we haven't ported all the changes
-required back to the main source tree yet.  If you can get this
-to work on OSX or IRIX, please let us know!
-
-])
-
-fi # end if test `uname`...
-fi # end if test &quot;x$gto_build_maya&quot;...
-
-if test &quot;$gto_build_maya&quot; = yes; then
-AC_MSG_RESULT([Using Maya Location: $gto_maya_location])
+    AC_SUBST(DEVKIT_LOCATION,../config)
 fi 
 
 
-
 dnl ********************** Renderman Checks ***********************
 
 if test &quot;$gto_build_rman&quot; = yes; then
-# AC_MSG_CHECKING([for gcc 2.96])
-# AC_RUN_IFELSE([AC_LANG_PROGRAM([],[
-#     if( ! ( ( __GNUC__ == 2 )
-#       &amp;&amp; ( __GNUC_MINOR__ == 96 ) ) ) return 1;])],
-# [AC_MSG_RESULT(yes)],
-# [AC_MSG_WARN( &quot;Building the Renderman&#174; plugin requires using gcc 2.96 (I think!)&quot;)])
-
-if test -e $gto_rman_location/include/ri.h; then :; else
-AC_MSG_ERROR(&quot;No valid installation of Renderman&#174; was found.&quot;)
-fi
 
-AC_SUBST(rman_libs,&quot;&quot;)
-if test -e $gto_rman_location/lib/librib.a; then
-    rman_libs=&quot;$gto_rman_location/lib/librib.a $gto_rman_location/lib/libprmutil.a $gto_rman_location/lib/libtarget.a $gto_rman_location/lib/libzip.a&quot;
+if test -e $gto_rman_location/include/ri.h; then 
+    AC_MSG_RESULT([Using Renderman&#174; Location: $gto_rman_location])
 else
-    if test -e $gto_rman_location/lib/libribout.a; then
-        rman_libs=$gto_rman_location/lib/libribout.a
-    else
-        AC_MSG_ERROR(&quot;No valid installation of Renderman was found.&quot;)
-    fi
+    AC_MSG_ERROR(&quot;No valid installation of Renderman&#174; was found.&quot;)
 fi
 
-AC_MSG_RESULT([Using Renderman&#174; Location: $gto_rman_location])
 fi
 
+
 dnl ********************** Texi checks
 
 AC_CHECK_PROG(HTMLGEN,texi2html,
@@ -369,6 +200,25 @@ AC_CONFIG_FILES([Makefile
                  lib/Makefile
                  plugins/Makefile
                  plugins/maya/Makefile
-                 plugins/rman/Makefile])
+                 plugins/maya/GtoDeformer/Makefile
+                 plugins/maya/gtoIO/Makefile
+                 plugins/rman/Makefile
+                 ])
 
 AC_OUTPUT
+
+echo 
+echo &quot;Configuration: &quot;
+if test &quot;$gto_build_maya&quot; = yes; then
+echo &quot;  Maya Plugins: yes&quot;
+echo &quot;     Using Maya build config: $DEVKIT_LOCATION/plug-ins/buildconfig&quot;
+else
+echo &quot;  Maya Plugins: no&quot;
+fi
+
+if test &quot;$gto_build_rman&quot; = yes; then
+echo &quot;  Renderman Plugins: yes&quot;
+else
+echo &quot;  Renderman Plugins: no&quot;
+fi
+echo</diff>
      <filename>configure.in</filename>
    </modified>
    <modified>
      <diff>@@ -28,7 +28,8 @@ Property::Property(const std::string&amp; n,
                    size_t s,
                    size_t w,
                    bool allocate)
-    : name(n), interp(i), type(t), size(s), width(w), voidData(0)
+    : name(n), interp(i), type(t), size(s), width(w), voidData(0),
+      _allocated(allocate)
 {
     if (allocate)
     {
@@ -48,7 +49,8 @@ Property::Property(const std::string&amp; n,
                    size_t s,
                    size_t w,
                    bool allocate)
-    : name(n), interp(&quot;&quot;), type(t), size(s), width(w), voidData(0)
+    : name(n), interp(&quot;&quot;), type(t), size(s), width(w), voidData(0),
+      _allocated(allocate)
 {
     if (allocate)
     {
@@ -65,13 +67,16 @@ Property::Property(const std::string&amp; n,
 
 Property::~Property()
 {
-    if (type == Gto::String)
+    if (_allocated)
     {
-        delete [] stringData;
-    }
-    else
-    {
-        delete [] (char*)voidData;
+        if (type == Gto::String)
+        {
+            delete [] stringData;
+        }
+        else
+        {
+            delete [] (char*)voidData;
+        }
     }
 }
 
@@ -172,10 +177,10 @@ RawDataBaseReader::property(const string&amp; name,
                             const string&amp; interp,
                             const PropertyInfo&amp; info)
 {
-    //Object *o    = reinterpret_cast&lt;Object*&gt;(info.component-&gt;object-&gt;objectData);
     Component *c = reinterpret_cast&lt;Component*&gt;(info.component-&gt;componentData);
     Property *p  = new Property(name, interp, 
-                                (DataType)info.type, info.size, info.width);
+                                (DataType)info.type, info.size, info.width, 
+                                false);
     c-&gt;properties.push_back(p);
     return Request(true, p);
 }
@@ -183,17 +188,16 @@ RawDataBaseReader::property(const string&amp; name,
 void*
 RawDataBaseReader::data(const PropertyInfo&amp; info, size_t bytes)
 {
-    //Object *o    = reinterpret_cast&lt;Object*&gt;(info.component-&gt;object-&gt;objectData);
-    //Component *c = reinterpret_cast&lt;Component*&gt;(info.component-&gt;componentData);
     Property *p  = reinterpret_cast&lt;Property*&gt;(info.propertyData);
 
-    if( bytes == 0 )
+    if (bytes == 0)
     {
         p-&gt;voidData = NULL;
     }
     else
     {
         p-&gt;voidData = new char[bytes];
+        p-&gt;_allocated = true;
     }
     return p-&gt;voidData;
 }
@@ -201,8 +205,6 @@ RawDataBaseReader::data(const PropertyInfo&amp; info, size_t bytes)
 void
 RawDataBaseReader::dataRead(const PropertyInfo&amp; info)
 {
-    //Object *o    = reinterpret_cast&lt;Object*&gt;(info.component-&gt;object-&gt;objectData);
-    //Component *c = reinterpret_cast&lt;Component*&gt;(info.component-&gt;componentData);
     Property *p  = reinterpret_cast&lt;Property*&gt;(info.propertyData);
 
     p-&gt;size = info.size;
@@ -212,6 +214,7 @@ RawDataBaseReader::dataRead(const PropertyInfo&amp; info)
         int* ints = p-&gt;int32Data;
         size_t numItems = p-&gt;size * p-&gt;width;
         p-&gt;stringData = new string[numItems];
+        p-&gt;_allocated = true;
 
         for (size_t i=0; i &lt; numItems; i++)
         {</diff>
      <filename>lib/Gto/RawData.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -58,6 +58,7 @@ struct Property
     Gto::DataType   type;
     size_t          size;
     size_t          width;
+    bool            _allocated;
 
     union
     {</diff>
      <filename>lib/Gto/RawData.h</filename>
    </modified>
    <modified>
      <diff>@@ -3,5 +3,13 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = maya rman
+SUBDIRS = 
+
+if GTO_BUILD_MAYA
+SUBDIRS += maya
+endif
+
+if GTO_BUILD_RMAN
+SUBDIRS += rman
+endif
 </diff>
      <filename>plugins/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -3,15 +3,16 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(gto_maya_location)/include
+include $(DEVKIT_LOCATION)/plug-ins/buildconfig
 
-AM_CXXFLAGS = -fno-exceptions -D_BOOL -D__USER__=\&quot;$$USER\&quot;
+AM_CPPFLAGS = -I$(top_srcdir)/lib \
+              $(CFLAGS)
+
+AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
 
 plugindir = $(gto_maya_location)/bin/plug-ins
 meldir = $(gto_maya_location)/scripts/others
 
-if GTO_BUILD_MAYA
-
 dist_mel_SCRIPTS = gtoCacheEmitter.mel
 
 plugin_PROGRAMS = GtoCacheEmitter.so
@@ -20,8 +21,8 @@ GtoCacheEmitter_so_SOURCES = GtoCacheEmitter.cpp
 
 noinst_HEADERS = GtoCacheEmitter.h
 
-GtoCacheEmitter_so_LDFLAGS = -shared \
-                   -L$(top_builddir)/lib/Gto \
+GtoCacheEmitter_so_LDFLAGS = $(LFLAGS) \
+                   -L$(top_srcdir)/lib/Gto \
                    -L$(gto_maya_location)/lib \
                    -lGto \
                    -lImage \
@@ -29,4 +30,3 @@ GtoCacheEmitter_so_LDFLAGS = -shared \
                    -lOpenMayaAnim \
                    -lOpenMayaRender 
 
-endif</diff>
      <filename>plugins/maya/GtoCacheEmitter/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -3,18 +3,19 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(gto_maya_location)/include
+include $(DEVKIT_LOCATION)/plug-ins/buildconfig
 
-AM_CXXFLAGS = -fno-exceptions -D_BOOL -D__USER__=\&quot;$$USER\&quot;
+AM_CPPFLAGS = -I$(top_srcdir)/lib \
+              $(CFLAGS)
+
+AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
 
 plugindir = $(gto_maya_location)/bin/plug-ins
 meldir = $(gto_maya_location)/scripts/others
 
-if GTO_BUILD_MAYA
-
 dist_mel_SCRIPTS = AEGtoDefomerCommon.mel \
-		    AEGtoDefomerTemplate.mel \
-		    applyGtoDeformer.mel
+		   AEGtoDefomerTemplate.mel \
+		   applyGtoDeformer.mel
 
 plugin_PROGRAMS = GtoDeformer.so
 
@@ -24,13 +25,45 @@ GtoDeformer_so_SOURCES = GtoDeformer.cpp \
 
 noinst_HEADERS = GtoDeformer.h  GtoPointReader.h
 
-GtoDeformer_so_LDFLAGS = -shared \
-                   -L$(top_builddir)/lib/Gto \
+GtoDeformer_so_LDFLAGS = $(LFLAGS) \
+                   -L$(top_srcdir)/lib/Gto \
                    -L$(gto_maya_location)/lib \
                    -lGto \
-                   -lImage \
                    -lOpenMaya \
-                   -lOpenMayaAnim \
-                   -lOpenMayaRender 
+                   -lOpenMayaAnim
+ 
+
+plugin_DATA = $(DEVKIT_LOCATION)/plug-ins/buildconfig
+
+#######################################################################
 
-endif
+# include $(DEVKIT_LOCATION)/plug-ins/buildconfig
+# 
+# AM_CPPFLAGS = -I$(top_srcdir)/lib \
+#               $(CFLAGS)
+# 
+# AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
+# 
+# plugindir = $(gto_maya_location)/bin/plug-ins
+# meldir = $(gto_maya_location)/scripts/others
+# 
+# dist_mel_SCRIPTS = AEGtoDefomerCommon.mel \
+# 		   AEGtoDefomerTemplate.mel \
+# 		   applyGtoDeformer.mel
+# 
+# plugin_PROGRAMS = GtoDeformer.so
+# 
+# GtoDeformer_so_SOURCES = GtoDeformer.cpp \
+# 			GtoPointReader.cpp \
+# 			pluginMain.cpp 
+# 
+# noinst_HEADERS = GtoDeformer.h  GtoPointReader.h
+# 
+# GtoDeformer_so_LDFLAGS = $(LFLAGS) \
+#                    -L$(top_srcdir)/lib/Gto \
+#                    -L$(gto_maya_location)/lib \
+#                    -lGto \
+#                    -lImage \
+#                    -lOpenMaya \
+#                    -lOpenMayaAnim \
+#                    -lOpenMayaRender </diff>
      <filename>plugins/maya/GtoDeformer/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -3,15 +3,16 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(gto_maya_location)/include
+include $(DEVKIT_LOCATION)/plug-ins/buildconfig
 
-AM_CXXFLAGS = -fno-exceptions -D_BOOL -D__USER__=\&quot;$$USER\&quot;
+AM_CPPFLAGS = -I$(top_srcdir)/lib \
+              $(CFLAGS)
+
+AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
 
 plugindir = $(gto_maya_location)/bin/plug-ins
 meldir = $(gto_maya_location)/scripts/others
 
-if GTO_BUILD_MAYA
-
 dist_mel_SCRIPTS = AEGtoParticleDisplayCommon.mel			\
 AEGtoParticleDisplayTemplate.mel AEGtoParticleDisplayInclude.mel	\
 doGtoParticleDisplay.mel
@@ -22,13 +23,11 @@ GtoParticleDisplay_so_SOURCES = GtoParticleDisplay.cpp  pluginMain.cpp
 
 noinst_HEADERS = GtoParticleDisplay.h
 
-GtoParticleDisplay_so_LDFLAGS = -shared \
-                   -L$(top_builddir)/lib/Gto \
+GtoParticleDisplay_so_LDFLAGS = $(LFLAGS) \
+                   -L$(top_srcdir)/lib/Gto \
                    -L$(gto_maya_location)/lib \
                    -lGto \
                    -lImage \
                    -lOpenMaya \
                    -lOpenMayaAnim \
                    -lOpenMayaRender 
-
-endif</diff>
      <filename>plugins/maya/GtoParticleDisplay/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -3,15 +3,16 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(gto_maya_location)/include
+include $(DEVKIT_LOCATION)/plug-ins/buildconfig
 
-AM_CXXFLAGS = -fno-exceptions -D_BOOL -D__USER__=\&quot;$$USER\&quot;
+AM_CPPFLAGS = -I$(top_srcdir)/lib \
+              $(CFLAGS)
+
+AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
 
 plugindir = $(gto_maya_location)/bin/plug-ins
 meldir = $(gto_maya_location)/scripts/others
 
-if GTO_BUILD_MAYA
-
 dist_mel_SCRIPTS = GtoParticleExportUI.mel
 
 plugin_PROGRAMS = GtoParticleExport.so
@@ -21,13 +22,11 @@ ParticleBucket.cpp
 
 noinst_HEADERS = GtoParticleExport.h ParticleAttribute.h ParticleBucket.h
 
-GtoParticleExport_so_LDFLAGS = -shared \
-                   -L$(top_builddir)/lib/Gto \
+GtoParticleExport_so_LDFLAGS = $(LFLAGS) \
+                   -L$(top_srcdir)/lib/Gto \
                    -L$(gto_maya_location)/lib \
                    -lGto \
                    -lImage \
                    -lOpenMaya \
                    -lOpenMayaAnim \
                    -lOpenMayaRender 
-
-endif</diff>
      <filename>plugins/maya/GtoParticleExport/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,9 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = GtoDeformer GtoCacheEmitter GtoParticleDisplay GtoParticleExport \
-	  gtoIO
+SUBDIRS = GtoDeformer \
+          gtoIO
 
+#          GtoParticleExport 
+#          GtoParticleDisplay 
+#          GtoCacheEmitter </diff>
      <filename>plugins/maya/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -350,4 +350,12 @@ bool GtoMayaAttribute::canExport( MPlug &amp;plug, int depth )
 }
 
 
+// *****************************************************************************
+bool GtoMayaAttribute::sortByComponent(const GtoMayaAttribute* s1, 
+                                       const GtoMayaAttribute* s2 )
+{
+    if( ! ( s1 &amp;&amp; s2 ) ) return false;
+    return (s1-&gt;componentName() &lt; s2-&gt;componentName());
+}
+
 }  //  End namespace GtoIOPlugin</diff>
      <filename>plugins/maya/gtoIO/GtoMayaAttribute.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -33,6 +33,9 @@ public:
 
     static bool canExport( MPlug &amp;plug, int depth=0 );
 
+    static bool sortByComponent(const GtoMayaAttribute* s1, 
+                                const GtoMayaAttribute* s2 );
+
 private:
     MObjectHandle m_nodeObj;
     MObjectHandle m_attrObj;
@@ -49,15 +52,6 @@ private:
 typedef std::vector&lt;GtoMayaAttribute *&gt; GtoMayaAttributes;
 typedef std::vector&lt;const GtoMayaAttribute *&gt; ConstGtoMayaAttributes;
 
-static struct 
-{
-  bool operator()( GtoMayaAttribute* s1, GtoMayaAttribute* s2 ) const
-  {
-      if( ! ( s1 &amp;&amp; s2 ) ) return false;
-      return (s1-&gt;componentName() &lt; s2-&gt;componentName());
-  }
-} sortByComponent;
-
 
 } // End namespace GtoIOPlugin
 </diff>
      <filename>plugins/maya/gtoIO/GtoMayaAttribute.h</filename>
    </modified>
    <modified>
      <diff>@@ -512,7 +512,8 @@ void GtoExporter::output( MDagPath &amp;dp, bool data, int recursionLevel )
             findTransformAttributes( dp, attrs );
         }
         
-        std::sort( attrs-&gt;begin(), attrs-&gt;end(), sortByComponent );
+        std::sort( attrs-&gt;begin(), attrs-&gt;end(), 
+                   GtoMayaAttribute::sortByComponent );
     }
     
 </diff>
      <filename>plugins/maya/gtoIO/GtoOut.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -3,15 +3,16 @@
 #*******************************************************************************
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(gto_maya_location)/include
+include $(DEVKIT_LOCATION)/plug-ins/buildconfig
 
-AM_CXXFLAGS = -fno-exceptions -D_BOOL -D__USER__=\&quot;$$USER\&quot;
+AM_CPPFLAGS = -I$(top_srcdir)/lib \
+              $(CFLAGS)
+
+AM_CXXFLAGS = -fno-exceptions -D__USER__=\&quot;$$USER\&quot;
 
 plugindir = $(gto_maya_location)/bin/plug-ins
 meldir = $(gto_maya_location)/scripts/others
 
-if GTO_BUILD_MAYA
-
 dist_mel_SCRIPTS = gtoExportOptions.mel
 
 plugin_PROGRAMS = GtoIO.so
@@ -24,6 +25,7 @@ GtoIO_so_SOURCES = GtoInDataBase.cpp \
                    GtoInReader.cpp \
                    GtoInSet.cpp \
                    GtoInTransform.cpp \
+                   GtoInCamera.cpp \
                    GtoIO.cpp \
                    GtoOut.cpp \
                    version.cpp \
@@ -39,6 +41,7 @@ noinst_HEADERS = GtoInDataBase.h \
                  GtoInReader.h \
                  GtoInSet.h \
                  GtoInTransform.h \
+                 GtoInCamera.h \
                  GtoIO.h \
                  GtoOut.h \
                  version.h \
@@ -46,7 +49,7 @@ noinst_HEADERS = GtoInDataBase.h \
                  GtoAnimCurve.h \
                  TwkMaya.h
 
-GtoIO_so_LDFLAGS = -shared \
+GtoIO_so_LDFLAGS = $(LFLAGS) \
                    -L$(top_srcdir)/lib/Gto \
                    -L$(gto_maya_location)/lib \
                    -lGto \
@@ -55,4 +58,4 @@ GtoIO_so_LDFLAGS = -shared \
                    -lOpenMayaAnim \
                    -lOpenMayaRender 
 
-endif
+plugin_DATA = $(DEVKIT_LOCATION)/plug-ins/buildconfig</diff>
      <filename>plugins/maya/gtoIO/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -23,24 +23,7 @@
 #include &lt;maya/MTypes.h&gt;
 
 // Check for correct compiler version
-#ifndef WIN32
-    #if MAYA_API_VERSION &lt; 500
-        #if ! ( ( __GNUC__ == 2 )  \
-              &amp;&amp; ( __GNUC_MINOR__ == 96 ) \
-              &amp;&amp; ( __GNUC_PATCHLEVEL__ == 0 ) )
-        #error ------------------------------------------
-        #error This plugin must be compiled with gcc 2.96
-        #error ------------------------------------------
-        #endif
-    #else
-        #if ! ( ( __GNUC__ == 3 )  \
-              &amp;&amp; ( __GNUC_MINOR__ &gt;= 2 ) )
-        #error ------------------------------------------
-        #error This plugin must be compiled with gcc 3.2+
-        #error ------------------------------------------
-        #endif
-    #endif
-#else
+#ifdef WIN32
     // Work around stupid microsoft bugs
     #pragma warning (disable : 4786)
     #define for if(0);else for</diff>
      <filename>plugins/maya/gtoIO/version.h</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,7 @@
-#!/usr/bin/env python2
-#*******************************************************************************
-# Copyright (c) 2001-2003 Tweak Inc. All rights reserved.
-#*******************************************************************************
+#!/usr/bin/env python
 
 import sys
 
-#
-# You can get this module from:  http://cgkit.sourceforge.net/
-# If you can't get it, just change all the vec3(x,x,x) to (x,x,x) in this file
-#
-from cgtypes import *
-
 import gto
 
 print gto.__doc__
@@ -59,9 +50,9 @@ writer.endObject()
 #         tuple(mat4(1))  It will be silently transposed (a bug in the
 #         cgtypes code?).  ADDING it to a tuple or list is fine:  (mat4(1),)
 #
-adata = ( (1.0, 2.8), (3.6, 4.4), (5.2, 6), 7, vec3( 8, 9, 10 ) )
+adata = ( (1.0, 2.8), (3.6, 4.4), (5.2, 6), 7, ( 8, 9, 10 ) )
 bdata = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
-cdata = ( mat4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16), )
+cdata = ( (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16), )
 
 # All strings MUST be registered before beginData() is called.  intern()
 # can accept individual strings, tuples, or lists.  Dupes are OK.  Try it.
@@ -86,7 +77,7 @@ writer.propertyData( strings )
 writer.propertyData( adata )
 writer.propertyData( adata )
 writer.propertyData( bdata )
-writer.propertyData( ( vec3( 1, 2, 3 ), vec3( 4, 5, 6 )  ) )
+writer.propertyData( ( ( 1, 2, 3 ), ( 4, 5, 6 )  ) )
 writer.endData()
 
 # Close the file. Since Python uses garbage collection, you can never be</diff>
      <filename>plugins/python/examples/example.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 import sys
 import gc
 </diff>
      <filename>plugins/python/examples/example2.py</filename>
    </modified>
    <modified>
      <diff>@@ -2,22 +2,35 @@
 
 from distutils.core import setup, Extension
 
+gtoDB_module = Extension('_gtoDB',
+                           sources=['src/gtoDB/gtoDB.cpp'],
+                           include_dirs=[&quot;../../lib/Gto&quot;],
+                           library_dirs=[&quot;../../lib/Gto/.libs&quot;],
+                           libraries=[&quot;Gto&quot;, &quot;z&quot;],
+                           extra_compile_args=[&quot;-Wno-unused-variable&quot;],
+                           )
+
+gto_module = Extension( &quot;gto&quot;, 
+                  [ &quot;src/gto/gtoHeader.cpp&quot;, 
+                    &quot;src/gto/gtomodule.cpp&quot;, 
+                    &quot;src/gto/gtoReader.cpp&quot;, 
+                    &quot;src/gto/gtoWriter.cpp&quot; ],
+                    include_dirs=[&quot;../../lib&quot;],
+                    library_dirs=[&quot;../../lib/Gto/.libs&quot;],
+                    libraries=[&quot;Gto&quot;, &quot;z&quot;],
+                    extra_compile_args=[&quot;-Wno-unused-variable&quot;],
+                  )
+
 setup( name=&quot;gto&quot;,
-       version=&quot;3.00&quot;,
+       version=&quot;3.51&quot;,
        description=&quot;Gto I/O module&quot;,
        author=&quot;Tweak Films&quot;,
-       author_email=&quot;gto@tweakfilms.com&quot;,
-       url=&quot;http://www.tweakfilms.com/&quot;,
-       ext_modules = [ Extension( &quot;gto&quot;, 
-                                [ &quot;src/gtoHeader.cpp&quot;,        
-                                  &quot;src/gtomodule.cpp&quot;,        
-                                  &quot;src/gtoReader.cpp&quot;,        
-                                  &quot;src/gtoWriter.cpp&quot; ],
-                                  include_dirs=[&quot;../../lib&quot;],
-                                  library_dirs=[&quot;../../lib/Gto/.libs&quot;],
-                                  libraries=[&quot;Gto&quot;, &quot;z&quot;],
-                                  extra_compile_args=[&quot;-Wno-unused-variable&quot;],
-                                )
+       author_email=&quot;gto@tweaksoftware.com&quot;,
+       url=&quot;http://sourceforge.net/projects/gto/&quot;,
+       package_dir = {'': 'src/gtoDB'},
+       py_modules = [ &quot;gtoDB&quot; ],
+       ext_modules = [ gto_module,
+                       gtoDB_module,
                      ],
        data_files = [( 'examples', [ &quot;examples/example.py&quot;, 
                                      &quot;examples/example2.py&quot; ])</diff>
      <filename>plugins/python/setup.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c098a52dbba91d1e5f0b93b648daf868b4d47181</id>
    </parent>
  </parents>
  <author>
    <name>Michael Root</name>
    <email>mike@pubert.local</email>
  </author>
  <url>http://github.com/jimhourihan/gto/commit/cf7160fd3bc5a38819a3fe4c5d6661b692dcba87</url>
  <id>cf7160fd3bc5a38819a3fe4c5d6661b692dcba87</id>
  <committed-date>2008-09-28T11:16:20-07:00</committed-date>
  <authored-date>2008-09-28T11:16:20-07:00</authored-date>
  <message>More 3.5.1 changes, see NEWS for details</message>
  <tree>cbb220514b5aaed31b0b2c2752dc65e309a80f0f</tree>
  <committer>
    <name>Michael Root</name>
    <email>mike@pubert.local</email>
  </committer>
</commit>
