]> err.no Git - sope/commitdiff
fixed driver lookup for lib64
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 5 Jul 2006 00:02:23 +0000 (00:02 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 5 Jul 2006 00:02:23 +0000 (00:02 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1310 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/SaxObjC/ChangeLog
sope-xml/SaxObjC/GNUmakefile.preamble
sope-xml/SaxObjC/SaxXMLReaderFactory.m
sope-xml/SaxObjC/Version

index 7a8a5d4cba040dc1570cb152feb037210bb39261..4d7afd7ccd84b8618e25bbd4c4cde46a3c809e54 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-05  Helge Hess  <helge.hess@opengroupware.org>
+
+       * SaxXMLReaderFactory.m: changed to find SAX drivers on 64bit systems
+         in lib64, added FHS_INSTALL_ROOT to lookup path (v4.5.59)
+
 2006-07-03  Helge Hess  <helge.hess@opengroupware.org>
 
        * v4.5.58
index 38cb639dde17c925b03470918573f333e461fa20..4988e3730f392bf8649803c77a3f23828f2da849 100644 (file)
@@ -37,6 +37,16 @@ xmln_INCLUDE_DIRS += -I..
 xmln_LIB_DIRS     += -L./$(GNUSTEP_OBJ_DIR)
 xmln_TOOL_LIBS    += -lSaxObjC
 
+# Parameters for SaxDriver lookup
+
+ifneq ($(FHS_INSTALL_ROOT),)
+ADDITIONAL_CPPFLAGS += \
+       -DFHS_INSTALL_ROOT=\@\"$(FHS_INSTALL_ROOT)\"
+endif
+
+ifeq ($(CONFIGURE_64BIT),yes)
+ADDITIONAL_CPPFLAGS += -DCONFIGURE_64BIT=1
+endif
 
 # Apple
 
index e85f1d8b3d36035b43bcbea839b47f561053f551..8ceb1e7c9790c2a8300da8ad7ce9efe77e6b59e8 100644 (file)
@@ -1,5 +1,6 @@
 /*
-  Copyright (C) 2000-2005 SKYRIX Software AG
+  Copyright (C) 2000-2006 SKYRIX Software AG
+  Copyright (C) 2006      Helge Hess
 
   This file is part of SOPE.
 
@@ -179,10 +180,24 @@ static id      factory       = nil;
 #endif
   
   /* FHS fallback */
-  tmp = [NSString stringWithFormat:@"lib/sope-%i.%i/saxdrivers/",
-                   SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
+  
+  tmp = [[NSString alloc] initWithFormat:
+#if CONFIGURE_64BIT
+                           @"lib64/sope-%i.%i/saxdrivers/",
+#else
+                           @"lib/sope-%i.%i/saxdrivers/",
+#endif
+                           SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
+  
+#ifdef FHS_INSTALL_ROOT
+  [ma addObject:[FHS_INSTALL_ROOT stringByAppendingPathComponent:tmp]];
+#endif
+
+  // TODO: should we always add those? or maybe derive from PATH or
+  //       LD_LIBRARY_PATH?
   [ma addObject:[@"/usr/local/" stringByAppendingString:tmp]];
   [ma addObject:[@"/usr/"       stringByAppendingString:tmp]];
+  [tmp release]; tmp = nil;
   searchPathes = [ma copy];
   
   if ([searchPathes count] == 0)
index 31494853fc6418695cfabaf78b7d27ee87f6e96d..de3d3ecd1a652cb6df956911af35bddf3a29e7d0 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=58
+SUBMINOR_VERSION:=59