patches/opensp-01-forte.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 14962 ffb9b16fe80e
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14962
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
     1
--- OpenSP-1.5.1/configure.in-orig	2003-09-03 10:34:16.000000000 -0500
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
     2
+++ OpenSP-1.5.1/configure.in	2009-01-22 16:07:11.334969000 -0600
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
     3
@@ -163,8 +163,8 @@ AH_BOTTOM([
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
 #endif /* HAVE_PATHNAME_STYLE_DOS */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
 #ifdef HAVE_INSTANTIATIONS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
-#ifndef SP_ANSI_CLASS_INST
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
-#define SP_ANSI_CLASS_INST
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
+#ifdef SP_ANSI_CLASS_INST
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
+#undef SP_ANSI_CLASS_INST
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
 #endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
 #endif /* HAVE_INSTANTIATIONS */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
 
14962
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    14
@@ -239,6 +239,9 @@ AM_PROG_LIBTOOL
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
 dnl Checks for libraries.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
 AC_CHECK_LIB(pthread,pthread_create,,AC_CHECK_LIB(threads,cthread_fork))
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
 
14962
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    18
+dnl *** check for socket library ***
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    19
+AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    20
+
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
 ALL_LINGUAS="de fr ja sv"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
 AM_GNU_GETTEXT
14962
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    23
 AC_CHECK_HEADERS(locale.h)
ffb9b16fe80e 2009-01-22 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
    24
@@ -352,14 +355,8 @@ dnl FIXME these need tests for non-GNU c
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
                     ac_cv_c_gnu_automatic_templates=yes,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
                     ac_cv_c_gnu_automatic_templates=no)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
                   ])
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
-  if test "$ac_cv_c_gnu_automatic_templates" = yes; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
-    AC_DEFINE(SP_DEFINE_TEMPLATES,1,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
+  AC_DEFINE(SP_DEFINE_TEMPLATES,1,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
               [define this to include template definitions in the headers])
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
-  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
-    AC_DEFINE(SP_MANUAL_INST,1,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
-              [define this to compile explicit template instantiations])
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
-    CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
-  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
   AC_CACHE_CHECK(whether GNU C++ links with libg++ if we include new.h,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
 	         ac_cv_cxx_gnu_avoid_new_h,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
                  [AC_EGREP_CPP(yes,[
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
--- OpenSP.orig/lib/SearchResultMessageArg.cxx	Tue Dec 23 21:21:50 2003
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
+++ OpenSP/lib/SearchResultMessageArg.cxx	Tue Dec 23 22:51:41 2003
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
@@ -12,7 +12,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
 namespace SP_NAMESPACE {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
 #endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
-RTTI_DEF1(SearchResultMessageArg, OtherMessageArg);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
+RTTI_DEF1(SearchResultMessageArg, OtherMessageArg)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
 SearchResultMessageArg::SearchResultMessageArg()
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
 {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
--- OpenSP-1.5.1/sx/XmlOutputEventHandler.cxx.orig	Thu Sep 29 09:08:41 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
+++ OpenSP-1.5.1/sx/XmlOutputEventHandler.cxx	Thu Sep 29 09:12:14 2005
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
@@ -106,7 +106,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
   // Open file for writing external entity declarations if we are preserving
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
   // any entities
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
   if (! options_.expExt) {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
-    ParserApp::AppChar filePath[strlen(outputDir_) + 21];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
+    char *filePath = (char *)malloc (strlen(outputDir_) + 21);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
     strcpy (filePath, outputDir_);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
     strcat (filePath, "/");
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
     strcat (filePath, EXT_ENT_FILE);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
@@ -140,7 +140,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
   // Open file for writing external entity declarations if we are preserving
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
   // any entities
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
   if (! options_.expInt) {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
-    char filePath[strlen(outputDir_) + 21];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
+    char *filePath = (char *)malloc (strlen(outputDir_) + 21);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
     strcpy (filePath, outputDir_);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
     strcat (filePath, "/");
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
     strcat (filePath, INT_ENT_FILE);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
@@ -1153,9 +1153,9 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
 	     becomes ./usr/local/lib/ents/foo.xml; possible 2-digit
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
              suffix (for uniqueness) */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
-	  char filePath[strlen(outputDir_) + 9 +
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
+	  char *filePath = (char *)malloc (strlen(outputDir_) + 9 +
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
 		       outputCodingSystem->convertOut
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
-			(*systemIdPointer).size()];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
+			(*systemIdPointer).size());
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
 	  strcpy (filePath, outputDir_);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
@@ -1505,7 +1505,7 @@
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
  */
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
 void XmlOutputEventHandler::uniqueFilename(char *filePath) {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
-  char baseFilePath[strlen(filePath)];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
+  char *baseFilePath = (char *)malloc (strlen(filePath));
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
   strcpy (baseFilePath, filePath);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
   struct stat statbuf;