redland-bindings-1.0.16.1/0000755000175000017500000000000012074650260012145 500000000000000redland-bindings-1.0.16.1/lua/0000755000175000017500000000000012074650257012734 500000000000000redland-bindings-1.0.16.1/lua/redland_wrap.c0000644000175000017500000101146211776165147015476 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGLUA #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA #define SWIG_LUA_MODULE_GLOBAL /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { register size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * luarun.swg * * This file contains the runtime support for Lua modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif #include "lua.h" #include "lauxlib.h" #include /* for malloc */ #include /* for a few sanity tests */ /* ----------------------------------------------------------------------------- * Lua flavors * ----------------------------------------------------------------------------- */ #define SWIG_LUA_FLAVOR_LUA 1 #define SWIG_LUA_FLAVOR_ELUA 2 #define SWIG_LUA_FLAVOR_ELUAC 3 #if !defined(SWIG_LUA_TARGET) # error SWIG_LUA_TARGET not defined #endif #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) #else /* SWIG_LUA_FLAVOR_LUA */ # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 #endif #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} # define LSTRVAL LRO_STRVAL #endif /* ----------------------------------------------------------------------------- * compatibility defines * ----------------------------------------------------------------------------- */ /* History of Lua C API length functions: In Lua 5.0 (and before?) there was "lua_strlen". In Lua 5.1, this was renamed "lua_objlen", but a compatibility define of "lua_strlen" was added. In Lua 5.2, this function was again renamed, to "lua_rawlen" (to emphasize that it doesn't call the "__len" metamethod), and the compatibility define of lua_strlen was removed. All SWIG uses have been updated to "lua_rawlen", and we add our own defines of that here for older versions of Lua. */ #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 # define lua_rawlen lua_strlen #elif LUA_VERSION_NUM == 501 # define lua_rawlen lua_objlen #endif /* lua_pushglobaltable is the recommended "future-proof" way to get the global table for Lua 5.2 and later. Here we define lua_pushglobaltable ourselves for Lua versions before 5.2. */ #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) #endif /* ----------------------------------------------------------------------------- * global swig types * ----------------------------------------------------------------------------- */ /* Constant table */ #define SWIG_LUA_INT 1 #define SWIG_LUA_FLOAT 2 #define SWIG_LUA_STRING 3 #define SWIG_LUA_POINTER 4 #define SWIG_LUA_BINARY 5 #define SWIG_LUA_CHAR 6 /* Structure for variable linking table */ typedef struct { const char *name; lua_CFunction get; lua_CFunction set; } swig_lua_var_info; /* Constant information structure */ typedef struct { int type; char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_lua_const_info; typedef struct { const char *name; lua_CFunction method; } swig_lua_method; typedef struct { const char *name; lua_CFunction getmethod; lua_CFunction setmethod; } swig_lua_attribute; typedef struct swig_lua_class { const char *name; swig_type_info **type; lua_CFunction constructor; void (*destructor)(void *); swig_lua_method *methods; swig_lua_attribute *attributes; struct swig_lua_class **bases; const char **base_names; } swig_lua_class; /* this is the struct for wrappering all pointers in SwigLua */ typedef struct { swig_type_info *type; int own; /* 1 if owned & must be destroyed */ void *ptr; } swig_lua_userdata; /* this is the struct for wrapping arbitary packed binary data (currently it is only used for member function pointers) the data ordering is similar to swig_lua_userdata, but it is currently not possible to tell the two structures apart within SWIG, other than by looking at the type */ typedef struct { swig_type_info *type; int own; /* 1 if owned & must be destroyed */ char data[1]; /* arbitary amount of data */ } swig_lua_rawdata; /* Common SWIG API */ #define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) #define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) #define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) #define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) #define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer) #define SWIG_MODULE_CLIENTDATA_TYPE lua_State* /* Contract support */ #define SWIG_contract_assert(expr, msg) \ if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else /* helper #defines */ #define SWIG_fail {goto fail;} #define SWIG_fail_arg(func_name,argnum,type) \ {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ goto fail;} #define SWIG_fail_ptr(func_name,argnum,type) \ SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") #define SWIG_check_num_args(func_name,a,b) \ if (lua_gettop(L)b) \ {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ goto fail;} #define SWIG_Lua_get_table(L,n) \ (lua_pushstring(L, n), lua_rawget(L,-2)) #define SWIG_Lua_add_function(L,n,f) \ (lua_pushstring(L, n), \ lua_pushcfunction(L, f), \ lua_rawset(L,-3)) /* special helper for allowing 'nil' for usertypes */ #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) #ifdef __cplusplus /* Special helper for member function pointers it gets the address, casts it, then dereferences it */ //#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) #endif /* storing/access of swig_module_info */ SWIGRUNTIME swig_module_info * SWIG_Lua_GetModule(lua_State* L) { swig_module_info *ret = 0; lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_rawget(L,LUA_REGISTRYINDEX); if (lua_islightuserdata(L,-1)) ret=(swig_module_info*)lua_touserdata(L,-1); lua_pop(L,1); /* tidy */ return ret; } SWIGRUNTIME void SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* add this all into the Lua registry: */ lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_pushlightuserdata(L,(void*)module); lua_rawset(L,LUA_REGISTRYINDEX); } /* ----------------------------------------------------------------------------- * global variable support code: modules * ----------------------------------------------------------------------------- */ /* this function is called when trying to set an immutable. default value is to print an error. This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) { /* there should be 1 param passed in: the new value */ #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE lua_pop(L,1); /* remove it */ lua_pushstring(L,"This variable is immutable"); lua_error(L); #endif return 0; /* should not return anything */ } /* the module.get method used for getting linked data */ SWIGINTERN int SWIG_Lua_module_get(lua_State* L) { /* there should be 2 params passed in (1) table (not the meta table) (2) string name of the attribute printf("SWIG_Lua_module_get %p(%s) '%s'\n", lua_topointer(L,1),lua_typename(L,lua_type(L,1)), lua_tostring(L,2)); */ /* get the metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) assert(lua_isrotable(L,1)); /* just in case */ #else assert(lua_istable(L,1)); /* default Lua action */ #endif lua_getmetatable(L,1); /* get the metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) assert(lua_isrotable(L,-1)); /* just in case */ #else assert(lua_istable(L,-1)); #endif SWIG_Lua_get_table(L,".get"); /* get the .get table */ lua_remove(L,3); /* remove metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) if (lua_isrotable(L,-1)) #else if (lua_istable(L,-1)) #endif { /* look for the key in the .get table */ lua_pushvalue(L,2); /* key */ lua_rawget(L,-2); lua_remove(L,3); /* remove .get */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ lua_call(L,0,1); return 1; } lua_pop(L,1); /* remove the top */ } lua_pop(L,1); /* remove the .get */ lua_pushnil(L); /* return a nil */ return 1; } /* the module.set method used for setting linked data */ SWIGINTERN int SWIG_Lua_module_set(lua_State* L) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value */ /* get the metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) assert(lua_isrotable(L,1)); /* just in case */ #else assert(lua_istable(L,1)); /* default Lua action */ #endif lua_getmetatable(L,1); /* get the metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) assert(lua_isrotable(L,-1)); /* just in case */ #else assert(lua_istable(L,-1)); #endif SWIG_Lua_get_table(L,".set"); /* get the .set table */ lua_remove(L,4); /* remove metatable */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) if (lua_isrotable(L,-1)) #else if (lua_istable(L,-1)) #endif { /* look for the key in the .set table */ lua_pushvalue(L,2); /* key */ lua_rawget(L,-2); lua_remove(L,4); /* remove .set */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ lua_pushvalue(L,3); /* value */ lua_call(L,1,0); return 0; } #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) else { return 0; // Exits stoically if an invalid key is initialized. } #endif } lua_settop(L,3); /* reset back to start */ /* we now have the table, key & new value, so just set directly */ lua_rawset(L,1); /* add direct */ return 0; } #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* registering a module in lua. Pushes the module table on the stack. */ SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) { assert(lua_istable(L,-1)); /* just in case */ lua_pushstring(L,name); lua_newtable(L); /* the table */ /* add meta table */ lua_newtable(L); /* the meta table */ SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); lua_pushstring(L,".get"); lua_newtable(L); /* the .get table */ lua_rawset(L,-3); /* add .get into metatable */ lua_pushstring(L,".set"); lua_newtable(L); /* the .set table */ lua_rawset(L,-3); /* add .set into metatable */ lua_setmetatable(L,-2); /* sets meta table in module */ #ifdef SWIG_LUA_MODULE_GLOBAL /* If requested, install the module directly into the global namespace. */ lua_rawset(L,-3); /* add module into parent */ SWIG_Lua_get_table(L,name); /* get the table back out */ #else /* Do not install the module table as global name. The stack top has the module table with the name below. We pop the top and replace the name with it. */ lua_replace(L,-2); #endif } /* ending the register */ SWIGINTERN void SWIG_Lua_module_end(lua_State* L) { lua_pop(L,1); /* tidy stack (remove module) */ } /* adding a linked variable to the module */ SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ lua_getmetatable(L,-1); /* get the metatable */ assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ assert(lua_istable(L,-1)); /* should be a table: */ SWIG_Lua_add_function(L,name,getFn); lua_pop(L,1); /* tidy stack (remove table) */ if (setFn) /* if there is a set fn */ { SWIG_Lua_get_table(L,".set"); /* find the .set table */ assert(lua_istable(L,-1)); /* should be a table: */ SWIG_Lua_add_function(L,name,setFn); lua_pop(L,1); /* tidy stack (remove table) */ } lua_pop(L,1); /* tidy stack (remove meta) */ } #endif /* adding a function module */ SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) { SWIG_Lua_add_function(L,name,fn); } /* ----------------------------------------------------------------------------- * global variable support code: classes * ----------------------------------------------------------------------------- */ /* the class.get method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_get(lua_State* L) { /* there should be 2 params passed in (1) userdata (not the meta table) (2) string name of the attribute */ assert(lua_isuserdata(L,-2)); /* just in case */ lua_getmetatable(L,-2); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ assert(lua_istable(L,-1)); /* just in case */ /* look for the key in the .get table */ lua_pushvalue(L,2); /* key */ lua_rawget(L,-2); lua_remove(L,-2); /* stack tidy, remove .get table */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ lua_pushvalue(L,1); /* the userdata */ lua_call(L,1,1); /* 1 value in (userdata),1 out (result) */ lua_remove(L,-2); /* stack tidy, remove metatable */ return 1; } lua_pop(L,1); /* remove whatever was there */ /* ok, so try the .fn table */ SWIG_Lua_get_table(L,".fn"); /* find the .get table */ assert(lua_istable(L,-1)); /* just in case */ lua_pushvalue(L,2); /* key */ lua_rawget(L,-2); /* look for the fn */ lua_remove(L,-2); /* stack tidy, remove .fn table */ if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */ { /* found it so return the fn & let lua call it */ lua_remove(L,-2); /* stack tidy, remove metatable */ return 1; } lua_pop(L,1); /* remove whatever was there */ /* NEW: looks for the __getitem() fn this is a user provided get fn */ SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ lua_pushvalue(L,1); /* the userdata */ lua_pushvalue(L,2); /* the parameter */ lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ lua_remove(L,-2); /* stack tidy, remove metatable */ return 1; } return 0; /* sorry not known */ } /* the class.set method, performs the lookup of class attributes */ SWIGINTERN int SWIG_Lua_class_set(lua_State* L) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", lua_topointer(L,1),lua_typename(L,lua_type(L,1)), lua_tostring(L,2), lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ assert(lua_isuserdata(L,1)); /* just in case */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".set"); /* find the .set table */ if (lua_istable(L,-1)) { /* look for the key in the .set table */ lua_pushvalue(L,2); /* key */ lua_rawget(L,-2); if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ lua_pushvalue(L,1); /* userdata */ lua_pushvalue(L,3); /* value */ lua_call(L,2,0); return 0; } lua_pop(L,1); /* remove the value */ } lua_pop(L,1); /* remove the value .set table */ /* NEW: looks for the __setitem() fn this is a user provided set fn */ SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ lua_pushvalue(L,1); /* the userdata */ lua_pushvalue(L,2); /* the parameter */ lua_pushvalue(L,3); /* the value */ lua_call(L,3,0); /* 3 values in ,0 out */ lua_remove(L,-2); /* stack tidy, remove metatable */ return 1; } return 0; } /* the class.destruct method called by the interpreter */ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ swig_lua_userdata* usr; swig_lua_class* clss; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ /* if must be destroyed & has a destructor */ if (usr->own) /* if must be destroyed */ { clss=(swig_lua_class*)usr->type->clientdata; /* get the class */ if (clss && clss->destructor) /* there is a destroy fn */ { clss->destructor(usr->ptr); /* bye bye */ } } return 0; } /* the class.__tostring method called by the interpreter and print */ SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) { /* there should be 1 param passed in (1) userdata (not the metatable) */ assert(lua_isuserdata(L,1)); /* just in case */ unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ lua_getfield(L, -1, ".type"); const char* className = lua_tostring(L, -1); char output[256]; sprintf(output, "<%s userdata: %lX>", className, userData); lua_pushstring(L, (const char*)output); return 1; } /* to manually disown some userdata */ SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ swig_lua_userdata* usr; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ usr->own = 0; /* clear our ownership */ return 0; } /* gets the swig class registry (or creates it) */ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) { /* add this all into the swig registry: */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); /* get the registry */ if (!lua_istable(L,-1)) /* not there */ { /* must be first time, so add it */ lua_pop(L,1); /* remove the result */ lua_pushstring(L,"SWIG"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); /* then get it */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); } } /* helper fn to get the classes metatable from the register */ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) { SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,cname); /* get the name */ lua_rawget(L,-2); /* get it */ lua_remove(L,-2); /* tidy up (remove registry) */ } /* helper add a variable to a registered class */ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_add_function(L,name,getFn); lua_pop(L,1); /* tidy stack (remove table) */ if (setFn) { SWIG_Lua_get_table(L,".set"); /* find the .set table */ assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_add_function(L,name,setFn); lua_pop(L,1); /* tidy stack (remove table) */ } } /* helper to recursively add class details (attributes & operations) */ SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) { int i; /* call all the base classes first: we can then override these later: */ for(i=0;clss->bases[i];i++) { SWIG_Lua_add_class_details(L,clss->bases[i]); } /* add fns */ for(i=0;clss->attributes[i].name;i++){ SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->methods[i].name;i++){ SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); } lua_pop(L,1); /* tidy stack (remove table) */ /* add operator overloads these look ANY method which start with "__" and assume they are operator overloads & add them to the metatable (this might mess up is someone defines a method __gc (the destructor)*/ for(i=0;clss->methods[i].name;i++){ if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); } } } /* set up the base classes pointers. Each class structure has a list of pointers to the base class structures. This function fills them. It cannot be done at compile time, as this will not work with hireachies spread over more than one swig file. Therefore it must be done at runtime, querying the SWIG type system. */ SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) { int i=0; swig_module_info* module=SWIG_GetModule(L); for(i=0;clss->base_names[i];i++) { if (clss->bases[i]==0) /* not found yet */ { /* lookup and cache the base class */ swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; } } } /* performs the entire class registration process */ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) { /* add its constructor to module with the name of the class so you can do MyClass(...) as well as new_MyClass(...) BUT only if a constructor is defined (this overcomes the problem of pure virtual classes without constructors)*/ if (clss->constructor) SWIG_Lua_add_function(L,clss->name,clss->constructor); SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,clss->name); /* get the name */ lua_newtable(L); /* create the metatable */ /* add string of class name called ".type" */ lua_pushstring(L,".type"); lua_pushstring(L,clss->name); lua_rawset(L,-3); /* add a table called ".get" */ lua_pushstring(L,".get"); lua_newtable(L); lua_rawset(L,-3); /* add a table called ".set" */ lua_pushstring(L,".set"); lua_newtable(L); lua_rawset(L,-3); /* add a table called ".fn" */ lua_pushstring(L,".fn"); lua_newtable(L); /* add manual disown method */ SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown); lua_rawset(L,-3); /* add accessor fns for using the .get,.set&.fn */ SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); /* add tostring method for better output */ SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); /* add it */ lua_rawset(L,-3); /* metatable into registry */ lua_pop(L,1); /* tidy stack (remove registry) */ SWIG_Lua_get_class_metatable(L,clss->name); SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ lua_pop(L,1); /* tidy stack (remove class metatable) */ } /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ /* helper to add metatable to new lua object */ SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) { if (type->clientdata) /* there is clientdata: so add the metatable */ { SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); if (lua_istable(L,-1)) { lua_setmetatable(L,-2); } else { lua_pop(L,1); } } } /* pushes a new object into the lua stack */ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) { swig_lua_userdata* usr; if (!ptr){ lua_pushnil(L); return; } usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */ usr->ptr=ptr; /* set the ptr */ usr->type=type; usr->own=own; #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) _SWIG_Lua_AddMetatable(L,type); /* add metatable */ #endif } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) { swig_lua_userdata* usr; swig_cast_info *cast; if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ if (usr) { if (flags & SWIG_POINTER_DISOWN) /* must disown the object */ { usr->own=0; } if (!type) /* special cast void*, no casting fn */ { *ptr=usr->ptr; return SWIG_OK; /* ok */ } cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */ if (cast) { int newmemory = 0; *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ return SWIG_OK; /* ok */ } } return SWIG_ERROR; /* error */ } SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, int argnum,const char* func_name){ void* result; if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", func_name,(type && type->str)?type->str:"void*",argnum); lua_error(L); } return result; } /* pushes a packed userdata. user for member fn pointers only */ SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) { swig_lua_rawdata* raw; assert(ptr); /* not acceptable to pass in a NULL value */ raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ raw->type=type; raw->own=0; memcpy(raw->data,ptr,size); /* copy the data */ _SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* converts a packed userdata. user for member fn pointers only */ SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) { swig_lua_rawdata* raw; raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ if (!raw) return SWIG_ERROR; /* error */ if (type==0 || type==raw->type) /* void* or identical type */ { memcpy(ptr,raw->data,size); /* copy it */ return SWIG_OK; /* ok */ } return SWIG_ERROR; /* error */ } /* a function to get the typestring of a piece of data */ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) { swig_lua_userdata* usr; if (lua_isuserdata(L,tp)) { usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ if (usr && usr->type && usr->type->str) return usr->type->str; return "userdata (unknown type)"; } return lua_typename(L,lua_type(L,tp)); } /* lua callable function to get the userdata's type */ SWIGRUNTIME int SWIG_Lua_type(lua_State* L) { lua_pushstring(L,SWIG_Lua_typename(L,1)); return 1; } /* lua callable function to compare userdata's value the issue is that two userdata may point to the same thing but to lua, they are different objects */ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) { int result; swig_lua_userdata *usr1,*usr2; if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ return 0; /* nil reply */ usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ result=(usr1->ptr==usr2->ptr); lua_pushboolean(L,result); return 1; } /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* Install Constants */ SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { int i; for (i = 0; constants[i].type; i++) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); lua_pushnumber(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: lua_pushstring(L,constants[i].name); lua_pushnumber(L,(lua_Number)constants[i].dvalue); lua_rawset(L,-3); break; case SWIG_LUA_CHAR: lua_pushstring(L,constants[i].name); lua_pushfstring(L,"%c",(char)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_STRING: lua_pushstring(L,constants[i].name); lua_pushstring(L,(char *) constants[i].pvalue); lua_rawset(L,-3); break; case SWIG_LUA_POINTER: lua_pushstring(L,constants[i].name); SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0); lua_rawset(L,-3); break; case SWIG_LUA_BINARY: lua_pushstring(L,constants[i].name); SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); lua_rawset(L,-3); break; default: break; } } } #endif /* ----------------------------------------------------------------------------- * executing lua code from within the wrapper * ----------------------------------------------------------------------------- */ #ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */ #define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) #endif /* Executes a C string in Lua a really simple way of calling lua from C Unfortunately lua keeps changing its API's, so we need a conditional compile In lua 5.0.X its lua_dostring() In lua 5.1.X its luaL_dostring() */ SWIGINTERN int SWIG_Lua_dostring(lua_State *L, const char* str) { int ok,top; if (str==0 || str[0]==0) return 0; /* nothing to do */ top=lua_gettop(L); /* save stack */ #if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */ #else ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */ #endif if (ok!=0) { SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); } lua_settop(L,top); /* restore the stack */ return ok; } #ifdef __cplusplus } #endif /* ------------------------------ end luarun.swg ------------------------------ */ /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_librdf_digest_s swig_types[0] #define SWIGTYPE_p_librdf_hash_s swig_types[1] #define SWIGTYPE_p_librdf_iterator_s swig_types[2] #define SWIGTYPE_p_librdf_log_func swig_types[3] #define SWIGTYPE_p_librdf_log_message swig_types[4] #define SWIGTYPE_p_librdf_model_s swig_types[5] #define SWIGTYPE_p_librdf_node_s swig_types[6] #define SWIGTYPE_p_librdf_parser_s swig_types[7] #define SWIGTYPE_p_librdf_query swig_types[8] #define SWIGTYPE_p_librdf_query_results swig_types[9] #define SWIGTYPE_p_librdf_serializer_s swig_types[10] #define SWIGTYPE_p_librdf_statement_s swig_types[11] #define SWIGTYPE_p_librdf_storage_s swig_types[12] #define SWIGTYPE_p_librdf_stream_s swig_types[13] #define SWIGTYPE_p_librdf_uri_s swig_types[14] #define SWIGTYPE_p_librdf_world_s swig_types[15] #define SWIGTYPE_p_p_char swig_types[16] #define SWIGTYPE_p_raptor_locator swig_types[17] static swig_type_info *swig_types[19]; static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_name "redland" #define SWIG_init luaopen_redland #define SWIG_init_user luaopen_redland_user #define SWIG_LUACODE luaopen_redland_luacode #ifdef __cplusplus /* generic alloc/dealloc fns*/ #define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN] #define SWIG_FREE_ARRAY(PTR) delete[] PTR #else #define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE)) #define SWIG_FREE_ARRAY(PTR) free(PTR) #endif /* counting the size of arrays:*/ SWIGINTERN int SWIG_itable_size(lua_State* L, int index) { int n=0; while(1){ lua_rawgeti(L,index,n+1); if (lua_isnil(L,-1))break; ++n; lua_pop(L,1); } lua_pop(L,1); return n; } SWIGINTERN int SWIG_table_size(lua_State* L, int index) { int n=0; lua_pushnil(L); /* first key*/ while (lua_next(L, index) != 0) { ++n; lua_pop(L, 1); /* removes `value'; keeps `key' for next iteration*/ } return n; } /* super macro to declare array typemap helper fns */ #define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)\ SWIGINTERN int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\ int i;\ for (i = 0; i < size; i++) {\ lua_rawgeti(L,index,i+1);\ if (lua_isnumber(L,-1)){\ array[i] = (TYPE)lua_tonumber(L,-1);\ } else {\ lua_pop(L,1);\ return 0;\ }\ lua_pop(L,1);\ }\ return 1;\ }\ SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\ TYPE *array;\ if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {\ lua_pushfstring(L,"expected a table of size %d",size);\ return 0;\ }\ array=SWIG_ALLOC_ARRAY(TYPE,size);\ if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\ lua_pushstring(L,"table must contain numbers");\ SWIG_FREE_ARRAY(array);\ return 0;\ }\ return array;\ }\ SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\ {\ TYPE *array;\ if (!lua_istable(L,index)) {\ lua_pushstring(L,"expected a table");\ return 0;\ }\ *size=SWIG_itable_size(L,index);\ if (*size<1){\ lua_pushstring(L,"table appears to be empty");\ return 0;\ }\ array=SWIG_ALLOC_ARRAY(TYPE,*size);\ if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\ lua_pushstring(L,"table must contain numbers");\ SWIG_FREE_ARRAY(array);\ return 0;\ }\ return array;\ }\ SWIGINTERN void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\ int i;\ lua_newtable(L);\ for (i = 0; i < size; i++){\ lua_pushnumber(L,(lua_Number)array[i]);\ lua_rawseti(L,-2,i+1);/* -1 is the number, -2 is the table*/ \ }\ } SWIG_DECLARE_TYPEMAP_ARR_FN(schar,signed char); SWIG_DECLARE_TYPEMAP_ARR_FN(uchar,unsigned char); SWIG_DECLARE_TYPEMAP_ARR_FN(int,int); SWIG_DECLARE_TYPEMAP_ARR_FN(uint,unsigned int); SWIG_DECLARE_TYPEMAP_ARR_FN(short,short); SWIG_DECLARE_TYPEMAP_ARR_FN(ushort,unsigned short); SWIG_DECLARE_TYPEMAP_ARR_FN(long,long); SWIG_DECLARE_TYPEMAP_ARR_FN(ulong,unsigned long); SWIG_DECLARE_TYPEMAP_ARR_FN(float,float); SWIG_DECLARE_TYPEMAP_ARR_FN(double,double); SWIGINTERN int SWIG_read_ptr_array(lua_State* L,int index,void **array,int size,swig_type_info *type){ int i; for (i = 0; i < size; i++) { lua_rawgeti(L,index,i+1); if (!lua_isuserdata(L,-1) || SWIG_ConvertPtr(L,-1,&array[i],type,0)==-1){ lua_pop(L,1); return 0; } lua_pop(L,1); } return 1; } SWIGINTERN void** SWIG_get_ptr_array_fixed(lua_State* L, int index, int size,swig_type_info *type){ void **array; if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) { lua_pushfstring(L,"expected a table of size %d",size); return 0; } array=SWIG_ALLOC_ARRAY(void*,size); if (!SWIG_read_ptr_array(L,index,array,size,type)){ lua_pushfstring(L,"table must contain pointers of type %s",type->name); SWIG_FREE_ARRAY(array); return 0; } return array; } SWIGINTERN void** SWIG_get_ptr_array_var(lua_State* L, int index, int* size,swig_type_info *type){ void **array; if (!lua_istable(L,index)) { lua_pushstring(L,"expected a table"); return 0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring(L,"table appears to be empty"); return 0; } array=SWIG_ALLOC_ARRAY(void*,*size); if (!SWIG_read_ptr_array(L,index,array,*size,type)){ lua_pushfstring(L,"table must contain pointers of type %s",type->name); SWIG_FREE_ARRAY(array); return 0; } return array; } SWIGINTERN void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_type_info *type,int own){ int i; lua_newtable(L); for (i = 0; i < size; i++){ SWIG_NewPointerObj(L,array[i],type,own); lua_rawseti(L,-2,i+1);/* -1 is the number, -2 is the table*/ } } /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) { int ret = lua_isstring(L, idx); if (!ret) ret = lua_isnil(L, idx); return ret; } #ifdef __cplusplus extern "C" { #endif static int _wrap_librdf_new_digest(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_digest *result = 0 ; SWIG_check_num_args("librdf_new_digest",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_digest",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_digest",2,"char *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_digest",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_digest *)librdf_new_digest(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_digest_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_digest(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; SWIG_check_num_args("librdf_free_digest",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_digest",1,"librdf_digest *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_free_digest",1,SWIGTYPE_p_librdf_digest_s); } librdf_free_digest(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_digest_init(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; SWIG_check_num_args("librdf_digest_init",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_init",1,"librdf_digest *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_digest_init",1,SWIGTYPE_p_librdf_digest_s); } librdf_digest_init(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_digest_update(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; SWIG_check_num_args("librdf_digest_update",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update",1,"librdf_digest *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update",2,"char const *"); if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_digest_update",3,"size_t"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_digest_update",1,SWIGTYPE_p_librdf_digest_s); } arg2 = (char *)lua_tostring(L, 2); SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (size_t)lua_tonumber(L, 3); librdf_digest_update(arg1,(char const *)arg2,arg3); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_digest_update_string(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; SWIG_check_num_args("librdf_digest_update_string",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update_string",1,"librdf_digest *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update_string",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_digest_update_string",1,SWIGTYPE_p_librdf_digest_s); } arg2 = (char *)lua_tostring(L, 2); librdf_digest_update_string(arg1,(char const *)arg2); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_digest_final(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; SWIG_check_num_args("librdf_digest_final",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_final",1,"librdf_digest *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_digest_final",1,SWIGTYPE_p_librdf_digest_s); } librdf_digest_final(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_digest_to_string(lua_State* L) { int SWIG_arg = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_digest_to_string",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_to_string",1,"librdf_digest *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ SWIG_fail_ptr("librdf_digest_to_string",1,SWIGTYPE_p_librdf_digest_s); } result = (char *)librdf_digest_to_string(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_hash(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_hash *result = 0 ; SWIG_check_num_args("librdf_new_hash",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_hash",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_hash_from_string(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_hash *result = 0 ; SWIG_check_num_args("librdf_new_hash_from_string",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_string",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_string",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_hash_from_string",3,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_hash_from_string",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_hash_from_array_of_strings(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; librdf_hash *result = 0 ; SWIG_check_num_args("librdf_new_hash_from_array_of_strings",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",3,"char const **"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_hash_from_array_of_strings",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){ SWIG_fail_ptr("librdf_new_hash_from_array_of_strings",3,SWIGTYPE_p_p_char); } result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_hash_to_string(lua_State* L) { int SWIG_arg = 0; librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; char *result = 0 ; SWIG_check_num_args("librdf_hash_to_string",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_hash_to_string",1,"librdf_hash *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_hash_to_string",2,"char const *[]"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_hash_s,0))){ SWIG_fail_ptr("librdf_hash_to_string",1,SWIGTYPE_p_librdf_hash_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){ SWIG_fail_ptr("librdf_hash_to_string",2,SWIGTYPE_p_p_char); } result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_hash(lua_State* L) { int SWIG_arg = 0; librdf_hash *arg1 = (librdf_hash *) 0 ; SWIG_check_num_args("librdf_free_hash",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_hash",1,"librdf_hash *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_hash_s,0))){ SWIG_fail_ptr("librdf_free_hash",1,SWIGTYPE_p_librdf_hash_s); } librdf_free_hash(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_world(lua_State* L) { int SWIG_arg = 0; librdf_world *result = 0 ; SWIG_check_num_args("librdf_new_world",0,0) result = (librdf_world *)librdf_new_world(); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_world_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_world(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; SWIG_check_num_args("librdf_free_world",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_world",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_free_world",1,SWIGTYPE_p_librdf_world_s); } librdf_free_world(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_world_open(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; SWIG_check_num_args("librdf_world_open",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_open",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_world_open",1,SWIGTYPE_p_librdf_world_s); } librdf_world_open(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_world_get_feature(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_world_get_feature",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_get_feature",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_get_feature",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_world_get_feature",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_world_get_feature",2,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_world_get_feature(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_world_set_feature(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_world_set_feature",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_set_feature",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_set_feature",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_world_set_feature",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_world_set_feature",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_world_set_feature",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_world_set_feature",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_world_set_feature(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_get_accept_header(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_parser_get_accept_header",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_accept_header",1,"librdf_parser *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_get_accept_header",1,SWIGTYPE_p_librdf_parser_s); } result = (char *)librdf_parser_get_accept_header(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_world_set_logger(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; librdf_log_func *argp3 ; SWIG_check_num_args("librdf_world_set_logger",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_set_logger",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_set_logger",2,"void *"); if(!lua_isuserdata(L,3)) SWIG_fail_arg("librdf_world_set_logger",3,"librdf_log_func"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_world_set_logger",1,SWIGTYPE_p_librdf_world_s); } arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"librdf_world_set_logger"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_librdf_log_func,0))){ SWIG_fail_ptr("librdf_world_set_logger",3,SWIGTYPE_p_librdf_log_func); } arg3 = *argp3; librdf_world_set_logger(arg1,arg2,arg3); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_iterator(lua_State* L) { int SWIG_arg = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; SWIG_check_num_args("librdf_free_iterator",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_iterator",1,"librdf_iterator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ SWIG_fail_ptr("librdf_free_iterator",1,SWIGTYPE_p_librdf_iterator_s); } librdf_free_iterator(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_iterator_end(lua_State* L) { int SWIG_arg = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; int result; SWIG_check_num_args("librdf_iterator_end",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_end",1,"librdf_iterator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ SWIG_fail_ptr("librdf_iterator_end",1,SWIGTYPE_p_librdf_iterator_s); } result = (int)librdf_iterator_end(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_iterator_get_object(lua_State* L) { int SWIG_arg = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_iterator_get_object",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_get_object",1,"librdf_iterator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ SWIG_fail_ptr("librdf_iterator_get_object",1,SWIGTYPE_p_librdf_iterator_s); } result = (librdf_node *)librdf_iterator_get_object(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_iterator_get_context(lua_State* L) { int SWIG_arg = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_iterator_get_context",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_get_context",1,"librdf_iterator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ SWIG_fail_ptr("librdf_iterator_get_context",1,SWIGTYPE_p_librdf_iterator_s); } result = (librdf_node *)librdf_iterator_get_context(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_iterator_next(lua_State* L) { int SWIG_arg = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; int result; SWIG_check_num_args("librdf_iterator_next",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_next",1,"librdf_iterator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ SWIG_fail_ptr("librdf_iterator_next",1,SWIGTYPE_p_librdf_iterator_s); } result = (int)librdf_iterator_next(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_uri(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_new_uri",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri",2,"char *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_uri",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_uri *)librdf_new_uri(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_uri_from_uri(lua_State* L) { int SWIG_arg = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_new_uri_from_uri",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri_from_uri",1,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_uri_from_uri",1,SWIGTYPE_p_librdf_uri_s); } result = (librdf_uri *)librdf_new_uri_from_uri(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_uri_from_filename(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_new_uri_from_filename",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri_from_filename",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri_from_filename",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_uri_from_filename",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_uri(lua_State* L) { int SWIG_arg = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; SWIG_check_num_args("librdf_free_uri",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_uri",1,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_free_uri",1,SWIGTYPE_p_librdf_uri_s); } librdf_free_uri(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_uri_to_string(lua_State* L) { int SWIG_arg = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_uri_to_string",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_to_string",1,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_uri_to_string",1,SWIGTYPE_p_librdf_uri_s); } result = (char *)librdf_uri_to_string(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_uri_equals(lua_State* L) { int SWIG_arg = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; int result; SWIG_check_num_args("librdf_uri_equals",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_equals",1,"librdf_uri *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_uri_equals",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_uri_equals",1,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_uri_equals",2,SWIGTYPE_p_librdf_uri_s); } result = (int)librdf_uri_equals(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_uri_compare(lua_State* L) { int SWIG_arg = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; int result; SWIG_check_num_args("librdf_uri_compare",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_compare",1,"librdf_uri *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_uri_compare",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_uri_compare",1,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_uri_compare",2,SWIGTYPE_p_librdf_uri_s); } result = (int)librdf_uri_compare(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node",1,SWIGTYPE_p_librdf_world_s); } result = (librdf_node *)librdf_new_node(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_uri_string(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_uri_string",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_string",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_string",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_uri_string",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_uri(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_uri",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_node_from_uri",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_uri",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_node_from_uri",2,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_uri_local_name(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_uri_local_name",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",2,"librdf_uri *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",3,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_uri_local_name",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_node_from_uri_local_name",2,SWIGTYPE_p_librdf_uri_s); } arg3 = (char *)lua_tostring(L, 3); result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_normalised_uri_string(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_normalised_uri_string",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",4,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_literal(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_literal",2,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_literal",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_literal",2,"char const *"); if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_literal",3,"char const *"); if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("librdf_new_node_from_literal",4,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_literal",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ arg4 = (int)lua_tonumber(L, 4); } result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_typed_literal(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_typed_literal",2,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_typed_literal",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_typed_literal",2,"char const *"); if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_typed_literal",3,"char const *"); if(lua_gettop(L)>=4 && !SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_typed_literal",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_typed_literal",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); if(lua_gettop(L)>=3){ arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_node_from_typed_literal",4,SWIGTYPE_p_librdf_uri_s); } } result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_node(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_node",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_node",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_new_node_from_node",1,SWIGTYPE_p_librdf_node_s); } result = (librdf_node *)librdf_new_node_from_node(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_node_from_blank_identifier(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_new_node_from_blank_identifier",1,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",1,"librdf_world *"); if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_node_from_blank_identifier",1,SWIGTYPE_p_librdf_world_s); } if(lua_gettop(L)>=2){ arg2 = (char *)lua_tostring(L, 2); } result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_node(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; SWIG_check_num_args("librdf_free_node",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_node",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_free_node",1,SWIGTYPE_p_librdf_node_s); } librdf_free_node(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_uri(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_node_get_uri",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_uri",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_uri",1,SWIGTYPE_p_librdf_node_s); } result = (librdf_uri *)librdf_node_get_uri(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_type(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_get_type",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_type",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_type",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_get_type(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_literal_value(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_node_get_literal_value",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_literal_value",1,SWIGTYPE_p_librdf_node_s); } result = (char *)librdf_node_get_literal_value(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_literal_value_as_latin1(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_node_get_literal_value_as_latin1",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_as_latin1",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_literal_value_as_latin1",1,SWIGTYPE_p_librdf_node_s); } result = (char *)librdf_node_get_literal_value_as_latin1(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_literal_value_language(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_node_get_literal_value_language",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_language",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_literal_value_language",1,SWIGTYPE_p_librdf_node_s); } result = (char *)librdf_node_get_literal_value_language(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_literal_value_datatype_uri(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_node_get_literal_value_datatype_uri",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_datatype_uri",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_literal_value_datatype_uri",1,SWIGTYPE_p_librdf_node_s); } result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_literal_value_is_wf_xml(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_get_literal_value_is_wf_xml",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_is_wf_xml",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_literal_value_is_wf_xml",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_li_ordinal(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_get_li_ordinal",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_li_ordinal",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_li_ordinal",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_get_li_ordinal(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_to_string(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_node_to_string",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_to_string",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_to_string",1,SWIGTYPE_p_librdf_node_s); } result = (char *)librdf_node_to_string(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_get_blank_identifier(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_node_get_blank_identifier",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_blank_identifier",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_get_blank_identifier",1,SWIGTYPE_p_librdf_node_s); } result = (char *)librdf_node_get_blank_identifier(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_is_resource(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_is_resource",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_resource",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_is_resource",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_is_resource(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_is_literal(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_is_literal",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_literal",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_is_literal",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_is_literal(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_is_blank(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_is_blank",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_blank",1,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_is_blank",1,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_is_blank(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_node_equals(lua_State* L) { int SWIG_arg = 0; librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_node_equals",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_equals",1,"librdf_node *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_node_equals",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_equals",1,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_node_equals",2,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_node_equals(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_statement(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_statement *result = 0 ; SWIG_check_num_args("librdf_new_statement",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_statement",1,SWIGTYPE_p_librdf_world_s); } result = (librdf_statement *)librdf_new_statement(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_statement_from_statement(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *result = 0 ; SWIG_check_num_args("librdf_new_statement_from_statement",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement_from_statement",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_new_statement_from_statement",1,SWIGTYPE_p_librdf_statement_s); } result = (librdf_statement *)librdf_new_statement_from_statement(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_statement_from_nodes(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; librdf_statement *result = 0 ; SWIG_check_num_args("librdf_new_statement_from_nodes",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement_from_nodes",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_statement_from_nodes",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_statement_from_nodes",3,"librdf_node *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_statement_from_nodes",4,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_statement_from_nodes",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_new_statement_from_nodes",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_new_statement_from_nodes",3,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_new_statement_from_nodes",4,SWIGTYPE_p_librdf_node_s); } result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_statement(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; SWIG_check_num_args("librdf_free_statement",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_statement",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_free_statement",1,SWIGTYPE_p_librdf_statement_s); } librdf_free_statement(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_get_subject(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_statement_get_subject",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_subject",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_get_subject",1,SWIGTYPE_p_librdf_statement_s); } result = (librdf_node *)librdf_statement_get_subject(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_set_subject(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; SWIG_check_num_args("librdf_statement_set_subject",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_subject",1,"librdf_statement *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_subject",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_set_subject",1,SWIGTYPE_p_librdf_statement_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_statement_set_subject",2,SWIGTYPE_p_librdf_node_s); } librdf_statement_set_subject(arg1,arg2); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_get_predicate(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_statement_get_predicate",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_predicate",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_get_predicate",1,SWIGTYPE_p_librdf_statement_s); } result = (librdf_node *)librdf_statement_get_predicate(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_set_predicate(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; SWIG_check_num_args("librdf_statement_set_predicate",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_predicate",1,"librdf_statement *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_predicate",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_set_predicate",1,SWIGTYPE_p_librdf_statement_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_statement_set_predicate",2,SWIGTYPE_p_librdf_node_s); } librdf_statement_set_predicate(arg1,arg2); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_get_object(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_statement_get_object",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_object",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_get_object",1,SWIGTYPE_p_librdf_statement_s); } result = (librdf_node *)librdf_statement_get_object(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_set_object(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; SWIG_check_num_args("librdf_statement_set_object",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_object",1,"librdf_statement *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_object",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_set_object",1,SWIGTYPE_p_librdf_statement_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_statement_set_object",2,SWIGTYPE_p_librdf_node_s); } librdf_statement_set_object(arg1,arg2); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_equals(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_statement_equals",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_equals",1,"librdf_statement *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_equals",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_equals",1,SWIGTYPE_p_librdf_statement_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_equals",2,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_statement_equals(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_match(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_statement_match",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_match",1,"librdf_statement *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_match",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_match",1,SWIGTYPE_p_librdf_statement_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_match",2,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_statement_match(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_to_string(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_statement_to_string",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_to_string",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_to_string",1,SWIGTYPE_p_librdf_statement_s); } result = (char *)librdf_statement_to_string(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_statement_is_complete(lua_State* L) { int SWIG_arg = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_statement_is_complete",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_is_complete",1,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_statement_is_complete",1,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_statement_is_complete(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_model(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; librdf_model *result = 0 ; SWIG_check_num_args("librdf_new_model",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_model",2,"librdf_storage *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_model",3,"char *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_model",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_storage_s,0))){ SWIG_fail_ptr("librdf_new_model",2,SWIGTYPE_p_librdf_storage_s); } arg3 = (char *)lua_tostring(L, 3); result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_model_with_options(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; librdf_model *result = 0 ; SWIG_check_num_args("librdf_new_model_with_options",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model_with_options",1,"librdf_world *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_model_with_options",2,"librdf_storage *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_model_with_options",3,"librdf_hash *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_model_with_options",1,SWIGTYPE_p_librdf_world_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_storage_s,0))){ SWIG_fail_ptr("librdf_new_model_with_options",2,SWIGTYPE_p_librdf_storage_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_hash_s,0))){ SWIG_fail_ptr("librdf_new_model_with_options",3,SWIGTYPE_p_librdf_hash_s); } result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_model_from_model(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_model *result = 0 ; SWIG_check_num_args("librdf_new_model_from_model",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model_from_model",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_new_model_from_model",1,SWIGTYPE_p_librdf_model_s); } result = (librdf_model *)librdf_new_model_from_model(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_model(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; SWIG_check_num_args("librdf_free_model",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_model",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_free_model",1,SWIGTYPE_p_librdf_model_s); } librdf_free_model(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_size(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_model_size",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_size",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_size",1,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_model_size(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_add(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_add",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add",3,"librdf_node *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_model_add",4,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_add",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add",3,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add",4,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_add(arg1,arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_add_string_literal_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; int result; SWIG_check_num_args("librdf_model_add_string_literal_statement",4,6) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_string_literal_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_string_literal_statement",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_string_literal_statement",3,"librdf_node *"); if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_string_literal_statement",4,"char const *"); if(lua_gettop(L)>=5 && !SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_string_literal_statement",5,"char const *"); if(lua_gettop(L)>=6 && !lua_isnumber(L,6)) SWIG_fail_arg("librdf_model_add_string_literal_statement",6,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_add_string_literal_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add_string_literal_statement",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add_string_literal_statement",3,SWIGTYPE_p_librdf_node_s); } arg4 = (char *)lua_tostring(L, 4); if(lua_gettop(L)>=5){ arg5 = (char *)lua_tostring(L, 5); } if(lua_gettop(L)>=6){ arg6 = (int)lua_tonumber(L, 6); } result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_add_typed_literal_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; int result; SWIG_check_num_args("librdf_model_add_typed_literal_statement",5,6) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",3,"librdf_node *"); if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",4,"char *"); if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",5,"char *"); if(lua_gettop(L)>=6 && !SWIG_isptrtype(L,6)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",6,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_add_typed_literal_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add_typed_literal_statement",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_add_typed_literal_statement",3,SWIGTYPE_p_librdf_node_s); } arg4 = (char *)lua_tostring(L, 4); arg5 = (char *)lua_tostring(L, 5); if(lua_gettop(L)>=6){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_add_typed_literal_statement",6,SWIGTYPE_p_librdf_uri_s); } } result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_add_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_model_add_statement",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_statement",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_add_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_add_statement",2,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_model_add_statement(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_add_statements(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; int result; SWIG_check_num_args("librdf_model_add_statements",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_statements",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_statements",2,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_add_statements",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_model_add_statements",2,SWIGTYPE_p_librdf_stream_s); } result = (int)librdf_model_add_statements(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_remove_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_model_remove_statement",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_remove_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_remove_statement",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_remove_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_remove_statement",2,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_model_remove_statement(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_contains_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_model_contains_statement",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_contains_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_contains_statement",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_contains_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_contains_statement",2,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_model_contains_statement(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_model_as_stream",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_as_stream",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_as_stream",1,SWIGTYPE_p_librdf_model_s); } result = (librdf_stream *)librdf_model_as_stream(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_find_statements(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_model_find_statements",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_find_statements",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_find_statements",2,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_find_statements",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_find_statements",2,SWIGTYPE_p_librdf_statement_s); } result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_find_statements_in_context(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_model_find_statements_in_context",2,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_find_statements_in_context",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_find_statements_in_context",2,"librdf_statement *"); if(lua_gettop(L)>=3 && !SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_find_statements_in_context",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_find_statements_in_context",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_find_statements_in_context",2,SWIGTYPE_p_librdf_statement_s); } if(lua_gettop(L)>=3){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_find_statements_in_context",3,SWIGTYPE_p_librdf_node_s); } } result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_sources(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_sources",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_sources",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_sources",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_sources",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_sources",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_sources",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_sources",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_arcs(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_arcs",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_arcs",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_targets(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_targets",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_targets",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_targets",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_targets",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_targets",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_targets",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_targets",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_source(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_model_get_source",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_source",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_source",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_source",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_source",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_source",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_source",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_arc(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_model_get_arc",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arc",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arc",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_arc",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_arc",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arc",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arc",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_arcs_out(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_arcs_out",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs_out",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs_out",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs_out",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs_out",2,SWIGTYPE_p_librdf_node_s); } result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_arcs_in(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_arcs_in",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs_in",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs_in",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs_in",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_arcs_in",2,SWIGTYPE_p_librdf_node_s); } result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_has_arc_in(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_has_arc_in",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_has_arc_in",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_has_arc_in",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_has_arc_in",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_in",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_in",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_in",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_has_arc_out(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_has_arc_out",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_has_arc_out",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_has_arc_out",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_has_arc_out",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_out",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_out",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_has_arc_out",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_target(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_model_get_target",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_target",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_target",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_target",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_target",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_target",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_get_target",3,SWIGTYPE_p_librdf_node_s); } result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_context_add_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_model_context_add_statement",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_add_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_add_statement",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_add_statement",3,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statement",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statement",3,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_context_add_statements(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; int result; SWIG_check_num_args("librdf_model_context_add_statements",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_add_statements",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_add_statements",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_add_statements",3,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statements",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statements",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_model_context_add_statements",3,SWIGTYPE_p_librdf_stream_s); } result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_context_remove_statement(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; int result; SWIG_check_num_args("librdf_model_context_remove_statement",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_remove_statement",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_remove_statement",2,"librdf_node *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_remove_statement",3,"librdf_statement *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_context_remove_statement",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_context_remove_statement",2,SWIGTYPE_p_librdf_node_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_statement_s,0))){ SWIG_fail_ptr("librdf_model_context_remove_statement",3,SWIGTYPE_p_librdf_statement_s); } result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_context_remove_statements(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_context_remove_statements",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_remove_statements",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_remove_statements",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_context_remove_statements",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_context_remove_statements",2,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_context_remove_statements(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_context_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_model_context_as_stream",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_as_stream",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_as_stream",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_context_as_stream",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_context_as_stream",2,SWIGTYPE_p_librdf_node_s); } result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_sync(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; SWIG_check_num_args("librdf_model_sync",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_sync",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_sync",1,SWIGTYPE_p_librdf_model_s); } librdf_model_sync(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_contexts(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_iterator *result = 0 ; SWIG_check_num_args("librdf_model_get_contexts",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_contexts",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_contexts",1,SWIGTYPE_p_librdf_model_s); } result = (librdf_iterator *)librdf_model_get_contexts(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_contains_context(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_contains_context",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_contains_context",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_contains_context",2,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_contains_context",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_contains_context",2,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_contains_context(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_get_feature(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_model_get_feature",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_feature",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_feature",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_get_feature",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_get_feature",2,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_model_get_feature(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_set_feature(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_model_set_feature",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_set_feature",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_set_feature",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_set_feature",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_set_feature",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_set_feature",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_model_set_feature",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_model_set_feature(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_load(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; int result; SWIG_check_num_args("librdf_model_load",2,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_load",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_load",2,"librdf_uri *"); if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_load",3,"char const *"); if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_load",4,"char const *"); if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_load",5,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_load",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_load",2,SWIGTYPE_p_librdf_uri_s); } if(lua_gettop(L)>=3){ arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ arg4 = (char *)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_load",5,SWIGTYPE_p_librdf_uri_s); } } result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_query_execute(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; librdf_query_results *result = 0 ; SWIG_check_num_args("librdf_model_query_execute",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_query_execute",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_query_execute",2,"librdf_query *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_query_execute",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_model_query_execute",2,SWIGTYPE_p_librdf_query); } result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query_results,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_to_string(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; char *result = 0 ; SWIG_check_num_args("librdf_model_to_string",2,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_to_string",1,"librdf_model *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_to_string",2,"librdf_uri *"); if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_to_string",3,"char const *"); if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_to_string",4,"char const *"); if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_to_string",5,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_to_string",1,SWIGTYPE_p_librdf_model_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_to_string",2,SWIGTYPE_p_librdf_uri_s); } if(lua_gettop(L)>=3){ arg3 = (char *)lua_tostring(L, 3); } if(lua_gettop(L)>=4){ arg4 = (char *)lua_tostring(L, 4); } if(lua_gettop(L)>=5){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_model_to_string",5,SWIGTYPE_p_librdf_uri_s); } } result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_transaction_start(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_model_transaction_start",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_start",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_transaction_start",1,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_model_transaction_start(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_transaction_commit(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_model_transaction_commit",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_commit",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_transaction_commit",1,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_model_transaction_commit(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_model_transaction_rollback(lua_State* L) { int SWIG_arg = 0; librdf_model *arg1 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_model_transaction_rollback",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_rollback",1,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_model_transaction_rollback",1,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_model_transaction_rollback(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_storage(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; librdf_storage *result = 0 ; SWIG_check_num_args("librdf_new_storage",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_storage",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_storage",2,"char *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_storage",3,"char *"); if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_storage",4,"char *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_storage",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); arg4 = (char *)lua_tostring(L, 4); result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_storage_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_storage_from_storage(lua_State* L) { int SWIG_arg = 0; librdf_storage *arg1 = (librdf_storage *) 0 ; librdf_storage *result = 0 ; SWIG_check_num_args("librdf_new_storage_from_storage",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_storage_from_storage",1,"librdf_storage *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_storage_s,0))){ SWIG_fail_ptr("librdf_new_storage_from_storage",1,SWIGTYPE_p_librdf_storage_s); } result = (librdf_storage *)librdf_new_storage_from_storage(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_storage_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_storage(lua_State* L) { int SWIG_arg = 0; librdf_storage *arg1 = (librdf_storage *) 0 ; SWIG_check_num_args("librdf_free_storage",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_storage",1,"librdf_storage *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_storage_s,0))){ SWIG_fail_ptr("librdf_free_storage",1,SWIGTYPE_p_librdf_storage_s); } librdf_free_storage(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_check_name(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; int result; SWIG_check_num_args("librdf_parser_check_name",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_check_name",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_check_name",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_parser_check_name",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (int)librdf_parser_check_name(arg1,(char const *)arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_parser(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_parser *result = 0 ; SWIG_check_num_args("librdf_new_parser",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_parser",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_parser",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_parser",3,"char const *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_parser",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_parser",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_parser",4,SWIGTYPE_p_librdf_uri_s); } result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_parser_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_parser(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; SWIG_check_num_args("librdf_free_parser",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_parser",1,"librdf_parser *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_free_parser",1,SWIGTYPE_p_librdf_parser_s); } librdf_free_parser(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_parser_parse_as_stream",2,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_as_stream",1,"librdf_parser *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_parse_as_stream",2,"librdf_uri *"); if(lua_gettop(L)>=3 && !SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_as_stream",3,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_as_stream",1,SWIGTYPE_p_librdf_parser_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_as_stream",2,SWIGTYPE_p_librdf_uri_s); } if(lua_gettop(L)>=3){ if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_as_stream",3,SWIGTYPE_p_librdf_uri_s); } } result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_into_model(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_parser_parse_into_model",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_into_model",1,"librdf_parser *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_parse_into_model",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_into_model",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_into_model",4,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_into_model",1,SWIGTYPE_p_librdf_parser_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_into_model",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_into_model",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_parser_parse_into_model",4,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_string_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_parser_parse_string_as_stream",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",1,"librdf_parser *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",3,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_string_as_stream",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_string_as_stream",3,SWIGTYPE_p_librdf_uri_s); } result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_string_into_model(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_parser_parse_string_into_model",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_into_model",1,"librdf_parser *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_into_model",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_into_model",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_string_into_model",4,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_string_into_model",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_string_into_model",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_parser_parse_string_into_model",4,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_counted_string_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_parser_parse_counted_string_as_stream",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",1,"librdf_parser *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",2,"char const *"); if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",3,"size_t"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_counted_string_as_stream",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (char *)lua_tostring(L, 2); SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (size_t)lua_tonumber(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_counted_string_as_stream",4,SWIGTYPE_p_librdf_uri_s); } result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_parse_counted_string_into_model(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_parser_parse_counted_string_into_model",5,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",1,"librdf_parser *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",2,"char const *"); if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",3,"size_t"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",4,"librdf_uri *"); if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",5,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (char *)lua_tostring(L, 2); SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (size_t)lua_tonumber(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",4,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",5,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_get_feature(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_parser_get_feature",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_feature",1,"librdf_parser *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_get_feature",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_get_feature",1,SWIGTYPE_p_librdf_parser_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_get_feature",2,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_set_feature(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_parser_set_feature",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_set_feature",1,"librdf_parser *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_set_feature",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_set_feature",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_set_feature",1,SWIGTYPE_p_librdf_parser_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_parser_set_feature",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_parser_set_feature",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_parser_set_feature(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_guess_name(lua_State* L) { int SWIG_arg = 0; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_parser_guess_name",3,3) if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("librdf_parser_guess_name",1,"char const *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name",3,"char const *"); arg1 = (char *)lua_tostring(L, 1); arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_guess_name2(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_parser_guess_name2",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_guess_name2",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name2",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name2",3,"char const *"); if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_parser_guess_name2",4,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_parser_guess_name2",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); arg4 = (char *)lua_tostring(L, 4); result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_get_namespaces_seen_prefix(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; char *result = 0 ; SWIG_check_num_args("librdf_parser_get_namespaces_seen_prefix",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_prefix",1,"librdf_parser *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_prefix",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_get_namespaces_seen_prefix",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (int)lua_tonumber(L, 2); result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_get_namespaces_seen_uri(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; librdf_uri *result = 0 ; SWIG_check_num_args("librdf_parser_get_namespaces_seen_uri",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_uri",1,"librdf_parser *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_uri",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_get_namespaces_seen_uri",1,SWIGTYPE_p_librdf_parser_s); } arg2 = (int)lua_tonumber(L, 2); result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_parser_get_namespaces_seen_count(lua_State* L) { int SWIG_arg = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; int result; SWIG_check_num_args("librdf_parser_get_namespaces_seen_count",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_count",1,"librdf_parser *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ SWIG_fail_ptr("librdf_parser_get_namespaces_seen_count",1,SWIGTYPE_p_librdf_parser_s); } result = (int)librdf_parser_get_namespaces_seen_count(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_query(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; librdf_query *result = 0 ; SWIG_check_num_args("librdf_new_query",5,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_query",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_query",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_query",3,"librdf_uri *"); if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_query",4,"char const *"); if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_new_query",5,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_query",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_query",3,SWIGTYPE_p_librdf_uri_s); } arg4 = (char *)lua_tostring(L, 4); if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_query",5,SWIGTYPE_p_librdf_uri_s); } result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_query_from_query(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; librdf_query *result = 0 ; SWIG_check_num_args("librdf_new_query_from_query",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_query_from_query",1,"librdf_query *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_new_query_from_query",1,SWIGTYPE_p_librdf_query); } result = (librdf_query *)librdf_new_query_from_query(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_query(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; SWIG_check_num_args("librdf_free_query",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_query",1,"librdf_query *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_free_query",1,SWIGTYPE_p_librdf_query); } librdf_free_query(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_execute(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; librdf_query_results *result = 0 ; SWIG_check_num_args("librdf_query_execute",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_execute",1,"librdf_query *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_query_execute",2,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_query_execute",1,SWIGTYPE_p_librdf_query); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_query_execute",2,SWIGTYPE_p_librdf_model_s); } result = (librdf_query_results *)librdf_query_execute(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query_results,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_get_limit(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; int result; SWIG_check_num_args("librdf_query_get_limit",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_get_limit",1,"librdf_query *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_query_get_limit",1,SWIGTYPE_p_librdf_query); } result = (int)librdf_query_get_limit(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_set_limit(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; int result; SWIG_check_num_args("librdf_query_set_limit",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_set_limit",1,"librdf_query *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_set_limit",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_query_set_limit",1,SWIGTYPE_p_librdf_query); } arg2 = (int)lua_tonumber(L, 2); result = (int)librdf_query_set_limit(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_get_offset(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; int result; SWIG_check_num_args("librdf_query_get_offset",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_get_offset",1,"librdf_query *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_query_get_offset",1,SWIGTYPE_p_librdf_query); } result = (int)librdf_query_get_offset(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_set_offset(lua_State* L) { int SWIG_arg = 0; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; int result; SWIG_check_num_args("librdf_query_set_offset",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_set_offset",1,"librdf_query *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_set_offset",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ SWIG_fail_ptr("librdf_query_set_offset",1,SWIGTYPE_p_librdf_query); } arg2 = (int)lua_tonumber(L, 2); result = (int)librdf_query_set_offset(arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_as_stream(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_stream *result = 0 ; SWIG_check_num_args("librdf_query_results_as_stream",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_as_stream",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_as_stream",1,SWIGTYPE_p_librdf_query_results); } result = (librdf_stream *)librdf_query_results_as_stream(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_count(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_get_count",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_count",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_count",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_get_count(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_next(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_next",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_next",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_next",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_next(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_finished(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_finished",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_finished",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_finished",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_finished(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_binding_value(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_query_results_get_binding_value",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_value",1,"librdf_query_results *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_binding_value",1,SWIGTYPE_p_librdf_query_results); } arg2 = (int)lua_tonumber(L, 2); result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_binding_name(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; char *result = 0 ; SWIG_check_num_args("librdf_query_results_get_binding_name",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_name",1,"librdf_query_results *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_name",2,"int"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_binding_name",1,SWIGTYPE_p_librdf_query_results); } arg2 = (int)lua_tonumber(L, 2); result = (char *)librdf_query_results_get_binding_name(arg1,arg2); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_binding_value_by_name(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_query_results_get_binding_value_by_name",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",1,"librdf_query_results *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_binding_value_by_name",1,SWIGTYPE_p_librdf_query_results); } arg2 = (char *)lua_tostring(L, 2); result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_bindings_count(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_get_bindings_count",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_bindings_count",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_bindings_count",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_get_bindings_count(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_to_file(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; int result; SWIG_check_num_args("librdf_query_results_to_file",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file",1,"librdf_query_results *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_query_results_to_file",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_to_file",1,SWIGTYPE_p_librdf_query_results); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_file",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_file",4,SWIGTYPE_p_librdf_uri_s); } result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_to_file2(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; int result; SWIG_check_num_args("librdf_query_results_to_file2",5,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file2",1,"librdf_query_results *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file2",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_file2",3,"char const *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file2",4,"librdf_uri *"); if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_file2",5,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_to_file2",1,SWIGTYPE_p_librdf_query_results); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_file2",4,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_file2",5,SWIGTYPE_p_librdf_uri_s); } result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_to_string(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_query_results_to_string",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_string",1,"librdf_query_results *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_query_results_to_string",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_query_results_to_string",3,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_to_string",1,SWIGTYPE_p_librdf_query_results); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_string",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_string",3,SWIGTYPE_p_librdf_uri_s); } result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_to_string2(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_query_results_to_string2",5,5) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_string2",1,"librdf_query_results *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_string2",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_string2",3,"char const *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_string2",4,"librdf_uri *"); if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_string2",5,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_to_string2",1,SWIGTYPE_p_librdf_query_results); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_string2",4,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_query_results_to_string2",5,SWIGTYPE_p_librdf_uri_s); } result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_query_results(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; SWIG_check_num_args("librdf_free_query_results",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_query_results",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_free_query_results",1,SWIGTYPE_p_librdf_query_results); } librdf_free_query_results(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_is_bindings(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_is_bindings",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_bindings",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_is_bindings",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_is_bindings(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_is_boolean(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_is_boolean",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_boolean",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_is_boolean",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_is_boolean(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_is_graph(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_is_graph",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_graph",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_is_graph",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_is_graph(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_is_syntax(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_is_syntax",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_syntax",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_is_syntax",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_is_syntax(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_query_results_get_boolean(lua_State* L) { int SWIG_arg = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int result; SWIG_check_num_args("librdf_query_results_get_boolean",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_boolean",1,"librdf_query_results *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ SWIG_fail_ptr("librdf_query_results_get_boolean",1,SWIGTYPE_p_librdf_query_results); } result = (int)librdf_query_results_get_boolean(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_check_name(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; int result; SWIG_check_num_args("librdf_serializer_check_name",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_check_name",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_check_name",2,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_serializer_check_name",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_new_serializer(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_serializer *result = 0 ; SWIG_check_num_args("librdf_new_serializer",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_serializer",1,"librdf_world *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_serializer",2,"char const *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_serializer",3,"char const *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_serializer",4,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_new_serializer",1,SWIGTYPE_p_librdf_world_s); } arg2 = (char *)lua_tostring(L, 2); arg3 = (char *)lua_tostring(L, 3); if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_new_serializer",4,SWIGTYPE_p_librdf_uri_s); } result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_serializer_s,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_serializer(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; SWIG_check_num_args("librdf_free_serializer",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_serializer",1,"librdf_serializer *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_free_serializer",1,SWIGTYPE_p_librdf_serializer_s); } librdf_free_serializer(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_serialize_stream_to_file(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; int result; SWIG_check_num_args("librdf_serializer_serialize_stream_to_file",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",1,"librdf_serializer *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",4,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",1,SWIGTYPE_p_librdf_serializer_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",4,SWIGTYPE_p_librdf_stream_s); } result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_serialize_model_to_file(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; int result; SWIG_check_num_args("librdf_serializer_serialize_model_to_file",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",1,"librdf_serializer *"); if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",2,"char const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",3,"librdf_uri *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",4,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",1,SWIGTYPE_p_librdf_serializer_s); } arg2 = (char *)lua_tostring(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",3,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",4,SWIGTYPE_p_librdf_model_s); } result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_serialize_stream_to_string(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_serializer_serialize_stream_to_string",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",1,"librdf_serializer *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",3,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",1,SWIGTYPE_p_librdf_serializer_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",3,SWIGTYPE_p_librdf_stream_s); } result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_serialize_model_to_string(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_serializer_serialize_model_to_string",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",1,"librdf_serializer *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",3,"librdf_model *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",1,SWIGTYPE_p_librdf_serializer_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_model_s,0))){ SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",3,SWIGTYPE_p_librdf_model_s); } result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); lua_pushstring(L,(const char *)result); SWIG_arg++; free(result); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_get_feature(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_serializer_get_feature",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_get_feature",1,"librdf_serializer *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_get_feature",2,"librdf_uri *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_get_feature",1,SWIGTYPE_p_librdf_serializer_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_get_feature",2,SWIGTYPE_p_librdf_uri_s); } result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_set_feature(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; int result; SWIG_check_num_args("librdf_serializer_set_feature",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_set_feature",1,"librdf_serializer *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_set_feature",2,"librdf_uri *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_set_feature",3,"librdf_node *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_set_feature",1,SWIGTYPE_p_librdf_serializer_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_set_feature",2,SWIGTYPE_p_librdf_uri_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ SWIG_fail_ptr("librdf_serializer_set_feature",3,SWIGTYPE_p_librdf_node_s); } result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_serializer_set_namespace(lua_State* L) { int SWIG_arg = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; int result; SWIG_check_num_args("librdf_serializer_set_namespace",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_set_namespace",1,"librdf_serializer *"); if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_set_namespace",2,"librdf_uri *"); if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_serializer_set_namespace",3,"char const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ SWIG_fail_ptr("librdf_serializer_set_namespace",1,SWIGTYPE_p_librdf_serializer_s); } if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ SWIG_fail_ptr("librdf_serializer_set_namespace",2,SWIGTYPE_p_librdf_uri_s); } arg3 = (char *)lua_tostring(L, 3); result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_free_stream(lua_State* L) { int SWIG_arg = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; SWIG_check_num_args("librdf_free_stream",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_stream",1,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_free_stream",1,SWIGTYPE_p_librdf_stream_s); } librdf_free_stream(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_stream_end(lua_State* L) { int SWIG_arg = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; int result; SWIG_check_num_args("librdf_stream_end",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_end",1,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_stream_end",1,SWIGTYPE_p_librdf_stream_s); } result = (int)librdf_stream_end(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_stream_next(lua_State* L) { int SWIG_arg = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; int result; SWIG_check_num_args("librdf_stream_next",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_next",1,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_stream_next",1,SWIGTYPE_p_librdf_stream_s); } result = (int)librdf_stream_next(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_stream_get_object(lua_State* L) { int SWIG_arg = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; librdf_statement *result = 0 ; SWIG_check_num_args("librdf_stream_get_object",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_get_object",1,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_stream_get_object",1,SWIGTYPE_p_librdf_stream_s); } result = (librdf_statement *)librdf_stream_get_object(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_stream_get_context(lua_State* L) { int SWIG_arg = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; librdf_node *result = 0 ; SWIG_check_num_args("librdf_stream_get_context",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_get_context",1,"librdf_stream *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ SWIG_fail_ptr("librdf_stream_get_context",1,SWIGTYPE_p_librdf_stream_s); } result = (librdf_node *)librdf_stream_get_context(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_log_message_code(lua_State* L) { int SWIG_arg = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; int result; SWIG_check_num_args("librdf_log_message_code",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_code",1,"librdf_log_message *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ SWIG_fail_ptr("librdf_log_message_code",1,SWIGTYPE_p_librdf_log_message); } result = (int)librdf_log_message_code(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_log_message_level(lua_State* L) { int SWIG_arg = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; int result; SWIG_check_num_args("librdf_log_message_level",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_level",1,"librdf_log_message *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ SWIG_fail_ptr("librdf_log_message_level",1,SWIGTYPE_p_librdf_log_message); } result = (int)librdf_log_message_level(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_log_message_facility(lua_State* L) { int SWIG_arg = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; int result; SWIG_check_num_args("librdf_log_message_facility",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_facility",1,"librdf_log_message *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ SWIG_fail_ptr("librdf_log_message_facility",1,SWIGTYPE_p_librdf_log_message); } result = (int)librdf_log_message_facility(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_log_message_message(lua_State* L) { int SWIG_arg = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; char *result = 0 ; SWIG_check_num_args("librdf_log_message_message",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_message",1,"librdf_log_message *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ SWIG_fail_ptr("librdf_log_message_message",1,SWIGTYPE_p_librdf_log_message); } result = (char *)librdf_log_message_message(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_log_message_locator(lua_State* L) { int SWIG_arg = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; raptor_locator *result = 0 ; SWIG_check_num_args("librdf_log_message_locator",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_locator",1,"librdf_log_message *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ SWIG_fail_ptr("librdf_log_message_locator",1,SWIGTYPE_p_librdf_log_message); } result = (raptor_locator *)librdf_log_message_locator(arg1); SWIG_NewPointerObj(L,result,SWIGTYPE_p_raptor_locator,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_locator_line(lua_State* L) { int SWIG_arg = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; int result; SWIG_check_num_args("raptor_locator_line",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_line",1,"raptor_locator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ SWIG_fail_ptr("raptor_locator_line",1,SWIGTYPE_p_raptor_locator); } result = (int)raptor_locator_line(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_locator_column(lua_State* L) { int SWIG_arg = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; int result; SWIG_check_num_args("raptor_locator_column",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_column",1,"raptor_locator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ SWIG_fail_ptr("raptor_locator_column",1,SWIGTYPE_p_raptor_locator); } result = (int)raptor_locator_column(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_locator_byte(lua_State* L) { int SWIG_arg = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; int result; SWIG_check_num_args("raptor_locator_byte",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_byte",1,"raptor_locator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ SWIG_fail_ptr("raptor_locator_byte",1,SWIGTYPE_p_raptor_locator); } result = (int)raptor_locator_byte(arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_locator_file(lua_State* L) { int SWIG_arg = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; char *result = 0 ; SWIG_check_num_args("raptor_locator_file",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_file",1,"raptor_locator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ SWIG_fail_ptr("raptor_locator_file",1,SWIGTYPE_p_raptor_locator); } result = (char *)raptor_locator_file(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_locator_uri(lua_State* L) { int SWIG_arg = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; char *result = 0 ; SWIG_check_num_args("raptor_locator_uri",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_uri",1,"raptor_locator *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ SWIG_fail_ptr("raptor_locator_uri",1,SWIGTYPE_p_raptor_locator); } result = (char *)raptor_locator_uri(arg1); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_internal_test_error(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; SWIG_check_num_args("librdf_internal_test_error",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_internal_test_error",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_internal_test_error",1,SWIGTYPE_p_librdf_world_s); } librdf_internal_test_error(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_internal_test_warning(lua_State* L) { int SWIG_arg = 0; librdf_world *arg1 = (librdf_world *) 0 ; SWIG_check_num_args("librdf_internal_test_warning",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_internal_test_warning",1,"librdf_world *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ SWIG_fail_ptr("librdf_internal_test_warning",1,SWIGTYPE_p_librdf_world_s); } librdf_internal_test_warning(arg1); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_short_copyright_string_get(lua_State* L) { int SWIG_arg = 0; char *result = 0 ; SWIG_check_num_args("librdf_short_copyright_string",0,0) result = (char *)(char *)librdf_short_copyright_string; lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_copyright_string_get(lua_State* L) { int SWIG_arg = 0; char *result = 0 ; SWIG_check_num_args("librdf_copyright_string",0,0) result = (char *)(char *)librdf_copyright_string; lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_version_string_get(lua_State* L) { int SWIG_arg = 0; char *result = 0 ; SWIG_check_num_args("librdf_version_string",0,0) result = (char *)(char *)librdf_version_string; lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_version_major_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("librdf_version_major",0,0) result = (unsigned int)(unsigned int)librdf_version_major; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_version_minor_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("librdf_version_minor",0,0) result = (unsigned int)(unsigned int)librdf_version_minor; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_version_release_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("librdf_version_release",0,0) result = (unsigned int)(unsigned int)librdf_version_release; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_librdf_version_decimal_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("librdf_version_decimal",0,0) result = (unsigned int)(unsigned int)librdf_version_decimal; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_version_string_get(lua_State* L) { int SWIG_arg = 0; char *result = 0 ; SWIG_check_num_args("raptor_version_string",0,0) result = (char *)(char *)raptor_version_string; lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_version_major_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("raptor_version_major",0,0) result = (unsigned int)(unsigned int)raptor_version_major; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_version_minor_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("raptor_version_minor",0,0) result = (unsigned int)(unsigned int)raptor_version_minor; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_version_release_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("raptor_version_release",0,0) result = (unsigned int)(unsigned int)raptor_version_release; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_raptor_version_decimal_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("raptor_version_decimal",0,0) result = (unsigned int)(unsigned int)raptor_version_decimal; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_rasqal_version_string_get(lua_State* L) { int SWIG_arg = 0; char *result = 0 ; SWIG_check_num_args("rasqal_version_string",0,0) result = (char *)(char *)rasqal_version_string; lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_rasqal_version_major_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("rasqal_version_major",0,0) result = (unsigned int)(unsigned int)rasqal_version_major; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_rasqal_version_minor_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("rasqal_version_minor",0,0) result = (unsigned int)(unsigned int)rasqal_version_minor; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_rasqal_version_release_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("rasqal_version_release",0,0) result = (unsigned int)(unsigned int)rasqal_version_release; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } static int _wrap_rasqal_version_decimal_get(lua_State* L) { int SWIG_arg = 0; unsigned int result; SWIG_check_num_args("rasqal_version_decimal",0,0) result = (unsigned int)(unsigned int)rasqal_version_decimal; lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } #ifdef __cplusplus } #endif static const struct luaL_Reg swig_commands[] = { { "librdf_new_digest", _wrap_librdf_new_digest}, { "librdf_free_digest", _wrap_librdf_free_digest}, { "librdf_digest_init", _wrap_librdf_digest_init}, { "librdf_digest_update", _wrap_librdf_digest_update}, { "librdf_digest_update_string", _wrap_librdf_digest_update_string}, { "librdf_digest_final", _wrap_librdf_digest_final}, { "librdf_digest_to_string", _wrap_librdf_digest_to_string}, { "librdf_new_hash", _wrap_librdf_new_hash}, { "librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string}, { "librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings}, { "librdf_hash_to_string", _wrap_librdf_hash_to_string}, { "librdf_free_hash", _wrap_librdf_free_hash}, { "librdf_new_world", _wrap_librdf_new_world}, { "librdf_free_world", _wrap_librdf_free_world}, { "librdf_world_open", _wrap_librdf_world_open}, { "librdf_world_get_feature", _wrap_librdf_world_get_feature}, { "librdf_world_set_feature", _wrap_librdf_world_set_feature}, { "librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header}, { "librdf_world_set_logger", _wrap_librdf_world_set_logger}, { "librdf_free_iterator", _wrap_librdf_free_iterator}, { "librdf_iterator_end", _wrap_librdf_iterator_end}, { "librdf_iterator_get_object", _wrap_librdf_iterator_get_object}, { "librdf_iterator_get_context", _wrap_librdf_iterator_get_context}, { "librdf_iterator_next", _wrap_librdf_iterator_next}, { "librdf_new_uri", _wrap_librdf_new_uri}, { "librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri}, { "librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename}, { "librdf_free_uri", _wrap_librdf_free_uri}, { "librdf_uri_to_string", _wrap_librdf_uri_to_string}, { "librdf_uri_equals", _wrap_librdf_uri_equals}, { "librdf_uri_compare", _wrap_librdf_uri_compare}, { "librdf_new_node", _wrap_librdf_new_node}, { "librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string}, { "librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri}, { "librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name}, { "librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string}, { "librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal}, { "librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal}, { "librdf_new_node_from_node", _wrap_librdf_new_node_from_node}, { "librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier}, { "librdf_free_node", _wrap_librdf_free_node}, { "librdf_node_get_uri", _wrap_librdf_node_get_uri}, { "librdf_node_get_type", _wrap_librdf_node_get_type}, { "librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value}, { "librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1}, { "librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language}, { "librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri}, { "librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml}, { "librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal}, { "librdf_node_to_string", _wrap_librdf_node_to_string}, { "librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier}, { "librdf_node_is_resource", _wrap_librdf_node_is_resource}, { "librdf_node_is_literal", _wrap_librdf_node_is_literal}, { "librdf_node_is_blank", _wrap_librdf_node_is_blank}, { "librdf_node_equals", _wrap_librdf_node_equals}, { "librdf_new_statement", _wrap_librdf_new_statement}, { "librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement}, { "librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes}, { "librdf_free_statement", _wrap_librdf_free_statement}, { "librdf_statement_get_subject", _wrap_librdf_statement_get_subject}, { "librdf_statement_set_subject", _wrap_librdf_statement_set_subject}, { "librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate}, { "librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate}, { "librdf_statement_get_object", _wrap_librdf_statement_get_object}, { "librdf_statement_set_object", _wrap_librdf_statement_set_object}, { "librdf_statement_equals", _wrap_librdf_statement_equals}, { "librdf_statement_match", _wrap_librdf_statement_match}, { "librdf_statement_to_string", _wrap_librdf_statement_to_string}, { "librdf_statement_is_complete", _wrap_librdf_statement_is_complete}, { "librdf_new_model", _wrap_librdf_new_model}, { "librdf_new_model_with_options", _wrap_librdf_new_model_with_options}, { "librdf_new_model_from_model", _wrap_librdf_new_model_from_model}, { "librdf_free_model", _wrap_librdf_free_model}, { "librdf_model_size", _wrap_librdf_model_size}, { "librdf_model_add", _wrap_librdf_model_add}, { "librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement}, { "librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement}, { "librdf_model_add_statement", _wrap_librdf_model_add_statement}, { "librdf_model_add_statements", _wrap_librdf_model_add_statements}, { "librdf_model_remove_statement", _wrap_librdf_model_remove_statement}, { "librdf_model_contains_statement", _wrap_librdf_model_contains_statement}, { "librdf_model_as_stream", _wrap_librdf_model_as_stream}, { "librdf_model_find_statements", _wrap_librdf_model_find_statements}, { "librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context}, { "librdf_model_get_sources", _wrap_librdf_model_get_sources}, { "librdf_model_get_arcs", _wrap_librdf_model_get_arcs}, { "librdf_model_get_targets", _wrap_librdf_model_get_targets}, { "librdf_model_get_source", _wrap_librdf_model_get_source}, { "librdf_model_get_arc", _wrap_librdf_model_get_arc}, { "librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out}, { "librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in}, { "librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in}, { "librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out}, { "librdf_model_get_target", _wrap_librdf_model_get_target}, { "librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement}, { "librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements}, { "librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement}, { "librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements}, { "librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream}, { "librdf_model_sync", _wrap_librdf_model_sync}, { "librdf_model_get_contexts", _wrap_librdf_model_get_contexts}, { "librdf_model_contains_context", _wrap_librdf_model_contains_context}, { "librdf_model_get_feature", _wrap_librdf_model_get_feature}, { "librdf_model_set_feature", _wrap_librdf_model_set_feature}, { "librdf_model_load", _wrap_librdf_model_load}, { "librdf_model_query_execute", _wrap_librdf_model_query_execute}, { "librdf_model_to_string", _wrap_librdf_model_to_string}, { "librdf_model_transaction_start", _wrap_librdf_model_transaction_start}, { "librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit}, { "librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback}, { "librdf_new_storage", _wrap_librdf_new_storage}, { "librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage}, { "librdf_free_storage", _wrap_librdf_free_storage}, { "librdf_parser_check_name", _wrap_librdf_parser_check_name}, { "librdf_new_parser", _wrap_librdf_new_parser}, { "librdf_free_parser", _wrap_librdf_free_parser}, { "librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream}, { "librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model}, { "librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream}, { "librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model}, { "librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream}, { "librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model}, { "librdf_parser_get_feature", _wrap_librdf_parser_get_feature}, { "librdf_parser_set_feature", _wrap_librdf_parser_set_feature}, { "librdf_parser_guess_name", _wrap_librdf_parser_guess_name}, { "librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2}, { "librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix}, { "librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri}, { "librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count}, { "librdf_new_query", _wrap_librdf_new_query}, { "librdf_new_query_from_query", _wrap_librdf_new_query_from_query}, { "librdf_free_query", _wrap_librdf_free_query}, { "librdf_query_execute", _wrap_librdf_query_execute}, { "librdf_query_get_limit", _wrap_librdf_query_get_limit}, { "librdf_query_set_limit", _wrap_librdf_query_set_limit}, { "librdf_query_get_offset", _wrap_librdf_query_get_offset}, { "librdf_query_set_offset", _wrap_librdf_query_set_offset}, { "librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream}, { "librdf_query_results_get_count", _wrap_librdf_query_results_get_count}, { "librdf_query_results_next", _wrap_librdf_query_results_next}, { "librdf_query_results_finished", _wrap_librdf_query_results_finished}, { "librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value}, { "librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name}, { "librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name}, { "librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count}, { "librdf_query_results_to_file", _wrap_librdf_query_results_to_file}, { "librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2}, { "librdf_query_results_to_string", _wrap_librdf_query_results_to_string}, { "librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2}, { "librdf_free_query_results", _wrap_librdf_free_query_results}, { "librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings}, { "librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean}, { "librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph}, { "librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax}, { "librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean}, { "librdf_serializer_check_name", _wrap_librdf_serializer_check_name}, { "librdf_new_serializer", _wrap_librdf_new_serializer}, { "librdf_free_serializer", _wrap_librdf_free_serializer}, { "librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file}, { "librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file}, { "librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string}, { "librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string}, { "librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature}, { "librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature}, { "librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace}, { "librdf_free_stream", _wrap_librdf_free_stream}, { "librdf_stream_end", _wrap_librdf_stream_end}, { "librdf_stream_next", _wrap_librdf_stream_next}, { "librdf_stream_get_object", _wrap_librdf_stream_get_object}, { "librdf_stream_get_context", _wrap_librdf_stream_get_context}, { "librdf_log_message_code", _wrap_librdf_log_message_code}, { "librdf_log_message_level", _wrap_librdf_log_message_level}, { "librdf_log_message_facility", _wrap_librdf_log_message_facility}, { "librdf_log_message_message", _wrap_librdf_log_message_message}, { "librdf_log_message_locator", _wrap_librdf_log_message_locator}, { "raptor_locator_line", _wrap_raptor_locator_line}, { "raptor_locator_column", _wrap_raptor_locator_column}, { "raptor_locator_byte", _wrap_raptor_locator_byte}, { "raptor_locator_file", _wrap_raptor_locator_file}, { "raptor_locator_uri", _wrap_raptor_locator_uri}, { "librdf_internal_test_error", _wrap_librdf_internal_test_error}, { "librdf_internal_test_warning", _wrap_librdf_internal_test_warning}, {0,0} }; static swig_lua_var_info swig_variables[] = { { "librdf_short_copyright_string", _wrap_librdf_short_copyright_string_get, SWIG_Lua_set_immutable }, { "librdf_copyright_string", _wrap_librdf_copyright_string_get, SWIG_Lua_set_immutable }, { "librdf_version_string", _wrap_librdf_version_string_get, SWIG_Lua_set_immutable }, { "librdf_version_major", _wrap_librdf_version_major_get, SWIG_Lua_set_immutable }, { "librdf_version_minor", _wrap_librdf_version_minor_get, SWIG_Lua_set_immutable }, { "librdf_version_release", _wrap_librdf_version_release_get, SWIG_Lua_set_immutable }, { "librdf_version_decimal", _wrap_librdf_version_decimal_get, SWIG_Lua_set_immutable }, { "raptor_version_string", _wrap_raptor_version_string_get, SWIG_Lua_set_immutable }, { "raptor_version_major", _wrap_raptor_version_major_get, SWIG_Lua_set_immutable }, { "raptor_version_minor", _wrap_raptor_version_minor_get, SWIG_Lua_set_immutable }, { "raptor_version_release", _wrap_raptor_version_release_get, SWIG_Lua_set_immutable }, { "raptor_version_decimal", _wrap_raptor_version_decimal_get, SWIG_Lua_set_immutable }, { "rasqal_version_string", _wrap_rasqal_version_string_get, SWIG_Lua_set_immutable }, { "rasqal_version_major", _wrap_rasqal_version_major_get, SWIG_Lua_set_immutable }, { "rasqal_version_minor", _wrap_rasqal_version_minor_get, SWIG_Lua_set_immutable }, { "rasqal_version_release", _wrap_rasqal_version_release_get, SWIG_Lua_set_immutable }, { "rasqal_version_decimal", _wrap_rasqal_version_decimal_get, SWIG_Lua_set_immutable }, {0,0,0} }; static swig_lua_const_info swig_constants[] = { {0,0,0,0,0,0} }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; clientdata = clientdata; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif /* Forward declaration of where the user's %init{} gets inserted */ void SWIG_init_user(lua_State* L ); #ifdef __cplusplus extern "C" { #endif /* this is the initialization function added at the very end of the code the function is always called SWIG_init, but an earlier #define will rename it */ #if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) LUALIB_API int SWIG_init(lua_State* L) #else SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ #endif { #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ int i; /* start with global table */ lua_pushglobaltable (L); /* SWIG's internal initalisation */ SWIG_InitializeModule((void*)L); SWIG_PropagateClientData(); #endif #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* add a global fn */ SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); /* begin the module (its a table with the same name as the module) */ SWIG_Lua_module_begin(L,SWIG_name); /* add commands/functions */ for (i = 0; swig_commands[i].name; i++){ SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); } /* add variables */ for (i = 0; swig_variables[i].name; i++){ SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); } #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* set up base class pointers (the hierarchy) */ for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } /* additional registration structs & classes in lua */ for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } #endif #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* constants */ SWIG_Lua_InstallConstants(L,swig_constants); #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* invoke user-specific initialization */ SWIG_init_user(L); /* end module */ /* Note: We do not clean up the stack here (Lua will do this for us). At this point, we have the globals table and out module table on the stack. Returning one value makes the module table the result of the require command. */ return 1; #else return 0; #endif } #ifdef __cplusplus } #endif const char* SWIG_LUACODE= ""; void SWIG_init_user(lua_State* L) { /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif /* exec Lua code if applicable */ SWIG_Lua_dostring(L,SWIG_LUACODE); } redland-bindings-1.0.16.1/lua/test.lua0000644000175000017500000000625111522705745014342 00000000000000--[[ * test.lua - Redland Lua Interface test program * * Joe Presbrey - http://presbrey.mit.edu/ * 2010-09-20 * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the following three licenses as alternatives: * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version * 3. Apache License, V2.0 or any newer version * * You may not use this file except in compliance with at least one of * the above three licenses. * * See LICENSE.html or LICENSE.txt at the top of this package for the * full license terms. * ]]-- print("Testing Redland..."); require("redland"); world = redland.librdf_new_world(); print("Redland world opened"); storage = redland.librdf_new_storage(world,'hashes','dummy',"new=yes,hash-type='memory'"); print("Redland storage created"); model = redland.librdf_new_model(world,storage,''); print("Redland model created"); parser = redland.librdf_new_parser(world,'rdfxml','application/rdf+xml',null); print("Redland parser created"); uri = redland.librdf_new_uri(world,'file:../data/dc.rdf'); print("Parsing..."); redland.librdf_parser_parse_into_model(parser,uri,uri,model); print("Done..."); redland.librdf_free_uri(uri); redland.librdf_free_parser(parser); query = redland.librdf_new_query(world, 'sparql', null, "PREFIX dc: SELECT ?a ?c ?d WHERE { ?a dc:title ?c . OPTIONAL { ?a dc:related ?d } }", null); print("Querying for dc:titles:"); results = redland.librdf_model_query_execute(model, query); count=0; while not(results == nil) and redland.librdf_query_results_finished(results) == 0 do print("result "..count..": {"); for i = 0, redland.librdf_query_results_get_bindings_count(results) - 1, 1 do val = redland.librdf_query_results_get_binding_value(results, i); if val then nval = redland.librdf_node_to_string(val); else nval = "(unbound)"; end print(" "..redland.librdf_query_results_get_binding_name(results, i).."="..(nval or "(nil)")); end print("}"); redland.librdf_query_results_next(results); count = count + 1; end if not(results == nil) then print("Returned "..count.." results"); end results = nil; print "\nExecuting query again"; results = redland.librdf_model_query_execute(model, query); if not(results == nil) then str = redland.librdf_query_results_to_string(results, nil, nil); print("Query results serialized to an XML string size "..string.len(str).." bytes"); else print("Query results couldn't be serialized to an XML string"); end serializer = redland.librdf_new_serializer(world, "rdfxml", "", nil); print("Redland serializer created"); base = redland.librdf_new_uri(world, "http://example.org/base.rdf"); print("Serializing..."); redland.librdf_serializer_serialize_model_to_file(serializer,'./test-out.rdf',base,model); print("Done..."); redland.librdf_free_serializer(serializer); redland.librdf_free_uri(base); redland.librdf_free_model(model); redland.librdf_free_storage(storage); print("Done");redland-bindings-1.0.16.1/lua/Makefile.am0000644000175000017500000000370511522705745014715 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for LUA interface to Redland # # Copyright (C) 2010 David Beckett - http://www.dajobe.org/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ -DREDLAND_BINDINGS_VERSION=\"@VERSION@\" AM_CFLAGS=@STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ AM_LDFLAGS=@LIBRDF_LDFLAGS@ LUA=lua LUA_PACKAGE=redland LUA_CFLAGS=@LUA_CFLAGS@ LUA_LDFLAGS=@LUA_LDFLAGS@ LUA_SO_SUFFIX=so SWIG_OUTPUTS=$(LUA_PACKAGE)_wrap.c SWIG_CRUFT= luadir=@LUA_EXTENSION_DIR@ lua_DATA=$(LUA_PACKAGE).$(LUA_SO_SUFFIX) EXTRA_DIST= test.lua \ $(SWIG_OUTPUTS) CLEANFILES=*.db test-out.rdf \ $(LUA_PACKAGE)_wrap.o $(LUA_PACKAGE)-stamp \ $(LUA_PACKAGE).$(LUA_SO_SUFFIX) $(LUA_PACKAGE).bundle MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) $(SWIG_CRUFT) $(LUA_PACKAGE)_wrap.c.orig RUN=@REDLAND_RUN@ SWIG_OPTS=-I$(srcdir) $(LUA_PACKAGE)_wrap.c: @REDLAND_SWIG@ swig -lua -v $(SWIG_OPTS) -module $(LUA_PACKAGE) -o $@ @REDLAND_SWIG@ $(LUA_PACKAGE)_wrap.o: $(LUA_PACKAGE)_wrap.c $(CC) $(DEFS) $(LUA_CFLAGS) $(SWIG_OPTS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(LUA_PACKAGE)_wrap.c -c -o $@ $(LUA_PACKAGE).$(LUA_SO_SUFFIX): $(LUA_PACKAGE)-stamp $(LUA_PACKAGE)-stamp: $(LUA_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(LUA_PACKAGE)_wrap.o $(AM_LDFLAGS) -fPIC -shared $(LDFLAGS) $(LUA_LDFLAGS) -o $(LUA_PACKAGE).$(LUA_SO_SUFFIX) touch $(LUA_PACKAGE)-stamp test-lua: $(LUA) test.lua check-local: test-lua redland-bindings-1.0.16.1/lua/Makefile.in0000644000175000017500000003703712063416534014727 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for LUA interface to Redland # # Copyright (C) 2010 David Beckett - http://www.dajobe.org/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = lua DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(luadir)" DATA = $(lua_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = lua LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ -DREDLAND_BINDINGS_VERSION=\"@VERSION@\" AM_CFLAGS = @STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ AM_LDFLAGS = @LIBRDF_LDFLAGS@ LUA_PACKAGE = redland LUA_SO_SUFFIX = so SWIG_OUTPUTS = $(LUA_PACKAGE)_wrap.c SWIG_CRUFT = luadir = @LUA_EXTENSION_DIR@ lua_DATA = $(LUA_PACKAGE).$(LUA_SO_SUFFIX) EXTRA_DIST = test.lua \ $(SWIG_OUTPUTS) CLEANFILES = *.db test-out.rdf \ $(LUA_PACKAGE)_wrap.o $(LUA_PACKAGE)-stamp \ $(LUA_PACKAGE).$(LUA_SO_SUFFIX) $(LUA_PACKAGE).bundle MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT) $(LUA_PACKAGE)_wrap.c.orig RUN = @REDLAND_RUN@ SWIG_OPTS = -I$(srcdir) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lua/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu lua/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-luaDATA: $(lua_DATA) @$(NORMAL_INSTALL) @list='$(lua_DATA)'; test -n "$(luadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(luadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(luadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(luadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(luadir)" || exit $$?; \ done uninstall-luaDATA: @$(NORMAL_UNINSTALL) @list='$(lua_DATA)'; test -n "$(luadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(luadir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(luadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-luaDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-luaDATA .MAKE: check-am install-am install-strip .PHONY: all all-am check check-am check-local clean clean-generic \ clean-libtool distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-luaDATA \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-luaDATA $(LUA_PACKAGE)_wrap.c: @REDLAND_SWIG@ swig -lua -v $(SWIG_OPTS) -module $(LUA_PACKAGE) -o $@ @REDLAND_SWIG@ $(LUA_PACKAGE)_wrap.o: $(LUA_PACKAGE)_wrap.c $(CC) $(DEFS) $(LUA_CFLAGS) $(SWIG_OPTS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(LUA_PACKAGE)_wrap.c -c -o $@ $(LUA_PACKAGE).$(LUA_SO_SUFFIX): $(LUA_PACKAGE)-stamp $(LUA_PACKAGE)-stamp: $(LUA_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(LUA_PACKAGE)_wrap.o $(AM_LDFLAGS) -fPIC -shared $(LDFLAGS) $(LUA_LDFLAGS) -o $(LUA_PACKAGE).$(LUA_SO_SUFFIX) touch $(LUA_PACKAGE)-stamp test-lua: $(LUA) test.lua check-local: test-lua # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/php/0000755000175000017500000000000012074650260012734 500000000000000redland-bindings-1.0.16.1/php/redland_wrap.c0000644000175000017500000102612211776152567015505 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGPHP #define SWIG_PREFIX "" #define SWIG_PREFIX_LEN 0 /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { register size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * phprun.swg * * PHP runtime library * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" #include "php.h" #include "ext/standard/php_string.h" #include /* for abort(), used in generated code. */ #ifdef ZEND_RAW_FENTRY /* ZEND_RAW_FENTRY was added somewhere between 5.2.0 and 5.2.3 */ # define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_RAW_FENTRY((char*)#ZN, N, A, 0) #else /* This causes warnings from GCC >= 4.2 (assigning a string literal to char*). * But this seems to be unavoidable without directly assuming knowledge of * the structure, which changed between PHP4 and PHP5. */ # define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_NAMED_FE(ZN, N, A) #endif #ifndef Z_SET_ISREF_P /* For PHP < 5.3 */ # define Z_SET_ISREF_P(z) (z)->is_ref = 1 #endif #ifndef Z_SET_REFCOUNT_P /* For PHP < 5.3 */ # define Z_SET_REFCOUNT_P(z, rc) (z)->refcount = (rc) #endif #define SWIG_LONG_CONSTANT(N, V) zend_register_long_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) #define SWIG_DOUBLE_CONSTANT(N, V) zend_register_double_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) #define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) #define SWIG_CHAR_CONSTANT(N, V) do {\ static char swig_char = (V);\ zend_register_stringl_constant((char*)#N, sizeof(#N), &swig_char, 1, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);\ } while (0) /* These TSRMLS_ stuff should already be defined now, but with older php under redhat are not... */ #ifndef TSRMLS_D #define TSRMLS_D #endif #ifndef TSRMLS_DC #define TSRMLS_DC #endif #ifndef TSRMLS_C #define TSRMLS_C #endif #ifndef TSRMLS_CC #define TSRMLS_CC #endif #ifdef __cplusplus } #endif /* But in fact SWIG_ConvertPtr is the native interface for getting typed pointer values out of zvals. We need the TSRMLS_ macros for when we make PHP type calls later as we handle php resources */ #define SWIG_ConvertPtr(obj,pp,type,flags) SWIG_ZTS_ConvertPtr(obj,pp,type,flags TSRMLS_CC) #define SWIG_fail goto fail static const char *default_error_msg = "Unknown error occurred"; static int default_error_code = E_ERROR; #define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg #define SWIG_PHP_Error(code,msg) do { SWIG_ErrorCode() = code; SWIG_ErrorMsg() = msg; SWIG_fail; } while (0) #define SWIG_contract_assert(expr,msg) \ if (!(expr) ) { zend_printf("Contract Assert Failed %s\n",msg ); } else /* Standard SWIG API */ #define SWIG_GetModule(clientdata) SWIG_Php_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Php_SetModule(pointer) /* used to wrap returned objects in so we know whether they are newobject and need freeing, or not */ typedef struct { void * ptr; int newobject; } swig_object_wrapper; /* empty zend destructor for types without one */ static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) { (void)rsrc; } #define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d TSRMLS_CC) #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) static void SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject TSRMLS_DC) { /* * First test for Null pointers. Return those as PHP native NULL */ if (!ptr ) { ZVAL_NULL(z); return; } if (type->clientdata) { swig_object_wrapper *value; if (! (*(int *)(type->clientdata))) zend_error(E_ERROR, "Type: %s failed to register with zend",type->name); value=(swig_object_wrapper *)emalloc(sizeof(swig_object_wrapper)); value->ptr=ptr; value->newobject=(newobject & 1); if ((newobject & 2) == 0) { /* Just register the pointer as a resource. */ ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata)); } else { /* * Wrap the resource in an object, the resource will be accessible * via the "_cPtr" member. This is currently only used by * directorin typemaps. */ zval *resource; zend_class_entry **ce = NULL; const char *type_name = type->name+3; /* +3 so: _p_Foo -> Foo */ size_t type_name_len; int result; const char * p; /* Namespace__Foo -> Foo */ /* FIXME: ugly and goes wrong for classes with __ in their names. */ while ((p = strstr(type_name, "__")) != NULL) { type_name = p + 2; } type_name_len = strlen(type_name); MAKE_STD_ZVAL(resource); ZEND_REGISTER_RESOURCE(resource, value, *(int *)(type->clientdata)); if (SWIG_PREFIX_LEN > 0) { char * classname = (char*)emalloc(SWIG_PREFIX_LEN + type_name_len + 1); strcpy(classname, SWIG_PREFIX); strcpy(classname + SWIG_PREFIX_LEN, type_name); result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC); efree(classname); } else { result = zend_lookup_class((char *)type_name, type_name_len, &ce TSRMLS_CC); } if (result != SUCCESS) { /* class does not exist */ object_init(z); } else { object_init_ex(z, *ce); } Z_SET_REFCOUNT_P(z, 1); Z_SET_ISREF_P(z); zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval), NULL); } return; } zend_error(E_ERROR, "Type: %s not registered with zend",type->name); } /* This pointer conversion routine takes the native pointer p (along with its type name) and converts it by calling appropriate casting functions according to ty. The resultant pointer is returned, or NULL is returned if the pointer can't be cast. Sadly PHP has no API to find a type name from a type id, only from an instance of a resource of the type id, so we have to pass type_name as well. The two functions which might call this are: SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource and the registered zend destructors for which we have one per type each with the type name hard wired in. */ static void * SWIG_ZTS_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty TSRMLS_DC) { swig_cast_info *tc; void *result = 0; if (!ty) { /* They don't care about the target type, so just pass on the pointer! */ return p; } if (! type_name) { /* can't convert p to ptr type ty if we don't know what type p is */ return NULL; } /* convert and cast p from type_name to ptr as ty. */ tc = SWIG_TypeCheck(type_name, ty); if (tc) { int newmemory = 0; result = SWIG_TypeCast(tc, p, &newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } return result; } /* This function returns a pointer of type ty by extracting the pointer and type info from the resource in z. z must be a resource. If it fails, NULL is returned. It uses SWIG_ZTS_ConvertResourceData to do the real work. */ static void * SWIG_ZTS_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags TSRMLS_DC) { swig_object_wrapper *value; void *p; int type; const char *type_name; value = (swig_object_wrapper *) zend_list_find(z->value.lval, &type); if ( flags & SWIG_POINTER_DISOWN ) { value->newobject = 0; } p = value->ptr; if (type==-1) return NULL; type_name=zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC); return SWIG_ZTS_ConvertResourceData(p, type_name, ty TSRMLS_CC); } /* We allow passing of a RESOURCE pointing to the object or an OBJECT whose _cPtr is a resource pointing to the object */ static int SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) { if (z == NULL) { *ptr = 0; return 0; } switch (z->type) { case IS_OBJECT: { zval ** _cPtr; if (zend_hash_find(HASH_OF(z),(char*)"_cPtr",sizeof("_cPtr"),(void**)&_cPtr)==SUCCESS) { if ((*_cPtr)->type==IS_RESOURCE) { *ptr = SWIG_ZTS_ConvertResourcePtr(*_cPtr, ty, flags TSRMLS_CC); return (*ptr == NULL ? -1 : 0); } } break; } case IS_RESOURCE: *ptr = SWIG_ZTS_ConvertResourcePtr(z, ty, flags TSRMLS_CC); return (*ptr == NULL ? -1 : 0); case IS_NULL: *ptr = 0; return 0; } return -1; } static char const_name[] = "swig_runtime_data_type_pointer"; static swig_module_info *SWIG_Php_GetModule() { zval *pointer; swig_module_info *ret = 0; MAKE_STD_ZVAL(pointer); TSRMLS_FETCH(); if (zend_get_constant(const_name, sizeof(const_name) - 1, pointer TSRMLS_CC)) { if (pointer->type == IS_LONG) { ret = (swig_module_info *) pointer->value.lval; } } FREE_ZVAL(pointer); return ret; } static void SWIG_Php_SetModule(swig_module_info *pointer) { TSRMLS_FETCH(); REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0); } /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_librdf_digest_s swig_types[0] #define SWIGTYPE_p_librdf_hash_s swig_types[1] #define SWIGTYPE_p_librdf_iterator_s swig_types[2] #define SWIGTYPE_p_librdf_log_func swig_types[3] #define SWIGTYPE_p_librdf_log_message swig_types[4] #define SWIGTYPE_p_librdf_model_s swig_types[5] #define SWIGTYPE_p_librdf_node_s swig_types[6] #define SWIGTYPE_p_librdf_parser_s swig_types[7] #define SWIGTYPE_p_librdf_query swig_types[8] #define SWIGTYPE_p_librdf_query_results swig_types[9] #define SWIGTYPE_p_librdf_serializer_s swig_types[10] #define SWIGTYPE_p_librdf_statement_s swig_types[11] #define SWIGTYPE_p_librdf_storage_s swig_types[12] #define SWIGTYPE_p_librdf_stream_s swig_types[13] #define SWIGTYPE_p_librdf_uri_s swig_types[14] #define SWIGTYPE_p_librdf_world_s swig_types[15] #define SWIGTYPE_p_p_char swig_types[16] #define SWIGTYPE_p_p_void swig_types[17] #define SWIGTYPE_p_raptor_locator swig_types[18] static swig_type_info *swig_types[20]; static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ /* header section */ ZEND_BEGIN_MODULE_GLOBALS(redland) const char *error_msg; int error_code; ZEND_END_MODULE_GLOBALS(redland) ZEND_DECLARE_MODULE_GLOBALS(redland) #ifdef ZTS #define SWIG_ErrorMsg() TSRMG(redland_globals_id, zend_redland_globals *, error_msg ) #define SWIG_ErrorCode() TSRMG(redland_globals_id, zend_redland_globals *, error_code ) #else #define SWIG_ErrorMsg() (redland_globals.error_msg) #define SWIG_ErrorCode() (redland_globals.error_code) #endif #ifdef __GNUC__ static void SWIG_FAIL() __attribute__ ((__noreturn__)); #endif static void SWIG_FAIL() { zend_error(SWIG_ErrorCode(), "%s", SWIG_ErrorMsg()); abort(); } static void redland_init_globals(zend_redland_globals *globals ) { globals->error_msg = default_error_msg; globals->error_code = default_error_code; } static void redland_destroy_globals(zend_redland_globals * globals) { (void)globals; } static void SWIG_ResetError() { TSRMLS_FETCH(); SWIG_ErrorMsg() = default_error_msg; SWIG_ErrorCode() = default_error_code; } ZEND_NAMED_FUNCTION(_wrap_swig_redland_alter_newobject) { zval **args[2]; swig_object_wrapper *value; int type; int thisown; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } value = (swig_object_wrapper *) zend_list_find((*args[0])->value.lval, &type); value->newobject = zval_is_true(*args[1]); return; } ZEND_NAMED_FUNCTION(_wrap_swig_redland_get_newobject) { zval **args[1]; swig_object_wrapper *value; int type; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } value = (swig_object_wrapper *) zend_list_find((*args[0])->value.lval, &type); RETVAL_LONG(value->newobject); return; } #define SWIG_name "redland" #ifdef __cplusplus extern "C" { #endif #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" #include "php_redland.h" #ifdef __cplusplus } #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_p_void, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_p_void, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* end header section */ /* vdecl subsection */ static int le_swig__p_raptor_locator=0; /* handle for _p_raptor_locator */ static int le_swig__p_librdf_query_results=0; /* handle for _p_librdf_query_results */ static int le_swig__p_librdf_hash_s=0; /* handle for _p_librdf_hash_s */ static int le_swig__p_librdf_iterator_s=0; /* handle for _p_librdf_iterator_s */ static int le_swig__p_librdf_parser_s=0; /* handle for _p_librdf_parser_s */ static int le_swig__p_librdf_storage_s=0; /* handle for _p_librdf_storage_s */ static int le_swig__p_librdf_model_s=0; /* handle for _p_librdf_model_s */ static int le_swig__p_librdf_world_s=0; /* handle for _p_librdf_world_s */ static int le_swig__p_librdf_log_message=0; /* handle for _p_librdf_log_message */ static int le_swig__p_p_void=0; /* handle for _p_p_void */ static int le_swig__p_librdf_uri_s=0; /* handle for _p_librdf_uri_s */ static int le_swig__p_librdf_node_s=0; /* handle for _p_librdf_node_s */ static int le_swig__p_librdf_query=0; /* handle for _p_librdf_query */ static int le_swig__p_p_char=0; /* handle for _p_p_char */ static int le_swig__p_librdf_stream_s=0; /* handle for _p_librdf_stream_s */ static int le_swig__p_librdf_serializer_s=0; /* handle for _p_librdf_serializer_s */ static int le_swig__p_librdf_digest_s=0; /* handle for _p_librdf_digest_s */ static int le_swig__p_librdf_log_func=0; /* handle for _p_librdf_log_func */ static int le_swig__p_librdf_statement_s=0; /* handle for _p_librdf_statement_s */ /* end vdecl subsection */ /* wrapper section */ ZEND_NAMED_FUNCTION(_wrap_librdf_new_digest) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_digest *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_digest. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_digest *)librdf_new_digest(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_digest_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_digest) { librdf_digest *arg1 = (librdf_digest *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_digest. Expected SWIGTYPE_p_librdf_digest_s"); } } librdf_free_digest(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_digest_init) { librdf_digest *arg1 = (librdf_digest *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_digest_init. Expected SWIGTYPE_p_librdf_digest_s"); } } librdf_digest_init(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_digest_update) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; zval **args[3]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_digest_update. Expected SWIGTYPE_p_librdf_digest_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[2]); arg3 = (size_t) Z_LVAL_PP(args[2]); /*@SWIG@*/; librdf_digest_update(arg1,(char const *)arg2,arg3); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_digest_update_string) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_digest_update_string. Expected SWIGTYPE_p_librdf_digest_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; librdf_digest_update_string(arg1,(char const *)arg2); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_digest_final) { librdf_digest *arg1 = (librdf_digest *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_digest_final. Expected SWIGTYPE_p_librdf_digest_s"); } } librdf_digest_final(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_digest_to_string) { librdf_digest *arg1 = (librdf_digest *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_digest_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_digest_to_string. Expected SWIGTYPE_p_librdf_digest_s"); } } result = (char *)librdf_digest_to_string(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_hash *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_hash. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_hash_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash_from_string) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; zval **args[3]; librdf_hash *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_hash_from_string. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_hash_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash_from_array_of_strings) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; zval **args[3]; librdf_hash *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_hash_from_array_of_strings. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_char, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_new_hash_from_array_of_strings. Expected SWIGTYPE_p_p_char"); } } result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_hash_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_hash_to_string) { librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; zval **args[2]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_hash_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_hash_to_string. Expected SWIGTYPE_p_librdf_hash_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_hash_to_string. Expected SWIGTYPE_p_p_char"); } } result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_hash) { librdf_hash *arg1 = (librdf_hash *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_hash_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_hash. Expected SWIGTYPE_p_librdf_hash_s"); } } librdf_free_hash(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_world) { librdf_world *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (librdf_world *)librdf_new_world(); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_world_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_world) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_world. Expected SWIGTYPE_p_librdf_world_s"); } } librdf_free_world(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_world_open) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_world_open. Expected SWIGTYPE_p_librdf_world_s"); } } librdf_world_open(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_world_get_feature) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_world_get_feature. Expected SWIGTYPE_p_librdf_world_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_world_get_feature. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_world_get_feature(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_world_set_feature) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_world_set_feature. Expected SWIGTYPE_p_librdf_world_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_world_set_feature. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_world_set_feature. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_world_set_feature(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_accept_header) { librdf_parser *arg1 = (librdf_parser *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_get_accept_header. Expected SWIGTYPE_p_librdf_parser_s"); } } result = (char *)librdf_parser_get_accept_header(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_world_set_logger) { librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; librdf_log_func *tmp3 ; zval **args[3]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_world_set_logger. Expected SWIGTYPE_p_librdf_world_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, 0, 0) < 0) { /* Allow NULL from php for void* */ if ((*args[1])->type==IS_NULL) arg2=0; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_world_set_logger. Expected SWIGTYPE_p_p_void"); } } { if(SWIG_ConvertPtr(*args[2], (void **) &tmp3, SWIGTYPE_p_librdf_log_func, 0) < 0 || tmp3 == NULL) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_world_set_logger. Expected SWIGTYPE_p_librdf_log_func"); } arg3 = *tmp3; } librdf_world_set_logger(arg1,arg2,arg3); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_iterator) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_iterator_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_iterator. Expected SWIGTYPE_p_librdf_iterator_s"); } } librdf_free_iterator(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_end) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_iterator_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_iterator_end. Expected SWIGTYPE_p_librdf_iterator_s"); } } result = (int)librdf_iterator_end(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_get_object) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_iterator_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_iterator_get_object. Expected SWIGTYPE_p_librdf_iterator_s"); } } result = (librdf_node *)librdf_iterator_get_object(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_get_context) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_iterator_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_iterator_get_context. Expected SWIGTYPE_p_librdf_iterator_s"); } } result = (librdf_node *)librdf_iterator_get_context(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_next) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_iterator_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_iterator_next. Expected SWIGTYPE_p_librdf_iterator_s"); } } result = (int)librdf_iterator_next(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_uri. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_uri *)librdf_new_uri(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri_from_uri) { librdf_uri *arg1 = (librdf_uri *) 0 ; zval **args[1]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_uri_from_uri. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_uri *)librdf_new_uri_from_uri(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri_from_filename) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_uri_from_filename. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_uri) { librdf_uri *arg1 = (librdf_uri *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_uri. Expected SWIGTYPE_p_librdf_uri_s"); } librdf_free_uri(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_uri_to_string) { librdf_uri *arg1 = (librdf_uri *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_uri_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } result = (char *)librdf_uri_to_string(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_uri_equals) { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_uri_equals. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_uri_equals. Expected SWIGTYPE_p_librdf_uri_s"); } result = (int)librdf_uri_equals(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_uri_compare) { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_uri_compare. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_uri_compare. Expected SWIGTYPE_p_librdf_uri_s"); } result = (int)librdf_uri_compare(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node. Expected SWIGTYPE_p_librdf_world_s"); } } result = (librdf_node *)librdf_new_node(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri_string) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_uri_string. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_uri. Expected SWIGTYPE_p_librdf_world_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_new_node_from_uri. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri_local_name) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; zval **args[3]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_uri_local_name. Expected SWIGTYPE_p_librdf_world_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_new_node_from_uri_local_name. Expected SWIGTYPE_p_librdf_uri_s"); } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_normalised_uri_string) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; zval **args[4]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_normalised_uri_string. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_new_node_from_normalised_uri_string. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_new_node_from_normalised_uri_string. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_literal) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; zval **args[4]; int arg_count; librdf_node *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>4 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_literal. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(arg_count > 2) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; } if(arg_count > 3) { /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[3]); arg4 = (int) Z_LVAL_PP(args[3]); /*@SWIG@*/; } result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_typed_literal) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; zval **args[4]; int arg_count; librdf_node *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>4 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_typed_literal. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(arg_count > 2) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; } if(arg_count > 3) { if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_new_node_from_typed_literal. Expected SWIGTYPE_p_librdf_uri_s"); } } result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_node) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_node. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_node *)librdf_new_node_from_node(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_blank_identifier) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; zval **args[2]; int arg_count; librdf_node *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<1 || arg_count>2 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_node_from_blank_identifier. Expected SWIGTYPE_p_librdf_world_s"); } } if(arg_count > 1) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; } result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_node) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_node. Expected SWIGTYPE_p_librdf_node_s"); } librdf_free_node(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_uri) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_uri. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_uri *)librdf_node_get_uri(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_type) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_type. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_get_type(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_literal_value. Expected SWIGTYPE_p_librdf_node_s"); } result = (char *)librdf_node_get_literal_value(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_as_latin1) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_literal_value_as_latin1. Expected SWIGTYPE_p_librdf_node_s"); } result = (char *)librdf_node_get_literal_value_as_latin1(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_language) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_literal_value_language. Expected SWIGTYPE_p_librdf_node_s"); } result = (char *)librdf_node_get_literal_value_language(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_datatype_uri) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_literal_value_datatype_uri. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_is_wf_xml) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_literal_value_is_wf_xml. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_li_ordinal) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_li_ordinal. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_get_li_ordinal(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_to_string) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_to_string. Expected SWIGTYPE_p_librdf_node_s"); } result = (char *)librdf_node_to_string(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_blank_identifier) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_get_blank_identifier. Expected SWIGTYPE_p_librdf_node_s"); } result = (char *)librdf_node_get_blank_identifier(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_resource) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_is_resource. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_is_resource(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_literal) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_is_literal. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_is_literal(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_blank) { librdf_node *arg1 = (librdf_node *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_is_blank. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_is_blank(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_node_equals) { librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[0])->type==IS_NULL) arg1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_node_equals. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_node_equals. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_node_equals(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; librdf_statement *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_statement. Expected SWIGTYPE_p_librdf_world_s"); } } result = (librdf_statement *)librdf_new_statement(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_statement_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement_from_statement) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; librdf_statement *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_statement_from_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (librdf_statement *)librdf_new_statement_from_statement(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_statement_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement_from_nodes) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; zval **args[4]; librdf_statement *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_statement_from_nodes. Expected SWIGTYPE_p_librdf_world_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_new_statement_from_nodes. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_new_statement_from_nodes. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_new_statement_from_nodes. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_statement_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_statement) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } librdf_free_statement(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_subject) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_get_subject. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (librdf_node *)librdf_statement_get_subject(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_subject) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_set_subject. Expected SWIGTYPE_p_librdf_statement_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_statement_set_subject. Expected SWIGTYPE_p_librdf_node_s"); } librdf_statement_set_subject(arg1,arg2); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_predicate) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_get_predicate. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (librdf_node *)librdf_statement_get_predicate(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_predicate) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_set_predicate. Expected SWIGTYPE_p_librdf_statement_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_statement_set_predicate. Expected SWIGTYPE_p_librdf_node_s"); } librdf_statement_set_predicate(arg1,arg2); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_object) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_get_object. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (librdf_node *)librdf_statement_get_object(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_object) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_set_object. Expected SWIGTYPE_p_librdf_statement_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_statement_set_object. Expected SWIGTYPE_p_librdf_node_s"); } librdf_statement_set_object(arg1,arg2); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_equals) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_equals. Expected SWIGTYPE_p_librdf_statement_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_statement_equals. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_statement_equals(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_match) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_match. Expected SWIGTYPE_p_librdf_statement_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_statement_match. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_statement_match(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_to_string) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_to_string. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (char *)librdf_statement_to_string(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_statement_is_complete) { librdf_statement *arg1 = (librdf_statement *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_statement_is_complete. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_statement_is_complete(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_model) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; zval **args[3]; librdf_model *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_model. Expected SWIGTYPE_p_librdf_world_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_storage_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_new_model. Expected SWIGTYPE_p_librdf_storage_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_model_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_model_with_options) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; zval **args[3]; librdf_model *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_model_with_options. Expected SWIGTYPE_p_librdf_world_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_storage_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_new_model_with_options. Expected SWIGTYPE_p_librdf_storage_s"); } } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_hash_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_new_model_with_options. Expected SWIGTYPE_p_librdf_hash_s"); } } result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_model_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_model_from_model) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; librdf_model *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_model_from_model. Expected SWIGTYPE_p_librdf_model_s"); } } result = (librdf_model *)librdf_new_model_from_model(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_model_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_model) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_model. Expected SWIGTYPE_p_librdf_model_s"); } } librdf_free_model(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_size) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_size. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_model_size(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_add) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_add. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_add. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_add. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_model_add. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_add(arg1,arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_string_literal_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; zval **args[6]; int arg_count; int result; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<4 || arg_count>6 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_add_string_literal_statement. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_add_string_literal_statement. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_add_string_literal_statement. Expected SWIGTYPE_p_librdf_node_s"); } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; if(arg_count > 4) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[4])->type==IS_NULL) { arg5 = (char *) 0; } else { convert_to_string_ex(args[4]); arg5 = (char *) Z_STRVAL_PP(args[4]); } /*@SWIG@*/; } if(arg_count > 5) { /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[5]); arg6 = (int) Z_LVAL_PP(args[5]); /*@SWIG@*/; } result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_typed_literal_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; zval **args[6]; int arg_count; int result; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<5 || arg_count>6 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_add_typed_literal_statement. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_add_typed_literal_statement. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_add_typed_literal_statement. Expected SWIGTYPE_p_librdf_node_s"); } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[4])->type==IS_NULL) { arg5 = (char *) 0; } else { convert_to_string_ex(args[4]); arg5 = (char *) Z_STRVAL_PP(args[4]); } /*@SWIG@*/; if(arg_count > 5) { if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[5])->type==IS_NULL) arg6=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of librdf_model_add_typed_literal_statement. Expected SWIGTYPE_p_librdf_uri_s"); } } result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_add_statement. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_add_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_model_add_statement(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_statements) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_add_statements. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_add_statements. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (int)librdf_model_add_statements(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_remove_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_remove_statement. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_remove_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_model_remove_statement(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_contains_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_contains_statement. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_contains_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_model_contains_statement(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_as_stream) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_as_stream. Expected SWIGTYPE_p_librdf_model_s"); } } result = (librdf_stream *)librdf_model_as_stream(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_find_statements) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; zval **args[2]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_find_statements. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_find_statements. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_find_statements_in_context) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; zval **args[3]; int arg_count; librdf_stream *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_find_statements_in_context. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_find_statements_in_context. Expected SWIGTYPE_p_librdf_statement_s"); } } if(arg_count > 2) { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_find_statements_in_context. Expected SWIGTYPE_p_librdf_node_s"); } } result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_sources) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_sources. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_sources. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_sources. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_arcs. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_arcs. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_arcs. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_targets) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_targets. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_targets. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_targets. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_source) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_source. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_source. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_source. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arc) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_arc. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_arc. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_arc. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs_out) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_arcs_out. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_arcs_out. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs_in) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_arcs_in. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_arcs_in. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_has_arc_in) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_has_arc_in. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_has_arc_in. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_has_arc_in. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_has_arc_out) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_has_arc_out. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_has_arc_out. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_has_arc_out. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_target) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_target. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_target. Expected SWIGTYPE_p_librdf_node_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_get_target. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_add_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_context_add_statement. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_context_add_statement. Expected SWIGTYPE_p_librdf_node_s"); } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_context_add_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_add_statements) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_context_add_statements. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_context_add_statements. Expected SWIGTYPE_p_librdf_node_s"); } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_context_add_statements. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_remove_statement) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_context_remove_statement. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_context_remove_statement. Expected SWIGTYPE_p_librdf_node_s"); } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_statement_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_context_remove_statement. Expected SWIGTYPE_p_librdf_statement_s"); } } result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_remove_statements) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_context_remove_statements. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_context_remove_statements. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_context_remove_statements(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_as_stream) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_context_as_stream. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_context_as_stream. Expected SWIGTYPE_p_librdf_node_s"); } result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_sync) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_sync. Expected SWIGTYPE_p_librdf_model_s"); } } librdf_model_sync(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_contexts) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; librdf_iterator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_contexts. Expected SWIGTYPE_p_librdf_model_s"); } } result = (librdf_iterator *)librdf_model_get_contexts(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_iterator_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_contains_context) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_contains_context. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_contains_context. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_contains_context(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_feature) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_get_feature. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_get_feature. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_model_get_feature(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_set_feature) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_set_feature. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_set_feature. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_model_set_feature. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_model_set_feature(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_load) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; zval **args[5]; int arg_count; int result; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>5 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_load. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_load. Expected SWIGTYPE_p_librdf_uri_s"); } if(arg_count > 2) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; } if(arg_count > 3) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; } if(arg_count > 4) { if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[4])->type==IS_NULL) arg5=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_model_load. Expected SWIGTYPE_p_librdf_uri_s"); } } result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_query_execute) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; zval **args[2]; librdf_query_results *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_query_execute. Expected SWIGTYPE_p_librdf_model_s"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_query_execute. Expected SWIGTYPE_p_librdf_query"); } } result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_query_results, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_to_string) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; zval **args[5]; int arg_count; char *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>5 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_to_string. Expected SWIGTYPE_p_librdf_model_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_model_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } if(arg_count > 2) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; } if(arg_count > 3) { /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; } if(arg_count > 4) { if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[4])->type==IS_NULL) arg5=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_model_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } } result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_start) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_transaction_start. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_model_transaction_start(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_commit) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_transaction_commit. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_model_transaction_commit(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_rollback) { librdf_model *arg1 = (librdf_model *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_model_transaction_rollback. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_model_transaction_rollback(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_storage) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; zval **args[4]; librdf_storage *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_storage. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_storage_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_storage_from_storage) { librdf_storage *arg1 = (librdf_storage *) 0 ; zval **args[1]; librdf_storage *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_storage_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_storage_from_storage. Expected SWIGTYPE_p_librdf_storage_s"); } } result = (librdf_storage *)librdf_new_storage_from_storage(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_storage_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_storage) { librdf_storage *arg1 = (librdf_storage *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_storage_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_storage. Expected SWIGTYPE_p_librdf_storage_s"); } } librdf_free_storage(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_check_name) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_check_name. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (int)librdf_parser_check_name(arg1,(char const *)arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_parser) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; zval **args[4]; librdf_parser *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_parser. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_new_parser. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_parser_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_parser) { librdf_parser *arg1 = (librdf_parser *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_parser. Expected SWIGTYPE_p_librdf_parser_s"); } } librdf_free_parser(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_as_stream) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; zval **args[3]; int arg_count; librdf_stream *result = 0 ; SWIG_ResetError(); arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3 || zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_as_stream. Expected SWIGTYPE_p_librdf_parser_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_parser_parse_as_stream. Expected SWIGTYPE_p_librdf_uri_s"); } if(arg_count > 2) { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_parser_parse_as_stream. Expected SWIGTYPE_p_librdf_uri_s"); } } result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_into_model) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_into_model. Expected SWIGTYPE_p_librdf_parser_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_parser_parse_into_model. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_parser_parse_into_model. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_parser_parse_into_model. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_string_as_stream) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; zval **args[3]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_string_as_stream. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_parser_parse_string_as_stream. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_string_into_model) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_string_into_model. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_parser_parse_string_into_model. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_parser_parse_string_into_model. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_counted_string_as_stream) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; zval **args[4]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_counted_string_as_stream. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[2]); arg3 = (size_t) Z_LVAL_PP(args[2]); /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_parser_parse_counted_string_as_stream. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_counted_string_into_model) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; zval **args[5]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_parse_counted_string_into_model. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[2]); arg3 = (size_t) Z_LVAL_PP(args[2]); /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_parser_parse_counted_string_into_model. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_parser_parse_counted_string_into_model. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_feature) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_get_feature. Expected SWIGTYPE_p_librdf_parser_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_parser_get_feature. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_set_feature) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_set_feature. Expected SWIGTYPE_p_librdf_parser_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_parser_set_feature. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_parser_set_feature. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_parser_set_feature(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_guess_name) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; zval **args[3]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[0])->type==IS_NULL) { arg1 = (char *) 0; } else { convert_to_string_ex(args[0]); arg1 = (char *) Z_STRVAL_PP(args[0]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_guess_name2) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; zval **args[4]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_guess_name2. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_prefix) { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; zval **args[2]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_get_namespaces_seen_prefix. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_uri) { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; zval **args[2]; librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_get_namespaces_seen_uri. Expected SWIGTYPE_p_librdf_parser_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_count) { librdf_parser *arg1 = (librdf_parser *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_parser_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_parser_get_namespaces_seen_count. Expected SWIGTYPE_p_librdf_parser_s"); } } result = (int)librdf_parser_get_namespaces_seen_count(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_query) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; zval **args[5]; librdf_query *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_query. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_new_query. Expected SWIGTYPE_p_librdf_uri_s"); } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[3])->type==IS_NULL) { arg4 = (char *) 0; } else { convert_to_string_ex(args[3]); arg4 = (char *) Z_STRVAL_PP(args[3]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[4])->type==IS_NULL) arg5=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_new_query. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_query, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_query_from_query) { librdf_query *arg1 = (librdf_query *) 0 ; zval **args[1]; librdf_query *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_query_from_query. Expected SWIGTYPE_p_librdf_query"); } } result = (librdf_query *)librdf_new_query_from_query(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_query, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_query) { librdf_query *arg1 = (librdf_query *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_query. Expected SWIGTYPE_p_librdf_query"); } } librdf_free_query(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_execute) { librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; zval **args[2]; librdf_query_results *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_execute. Expected SWIGTYPE_p_librdf_query"); } } { if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_query_execute. Expected SWIGTYPE_p_librdf_model_s"); } } result = (librdf_query_results *)librdf_query_execute(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_query_results, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_get_limit) { librdf_query *arg1 = (librdf_query *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_get_limit. Expected SWIGTYPE_p_librdf_query"); } } result = (int)librdf_query_get_limit(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_set_limit) { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_set_limit. Expected SWIGTYPE_p_librdf_query"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (int)librdf_query_set_limit(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_get_offset) { librdf_query *arg1 = (librdf_query *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_get_offset. Expected SWIGTYPE_p_librdf_query"); } } result = (int)librdf_query_get_offset(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_set_offset) { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_set_offset. Expected SWIGTYPE_p_librdf_query"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (int)librdf_query_set_offset(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_as_stream) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; librdf_stream *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_as_stream. Expected SWIGTYPE_p_librdf_query_results"); } } result = (librdf_stream *)librdf_query_results_as_stream(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_stream_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_count) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_count. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_get_count(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_next) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_next. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_next(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_finished) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_finished. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_finished(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_value) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_binding_value. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_name) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; zval **args[2]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_binding_name. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg2 = (int) Z_LVAL_PP(args[1]); /*@SWIG@*/; result = (char *)librdf_query_results_get_binding_name(arg1,arg2); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_value_by_name) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_binding_value_by_name. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 1); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_bindings_count) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_bindings_count. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_get_bindings_count(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_file) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_to_file. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_query_results_to_file. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_query_results_to_file. Expected SWIGTYPE_p_librdf_uri_s"); } result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_file2) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; zval **args[5]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_to_file2. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_query_results_to_file2. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[4])->type==IS_NULL) arg5=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_query_results_to_file2. Expected SWIGTYPE_p_librdf_uri_s"); } result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_string) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; zval **args[3]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_to_string. Expected SWIGTYPE_p_librdf_query_results"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_query_results_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_query_results_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_string2) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; zval **args[5]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_to_string2. Expected SWIGTYPE_p_librdf_query_results"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_query_results_to_string2. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[4])->type==IS_NULL) arg5=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of librdf_query_results_to_string2. Expected SWIGTYPE_p_librdf_uri_s"); } result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_query_results) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_query_results. Expected SWIGTYPE_p_librdf_query_results"); } } librdf_free_query_results(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_bindings) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_is_bindings. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_is_bindings(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_boolean) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_is_boolean. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_is_boolean(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_graph) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_is_graph. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_is_graph(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_syntax) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_is_syntax. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_is_syntax(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_boolean) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_query_results, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_query_results_get_boolean. Expected SWIGTYPE_p_librdf_query_results"); } } result = (int)librdf_query_results_get_boolean(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_check_name) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; zval **args[2]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_check_name. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_new_serializer) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; zval **args[4]; librdf_serializer *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_new_serializer. Expected SWIGTYPE_p_librdf_world_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[3])->type==IS_NULL) arg4=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_new_serializer. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_serializer_s, 1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_serializer) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_serializer. Expected SWIGTYPE_p_librdf_serializer_s"); } } librdf_free_serializer(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_stream_to_file) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_serialize_stream_to_file. Expected SWIGTYPE_p_librdf_serializer_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_serializer_serialize_stream_to_file. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_serializer_serialize_stream_to_file. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_model_to_file) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; zval **args[4]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_serialize_model_to_file. Expected SWIGTYPE_p_librdf_serializer_s"); } } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[1])->type==IS_NULL) { arg2 = (char *) 0; } else { convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); } /*@SWIG@*/; if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_serializer_serialize_model_to_file. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of librdf_serializer_serialize_model_to_file. Expected SWIGTYPE_p_librdf_model_s"); } } result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_stream_to_string) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; zval **args[3]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_serialize_stream_to_string. Expected SWIGTYPE_p_librdf_serializer_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_serializer_serialize_stream_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_serializer_serialize_stream_to_string. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_model_to_string) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; zval **args[3]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_serialize_model_to_string. Expected SWIGTYPE_p_librdf_serializer_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_serializer_serialize_model_to_string. Expected SWIGTYPE_p_librdf_uri_s"); } { if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_model_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_serializer_serialize_model_to_string. Expected SWIGTYPE_p_librdf_model_s"); } } result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } free(result); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_get_feature) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; zval **args[2]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_get_feature. Expected SWIGTYPE_p_librdf_serializer_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_serializer_get_feature. Expected SWIGTYPE_p_librdf_uri_s"); } result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_set_feature) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_set_feature. Expected SWIGTYPE_p_librdf_serializer_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_serializer_set_feature. Expected SWIGTYPE_p_librdf_uri_s"); } if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*args[2])->type==IS_NULL) arg3=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of librdf_serializer_set_feature. Expected SWIGTYPE_p_librdf_node_s"); } result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_set_namespace) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; zval **args[3]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_serializer_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_serializer_set_namespace. Expected SWIGTYPE_p_librdf_serializer_s"); } } if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*args[1])->type==IS_NULL) arg2=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of librdf_serializer_set_namespace. Expected SWIGTYPE_p_librdf_uri_s"); } /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/ if ((*args[2])->type==IS_NULL) { arg3 = (char *) 0; } else { convert_to_string_ex(args[2]); arg3 = (char *) Z_STRVAL_PP(args[2]); } /*@SWIG@*/; result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_free_stream) { librdf_stream *arg1 = (librdf_stream *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_free_stream. Expected SWIGTYPE_p_librdf_stream_s"); } } librdf_free_stream(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_stream_end) { librdf_stream *arg1 = (librdf_stream *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_stream_end. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (int)librdf_stream_end(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_stream_next) { librdf_stream *arg1 = (librdf_stream *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_stream_next. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (int)librdf_stream_next(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_stream_get_object) { librdf_stream *arg1 = (librdf_stream *) 0 ; zval **args[1]; librdf_statement *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_stream_get_object. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (librdf_statement *)librdf_stream_get_object(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_statement_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_stream_get_context) { librdf_stream *arg1 = (librdf_stream *) 0 ; zval **args[1]; librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_stream_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_stream_get_context. Expected SWIGTYPE_p_librdf_stream_s"); } } result = (librdf_node *)librdf_stream_get_context(arg1); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_code) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_log_message, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_log_message_code. Expected SWIGTYPE_p_librdf_log_message"); } } result = (int)librdf_log_message_code(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_level) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_log_message, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_log_message_level. Expected SWIGTYPE_p_librdf_log_message"); } } result = (int)librdf_log_message_level(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_facility) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_log_message, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_log_message_facility. Expected SWIGTYPE_p_librdf_log_message"); } } result = (int)librdf_log_message_facility(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_message) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_log_message, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_log_message_message. Expected SWIGTYPE_p_librdf_log_message"); } } result = (char *)librdf_log_message_message(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_locator) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; zval **args[1]; raptor_locator *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_log_message, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_log_message_locator. Expected SWIGTYPE_p_librdf_log_message"); } } result = (raptor_locator *)librdf_log_message_locator(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_raptor_locator, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_locator_line) { raptor_locator *arg1 = (raptor_locator *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_raptor_locator, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of raptor_locator_line. Expected SWIGTYPE_p_raptor_locator"); } } result = (int)raptor_locator_line(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_locator_column) { raptor_locator *arg1 = (raptor_locator *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_raptor_locator, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of raptor_locator_column. Expected SWIGTYPE_p_raptor_locator"); } } result = (int)raptor_locator_column(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_locator_byte) { raptor_locator *arg1 = (raptor_locator *) 0 ; zval **args[1]; int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_raptor_locator, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of raptor_locator_byte. Expected SWIGTYPE_p_raptor_locator"); } } result = (int)raptor_locator_byte(arg1); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_locator_file) { raptor_locator *arg1 = (raptor_locator *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_raptor_locator, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of raptor_locator_file. Expected SWIGTYPE_p_raptor_locator"); } } result = (char *)raptor_locator_file(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_locator_uri) { raptor_locator *arg1 = (raptor_locator *) 0 ; zval **args[1]; char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_raptor_locator, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of raptor_locator_uri. Expected SWIGTYPE_p_raptor_locator"); } } result = (char *)raptor_locator_uri(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_internal_test_error) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_internal_test_error. Expected SWIGTYPE_p_librdf_world_s"); } } librdf_internal_test_error(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_internal_test_warning) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_internal_test_warning. Expected SWIGTYPE_p_librdf_world_s"); } } librdf_internal_test_warning(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_short_copyright_string_get) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)(char *)librdf_short_copyright_string; { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_copyright_string_get) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)(char *)librdf_copyright_string; { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_version_string_get) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)(char *)librdf_version_string; { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_version_major_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)librdf_version_major; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_version_minor_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)librdf_version_minor; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_version_release_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)librdf_version_release; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_version_decimal_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)librdf_version_decimal; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_version_string_get) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)(char *)raptor_version_string; { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_version_major_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)raptor_version_major; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_version_minor_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)raptor_version_minor; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_version_release_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)raptor_version_release; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_raptor_version_decimal_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)raptor_version_decimal; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_rasqal_version_string_get) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)(char *)rasqal_version_string; { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_rasqal_version_major_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)rasqal_version_major; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_rasqal_version_minor_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)rasqal_version_minor; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_rasqal_version_release_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)rasqal_version_release; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_rasqal_version_decimal_get) { unsigned int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)(unsigned int)rasqal_version_decimal; { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_world) { librdf_world *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (librdf_world *)librdf_php_get_world(); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_world_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_world_set_logger) { librdf_world *arg1 = (librdf_world *) 0 ; zval **args[1]; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } { if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_librdf_world_s, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of librdf_php_world_set_logger. Expected SWIGTYPE_p_librdf_world_s"); } } librdf_php_world_set_logger(arg1); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_world_finish) { SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } librdf_php_world_finish(); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_null_node) { librdf_node *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (librdf_node *)librdf_php_get_null_node(); if(!result) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_node_s, 0); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_null_uri) { librdf_uri *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (librdf_uri *)librdf_php_get_null_uri(); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_librdf_uri_s, 0); return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_level) { int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)librdf_php_last_log_level(); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_code) { int result; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)librdf_php_last_log_code(); { ZVAL_LONG(return_value,result); } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_message) { char *result = 0 ; SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (char *)librdf_php_last_log_message(); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value, (char *)result, 1); } } return; fail: SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_librdf_php_free_last_log) { SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } librdf_php_free_last_log(); return; fail: SWIG_FAIL(); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_raptor_locator) { /* No destructor for simple type _p_raptor_locator */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_query_results) { /* No destructor for simple type _p_librdf_query_results */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_hash_s) { /* No destructor for simple type _p_librdf_hash_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_iterator_s) { /* No destructor for simple type _p_librdf_iterator_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_parser_s) { /* No destructor for simple type _p_librdf_parser_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_storage_s) { /* No destructor for simple type _p_librdf_storage_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_model_s) { /* No destructor for simple type _p_librdf_model_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_world_s) { /* No destructor for simple type _p_librdf_world_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_log_message) { /* No destructor for simple type _p_librdf_log_message */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_void) { /* No destructor for simple type _p_p_void */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_uri_s) { /* No destructor for simple type _p_librdf_uri_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_node_s) { /* No destructor for simple type _p_librdf_node_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_query) { /* No destructor for simple type _p_librdf_query */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char) { /* No destructor for simple type _p_p_char */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_stream_s) { /* No destructor for simple type _p_librdf_stream_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_serializer_s) { /* No destructor for simple type _p_librdf_serializer_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_digest_s) { /* No destructor for simple type _p_librdf_digest_s */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_log_func) { /* No destructor for simple type _p_librdf_log_func */ efree(rsrc->ptr); } static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_librdf_statement_s) { /* No destructor for simple type _p_librdf_statement_s */ efree(rsrc->ptr); } /* end wrapper section */ /* class entry subsection */ /* entry subsection */ /* Every non-class user visible function must have an entry here */ static zend_function_entry redland_functions[] = { SWIG_ZEND_NAMED_FE(librdf_new_digest,_wrap_librdf_new_digest,NULL) SWIG_ZEND_NAMED_FE(librdf_free_digest,_wrap_librdf_free_digest,NULL) SWIG_ZEND_NAMED_FE(librdf_digest_init,_wrap_librdf_digest_init,NULL) SWIG_ZEND_NAMED_FE(librdf_digest_update,_wrap_librdf_digest_update,NULL) SWIG_ZEND_NAMED_FE(librdf_digest_update_string,_wrap_librdf_digest_update_string,NULL) SWIG_ZEND_NAMED_FE(librdf_digest_final,_wrap_librdf_digest_final,NULL) SWIG_ZEND_NAMED_FE(librdf_digest_to_string,_wrap_librdf_digest_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_new_hash,_wrap_librdf_new_hash,NULL) SWIG_ZEND_NAMED_FE(librdf_new_hash_from_string,_wrap_librdf_new_hash_from_string,NULL) SWIG_ZEND_NAMED_FE(librdf_new_hash_from_array_of_strings,_wrap_librdf_new_hash_from_array_of_strings,NULL) SWIG_ZEND_NAMED_FE(librdf_hash_to_string,_wrap_librdf_hash_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_free_hash,_wrap_librdf_free_hash,NULL) SWIG_ZEND_NAMED_FE(librdf_new_world,_wrap_librdf_new_world,NULL) SWIG_ZEND_NAMED_FE(librdf_free_world,_wrap_librdf_free_world,NULL) SWIG_ZEND_NAMED_FE(librdf_world_open,_wrap_librdf_world_open,NULL) SWIG_ZEND_NAMED_FE(librdf_world_get_feature,_wrap_librdf_world_get_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_world_set_feature,_wrap_librdf_world_set_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_get_accept_header,_wrap_librdf_parser_get_accept_header,NULL) SWIG_ZEND_NAMED_FE(librdf_world_set_logger,_wrap_librdf_world_set_logger,NULL) SWIG_ZEND_NAMED_FE(librdf_free_iterator,_wrap_librdf_free_iterator,NULL) SWIG_ZEND_NAMED_FE(librdf_iterator_end,_wrap_librdf_iterator_end,NULL) SWIG_ZEND_NAMED_FE(librdf_iterator_get_object,_wrap_librdf_iterator_get_object,NULL) SWIG_ZEND_NAMED_FE(librdf_iterator_get_context,_wrap_librdf_iterator_get_context,NULL) SWIG_ZEND_NAMED_FE(librdf_iterator_next,_wrap_librdf_iterator_next,NULL) SWIG_ZEND_NAMED_FE(librdf_new_uri,_wrap_librdf_new_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_new_uri_from_uri,_wrap_librdf_new_uri_from_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_new_uri_from_filename,_wrap_librdf_new_uri_from_filename,NULL) SWIG_ZEND_NAMED_FE(librdf_free_uri,_wrap_librdf_free_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_uri_to_string,_wrap_librdf_uri_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_uri_equals,_wrap_librdf_uri_equals,NULL) SWIG_ZEND_NAMED_FE(librdf_uri_compare,_wrap_librdf_uri_compare,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node,_wrap_librdf_new_node,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_uri_string,_wrap_librdf_new_node_from_uri_string,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_uri,_wrap_librdf_new_node_from_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_uri_local_name,_wrap_librdf_new_node_from_uri_local_name,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_normalised_uri_string,_wrap_librdf_new_node_from_normalised_uri_string,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_literal,_wrap_librdf_new_node_from_literal,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_typed_literal,_wrap_librdf_new_node_from_typed_literal,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_node,_wrap_librdf_new_node_from_node,NULL) SWIG_ZEND_NAMED_FE(librdf_new_node_from_blank_identifier,_wrap_librdf_new_node_from_blank_identifier,NULL) SWIG_ZEND_NAMED_FE(librdf_free_node,_wrap_librdf_free_node,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_uri,_wrap_librdf_node_get_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_type,_wrap_librdf_node_get_type,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_literal_value,_wrap_librdf_node_get_literal_value,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_literal_value_as_latin1,_wrap_librdf_node_get_literal_value_as_latin1,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_literal_value_language,_wrap_librdf_node_get_literal_value_language,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_literal_value_datatype_uri,_wrap_librdf_node_get_literal_value_datatype_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_literal_value_is_wf_xml,_wrap_librdf_node_get_literal_value_is_wf_xml,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_li_ordinal,_wrap_librdf_node_get_li_ordinal,NULL) SWIG_ZEND_NAMED_FE(librdf_node_to_string,_wrap_librdf_node_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_node_get_blank_identifier,_wrap_librdf_node_get_blank_identifier,NULL) SWIG_ZEND_NAMED_FE(librdf_node_is_resource,_wrap_librdf_node_is_resource,NULL) SWIG_ZEND_NAMED_FE(librdf_node_is_literal,_wrap_librdf_node_is_literal,NULL) SWIG_ZEND_NAMED_FE(librdf_node_is_blank,_wrap_librdf_node_is_blank,NULL) SWIG_ZEND_NAMED_FE(librdf_node_equals,_wrap_librdf_node_equals,NULL) SWIG_ZEND_NAMED_FE(librdf_new_statement,_wrap_librdf_new_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_new_statement_from_statement,_wrap_librdf_new_statement_from_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_new_statement_from_nodes,_wrap_librdf_new_statement_from_nodes,NULL) SWIG_ZEND_NAMED_FE(librdf_free_statement,_wrap_librdf_free_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_get_subject,_wrap_librdf_statement_get_subject,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_set_subject,_wrap_librdf_statement_set_subject,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_get_predicate,_wrap_librdf_statement_get_predicate,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_set_predicate,_wrap_librdf_statement_set_predicate,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_get_object,_wrap_librdf_statement_get_object,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_set_object,_wrap_librdf_statement_set_object,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_equals,_wrap_librdf_statement_equals,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_match,_wrap_librdf_statement_match,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_to_string,_wrap_librdf_statement_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_statement_is_complete,_wrap_librdf_statement_is_complete,NULL) SWIG_ZEND_NAMED_FE(librdf_new_model,_wrap_librdf_new_model,NULL) SWIG_ZEND_NAMED_FE(librdf_new_model_with_options,_wrap_librdf_new_model_with_options,NULL) SWIG_ZEND_NAMED_FE(librdf_new_model_from_model,_wrap_librdf_new_model_from_model,NULL) SWIG_ZEND_NAMED_FE(librdf_free_model,_wrap_librdf_free_model,NULL) SWIG_ZEND_NAMED_FE(librdf_model_size,_wrap_librdf_model_size,NULL) SWIG_ZEND_NAMED_FE(librdf_model_add,_wrap_librdf_model_add,NULL) SWIG_ZEND_NAMED_FE(librdf_model_add_string_literal_statement,_wrap_librdf_model_add_string_literal_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_add_typed_literal_statement,_wrap_librdf_model_add_typed_literal_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_add_statement,_wrap_librdf_model_add_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_add_statements,_wrap_librdf_model_add_statements,NULL) SWIG_ZEND_NAMED_FE(librdf_model_remove_statement,_wrap_librdf_model_remove_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_contains_statement,_wrap_librdf_model_contains_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_as_stream,_wrap_librdf_model_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_model_find_statements,_wrap_librdf_model_find_statements,NULL) SWIG_ZEND_NAMED_FE(librdf_model_find_statements_in_context,_wrap_librdf_model_find_statements_in_context,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_sources,_wrap_librdf_model_get_sources,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_arcs,_wrap_librdf_model_get_arcs,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_targets,_wrap_librdf_model_get_targets,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_source,_wrap_librdf_model_get_source,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_arc,_wrap_librdf_model_get_arc,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_arcs_out,_wrap_librdf_model_get_arcs_out,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_arcs_in,_wrap_librdf_model_get_arcs_in,NULL) SWIG_ZEND_NAMED_FE(librdf_model_has_arc_in,_wrap_librdf_model_has_arc_in,NULL) SWIG_ZEND_NAMED_FE(librdf_model_has_arc_out,_wrap_librdf_model_has_arc_out,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_target,_wrap_librdf_model_get_target,NULL) SWIG_ZEND_NAMED_FE(librdf_model_context_add_statement,_wrap_librdf_model_context_add_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_context_add_statements,_wrap_librdf_model_context_add_statements,NULL) SWIG_ZEND_NAMED_FE(librdf_model_context_remove_statement,_wrap_librdf_model_context_remove_statement,NULL) SWIG_ZEND_NAMED_FE(librdf_model_context_remove_statements,_wrap_librdf_model_context_remove_statements,NULL) SWIG_ZEND_NAMED_FE(librdf_model_context_as_stream,_wrap_librdf_model_context_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_model_sync,_wrap_librdf_model_sync,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_contexts,_wrap_librdf_model_get_contexts,NULL) SWIG_ZEND_NAMED_FE(librdf_model_contains_context,_wrap_librdf_model_contains_context,NULL) SWIG_ZEND_NAMED_FE(librdf_model_get_feature,_wrap_librdf_model_get_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_model_set_feature,_wrap_librdf_model_set_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_model_load,_wrap_librdf_model_load,NULL) SWIG_ZEND_NAMED_FE(librdf_model_query_execute,_wrap_librdf_model_query_execute,NULL) SWIG_ZEND_NAMED_FE(librdf_model_to_string,_wrap_librdf_model_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_model_transaction_start,_wrap_librdf_model_transaction_start,NULL) SWIG_ZEND_NAMED_FE(librdf_model_transaction_commit,_wrap_librdf_model_transaction_commit,NULL) SWIG_ZEND_NAMED_FE(librdf_model_transaction_rollback,_wrap_librdf_model_transaction_rollback,NULL) SWIG_ZEND_NAMED_FE(librdf_new_storage,_wrap_librdf_new_storage,NULL) SWIG_ZEND_NAMED_FE(librdf_new_storage_from_storage,_wrap_librdf_new_storage_from_storage,NULL) SWIG_ZEND_NAMED_FE(librdf_free_storage,_wrap_librdf_free_storage,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_check_name,_wrap_librdf_parser_check_name,NULL) SWIG_ZEND_NAMED_FE(librdf_new_parser,_wrap_librdf_new_parser,NULL) SWIG_ZEND_NAMED_FE(librdf_free_parser,_wrap_librdf_free_parser,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_as_stream,_wrap_librdf_parser_parse_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_into_model,_wrap_librdf_parser_parse_into_model,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_string_as_stream,_wrap_librdf_parser_parse_string_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_string_into_model,_wrap_librdf_parser_parse_string_into_model,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_counted_string_as_stream,_wrap_librdf_parser_parse_counted_string_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_parse_counted_string_into_model,_wrap_librdf_parser_parse_counted_string_into_model,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_get_feature,_wrap_librdf_parser_get_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_set_feature,_wrap_librdf_parser_set_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_guess_name,_wrap_librdf_parser_guess_name,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_guess_name2,_wrap_librdf_parser_guess_name2,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_get_namespaces_seen_prefix,_wrap_librdf_parser_get_namespaces_seen_prefix,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_get_namespaces_seen_uri,_wrap_librdf_parser_get_namespaces_seen_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_parser_get_namespaces_seen_count,_wrap_librdf_parser_get_namespaces_seen_count,NULL) SWIG_ZEND_NAMED_FE(librdf_new_query,_wrap_librdf_new_query,NULL) SWIG_ZEND_NAMED_FE(librdf_new_query_from_query,_wrap_librdf_new_query_from_query,NULL) SWIG_ZEND_NAMED_FE(librdf_free_query,_wrap_librdf_free_query,NULL) SWIG_ZEND_NAMED_FE(librdf_query_execute,_wrap_librdf_query_execute,NULL) SWIG_ZEND_NAMED_FE(librdf_query_get_limit,_wrap_librdf_query_get_limit,NULL) SWIG_ZEND_NAMED_FE(librdf_query_set_limit,_wrap_librdf_query_set_limit,NULL) SWIG_ZEND_NAMED_FE(librdf_query_get_offset,_wrap_librdf_query_get_offset,NULL) SWIG_ZEND_NAMED_FE(librdf_query_set_offset,_wrap_librdf_query_set_offset,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_as_stream,_wrap_librdf_query_results_as_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_count,_wrap_librdf_query_results_get_count,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_next,_wrap_librdf_query_results_next,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_finished,_wrap_librdf_query_results_finished,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_binding_value,_wrap_librdf_query_results_get_binding_value,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_binding_name,_wrap_librdf_query_results_get_binding_name,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_binding_value_by_name,_wrap_librdf_query_results_get_binding_value_by_name,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_bindings_count,_wrap_librdf_query_results_get_bindings_count,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_to_file,_wrap_librdf_query_results_to_file,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_to_file2,_wrap_librdf_query_results_to_file2,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_to_string,_wrap_librdf_query_results_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_to_string2,_wrap_librdf_query_results_to_string2,NULL) SWIG_ZEND_NAMED_FE(librdf_free_query_results,_wrap_librdf_free_query_results,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_is_bindings,_wrap_librdf_query_results_is_bindings,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_is_boolean,_wrap_librdf_query_results_is_boolean,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_is_graph,_wrap_librdf_query_results_is_graph,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_is_syntax,_wrap_librdf_query_results_is_syntax,NULL) SWIG_ZEND_NAMED_FE(librdf_query_results_get_boolean,_wrap_librdf_query_results_get_boolean,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_check_name,_wrap_librdf_serializer_check_name,NULL) SWIG_ZEND_NAMED_FE(librdf_new_serializer,_wrap_librdf_new_serializer,NULL) SWIG_ZEND_NAMED_FE(librdf_free_serializer,_wrap_librdf_free_serializer,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_serialize_stream_to_file,_wrap_librdf_serializer_serialize_stream_to_file,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_serialize_model_to_file,_wrap_librdf_serializer_serialize_model_to_file,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_serialize_stream_to_string,_wrap_librdf_serializer_serialize_stream_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_serialize_model_to_string,_wrap_librdf_serializer_serialize_model_to_string,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_get_feature,_wrap_librdf_serializer_get_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_set_feature,_wrap_librdf_serializer_set_feature,NULL) SWIG_ZEND_NAMED_FE(librdf_serializer_set_namespace,_wrap_librdf_serializer_set_namespace,NULL) SWIG_ZEND_NAMED_FE(librdf_free_stream,_wrap_librdf_free_stream,NULL) SWIG_ZEND_NAMED_FE(librdf_stream_end,_wrap_librdf_stream_end,NULL) SWIG_ZEND_NAMED_FE(librdf_stream_next,_wrap_librdf_stream_next,NULL) SWIG_ZEND_NAMED_FE(librdf_stream_get_object,_wrap_librdf_stream_get_object,NULL) SWIG_ZEND_NAMED_FE(librdf_stream_get_context,_wrap_librdf_stream_get_context,NULL) SWIG_ZEND_NAMED_FE(librdf_log_message_code,_wrap_librdf_log_message_code,NULL) SWIG_ZEND_NAMED_FE(librdf_log_message_level,_wrap_librdf_log_message_level,NULL) SWIG_ZEND_NAMED_FE(librdf_log_message_facility,_wrap_librdf_log_message_facility,NULL) SWIG_ZEND_NAMED_FE(librdf_log_message_message,_wrap_librdf_log_message_message,NULL) SWIG_ZEND_NAMED_FE(librdf_log_message_locator,_wrap_librdf_log_message_locator,NULL) SWIG_ZEND_NAMED_FE(raptor_locator_line,_wrap_raptor_locator_line,NULL) SWIG_ZEND_NAMED_FE(raptor_locator_column,_wrap_raptor_locator_column,NULL) SWIG_ZEND_NAMED_FE(raptor_locator_byte,_wrap_raptor_locator_byte,NULL) SWIG_ZEND_NAMED_FE(raptor_locator_file,_wrap_raptor_locator_file,NULL) SWIG_ZEND_NAMED_FE(raptor_locator_uri,_wrap_raptor_locator_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_internal_test_error,_wrap_librdf_internal_test_error,NULL) SWIG_ZEND_NAMED_FE(librdf_internal_test_warning,_wrap_librdf_internal_test_warning,NULL) SWIG_ZEND_NAMED_FE(librdf_short_copyright_string_get,_wrap_librdf_short_copyright_string_get,NULL) SWIG_ZEND_NAMED_FE(librdf_copyright_string_get,_wrap_librdf_copyright_string_get,NULL) SWIG_ZEND_NAMED_FE(librdf_version_string_get,_wrap_librdf_version_string_get,NULL) SWIG_ZEND_NAMED_FE(librdf_version_major_get,_wrap_librdf_version_major_get,NULL) SWIG_ZEND_NAMED_FE(librdf_version_minor_get,_wrap_librdf_version_minor_get,NULL) SWIG_ZEND_NAMED_FE(librdf_version_release_get,_wrap_librdf_version_release_get,NULL) SWIG_ZEND_NAMED_FE(librdf_version_decimal_get,_wrap_librdf_version_decimal_get,NULL) SWIG_ZEND_NAMED_FE(raptor_version_string_get,_wrap_raptor_version_string_get,NULL) SWIG_ZEND_NAMED_FE(raptor_version_major_get,_wrap_raptor_version_major_get,NULL) SWIG_ZEND_NAMED_FE(raptor_version_minor_get,_wrap_raptor_version_minor_get,NULL) SWIG_ZEND_NAMED_FE(raptor_version_release_get,_wrap_raptor_version_release_get,NULL) SWIG_ZEND_NAMED_FE(raptor_version_decimal_get,_wrap_raptor_version_decimal_get,NULL) SWIG_ZEND_NAMED_FE(rasqal_version_string_get,_wrap_rasqal_version_string_get,NULL) SWIG_ZEND_NAMED_FE(rasqal_version_major_get,_wrap_rasqal_version_major_get,NULL) SWIG_ZEND_NAMED_FE(rasqal_version_minor_get,_wrap_rasqal_version_minor_get,NULL) SWIG_ZEND_NAMED_FE(rasqal_version_release_get,_wrap_rasqal_version_release_get,NULL) SWIG_ZEND_NAMED_FE(rasqal_version_decimal_get,_wrap_rasqal_version_decimal_get,NULL) SWIG_ZEND_NAMED_FE(librdf_php_get_world,_wrap_librdf_php_get_world,NULL) SWIG_ZEND_NAMED_FE(librdf_php_world_set_logger,_wrap_librdf_php_world_set_logger,NULL) SWIG_ZEND_NAMED_FE(librdf_php_world_finish,_wrap_librdf_php_world_finish,NULL) SWIG_ZEND_NAMED_FE(librdf_php_get_null_node,_wrap_librdf_php_get_null_node,NULL) SWIG_ZEND_NAMED_FE(librdf_php_get_null_uri,_wrap_librdf_php_get_null_uri,NULL) SWIG_ZEND_NAMED_FE(librdf_php_last_log_level,_wrap_librdf_php_last_log_level,NULL) SWIG_ZEND_NAMED_FE(librdf_php_last_log_code,_wrap_librdf_php_last_log_code,NULL) SWIG_ZEND_NAMED_FE(librdf_php_last_log_message,_wrap_librdf_php_last_log_message,NULL) SWIG_ZEND_NAMED_FE(librdf_php_free_last_log,_wrap_librdf_php_free_last_log,NULL) SWIG_ZEND_NAMED_FE(swig_redland_alter_newobject,_wrap_swig_redland_alter_newobject,NULL) SWIG_ZEND_NAMED_FE(swig_redland_get_newobject,_wrap_swig_redland_get_newobject,NULL) {NULL, NULL, NULL} }; /* init section */ #if ZEND_MODULE_API_NO <= 20090626 #undef ZEND_MODULE_BUILD_ID #define ZEND_MODULE_BUILD_ID (char*)"API" ZEND_TOSTR(ZEND_MODULE_API_NO) ZEND_BUILD_TS ZEND_BUILD_DEBUG ZEND_BUILD_SYSTEM ZEND_BUILD_EXTRA #endif zend_module_entry redland_module_entry = { STANDARD_MODULE_HEADER, (char*)"redland", redland_functions, PHP_MINIT(redland), PHP_MSHUTDOWN(redland), PHP_RINIT(redland), PHP_RSHUTDOWN(redland), PHP_MINFO(redland), NO_VERSION_YET, STANDARD_MODULE_PROPERTIES }; zend_module_entry* SWIG_module_entry = &redland_module_entry; #ifdef __cplusplus extern "C" { #endif SWIGEXPORT zend_module_entry *get_module(void) { return &redland_module_entry; } #ifdef __cplusplus } #endif #define SWIG_php_minit PHP_MINIT_FUNCTION(redland) /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; clientdata = clientdata; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif SWIG_php_minit { SWIG_InitializeModule(0); /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif /* oinit subsection */ ZEND_INIT_MODULE_GLOBALS(redland, redland_init_globals, redland_destroy_globals); /* Register resource destructors for pointer types */ le_swig__p_raptor_locator=zend_register_list_destructors_ex(_wrap_destroy_p_raptor_locator,NULL,(char *)(SWIGTYPE_p_raptor_locator->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_raptor_locator,&le_swig__p_raptor_locator); le_swig__p_librdf_query_results=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_query_results,NULL,(char *)(SWIGTYPE_p_librdf_query_results->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_query_results,&le_swig__p_librdf_query_results); le_swig__p_librdf_hash_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_hash_s,NULL,(char *)(SWIGTYPE_p_librdf_hash_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_hash_s,&le_swig__p_librdf_hash_s); le_swig__p_librdf_iterator_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_iterator_s,NULL,(char *)(SWIGTYPE_p_librdf_iterator_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_iterator_s,&le_swig__p_librdf_iterator_s); le_swig__p_librdf_parser_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_parser_s,NULL,(char *)(SWIGTYPE_p_librdf_parser_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_parser_s,&le_swig__p_librdf_parser_s); le_swig__p_librdf_storage_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_storage_s,NULL,(char *)(SWIGTYPE_p_librdf_storage_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_storage_s,&le_swig__p_librdf_storage_s); le_swig__p_librdf_model_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_model_s,NULL,(char *)(SWIGTYPE_p_librdf_model_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_model_s,&le_swig__p_librdf_model_s); le_swig__p_librdf_world_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_world_s,NULL,(char *)(SWIGTYPE_p_librdf_world_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_world_s,&le_swig__p_librdf_world_s); le_swig__p_librdf_log_message=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_log_message,NULL,(char *)(SWIGTYPE_p_librdf_log_message->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_log_message,&le_swig__p_librdf_log_message); le_swig__p_p_void=zend_register_list_destructors_ex(_wrap_destroy_p_p_void,NULL,(char *)(SWIGTYPE_p_p_void->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_void,&le_swig__p_p_void); le_swig__p_librdf_uri_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_uri_s,NULL,(char *)(SWIGTYPE_p_librdf_uri_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_uri_s,&le_swig__p_librdf_uri_s); le_swig__p_librdf_node_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_node_s,NULL,(char *)(SWIGTYPE_p_librdf_node_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_node_s,&le_swig__p_librdf_node_s); le_swig__p_librdf_query=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_query,NULL,(char *)(SWIGTYPE_p_librdf_query->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_query,&le_swig__p_librdf_query); le_swig__p_p_char=zend_register_list_destructors_ex(_wrap_destroy_p_p_char,NULL,(char *)(SWIGTYPE_p_p_char->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_char,&le_swig__p_p_char); le_swig__p_librdf_stream_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_stream_s,NULL,(char *)(SWIGTYPE_p_librdf_stream_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_stream_s,&le_swig__p_librdf_stream_s); le_swig__p_librdf_serializer_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_serializer_s,NULL,(char *)(SWIGTYPE_p_librdf_serializer_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_serializer_s,&le_swig__p_librdf_serializer_s); le_swig__p_librdf_digest_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_digest_s,NULL,(char *)(SWIGTYPE_p_librdf_digest_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_digest_s,&le_swig__p_librdf_digest_s); le_swig__p_librdf_log_func=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_log_func,NULL,(char *)(SWIGTYPE_p_librdf_log_func->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_log_func,&le_swig__p_librdf_log_func); le_swig__p_librdf_statement_s=zend_register_list_destructors_ex(_wrap_destroy_p_librdf_statement_s,NULL,(char *)(SWIGTYPE_p_librdf_statement_s->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_librdf_statement_s,&le_swig__p_librdf_statement_s); CG(active_class_entry) = NULL; /* end oinit subsection */ /* cinit subsection */ /* end cinit subsection */ return SUCCESS; } PHP_RINIT_FUNCTION(redland) { /* rinit section */ /* vinit subsection */ { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_STRING; if(librdf_short_copyright_string) { z_var->value.str.val = estrdup(librdf_short_copyright_string); z_var->value.str.len = strlen(librdf_short_copyright_string); } else { z_var->value.str.val = 0; z_var->value.str.len = 0; } zend_hash_add(&EG(symbol_table), (char*)"librdf_short_copyright_string", sizeof("librdf_short_copyright_string"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_STRING; if(librdf_copyright_string) { z_var->value.str.val = estrdup(librdf_copyright_string); z_var->value.str.len = strlen(librdf_copyright_string); } else { z_var->value.str.val = 0; z_var->value.str.len = 0; } zend_hash_add(&EG(symbol_table), (char*)"librdf_copyright_string", sizeof("librdf_copyright_string"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_STRING; if(librdf_version_string) { z_var->value.str.val = estrdup(librdf_version_string); z_var->value.str.len = strlen(librdf_version_string); } else { z_var->value.str.val = 0; z_var->value.str.len = 0; } zend_hash_add(&EG(symbol_table), (char*)"librdf_version_string", sizeof("librdf_version_string"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = librdf_version_major; zend_hash_add(&EG(symbol_table), (char*)"librdf_version_major", sizeof("librdf_version_major"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = librdf_version_minor; zend_hash_add(&EG(symbol_table), (char*)"librdf_version_minor", sizeof("librdf_version_minor"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = librdf_version_release; zend_hash_add(&EG(symbol_table), (char*)"librdf_version_release", sizeof("librdf_version_release"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = librdf_version_decimal; zend_hash_add(&EG(symbol_table), (char*)"librdf_version_decimal", sizeof("librdf_version_decimal"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_STRING; if(raptor_version_string) { z_var->value.str.val = estrdup(raptor_version_string); z_var->value.str.len = strlen(raptor_version_string); } else { z_var->value.str.val = 0; z_var->value.str.len = 0; } zend_hash_add(&EG(symbol_table), (char*)"raptor_version_string", sizeof("raptor_version_string"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = raptor_version_major; zend_hash_add(&EG(symbol_table), (char*)"raptor_version_major", sizeof("raptor_version_major"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = raptor_version_minor; zend_hash_add(&EG(symbol_table), (char*)"raptor_version_minor", sizeof("raptor_version_minor"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = raptor_version_release; zend_hash_add(&EG(symbol_table), (char*)"raptor_version_release", sizeof("raptor_version_release"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = raptor_version_decimal; zend_hash_add(&EG(symbol_table), (char*)"raptor_version_decimal", sizeof("raptor_version_decimal"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_STRING; if(rasqal_version_string) { z_var->value.str.val = estrdup(rasqal_version_string); z_var->value.str.len = strlen(rasqal_version_string); } else { z_var->value.str.val = 0; z_var->value.str.len = 0; } zend_hash_add(&EG(symbol_table), (char*)"rasqal_version_string", sizeof("rasqal_version_string"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = rasqal_version_major; zend_hash_add(&EG(symbol_table), (char*)"rasqal_version_major", sizeof("rasqal_version_major"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = rasqal_version_minor; zend_hash_add(&EG(symbol_table), (char*)"rasqal_version_minor", sizeof("rasqal_version_minor"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = rasqal_version_release; zend_hash_add(&EG(symbol_table), (char*)"rasqal_version_release", sizeof("rasqal_version_release"), (void *)&z_var, sizeof(zval *), NULL); } { zval *z_var; MAKE_STD_ZVAL(z_var); z_var->type = IS_LONG; z_var->value.lval = rasqal_version_decimal; zend_hash_add(&EG(symbol_table), (char*)"rasqal_version_decimal", sizeof("rasqal_version_decimal"), (void *)&z_var, sizeof(zval *), NULL); } /* end vinit subsection */ return SUCCESS; } PHP_MSHUTDOWN_FUNCTION(redland) { /* shutdown section */ librdf_php_world_finish(); #ifdef ZTS ts_free_id(redland_globals_id); #endif return SUCCESS; } PHP_RSHUTDOWN_FUNCTION(redland) { /* rshutdown section */ return SUCCESS; } PHP_MINFO_FUNCTION(redland) { php_info_print_table_start(); php_info_print_table_header(2, "Redland RDF Support", "enabled"); php_info_print_table_row(2, "redland librdf version", librdf_version_string); php_info_print_table_row(2, "redland php bindings version", REDLAND_BINDINGS_VERSION); php_info_print_table_end(); } /* end init section */ redland-bindings-1.0.16.1/php/redland-typemap.i0000644000175000017500000000322610735267344016130 00000000000000%typemap(in) librdf_uri* %{ if(SWIG_ConvertPtr(*$input, (void **) &$1, SWIGTYPE_p_librdf_uri_s, 0) < 0) { /* Allow NULL from php for librdf_uri* */ if ((*$input)->type==IS_NULL) $1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor"); } %} %typemap(in) librdf_node* %{ if(SWIG_ConvertPtr(*$input, (void **) &$1, SWIGTYPE_p_librdf_node_s, 0) < 0) { /* Allow NULL from php for librdf_node* */ if ((*$input)->type==IS_NULL) $1=NULL; else SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor"); } %} %typemap(out) librdf_node*, librdf_stream*, librdf_iterator* %{ if(!$1) { ZVAL_NULL(return_value); } else { SWIG_SetPointerZval(return_value, (void *)$1, $1_descriptor, $owner); } %} %pragma(php4) phpinfo=" php_info_print_table_start(); php_info_print_table_header(2, \"Redland RDF Support\", \"enabled\"); php_info_print_table_row(2, \"redland librdf version\", librdf_version_string); php_info_print_table_row(2, \"redland php bindings version\", REDLAND_BINDINGS_VERSION); php_info_print_table_end(); " %pragma(php5) phpinfo=" php_info_print_table_start(); php_info_print_table_header(2, \"Redland RDF Support\", \"enabled\"); php_info_print_table_row(2, \"redland librdf version\", librdf_version_string); php_info_print_table_row(2, \"redland php bindings version\", REDLAND_BINDINGS_VERSION); php_info_print_table_end(); " %mshutdown { librdf_php_world_finish(); } #if PHP_MAJOR_VERSION >= 5 %exception { $action if(librdf_php_log_message) librdf_php_check_exception(); } #endif redland-bindings-1.0.16.1/php/example.php0000644000175000017500000000001310406177663015022 00000000000000redland-bindings-1.0.16.1/php/test.php0000644000175000017500000000633511522705745014361 00000000000000 SELECT ?a ?c ?d WHERE { ?a dc:title ?c . OPTIONAL { ?a dc:related ?d } }", null); print "Querying for dc:titles:\n"; $results=librdf_model_query_execute($model, $query); $count=1; while($results && !librdf_query_results_finished($results)) { print "result $count: {\n"; for ($i=0; $i < librdf_query_results_get_bindings_count($results); $i++) { $val=librdf_query_results_get_binding_value($results, $i); if ($val) $nval=librdf_node_to_string($val); else $nval='(unbound)'; print " ".librdf_query_results_get_binding_name($results, $i)."=".$nval."\n"; } print "}\n"; librdf_query_results_next($results); $count++; } if ($results) print "Returned $count results\n"; $results=null; print "\nExecuting query again\n"; $results=librdf_model_query_execute($model, $query); if ($results) { $str=librdf_query_results_to_string($results, null, null); print "Query results serialized to an XML string size ".strlen($str)." bytes\n"; } else print "Query results couldn't be serialized to an XML string\n"; $serializer=librdf_new_serializer($world,'rdfxml',null, null); print "Redland serializer created\n"; $base=librdf_new_uri($world,'http://example.org/base.rdf'); print "Serializing...\n"; librdf_serializer_serialize_model_to_file($serializer,'./test-out.rdf',$base,$model); print "Done...\n"; librdf_free_serializer($serializer); librdf_free_uri($base); librdf_free_model($model); librdf_free_storage($storage); print "Done\n"; ?> redland-bindings-1.0.16.1/php/redland-decl.i0000644000175000017500000000065711655006673015363 00000000000000static librdf_world* librdf_php_get_world(void); static void librdf_php_world_set_logger(librdf_world*); static void librdf_php_world_finish(void); static librdf_node* librdf_php_get_null_node(void); static librdf_uri* librdf_php_get_null_uri(void); static int librdf_php_last_log_level(void); static int librdf_php_last_log_code(void); static char* librdf_php_last_log_message(void); static void librdf_php_free_last_log(void); redland-bindings-1.0.16.1/php/Makefile.am0000644000175000017500000000605411776151670014726 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for PHP interface to Redland # # Copyright (C) 2002-2012 David Beckett - http://www.dajobe.org/ # Copyright (C) 2002-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ @PHP_INCLUDES@ -DREDLAND_BINDINGS_VERSION=\"@VERSION@\" AM_CFLAGS=@STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS=@LIBRDF_LDFLAGS@ $(MEM_LIBS) PHP=php PHP_PACKAGE=redland PHP_CFLAGS=@PHP_CFLAGS@ PHP_LDFLAGS=@PHP_LDFLAGS@ PHP_SO_SUFFIX=@PHP_SO_SUFFIX@ PHP_SWIG=@PHP_SWIG@ SWIG_OUTPUTS=$(PHP_PACKAGE)_wrap.c php_$(PHP_PACKAGE).h SWIG_CRUFT=$(PHP_PACKAGE).php phpdir=@PHP_EXTENSION_DIR@ php_DATA=$(PHP_PACKAGE).$(PHP_SO_SUFFIX) EXTRA_DIST=\ test.php example.php php.ini \ redland-decl.i redland-init.i redland-post.i redland-typemap.i \ $(SWIG_OUTPUTS) CLEANFILES=\ *.db test-out.rdf \ $(PHP_PACKAGE)_wrap.o $(PHP_PACKAGE)-stamp \ $(PHP_PACKAGE).$(PHP_SO_SUFFIX) $(PHP_PACKAGE).bundle MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) $(SWIG_CRUFT) RUN=@REDLAND_RUN@ SWIG_OPTS=-I$(srcdir) -DREDLAND_POST_I -DREDLAND_INIT_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I $(PHP_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-decl.i redland-init.i redland-post.i redland-typemap.i swig -v $(PHP_SWIG) $(SWIG_OPTS) -noproxy -module $(PHP_PACKAGE) -o $@ @REDLAND_SWIG@ rm -f $(PHP_PACKAGE).php # -UHAVE_CONFIG_H to stop PHP trying to include config.h which # quite often just doesn't exist $(PHP_PACKAGE)_wrap.o: $(PHP_PACKAGE)_wrap.c $(CC) $(DEFS) $(PHP_CFLAGS) $(SWIG_OPTS) -UHAVE_CONFIG_H $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(PHP_PACKAGE)_wrap.c -c -o $@ $(PHP_PACKAGE).$(PHP_SO_SUFFIX): $(PHP_PACKAGE)-stamp $(PHP_PACKAGE)-stamp: $(PHP_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(PHP_PACKAGE)_wrap.o $(AM_LDFLAGS) $(LDFLAGS) $(PHP_LDFLAGS) -o $(PHP_PACKAGE).$(PHP_SO_SUFFIX) touch $(PHP_PACKAGE)-stamp check-local: test-php # Make PHP run using the build directory (.) as the PHP extension dir # to find redland.so (see php.ini for the configuration there) # -c $(srcdir) is the only portable way to make it read php.ini # from here rather than (also) reading some global php.ini. # The alternative to use php -n is only available in PHP 4.3.0 or newer. # # See the manual for the php command: # http://www.php.net/manual/en/features.commandline.php # # 1.0.11.1: Added -d enable_dl=On because sometimes this test gives a warning" test-php: $(PHP_PACKAGE).$(PHP_SO_SUFFIX) $(srcdir)/test.php $(RUN)$(PHP) -d enable_dl=On -c $(srcdir) $(srcdir)/test.php redland-bindings-1.0.16.1/php/Makefile.in0000644000175000017500000004112212063416535014724 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for PHP interface to Redland # # Copyright (C) 2002-2012 David Beckett - http://www.dajobe.org/ # Copyright (C) 2002-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = php DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(phpdir)" DATA = $(php_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = php PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ @PHP_INCLUDES@ -DREDLAND_BINDINGS_VERSION=\"@VERSION@\" AM_CFLAGS = @STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS = @LIBRDF_LDFLAGS@ $(MEM_LIBS) PHP_PACKAGE = redland SWIG_OUTPUTS = $(PHP_PACKAGE)_wrap.c php_$(PHP_PACKAGE).h SWIG_CRUFT = $(PHP_PACKAGE).php phpdir = @PHP_EXTENSION_DIR@ php_DATA = $(PHP_PACKAGE).$(PHP_SO_SUFFIX) EXTRA_DIST = \ test.php example.php php.ini \ redland-decl.i redland-init.i redland-post.i redland-typemap.i \ $(SWIG_OUTPUTS) CLEANFILES = \ *.db test-out.rdf \ $(PHP_PACKAGE)_wrap.o $(PHP_PACKAGE)-stamp \ $(PHP_PACKAGE).$(PHP_SO_SUFFIX) $(PHP_PACKAGE).bundle MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT) RUN = @REDLAND_RUN@ SWIG_OPTS = -I$(srcdir) -DREDLAND_POST_I -DREDLAND_INIT_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu php/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu php/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-phpDATA: $(php_DATA) @$(NORMAL_INSTALL) @list='$(php_DATA)'; test -n "$(phpdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(phpdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(phpdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(phpdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(phpdir)" || exit $$?; \ done uninstall-phpDATA: @$(NORMAL_UNINSTALL) @list='$(php_DATA)'; test -n "$(phpdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(phpdir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(phpdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-phpDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-phpDATA .MAKE: check-am install-am install-strip .PHONY: all all-am check check-am check-local clean clean-generic \ clean-libtool distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-phpDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-phpDATA $(PHP_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-decl.i redland-init.i redland-post.i redland-typemap.i swig -v $(PHP_SWIG) $(SWIG_OPTS) -noproxy -module $(PHP_PACKAGE) -o $@ @REDLAND_SWIG@ rm -f $(PHP_PACKAGE).php # -UHAVE_CONFIG_H to stop PHP trying to include config.h which # quite often just doesn't exist $(PHP_PACKAGE)_wrap.o: $(PHP_PACKAGE)_wrap.c $(CC) $(DEFS) $(PHP_CFLAGS) $(SWIG_OPTS) -UHAVE_CONFIG_H $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(PHP_PACKAGE)_wrap.c -c -o $@ $(PHP_PACKAGE).$(PHP_SO_SUFFIX): $(PHP_PACKAGE)-stamp $(PHP_PACKAGE)-stamp: $(PHP_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(PHP_PACKAGE)_wrap.o $(AM_LDFLAGS) $(LDFLAGS) $(PHP_LDFLAGS) -o $(PHP_PACKAGE).$(PHP_SO_SUFFIX) touch $(PHP_PACKAGE)-stamp check-local: test-php # Make PHP run using the build directory (.) as the PHP extension dir # to find redland.so (see php.ini for the configuration there) # -c $(srcdir) is the only portable way to make it read php.ini # from here rather than (also) reading some global php.ini. # The alternative to use php -n is only available in PHP 4.3.0 or newer. # # See the manual for the php command: # http://www.php.net/manual/en/features.commandline.php # # 1.0.11.1: Added -d enable_dl=On because sometimes this test gives a warning" test-php: $(PHP_PACKAGE).$(PHP_SO_SUFFIX) $(srcdir)/test.php $(RUN)$(PHP) -d enable_dl=On -c $(srcdir) $(srcdir)/test.php # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/php/redland-init.i0000644000175000017500000000012510735044623015400 00000000000000/* PHP seems happier if this happens at module init time */ librdf_php_world_init(); redland-bindings-1.0.16.1/php/redland-post.i0000644000175000017500000000654211655006673015440 00000000000000/* -*- Mode: c; c-basic-offset: 2 -*- * * redland-post.i - PHP SWIG helper routines * */ #if PHP_MAJOR_VERSION >= 5 /* This file seems to have been added in PHP5 */ #include "zend_exceptions.h" #endif static librdf_world* librdf_php_get_world(void); /* When in PHP when being compiled by C */ static librdf_world* librdf_php_world; static librdf_world* librdf_php_get_world(void) { return librdf_php_world; } static librdf_node* librdf_php_get_null_node(void) { return NULL; } static librdf_uri* librdf_php_get_null_uri(void) { return NULL; } static raptor_locator librdf_php_locator; static int librdf_php_log_level=0; static int librdf_php_log_code=0; static char* librdf_php_log_message=NULL; static zend_class_entry* redland_exception_ptr=NULL; static int librdf_php_last_log_level(void) { return librdf_php_log_level; } static int librdf_php_last_log_code(void) { return librdf_php_log_code; } static char* librdf_php_last_log_message(void) { return librdf_php_log_message; } void librdf_php_free_last_log(void) { librdf_php_log_level=0; librdf_php_log_code=0; if(librdf_php_log_message) free(librdf_php_log_message); librdf_php_log_message=NULL; } static int librdf_php_logger_handler(void *user_data, librdf_log_message *log_msg) { raptor_locator* locator = log_msg->locator; if(librdf_php_locator.file) free((char*)librdf_php_locator.file); if(librdf_php_locator.uri) raptor_free_uri(librdf_php_locator.uri); if(librdf_php_log_message) free(librdf_php_log_message); if(locator) { memcpy(&librdf_php_locator, locator, sizeof(raptor_locator)); if(locator->file) librdf_php_locator.file=strdup(locator->file); if(locator->uri) librdf_php_locator.uri=raptor_uri_copy(locator->uri); } else memset(&librdf_php_locator, '\0', sizeof(raptor_locator)); librdf_php_log_level=log_msg->level; librdf_php_log_code=log_msg->code; librdf_php_log_message=strdup(log_msg->message); return 1; } void librdf_php_check_exception(void) { if(!librdf_php_log_message) return; #if PHP_MAJOR_VERSION >= 5 if(librdf_php_log_level >= LIBRDF_LOG_WARN) zend_throw_exception(redland_exception_ptr, librdf_php_log_message, librdf_php_log_code TSRMLS_CC); #endif librdf_php_log_code=0; librdf_php_log_message=NULL; } void librdf_php_world_init(void) { if(!librdf_php_world) { zend_class_entry ee_ce; zend_class_entry *exception_ce; librdf_php_world=librdf_new_world(); librdf_world_open(librdf_php_world); #if PHP_MAJOR_VERSION >= 5 exception_ce = zend_exception_get_default(); INIT_CLASS_ENTRY(ee_ce, "RedlandException", NULL); redland_exception_ptr = zend_register_internal_class_ex(&ee_ce, exception_ce, NULL TSRMLS_CC); #endif memset(&librdf_php_locator, '\0', sizeof(raptor_locator)); librdf_php_log_code=0; librdf_php_log_message=NULL; librdf_world_set_logger(librdf_php_world, NULL, librdf_php_logger_handler); } } void librdf_php_world_set_logger(librdf_world *world) { librdf_world_set_logger(world, NULL, librdf_php_logger_handler); } void librdf_php_world_finish(void) { if(librdf_php_world) { librdf_free_world(librdf_php_world); librdf_php_world=NULL; } } redland-bindings-1.0.16.1/php/php_redland.h0000644000175000017500000003027511776152567015333 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef PHP_REDLAND_H #define PHP_REDLAND_H extern zend_module_entry redland_module_entry; #define phpext_redland_ptr &redland_module_entry #ifdef PHP_WIN32 # define PHP_REDLAND_API __declspec(dllexport) #else # define PHP_REDLAND_API #endif #ifdef ZTS #include "TSRM.h" #endif PHP_MINIT_FUNCTION(redland); PHP_MSHUTDOWN_FUNCTION(redland); PHP_RINIT_FUNCTION(redland); PHP_RSHUTDOWN_FUNCTION(redland); PHP_MINFO_FUNCTION(redland); ZEND_NAMED_FUNCTION(_wrap_librdf_new_digest); ZEND_NAMED_FUNCTION(_wrap_librdf_free_digest); ZEND_NAMED_FUNCTION(_wrap_librdf_digest_init); ZEND_NAMED_FUNCTION(_wrap_librdf_digest_update); ZEND_NAMED_FUNCTION(_wrap_librdf_digest_update_string); ZEND_NAMED_FUNCTION(_wrap_librdf_digest_final); ZEND_NAMED_FUNCTION(_wrap_librdf_digest_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash); ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash_from_string); ZEND_NAMED_FUNCTION(_wrap_librdf_new_hash_from_array_of_strings); ZEND_NAMED_FUNCTION(_wrap_librdf_hash_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_free_hash); ZEND_NAMED_FUNCTION(_wrap_librdf_new_world); ZEND_NAMED_FUNCTION(_wrap_librdf_free_world); ZEND_NAMED_FUNCTION(_wrap_librdf_world_open); ZEND_NAMED_FUNCTION(_wrap_librdf_world_get_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_world_set_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_accept_header); ZEND_NAMED_FUNCTION(_wrap_librdf_world_set_logger); ZEND_NAMED_FUNCTION(_wrap_librdf_free_iterator); ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_end); ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_get_object); ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_get_context); ZEND_NAMED_FUNCTION(_wrap_librdf_iterator_next); ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri_from_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_new_uri_from_filename); ZEND_NAMED_FUNCTION(_wrap_librdf_free_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_uri_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_uri_equals); ZEND_NAMED_FUNCTION(_wrap_librdf_uri_compare); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri_string); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_uri_local_name); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_normalised_uri_string); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_literal); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_typed_literal); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_node); ZEND_NAMED_FUNCTION(_wrap_librdf_new_node_from_blank_identifier); ZEND_NAMED_FUNCTION(_wrap_librdf_free_node); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_type); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_as_latin1); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_language); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_datatype_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_literal_value_is_wf_xml); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_li_ordinal); ZEND_NAMED_FUNCTION(_wrap_librdf_node_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_node_get_blank_identifier); ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_resource); ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_literal); ZEND_NAMED_FUNCTION(_wrap_librdf_node_is_blank); ZEND_NAMED_FUNCTION(_wrap_librdf_node_equals); ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement_from_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_new_statement_from_nodes); ZEND_NAMED_FUNCTION(_wrap_librdf_free_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_subject); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_subject); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_predicate); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_predicate); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_get_object); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_set_object); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_equals); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_match); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_statement_is_complete); ZEND_NAMED_FUNCTION(_wrap_librdf_new_model); ZEND_NAMED_FUNCTION(_wrap_librdf_new_model_with_options); ZEND_NAMED_FUNCTION(_wrap_librdf_new_model_from_model); ZEND_NAMED_FUNCTION(_wrap_librdf_free_model); ZEND_NAMED_FUNCTION(_wrap_librdf_model_size); ZEND_NAMED_FUNCTION(_wrap_librdf_model_add); ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_string_literal_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_typed_literal_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_add_statements); ZEND_NAMED_FUNCTION(_wrap_librdf_model_remove_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_contains_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_model_find_statements); ZEND_NAMED_FUNCTION(_wrap_librdf_model_find_statements_in_context); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_sources); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_targets); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_source); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arc); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs_out); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_arcs_in); ZEND_NAMED_FUNCTION(_wrap_librdf_model_has_arc_in); ZEND_NAMED_FUNCTION(_wrap_librdf_model_has_arc_out); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_target); ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_add_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_add_statements); ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_remove_statement); ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_remove_statements); ZEND_NAMED_FUNCTION(_wrap_librdf_model_context_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_model_sync); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_contexts); ZEND_NAMED_FUNCTION(_wrap_librdf_model_contains_context); ZEND_NAMED_FUNCTION(_wrap_librdf_model_get_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_model_set_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_model_load); ZEND_NAMED_FUNCTION(_wrap_librdf_model_query_execute); ZEND_NAMED_FUNCTION(_wrap_librdf_model_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_start); ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_commit); ZEND_NAMED_FUNCTION(_wrap_librdf_model_transaction_rollback); ZEND_NAMED_FUNCTION(_wrap_librdf_new_storage); ZEND_NAMED_FUNCTION(_wrap_librdf_new_storage_from_storage); ZEND_NAMED_FUNCTION(_wrap_librdf_free_storage); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_check_name); ZEND_NAMED_FUNCTION(_wrap_librdf_new_parser); ZEND_NAMED_FUNCTION(_wrap_librdf_free_parser); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_into_model); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_string_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_string_into_model); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_counted_string_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_parse_counted_string_into_model); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_set_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_guess_name); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_guess_name2); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_prefix); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_parser_get_namespaces_seen_count); ZEND_NAMED_FUNCTION(_wrap_librdf_new_query); ZEND_NAMED_FUNCTION(_wrap_librdf_new_query_from_query); ZEND_NAMED_FUNCTION(_wrap_librdf_free_query); ZEND_NAMED_FUNCTION(_wrap_librdf_query_execute); ZEND_NAMED_FUNCTION(_wrap_librdf_query_get_limit); ZEND_NAMED_FUNCTION(_wrap_librdf_query_set_limit); ZEND_NAMED_FUNCTION(_wrap_librdf_query_get_offset); ZEND_NAMED_FUNCTION(_wrap_librdf_query_set_offset); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_as_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_count); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_next); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_finished); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_value); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_name); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_binding_value_by_name); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_bindings_count); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_file); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_file2); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_to_string2); ZEND_NAMED_FUNCTION(_wrap_librdf_free_query_results); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_bindings); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_boolean); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_graph); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_is_syntax); ZEND_NAMED_FUNCTION(_wrap_librdf_query_results_get_boolean); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_check_name); ZEND_NAMED_FUNCTION(_wrap_librdf_new_serializer); ZEND_NAMED_FUNCTION(_wrap_librdf_free_serializer); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_stream_to_file); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_model_to_file); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_stream_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_serialize_model_to_string); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_get_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_set_feature); ZEND_NAMED_FUNCTION(_wrap_librdf_serializer_set_namespace); ZEND_NAMED_FUNCTION(_wrap_librdf_free_stream); ZEND_NAMED_FUNCTION(_wrap_librdf_stream_end); ZEND_NAMED_FUNCTION(_wrap_librdf_stream_next); ZEND_NAMED_FUNCTION(_wrap_librdf_stream_get_object); ZEND_NAMED_FUNCTION(_wrap_librdf_stream_get_context); ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_code); ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_level); ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_facility); ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_message); ZEND_NAMED_FUNCTION(_wrap_librdf_log_message_locator); ZEND_NAMED_FUNCTION(_wrap_raptor_locator_line); ZEND_NAMED_FUNCTION(_wrap_raptor_locator_column); ZEND_NAMED_FUNCTION(_wrap_raptor_locator_byte); ZEND_NAMED_FUNCTION(_wrap_raptor_locator_file); ZEND_NAMED_FUNCTION(_wrap_raptor_locator_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_internal_test_error); ZEND_NAMED_FUNCTION(_wrap_librdf_internal_test_warning); ZEND_NAMED_FUNCTION(_wrap_librdf_short_copyright_string_get); ZEND_NAMED_FUNCTION(_wrap_librdf_copyright_string_get); ZEND_NAMED_FUNCTION(_wrap_librdf_version_string_get); ZEND_NAMED_FUNCTION(_wrap_librdf_version_major_get); ZEND_NAMED_FUNCTION(_wrap_librdf_version_minor_get); ZEND_NAMED_FUNCTION(_wrap_librdf_version_release_get); ZEND_NAMED_FUNCTION(_wrap_librdf_version_decimal_get); ZEND_NAMED_FUNCTION(_wrap_raptor_version_string_get); ZEND_NAMED_FUNCTION(_wrap_raptor_version_major_get); ZEND_NAMED_FUNCTION(_wrap_raptor_version_minor_get); ZEND_NAMED_FUNCTION(_wrap_raptor_version_release_get); ZEND_NAMED_FUNCTION(_wrap_raptor_version_decimal_get); ZEND_NAMED_FUNCTION(_wrap_rasqal_version_string_get); ZEND_NAMED_FUNCTION(_wrap_rasqal_version_major_get); ZEND_NAMED_FUNCTION(_wrap_rasqal_version_minor_get); ZEND_NAMED_FUNCTION(_wrap_rasqal_version_release_get); ZEND_NAMED_FUNCTION(_wrap_rasqal_version_decimal_get); ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_world); ZEND_NAMED_FUNCTION(_wrap_librdf_php_world_set_logger); ZEND_NAMED_FUNCTION(_wrap_librdf_php_world_finish); ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_null_node); ZEND_NAMED_FUNCTION(_wrap_librdf_php_get_null_uri); ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_level); ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_code); ZEND_NAMED_FUNCTION(_wrap_librdf_php_last_log_message); ZEND_NAMED_FUNCTION(_wrap_librdf_php_free_last_log); #endif /* PHP_REDLAND_H */ redland-bindings-1.0.16.1/php/php.ini0000644000175000017500000000031111447776712014155 00000000000000[PHP] ; This is just around to load the Redland PHP interface for testing ; ; might be needed to allow dl() in test.php to work ; for versions of PHP before 4.2 safe_mode = False extension_dir = . redland-bindings-1.0.16.1/NEWS0000644000175000017500000002316712074646602012602 00000000000000 Redland librdf Language Bindings - News 2013-01-13 Redland-bindings Version 1.0.16.1 Released Synchronise with [1]Redland 1.0.16 ([2]release notes). Multiple Ruby bindings fixes for Ruby 1.9 SWIG 2.0.0 or newer required from next release. Not tested with SWIG 1.x A few other minor fixes. Fixed Issues [3]0000243, [4]0000444, [5]0000480 and [6]0000498. See the [7]1.0.16.1 Release Notes for the full details of the changes. Redland-bindings Version 1.0.15.1 never released 2011-11-13 Redland-bindings Version 1.0.14.1 Released Synchronise with [8]Redland 1.0.14 ([9]release notes). Requires Redland 1.0.14, Rasqal 0.9.25 and Raptor 2.0.0 or newer. SWIG 2.0.0 or newer is now recommended. Not tested with SWIG 1.x Perl unicode fixes PHP logging and error handling enhancements Python fixes to allow subclassing Fixed Issues: [10]0000473. 2011-02-08 Redland librdf Bindings Version 1.0.13.1 Released Synchronise with [11]Redland 1.0.13 ([12]release notes). Requires Redland 1.0.13, Rasqal 0.9.25 and Raptor 2.0.0 or newer. Improved configuration of installing Perl, Python and Ruby for packagers Several Python binding fixes and changes to make the API more Pythonic Several Ruby binding fixes Fixed Issues [13]Issue #0000390, [14]Issue #0000398, [15]Issue #0000401, [16]Issue #0000403, [17]Issue #0000411, [18]Issue #0000412 and [19]Issue #0000413. 2010-XX-XX Redland Bindings Version 1.0.12.1 Never released. 1.0.11.1 works with Redland 1.0.12. 2010-09-27 Redland librdf Bindings Version 1.0.11.1 Released Synchronise with [20]Redland 1.0.11 ([21]release notes) Python: minor bug fixes Lua: Added experimental binding 2009-12-16 Redland Bindings Version 1.0.10.1 Released Synchronise with [22]Redland 1.0.10 ([23]release notes) PHP: Make the bindings link again Python: Improvements to configuring Ruby: Several minor fixes See the [24]1.0.10.1 Release Notes for the full details of the changes. 2009-XX-XX Redland Bindings Version 1.0.9.1 Never released. 2008-07-05 Redland Bindings Version 1.0.8.1 Released Synchronise with [25]Redland 1.0.8 ([26]release notes) Configuration now prefers pkg-config which helps OSX linking Minor fixes to perl, python and ruby bindings. See the [27]1.0.8.1 Release Notes for the full details of the changes. 2007-12-28 Redland Bindings Version 1.0.7.1 Released Synchronise with [28]Redland 1.0.7 ([29]release notes) Removed Tcl, Java and C# bindings as [30]promised Added exception throwing to PHP binding Add URI filtering to Python parser API Fix Issues [31]#0000212 and [32]#0000247. See the [33]1.0.7.1 Release Notes for the full details of the changes. 2007-05-06 Redland Bindings Version 1.0.6.1 Released Synchronise with [34]Redland 1.0.6 ([35]release notes) Many updates to the Python and Ruby bindings Many other bug fixes addressing Issues [36]#0000121, [37]#0000140, [38]#0000147, [39]#0000166, [40]#0000170, [41]#0000171 and [42]#0000172. See the [43]1.0.6.1 Release Notes for the full details of the changes. 2006-11-19 Redland Bindings Version 1.0.5.1 Released Synchronise with [44]Redland 1.0.5 ([45]release notes) Many updates to the Ruby binding Minor updates to the C#, Java and Python bindings Several other fixes and improvements Many other bug fixes addressing Issues [46]#0000109, [47]#0000120, [48]#0000121, [49]#0000122 and [50]#0000126. See the [51]1.0.5.1 Release Notes for the full details of the changes. 2006-05-05 Redland Bindings Version 1.0.4.1 Released Synchronise with [52]Redland 1.0.4 Some minor fixes in several bindings. See the [53]1.0.4.1 Release Notes for the full details of the changes. 2006-03-14 Redland Bindings Version 1.0.3.1 Released Synchronise with [54]Redland 1.0.3 Several updates for handling optional query result values Multiple fixes for Python and Ruby bindings issues Several other fixes and changes for other binding languages. NOTE: Redland Bindings will be switching to use [55]Subversion for version control after the 1.0.3.1 release. See the [56]Redland Subversion site or the online [57]Redland Bindings installation notes for the latest information. See the [58]1.0.3.1 Release Notes for the full details of the changes. 2005-06-10 Redland Bindings Version 1.0.2.1 Released Synchronise with Redland 1.0.2 Some minor fixes in the Perl, Python and Ruby bindings. See the [59]1.0.2.1 Release Notes for the full details of the changes. 2005-05-29 Redland Bindings Version 1.0.1.1 Released Synchronise with Redland 1.0.1 ([60]release notes) Updated examples and tests to use latest SPARQL syntax Perl binding addeded several helper methods for nodes PHP binding returns a PHP null instead of a NULL node pointer Python binding gets various fixes (Daniel Larsson) Ruby binding generates html documentation using rdoc (Nikolas Coukouma) See the [61]1.0.1.1 Release Notes for the full details of the changes. 2005-02-27 Redland Bindings Version 1.0.0.2 Released Added Perl bindings to returning RDF graph and boolean query results (aka SPARQL CONSTRUCT and ASK Added Perl bindings to returning a query result as a syntax format PHP binding compile fix and now registers module versions (Dave Viner) Perl and Python bindings error handling changed to return the structured messages fields Python error handling now by default throws exceptions on C function return See the [62]1.0.0.2 Release Notes for the full details of the changes. 2005-02-06 Redland Bindings Version 1.0.0.1 Released Synchronise with Redland 1.0.0 Python API gains returning RDF graph and boolean results Updated the ruby API to [63]rdf-redland 0.5.3.1, fixed installation and test cases Other minor binding changes See the [64]1.0.0.1 Release Notes for the full details of the changes. 2004-11-02 Redland Bindings Version 0.9.19.1 Released License changed to LGPL 2.1/Apache 2 Rebuild for Redland 0.9.19 Model to_string support added to perl and python bindings Several other minor binding changes See the [65]0.9.19.1 Release Notes for the full details of the changes. 2004-08-03 Redland Bindings Version 0.9.18.1 Released (A rebuild for Redland 0.9.18 with no API changes) The first release of Redland Bindings separate from Redland. New C# API by Cesar Lopez Nataren and Edd Dumbill Perl and Python APIs updated to have Redland Query and QueryResults Ruby API replaced with rdf-redland written by by Dominic Sisneros See the [66]0.9.18.1 Release Notes for the full details of the changes. 2004-07-19 Redland Bindings Version 0.9.17.1 Released Initial packaging snapshot, never announced. __________________________________________________________________ Copyright (C) 2004-2013 [67]Dave Beckett Copyright (C) 2004-2005 [68]University of Bristol References 1. http://librdf.org/ 2. http://librdf.org/RELEASE.html#rel1_0_16 3. http://bugs.librdf.org/mantis/view.php?id=243 4. http://bugs.librdf.org/mantis/view.php?id=444 5. http://bugs.librdf.org/mantis/view.php?id=480 6. http://bugs.librdf.org/mantis/view.php?id=498 7. RELEASE.html#rel1_0_16_1 8. http://librdf.org/ 9. http://librdf.org/RELEASE.html#rel1_0_14 10. http://bugs.librdf.org/mantis/view.php?id=473 11. http://librdf.org/ 12. http://librdf.org/RELEASE.html#rel1_0_13 13. http://bugs.librdf.org/mantis/view.php?id=390 14. http://bugs.librdf.org/mantis/view.php?id=398 15. http://bugs.librdf.org/mantis/view.php?id=401 16. http://bugs.librdf.org/mantis/view.php?id=403 17. http://bugs.librdf.org/mantis/view.php?id=411 18. http://bugs.librdf.org/mantis/view.php?id=412 19. http://bugs.librdf.org/mantis/view.php?id=413 20. http://librdf.org/ 21. http://librdf.org/RELEASE.html#rel1_0_11 22. http://librdf.org/ 23. http://librdf.org/RELEASE.html#rel1_0_10 24. RELEASE.html#rel1_0_10_1 25. http://librdf.org/ 26. http://librdf.org/RELEASE.html#rel1_0_8 27. RELEASE.html#rel1_0_8_1 28. http://librdf.org/ 29. http://librdf.org/RELEASE.html#rel1_0_7 30. http://lists.usefulinc.com/pipermail/redland-announce/2007q1/000067.html 31. http://bugs.librdf.org/mantis/view.php?id=212 32. http://bugs.librdf.org/mantis/view.php?id=247 33. RELEASE.html#rel1_0_7_1 34. http://librdf.org/ 35. http://librdf.org/RELEASE.html#rel1_0_6 36. http://bugs.librdf.org/mantis/view.php?id=121 37. http://bugs.librdf.org/mantis/view.php?id=140 38. http://bugs.librdf.org/mantis/view.php?id=147 39. http://bugs.librdf.org/mantis/view.php?id=166 40. http://bugs.librdf.org/mantis/view.php?id=170 41. http://bugs.librdf.org/mantis/view.php?id=171 42. http://bugs.librdf.org/mantis/view.php?id=172 43. RELEASE.html#rel1_0_6_1 44. http://librdf.org/ 45. http://librdf.org/RELEASE.html#rel1_0_5 46. http://bugs.librdf.org/mantis/view.php?id=109 47. http://bugs.librdf.org/mantis/view.php?id=120 48. http://bugs.librdf.org/mantis/view.php?id=121 49. http://bugs.librdf.org/mantis/view.php?id=122 50. http://bugs.librdf.org/mantis/view.php?id=126 51. RELEASE.html#rel1_0_5_1 52. http://librdf.org/ 53. RELEASE.html#rel1_0_4_1 54. http://librdf.org/ 55. http://subversion.tigris.org/ 56. http://svn.librdf.org/ 57. http://librdf.org/bindings/INSTALL.html 58. RELEASE.html#rel1_0_3_1 59. RELEASE.html#rel1_0_2_1 60. http://librdf.org/RELEASE.html#rel1_0_1 61. RELEASE.html#rel1_0_1_1 62. RELEASE.html#rel1_0_0_2 63. http://rubyforge.org/projects/rdf-redland/ 64. RELEASE.html#rel1_0_0_1 65. RELEASE.html#rel0_9_19_1 66. RELEASE.html#rel0_9_18_1 67. http://www.dajobe.org/ 68. http://www.bristol.ac.uk/ redland-bindings-1.0.16.1/TODO0000644000175000017500000000061412074643543012564 00000000000000 Redland librdf Language Bindings - To Do list Bugs should be reported at the [1]Redland Issue Tracker. __________________________________________________________________ Copyright (C) 2004-2013 [2]Dave Beckett Copyright (C) 2004-2005 [3]University of Bristol References 1. http://bugs.librdf.org/ 2. http://www.dajobe.org/ 3. http://www.bristol.ac.uk/ redland-bindings-1.0.16.1/data/0000755000175000017500000000000012074650257013064 500000000000000redland-bindings-1.0.16.1/data/dc.nt0000644000175000017500000000044411033062714013724 00000000000000 "Dave Beckett" . "The generic home page of Dave Beckett." . "Dave Beckett's Home Page" . redland-bindings-1.0.16.1/data/dc.rdf0000644000175000017500000000061111033062714014052 00000000000000 Dave Beckett's Home Page Dave Beckett The generic home page of Dave Beckett. redland-bindings-1.0.16.1/data/dc.ttl0000644000175000017500000000033611033062714014106 00000000000000@prefix dc: . dc:creator "Dave Beckett" ; dc:description "The generic home page of Dave Beckett." ; dc:title "Dave Beckett's Home Page" . redland-bindings-1.0.16.1/data/Makefile.am0000644000175000017500000000161011033062714015023 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - data automake file for Redland # # Copyright (C) 2004-2005, David Beckett http://www.dajobe.org/ # Copyright (C) 2004-2005, University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # EXTRA_DIST=dc.nt dc.rdf dc.ttl redland-bindings-1.0.16.1/data/Makefile.in0000644000175000017500000003035312063416534015051 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = data DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # -*- Mode: Makefile -*- # # Makefile.am - data automake file for Redland # # Copyright (C) 2004-2005, David Beckett http://www.dajobe.org/ # Copyright (C) 2004-2005, University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # EXTRA_DIST = dc.nt dc.rdf dc.ttl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu data/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/docs/0000755000175000017500000000000012074650257013103 500000000000000redland-bindings-1.0.16.1/docs/pod/0000755000175000017500000000000010077001462013652 500000000000000redland-bindings-1.0.16.1/docs/pod/RDF/0000755000175000017500000000000010077001462014265 500000000000000redland-bindings-1.0.16.1/docs/pod/RDF/Redland.html0000644000175000017500000001330512074650257016461 00000000000000 Redland RDF Application Framework - Perl RDF::Redland Class

Redland RDF Application Framework - Perl RDF::Redland Class

NAME

RDF::Redland - Redland RDF Class

SYNOPSIS

  use RDF::Redland;
  my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'");
  my $model=new RDF::Redland::Model($storage, "");
  ...

DESCRIPTION

This class initialises the Redland RDF classes.

See the main classes for full detail: the RDF::Redland::Node manpage, the RDF::Redland::BlankNode manpage, the RDF::Redland::URINode manpage, the RDF::Redland::LiteralNode manpage, the RDF::Redland::XMLLiteralNode manpage, the RDF::Redland::URI manpage, the RDF::Redland::Statement manpage, the RDF::Redland::Model manpage, the RDF::Redland::Storage manpage, the RDF::Redland::Parser manpage, the RDF::Redland::Query manpage, the RDF::Redland::QueryResults manpage, the RDF::Redland::Iterator manpage, the RDF::Redland::Stream manpage and the RDF::Redland::RSS manpage.

STATIC METHODS

set_log_handler SUB

Set SUB as the subroutine to be called on any Redland error, warning or log message. The subroutine must have the followign signature:

  sub handler ($$$$$$$$$) {
    my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_;
    # int error code
    # int log level
    # int facility causing the error (parsing, serializing, ...)
    # string error message
    # int line number (<0 if not relevant)
    # int column number (<0 if not relevant)
    # int byte number (<0 if not relevant)
    # string file name or undef
    # string URI or undef
    
    # ...do something with the information ...
  };
  RDF::Redland::set_log_handler(\&handler);
reset_log_handler

Reset redland to use the default logging handler, typically printing the message to stdout or stderr and exiting on a fatal error.

set_error_handler SUB

The method set_log_handler is much more flexible than this and includes this functionality.

Set SUB as the subroutine to be called on a Redland error with the error message as the single argument. For example:

  RDF::Redland::set_error_handler(sub {
    my $msg=shift;
    # Do something with $msg
  });

The default if this is not set, is to run die $msg

set_warning_handler SUB

The method set_log_handler is much more flexible than this and includes this functionality.

Set SUB as the subroutine to be called on a Redland warning with the warning message as the single argument. For example:

  RDF::Redland::set_warning_handler(sub {
    my $msg=shift;
    # Do something with $msg
  });

The default if this is not set, is to run warn $msg

SEE ALSO

the RDF::Redland::Node manpage, the RDF::Redland::BlankNode manpage, the RDF::Redland::URINode manpage, the RDF::Redland::LiteralNode manpage, the RDF::Redland::XMLLiteralNode manpage, the RDF::Redland::URI manpage, the RDF::Redland::Statement manpage, the RDF::Redland::Model manpage, the RDF::Redland::Storage manpage, the RDF::Redland::Parser manpage, the RDF::Redland::Query manpage, the RDF::Redland::QueryResults manpage, the RDF::Redland::Iterator manpage, the RDF::Redland::Stream manpage and the RDF::Redland::RSS manpage.

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2013 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/0000755000175000017500000000000010244365415015645 500000000000000redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Iterator.html0000644000175000017500000000610211522705753020246 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Iterator Class

Redland RDF Application Framework - Perl RDF::Redland::Iterator Class

NAME

RDF::Redland::Iterator - Redland RDF Iterator Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $iterator=$model->targets_iterator($source_node, $arc_node);
  while($iterator && !$iterator->end) {
    my $node=$iterator->current;
    ...
    $iterator->next;
  }

DESCRIPTION

This class is used to return lists of RDF::Redland::Node objects from a method that returns an RDF::Redland::Iterator - commonly one of the get_sources_iterator, get_targets_iterator or get_arcs_iterator methods of the RDF::Redland::Model class.

This allows efficient retrieval of long lists of RDF::Redland::Node objects but isn't really very Perl-friendly. The get_sources, get_targets or get_arcs methods of RDF::Redland::Model class return Perl lists and the get_source, get_target and get_arc methods return single arbitrary results.

CONSTRUCTORS

No public constructors - are created and returned from various methods of classes including RDF::Redland::Model

METHODS

end

Return non 0 if the iterator has finished

current

Returns the current RDF::Redland::Node object from the iteration or undef if the iteration is finished.

next

Moves the iterator to the next item, returns undef if the iteration is finished.

context

Returns the context RDF::Redland::Node object from the iteration or undef if the iteration is finished.

SEE ALSO

the RDF::Redland::Model manpage and the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Parser.html0000644000175000017500000001200111522705753017704 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Parser Class

Redland RDF Application Framework - Perl RDF::Redland::Parser Class

NAME

RDF::Redland::Parser - Redland RDF Syntax Parsers Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $parser=new RDF::Redland::Parser("rdfxml");
  my $parser2=new RDF::Redland::Parser(undef, "application/rdf+xml);
  # Return as an RDF::Redland::Stream
  my $stream=$parser->parse_as_stream($source_uri, $base_uri);
  
  # Store in an RDF::Redland::Model
  $parser->parse_into_model($source_uri, $base_uri, $model);

DESCRIPTION

This class represents parsers of various syntaxes that can deliver a RDF model either as a RDF::Redland::Stream of RDF::Redland::Statement objects or directly into an RDF::Redland::Model object.

CONSTRUCTORS

new [NAME [MIME_TYPE [URI]]]

Create a new RDF::Redland::Parser object for a syntax parser named NAME, with MIME Type MIME_TYPE and/or URI URI. Any field can be undef or omitted; if all are omitted, a parser that provides MIME Type application/rdf+xml will be requested.

METHODS

parse_as_stream SOURCE_URI BASE_URI

Parse the syntax at the RDF::Redland::URI SOURCE_URI with optional base RDF::Redland::URI BASE_URI. If the base URI is given then the content is parsed as if it was at the base URI rather than the source URI.

Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure.

parse_into_model SOURCE_URI BASE_URI MODEL [HANDLER]

Parse the syntax at the RDF::Redland::URI SOURCE_URI with optional base RDF::Redland::URI BASE_URI into RDF::Redland::Model MODEL. If the base URI is given then the content is parsed as if it was at the base URI rather than the source URI.

If the optional HANDLER is given, it is a reference to a sub with the signature sub handler($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; ... } that receives errors in parsing.

parse_string_as_stream STRING BASE_URI

Parse the syntax in STRING with required base RDF::Redland::URI BASE_URI.

Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure.

parse_string_into_model STRING BASE_URI MODEL [HANDLER]

Parse the syntax in STRING with required base RDF::Redland::URI BASE_URI into RDF::Redfland::Model MODEL.

If the optional HANDLER is given, it is a reference to a sub with the signature sub handler($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; ... } that receives errors in parsing.

feature URI [VALUE]

Get/set a parser feature. The feature is named via RDF::Redland::URI URI and the value is a RDF::Redland::Node. If VALUE is given, the feature is set to that value, otherwise the current value is returned.

namespaces_seen

Get the set of namespace declarations seen during parsing as a hash of key:prefix string (may be ''), value: RDF::Redland::URI objects.

SEE ALSO

the RDF::Redland::URI manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/BlankNode.html0000644000175000017500000000340011522705754020311 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::BlankNode Class

Redland RDF Application Framework - Perl RDF::Redland::BlankNode Class

NAME

RDF::Redland::BlankNode - Redland RDF Blank Node Class

SYNOPSIS

  use RDF::Redland;
  my $node1=new RDF::Redland::BlankNode("id");

DESCRIPTION

This class represents a blank nodes in the RDF graph. See the RDF::Redland::Node manpage for the methods on this object.

CONSTRUCTOR

new IDENTIFIER

Create a new blank node with identifier IDENTIFIER.

SEE ALSO

the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/QueryResults.html0000644000175000017500000001162111522705754021147 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::QueryResults Class

Redland RDF Application Framework - Perl RDF::Redland::QueryResults Class

NAME

RDF::Redland::QueryResults - Redland RDF Syntax Query Results Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $query=new RDF::Redland::Query("query string", undef, undef, "sparql");
  my $results=$model->query_execute($query);
  # or my $results=$query->execute($model);
  while(!$results->finished) {
    for (my $i=0; $i < $results->bindings_count(); $i++) {
      my $name=$results->binding_name($i);
      my $value=$results->binding_value($i);
      # ... do something with the results
    }
    $results->next_result;
  }

The $results in the example is an object of class RDF::Redland::QueryResults.

DESCRIPTION

This class represents queries of various syntaxes over an RDF::Redland::Model returning a sequence of results that bind variable names to RDF::Redland::Node values.

CONSTRUCTOR

There are no public constructors.

METHODS

count

Return the number of current results from the query.

finished

Return non-0 if the results have been exhausted.

binding_name INDEX

Get the name of variable binding INDEX in the array of variable names.

binding_names

Get the names all of the variable bindings as an array.

binding_value INDEX

Get the value of the variable binding INDEX in the current query result.

binding_values

Get the values of all of the variable bindings in the current query result.

binding_value_by_name NAME

Get the value of the variable binding NAME in the current query result.

bindings

Get the variable names and values of the current query result as a hash

bindings_count

Return the number of variable bindings.

next_result

Move to the next query result.

as_stream

Return a new RDF::Redland::Stream object representing the query results as an RDF Graph.

to_string [FORMAT-URI [BASE-URI]]

Serialize to a string syntax in format FORMAT-URI using the optional BASE-URI. The default format when none is given is determined by librdf_query_results_to_string.

is_bindings

Return non-0 if the query results format is variable bindings

is_boolean

Return non-0 if the query results format is a boolean

is_graph

Return non-0 if the query results format is an RDF graph

get_boolean

Get the boolean query result; non-0 is true.

SEE ALSO

the RDF::Redland::Query manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Serializer.html0000644000175000017500000000647711522705754020606 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Serializer Class

Redland RDF Application Framework - Perl RDF::Redland::Serializer Class

NAME

RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $serializer=new RDF::Redland::Serializer("ntriples");
  $serializer->serialize_model_to_file("foo.rdf", $base_uri, $model);

DESCRIPTION

This class represents serializers that turn RDF graphs into various syntaxes. from an RDF::Redland::Model object.

CONSTRUCTORS

new [NAME [MIME_TYPE [URI]]]

Create a new RDF::Redland::Serializer object for a syntax serializer named NAME, with MIME Type MIME_TYPE and/or URI URI. Any field can be undef or omitted; if all are omitted, the default serializer is used, currently 'ntriples'.

METHODS

serialize_model_to_file FILENAME BASE_URI MODEL

Serialize the RDF Graph MODEL as syntax with the base RDF::Redland::URI BASE_URI to file FILENAME.

serialize_model_to_string BASE-URI MODEL

Serialize the RDF Graph MODEL to a syntax. If no serializer name is given, the default serializer RDF/XML is used.

set_namespace PREFIX URI

Define a namespace URI with the supplied PREFIX for use in serializing an RDF Graph.

feature URI [VALUE]

Get/set a serializer feature. The feature is named via RDF::Redland::URI URI and the value is a string. If VALUE is given, the feature is set to that value, otherwise the current value is returned.

SEE ALSO

the RDF::Redland::Parser manpage, the RDF::Redland::URI manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/URI.html0000644000175000017500000000543711612732317017122 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::URI Class

Redland RDF Application Framework - Perl RDF::Redland::URI Class

NAME

RDF::Redland::URI - Redland RDF URI Class

SYNOPSIS

  use RDF::Redland;
  my $uri=new RDF::Redland::URI("http://example.com/";);
  my $uri2=RDF::Redland::URI->new_from_uri($uri);
  print $uri2->as_string,"\n";

DESCRIPTION

Represents a URI as a mostly-opaque object for identifying things in the RDF world. The URIs are also used for identifying features for the RDF::Redland::Parser and RDF::Redland::Serializer classes.

CONSTRUCTORS

new STRING

Create a new RDF::Redland::URI object from a URI string.

clone URI

Copy a RDF::Redland::URI

METHODS

as_string

Return the statement formatted as a string (UTF-8 encoded).

equals URI

Return non zero if this uri is equal to URI

OLD METHODS

new_from_uri URI

Create a new RDF::Redland::URI object from RDF::Redland::URI URI (copy constructor). Instead use:

  $u=$uri->clone

SEE ALSO

the RDF::Redland::Parser manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Node.html0000644000175000017500000002117411612732316017343 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Node Class

Redland RDF Application Framework - Perl RDF::Redland::Node Class

NAME

RDF::Redland::Node - Redland RDF Node (RDF Resource, Property, Literal) Class

SYNOPSIS

  use RDF::Redland;
  my $node1=new RDF::Redland::Node("Hello, World!");
  my $node2=new RDF::Redland::Node($uri); # $uri is an RDF::Redland::URI
  my $node3=$node2->clone;
  my $node4=new RDF::Redland::URINode("http://example.com/";);
  my $node5=new RDF::Redland::LiteralNode("Hello, World!");
  my $node6=new RDF::Redland::XMLLiteral("<tag>content</tag>");
  my $node7=new RDF::Redland::BlankNode("genid1");
  # alternate more verbose ways:
  my $node4=RDF::Redland::Node->new_from_uri("http://example.com/";);
  my $node5=RDF::Redland::Node->new_literal("Hello, World!");
  my $node6=RDF::Redland::Node->new_xml_literal("<tag>content</tag>");
  my $node7=RDF::Redland::Node->new_from_blank_identifier("genid1");
  ...
  print $node4->uri->as_string,"\n";  # Using RDF::Redland::URI::as_string
  print $node5->literal_value_as_latin1,"\n";

DESCRIPTION

This class represents RDF URIs, literals and blank nodes in the RDF graph.

CONSTRUCTORS

new [STRING | URI | NODE]

Create a new URI node, literal node or copy an existing node.

If a literal STRING is given, make a plain literal node. If a the argument is of type URI (perl URI or RDF::Redland::URI), make a resource node.

Otherwise if the argument is an RDF::Redland::Node NODE, copy it.

new_from_uri URI

Create a new URI node. URI can be either a RDF::Redland::URI object, a perl URI class or a literal string.

An alternative is:

  new RDF::Redland::URINode("http://example.org/";);
new_literal STRING [DATATYPE [XML_LANGUAGE]]

Create a new literal node for a literal value STRING. Optional datatype URI DATATYPE (RDF::Redland::URI, perl URI or string) and language (xml:lang attribute) XML_LANGUAGE may also be given.

An alternative is:

   new RDF::Redland::LiteralNode("Hello, World!");
   new RDF::Redland::LiteralNode("Bonjour monde!", undef, "fr");
new_xml_literal STRING

Create a new XML datatyped literal node for the XML in STRING.

An alternative is:

  new RDF::Redland::XMLLiteral("<tag>content</tag>");
new_from_blank_identifier IDENTIFIER

Create a new blank node with blank node identifier IDENTIFIER.

An alternative is:

  new RDF::Redland::BlankNode("id");
clone

Copy a RDF::Redland::Node.

METHODS

uri

Get the current URI of the node as an RDF::Redland::URI object.

blank_identifier

Get the current blank identifier of the node

type

Get the node type. It is recommended to use the is_resource, is_literal or is_blank methods in preference to this (both simpler and quicker).

The current list of types that are supported are:

  $RDF::Redland::Node::Type_Resource
  $RDF::Redland::Node::Type_Literal
  $RDF::Redland::Node::Type_Blank

Example:

  if ($node->type == $RDF::Redland::Node::Type_Resource) {
    print "Node is a resource with URI ", $node->uri->as_string, "\n";
  } else {
    ...
  }
is_resource

Return true if node is a resource (with a URI)

is_literal

Return true if node is a literal

is_blank

Return true if node is a blank nodeID

literal_value

Get the node literal value string as UTF-8 (when the node is of type $RDF::Redland::Node::Type_Literal)

literal_value_as_latin1

Get the node literal value string converted from UTF-8 to ISO Latin-1 (when the node is of type $RDF::Redland::Node::Type_Literal)

literal_value_language

Get the node literal XML language (when the node is of type $RDF::Redland::Node::Type_Literal) or undef if not present.

literal_value_is_wf_xml

Return non 0 if the literal string is well formed XML (when the node is of type $RDF::Redland::Node::Type_Literal).

literal_datatype

Return the RDF::Redland::URI of the literal datatype or undef if it is not a datatype.

as_string

Return the RDF::Redland::Node formatted as a string (UTF-8 encoded).

equals NODE

Return non zero if this node is equal to NODE

OLDER METHODS

new_from_literal STRING XML_LANGUAGE IS_WF

Create a new RDF::Redland::Node object for a literal value STRING with XML language (xml:lang attribute) XML_LANGUAGE and if content is well formed XML, when IS_WF is non 0. XML_LANGUAGE is optional can can be set to undef.

This method remains but using new_literal is prefered. Instead, for plain literals use:

  $node=new RDF::Redland::Node("blah")
new_from_typed_literal STRING [DATATYPE [XML_LANGUAGE]]

Renamed to new_literal with same arguments.

new_from_uri_string URI_STRING

Create a new RDF::Redland::Node object for a resource with URI URI_STRING. It is equivalent to use the shorter:

  $a=new RDF::Redland::Node->new_from_uri($uri_string)
new_from_node NODE

Create a new RDF::Redland::Node object from existing RDF::Redland::Node NODE (copy constructor). It is equivalent to use:

  $new_node=$old_node->clone

SEE ALSO

the RDF::Redland::Statement manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Statement.html0000644000175000017500000001071311522705754020425 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Statement Class

Redland RDF Application Framework - Perl RDF::Redland::Statement Class

NAME

RDF::Redland::Statement - Redland RDF Statement Class

SYNOPSIS

  use RDF::Redland;
  my $statement1=new RDF::Redland::Statement($statement);
  my $statement2=new RDF::Redland::Statement($subject,$predicate,$object);
  ...
  if($statement->subject->equals($node)) { 
    ...
  }

DESCRIPTION

Manipulate RDF statements which comprise three RDF::Redland::Node objects. Also used for partial statements which can have empty parts and are used for matching statements in statement queries of the model - see the the RDF::Redland::Model manpage.

CONSTRUCTORS

new NODE NODE NODE|STATEMENT

Create a new statement from nodes or copy an existing statement.

If three NODEs are given, make a new statement from them. Each Node can be a Redland::RDF:Node, a Redland::RDF::URI, a perl URI or a string literal. Otherwise STATEMENT must be an existing statement to copy.

clone

Copy a RDF::Redland::Statement.

METHODS

subject [SUBJECT]

Get/set the statement subject. When a RDF::Redland::Node SUBJECT is given, sets the subject of the statement, otherwise returns a reference to the statement RDF::Redland::Node subject.

predicate [PREDICATE]

Get/set the statement predicate. When RDF::Redland::Node PREDICATE is given, sets the predicate of the statement, otherwise returns a reference to the statement RDF::Redland::Node predicate.

object [OBJECT]

Get/set the statement object. When RDF::Redland::Node OBJECT is given, sets the object of the statement, otherwise returns a reference to the statement RDF::Redland::Node object.

as_string

Return the statement formatted as a string (UTF-8 encoded).

equals STATEMENT

Return non zero if this statement is equal to STATEMENT

OLD METHODS

new_from_nodes SUBJECT PREDICATE OBJECT

Create a new RDF::Redland::Statement with the given RDF::Redland::Node objects as parts (or undef when empty for a partial statement). Use instead:

  $a=new RDF::Redland::Statement($subject, $predicate, $object);
new_from_statement STATEMENT

Create a new RDF::Redland::Statement object from RDF::Redland::Statement STATEMENT (copy constructor). Use instead:

  $s=$old_statement->clone;

SEE ALSO

the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Model.html0000644000175000017500000002500511522705753017520 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Model Class

Redland RDF Application Framework - Perl RDF::Redland::Model Class

NAME

RDF::Redland::Model - Redland RDF Model Class

SYNOPSIS

  use RDF::Redland;
  my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'");
  my $model=new RDF::Redland::Model($storage, "");
  ...
  my(@sources)=$model->targets($predicate_node, $object_node);
  ...

DESCRIPTION

Manipulate the RDF model.

CONSTRUCTORS

new STORAGE OPTIONS_STRING
new_with_options STORAGE OPTIONS_HASH

Create a new RDF::Redland::Model object using RDF::Redland::Storage object STORAGE with a options. The options can be given either as a string in the first form as OPTIONS_STRING. The options take the form key1='value1',key2='value2'. The quotes are required. In the second case OPTIONS_HASH is a reference to a Perl hash of options.

new_from_model MODEL

Create a new model from an existing RDF::Redland::Model MODEL (copy constructor).

METHODS

size

Return the size of the model (number of statements).

sync

Synchronise the model to the underlying storage.

add SUBJECT PREDICATE OBJECT

Add a new statement to the model with SUBJECT, PREDICATE and OBJECT. These can be RDF::Redland::Node, RDF::Redland::URI or perl URI objects.

add_typed_literal_statement SUBJECT PREDICATE STRING [XML_LANGUAGE [DATATYPE]]

Add a new statement to the model containing a typed literal string object STRING with (optional) XML language (xml:lang attribute) XML_LANGUAGE and (optional) datatype URI DATATYPE. XML_LANGUAGE or DATATYPE can either or both be set to undef.

add_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT]

Add RDF::Redland::Statement STATEMENT or the statement formed by NODE NODE NODE to the model. If the optional CONTEXT is given, associate it with that context. Any of NODE or CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object.

add_statements STREAM [CONTEXT]

Add the statements from the RDF::Redland::Stream STREAM to the model. If the optional CONTEXT is given, associate it with that context. CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object.

remove_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT]

Remove RDF::Redland::Statement STATEMENT or the statement formed by NODE NODE NODE from the model. If the optional CONTEXT is given, remove only the statement stored with that context. Any of NODE or CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object.

remove_context_statements CONTEXT

Remove all RDF::Redland::Statement STATEMENTs from the model with the given CONTEXT context. CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object.

contains_statement STATEMENT

Return non 0 if the model contains RDF::Redland::Statement STATEMENT.

as_stream [CONTEXT]

Return a new RDF::Redland::Stream object seralising the entire model, or just those statements with CONTEXT, as RDF::Redland::Statement objects. If given, CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object.

find_statements STATEMENT [CONTEXT]

Find all matching statements in the model matching partial RDF::Redland::Statement STATEMENT (any of the subject, predicate, object RDF::Redland::Node can be undef). If CONTEXT is given, finds statements only in that context.

In an array context, returns an array of the matching RDF::Redland::Statement objects. In a scalar context, returns the RDF::Redland::Stream object representing the results.

sources ARC TARGET

Get all source RDF::Redland::Node objects for a given arc ARC, target TARGET> RDF::Redland::Node objects as a list of RDF::Redland::Node objects.

arcs SOURCE TARGET

Get all arc RDF::Redland::Node objects for a given source SOURCE, target TARGET RDF::Redland::Node objects as a list of RDF::Redland::Node objects.

targets SOURCE ARC

Get all target RDF::Redland::Node objects for a given source SOURCE, arc ARC RDF::Redland::Node objects as a list of RDF::Redland::Node objects.

sources_iterator ARC TARGET

Get all source RDF::Redland::Node objects for a given arc ARC, target TARGET RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure.

arcs_iterator SOURCE TARGET

Get all arc RDF::Redland::Node objects for a given source SOURCE, target TARGET RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure.

targets_iterator SOURCE ARC

Get all target RDF::Redland::Node objects for a given source SOURCE, arc ARC RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure.

source ARC TARGET

Get one source RDF::Redland::Node object that matches a given arc ARC, target TARGET RDF::Redland::Node objects or undef if there is no match.

arc SOURCE TARGET

Get one arc RDF::Redland::Node object that matches a given source SOURCE, target TARGET RDF::Redland::Node objects or undef if there is no match.

target SOURCE ARC

Get one target RDF::Redland::Node object that matches a given source SOURCE, arc ARC RDF::Redland::Node objects or undef if there is no match.

contexts

Get all context RDF::Redland::Node objects in the model

feature URI [VALUE]

Get/set a model feature. The feature is named via RDF::Redland::URI URI and the value is a RDF::Redland::Node. If VALUE is given, the feature is set to that value, otherwise the current value is returned.

query_execute QUERY

Execute the QUERY RDF::Redland::Query against the model returning a result set RDF::Redland::QueryResults or undef on failure.

load URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI [HANDLER ]]]

Load content from URI into the model, guessing the parser.

to_string [BASE-URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI]]]

Serialize the model to a syntax. If no serializer name is given, the default serializer RDF/XML is used.

OLDER METHODS

serialise
serialize

Return a new RDF::Redland::Stream object seralising the model as RDF::Redland::Statement objects. Replaced by as_stream to reduce confusion with the RDF::Redland::Serializer class.

SEE ALSO

the RDF::Redland::Storage manpage, the RDF::Redland::Node manpage and the RDF::Redland::Statement manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/XMLLiteralNode.html0000644000175000017500000000350211522705754021242 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::XMLLiteralNode Class

Redland RDF Application Framework - Perl RDF::Redland::XMLLiteralNode Class

NAME

RDF::Redland::XMLLiteralNode - Redland RDF URI Node Class

SYNOPSIS

  use RDF::Redland;
  my $node1=new RDF::Redland::XMLLiteralNode("<tag>content</tag>");

DESCRIPTION

This class represents RDF Typed Literals for XML in the RDF graph. See the RDF::Redland::Node manpage for the methods on this object.

CONSTRUCTOR

new STRING

Create a new XML datatyped literal node for the XML in STRING.

SEE ALSO

the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/URINode.html0000644000175000017500000000352711522705754017733 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::URINode Class

Redland RDF Application Framework - Perl RDF::Redland::URINode Class

NAME

RDF::Redland::URINode - Redland RDF URI Node Class

SYNOPSIS

  use RDF::Redland;
  my $node1=new RDF::Redland::URINode("http://example.org/";);

DESCRIPTION

This class represents URIs in the RDF graph. See the RDF::Redland::Node manpage for the methods on this object.

CONSTRUCTOR

new URI

Create a new URI node. URI can be either a RDF::Redland::URI object, a perl URI class or a literal string.

SEE ALSO

the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Storage.html0000644000175000017500000001276111522705754020072 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Storage Class

Redland RDF Application Framework - Perl RDF::Redland::Storage Class

NAME

RDF::Redland::Storage - Redland RDF Storage Class

SYNOPSIS

  use RDF::Redland;
  my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'");
  ...

DESCRIPTION

Create objects for storing RDF::Redland::Model objects either persistently or in memory.

CONSTRUCTORS

new STORAGE_NAME [NAME [OPTIONS_STRING]]

Create a new RDF::Redland::Storage object for the storage factory named STORAGE_NAME with storage named NAME and storage options OPTIONS_STRING which are specific to the storage factory type.

The storage options may be given either as a Perl hash or as a string. The string form are formatted in the form key1='value1',key2='value2' and the single quotes are required. The Perl hash form follows normal Perl conventions, and the boolean options use normal Perl concepts of truth.

Currently defined storage options:

new='yes'

Create a new storage erasing any existing one (boolean, default).

write='yes'

Provide write access to store (boolean, default) otherwise is read only.

dir='DIR'

Work in DIR directory when creating files.

mode='MODE'

File creation mode, default is (octal) 0644 Takes decimal (123), hex (0x123) or octal (0123).

contexts='yes'

Enable statement contexts. Each statement can be stored with an optional context Node and the context retrieved after queries. Boolean.

hash-type='TYPE' (hashes storage only)

Use the TYPE hash-type for hashes storage. Current defined types are 'memory' and 'bdb' but is dependent on the hash factories available.

index-predicates='yes' (hashes storage only)

Enable indexing from predicates to (subject,object) which can in particular be useful for rdf:type relations. Boolean.

bulk='no' (mysql storage only)

Whether model/storage method add_statements should be optimized, until a model/storage sync operation. Boolean.

merge='no' (mysql storage only)

Whether to maintain a table with merged models. Boolean.

Example, string form:

  $storage=new RDF::Redland::Storage("hashes", "test", 
                            "new='yes',hash-type='bdb',dir='.'");

Example, Perl hash form:

  $storage=new RDF::Redland::Storage("hashes", "test", 
                            {new=>1,hash-type=>'bdb',dir=>'.'});

Creates a new storage of the hashes type (indexed hashes) named test (these will be file names or URIs if the storage is persistent) and with options new='yes',hash-type='bdb',dir='.' so a new storage is created with BerkeleyDB (BDB) key:value hashes i.e. persistent and in the current directory.

Example, Perl hash form:

  $storage=new RDF::Redland::Storage("mysql", "test", {host=>'localhost',database=>'testdb',user=>'testuser',new=>0,password=>'',contexts=>1});

Uses an existing storage of the mysql type, named test on localhost with database name testdb using a user testuser and no password. Contexts are enabled.

new_from_storage STORAGE

Create a new RDF::Redland::Storage object from RDF::Redland::Storage STORAGE (copy constructor). The new storage may have a new name chosen by the storage factory.

SEE ALSO

the RDF::Redland::Model manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/RSS.html0000644000175000017500000002247211522705754017135 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::RSS Class

Redland RDF Application Framework - Perl RDF::Redland::RSS Class

NAME

RDF::Redland::RSS - Redland RSS 1.0 Class

SYNOPSIS

  use RDF::Redland::RSS;
  ...
  my $rss=RDF::Redland::RSS->new_from_model($model);
  my $rss2=new RDF::Redland::RSS("http://example.com/test.rdf";);
  ...
  for my $channel ($rss->channels) {
    ...
   print "channel title is ",$channel->title->as_string,"\n"; # UTF-8
  }
  my(@items)=$channel->items;
  # Print channel items (URI, title)
  for my $item (@items) {
    print "item ",$item->uri->as_string, " ", $item->title->as_string, "\n";
  }
  ...
  print $rss->as_xhtml(width => 320, align => 'right');

DESCRIPTION

A class for processing RSS 1.0 as RDF, traversing the resulting graph using RSS propertiiies and formatting the output as XHTML.

CONSTRUCTORS

new SOURCE_URI_STRING [BASE_URI_STRING]

Process RSS 1.0 at source URI SOURCE_URI_STRING. If the BASE_URI_STRING string is given then use that as the base URI rather than the source URI.

new MODEL

Process RSS 1.0 from content stored in RDF::Redland::Model MODEL.

METHODS

channels

Return the RSS channels (<channel> tags) as a list of RDF::Redland::RSS::Node objects.

items

Return the RSS items (<item> tags) as a list of RDF::Redland::RSS::Node objects.

image

Return the RSS 1.0 image (<image> tag) as an RDF::Redland::RSS::Node object.

textinput

Return the RSS 1.0 textinput (<textinput> tag) as an RDF::Redland::RSS::Node object.

as_xhtml (key1 => value1, key2 => value2, ...)

Return a formatted XHTML string (or full XHTML document) representing the RSS 1.0 content with various options set as listed in the section below.

The parameters to this method are mostly from the specification of the viewRssBox macro at http://macros.userland.com/viewRssBox

AS_XHTML OPTIONS

boxTitle

A string, is the text displayed in the title of the box. It defaults to the title element of the channel.

align

A string, has three possible values, left, right or the empty string. The HTML table is either left-aligned, right-aligned or not aligned. It defaults to the empty string.

width

A number, is the width of the box, in pixels. It defaults to 125. Note that the title bar determines the minimum width of the box, if you're having trouble getting it to be narrower, try shortening boxTitle.

frameColor

A string, is the hex browser color for the frame of the box. Defaults to "#000000".

titleBarTextColor

A string, is the hex browser color for the text in the title bar of the box. Defalults to "#000000".

titleBarColor

A string, is the hex browser color for the title bar of the box. Defaults to "#ADD8E6".

boxFillColor

A string, is the hex browser color for the main part of the box. Defaults to "#FFFFFF".

time

A string, is text that's displayed as the time to the right of the box title. Defaults to "".

hspace

A number, is the number of pixels to the left and right of the box. Defaults to 0.

vspace

A number, is the number of pixels above and below the box. Defaults to 0.

full

If set to any value, returns a full XHTML document. Defaults to returning an HTML fragment.

imageAlign

A string, has two possible values, left or right. The channel image is either left-aligned or right-aligned. It defaults to right aligned.

NAME

RDF::Redland::RSS::Node - Redland RSS 1.0 Node Class

DESCRIPTION

Class representing concepts in an RSS 1.0 RDF graph.

CONSTRUCTORS

No public constructors. Nodes are created either by methods of this class or RDF::Redland::RSS.

METHODS

title

Get the RSS titles for channel, image, item or textinput. Returns either a list or first one found depending on calling context.

link

Get the RSS link for channel, image, item or textinput. Returns either a list or first one found depending on calling context.

description

Get the Dublin Core description element or RSS description for channel, item or textinput. Returns either a list or first one found depending on calling context.

image_url

Get the RSS image URL string for an image. Returns either a list or first one found depending on calling context.

name

Get the RSS name for a textinput. Returns either a list or first one found depending on calling context.

items

Get the RSS items in a channel as a list of RDF::Redland::RSS::Node objects.

image

Get the image of a channel as an RDF::Redland::RSS::Node object or undef if not present.

textinput

Get the textinput of a channel as an RDF::Redland::RSS::Node object or undef if not present.

property PROPERTY

Get the value of the named property off an RDF::Redland::RSS::Node where PROPERTY is an RDF::Redland::Node or RDF::Redland::RSS::Node. Returns a list of RDF::Redland::RSS::Node objects or first one found depending on calling context.

properties

Get all properties off the RDF::Redland::RSS::Node. Returns a list of RDF::Redland::RSS::Node objects.

properties_with_ns_prefix NS_PREFIX

Get all unique properties of the RDF::Redland::RSS::Node which have namespace URI prefix NS_PREFIX. Returns a list of the properties as RDF::Redland::RSS::Node objects.

SEE ALSO

the RDF::Redland::Model manpage and RSS 1.0 web pages at http://purl.org/rss/1.0/

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Query.html0000644000175000017500000000573111522705753017571 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Query Class

Redland RDF Application Framework - Perl RDF::Redland::Query Class

NAME

RDF::Redland::Query - Redland RDF Syntax Query Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $query=new RDF::Redland::Query($query_string); # default query language
  my $results=$query->execute($model);
  # or my $results=$model->query_execute($query);
  while(!$results->finished) {
    for (my $i=0; $i < $results->bindings_count(); $i++) {
      my $name=$results->binding_name($i);
      my $value=$results->binding_value($i);
      # ... do something with the results
    }
    $results->next_result;
  }

DESCRIPTION

This class represents queries of various syntaxes over an RDF::Redland::Model returning a sequence of results that (currently) bind variable names to RDF::Redland::Node values.

CONSTRUCTORS

new QUERY-STRING [BASE-URI [QUERY-LANG-URI [QUERY-LANG]]]

Create a new RDF::Redland::Query object for a query string QUERY-STRING with optional base URI BASE-URI IN QUERY language QUERY-LANG or query language URI QUERY-LANG-URI (both can be undef). If QUERY-LANG-URI is omitted, the current directory is used as the base URI. If QUERY-LANG-NAME is undef, the default query language "rdql" is used. If BASE-URI is omitted, no base URI is used.

METHODS

execute MODEL

Run the query against model MODEL returning a RDF::Redland::QueryResults object or undef on failure.

SEE ALSO

the RDF::Redland::QueryResults manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/Stream.html0000644000175000017500000000524311522705754017716 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::Stream Class

Redland RDF Application Framework - Perl RDF::Redland::Stream Class

NAME

RDF::Redland::Stream - Redland RDF Stream of RDF::Redland::Statement objects Class

SYNOPSIS

  use RDF::Redland;
  ...
  my $stream=$model->serialise;
  while($stream && !$stream->end) {
    my $statement=$stream->current;
    ...
    $stream->next;
  }

DESCRIPTION

Represents a sequence of RDF::Redland::Statement objects passed between various Redland objects.

CONSTRUCTORS

No public constructors - are created and returned from various methods of classes including RDF::Redland::Model and RDF::Redland::Parser

METHODS

end

Returns non 0 if the stream is finished.

current

Returns the current RDF::Redland::Statement object in the stream or undef if the stream is finished.

next

Moves to the next RDF::Redland::Statement object in the stream. Returns non-zero if the stream is finished.

context

Returns the context RDF::Redland::Node object in the stream or undef if the stream is finished.

SEE ALSO

the RDF::Redland::Model manpage and the RDF::Redland::Parser manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/pod/RDF/Redland/LiteralNode.html0000644000175000017500000000410011522705754020654 00000000000000 Redland RDF Application Framework - Perl RDF::Redland::LiteralNode Class

Redland RDF Application Framework - Perl RDF::Redland::LiteralNode Class

NAME

RDF::Redland::LiteralNode - Redland RDF Literal Node Class

SYNOPSIS

  use RDF::Redland;
  my $node1=new RDF::Redland::LiteralNode("Hello, World!");
  my $node2=new RDF::Redland::LiteralNode("Bonjour monde!", undef, "fr");

DESCRIPTION

This class represents RDF literal and Typed Literals in the RDF graph. See the RDF::Redland::Node manpage for the methods on this object.

CONSTRUCTOR

new STRING [DATATYPE [XML_LANGUAGE]]

Create a new literal node for a literal value STRING. Optional datatype URI DATATYPE (RDF::Redland::URI, perl URI or string) and language (xml:lang attribute) XML_LANGUAGE may also be given.

SEE ALSO

the RDF::Redland::Node manpage

AUTHOR

Dave Beckett - http://www.dajobe.org/


(C) Copyright 2000-2011 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/0000755000175000017500000000000012074643545014034 500000000000000redland-bindings-1.0.16.1/docs/rdoc/js/0000755000175000017500000000000011776165535014456 500000000000000redland-bindings-1.0.16.1/docs/rdoc/js/quicksearch.js0000644000175000017500000000504011776165535017235 00000000000000/** * * JQuery QuickSearch - Hook up a form field to hide non-matching elements. * $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $ * * Author: Michael Granger * */ jQuery.fn.quicksearch = function( target, searchElems, options ) { // console.debug( "Quicksearch fn" ); var settings = { delay: 250, clearButton: false, highlightMatches: false, focusOnLoad: false, noSearchResultsIndicator: null }; if ( options ) $.extend( settings, options ); return jQuery(this).each( function() { // console.debug( "Creating a new quicksearch on %o for %o", this, searchElems ); new jQuery.quicksearch( this, searchElems, settings ); }); }; jQuery.quicksearch = function( searchBox, searchElems, settings ) { var timeout; var boxdiv = $(searchBox).parents('div').eq(0); function init() { setupKeyEventHandlers(); focusOnLoad(); }; function setupKeyEventHandlers() { // console.debug( "Hooking up the 'keypress' event to %o", searchBox ); $(searchBox). unbind( 'keyup' ). keyup( function(e) { return onSearchKey( e.keyCode ); }); $(searchBox). unbind( 'keypress' ). keypress( function(e) { switch( e.which ) { // Execute the search on Enter, Tab, or Newline case 9: case 13: case 10: clearTimeout( timeout ); e.preventDefault(); doQuickSearch(); break; // Allow backspace case 8: return true; break; // Only allow valid search characters default: return validQSChar( e.charCode ); } }); }; function focusOnLoad() { if ( !settings.focusOnLoad ) return false; $(searchBox).focus(); }; function onSearchKey ( code ) { clearTimeout( timeout ); // console.debug( "...scheduling search." ); timeout = setTimeout( doQuickSearch, settings.delay ); }; function validQSChar( code ) { var c = String.fromCharCode( code ); return ( (c == ':') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ); }; function doQuickSearch() { var searchText = searchBox.value; var pat = new RegExp( searchText, "im" ); var shownCount = 0; if ( settings.noSearchResultsIndicator ) { $('#' + settings.noSearchResultsIndicator).hide(); } // All elements start out hidden $(searchElems).each( function(index) { var str = $(this).text(); if ( pat.test(str) ) { shownCount += 1; $(this).fadeIn(); } else { $(this).hide(); } }); if ( shownCount == 0 && settings.noSearchResultsIndicator ) { $('#' + settings.noSearchResultsIndicator).slideDown(); } }; init(); }; redland-bindings-1.0.16.1/docs/rdoc/js/jquery.js0000644000175000017500000015473411776165535016271 00000000000000/* * jQuery 1.2.6 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-09-25 09:50:52 -0700 (Thu, 25 Sep 2008) $ * $Rev: 38 $ */ (function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("",""]||!tags.indexOf("",""]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!tags.indexOf("",""]||(!tags.indexOf("",""]||!tags.indexOf("",""]||jQuery.browser.msie&&[1,"div
","
"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf(""&&tags.indexOf("=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&¬xml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&¬xml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&¬xml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return im[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("
").append(res.responseText.replace(//g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;ithis.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();redland-bindings-1.0.16.1/docs/rdoc/js/thickbox-compressed.js0000644000175000017500000001353211776165535020715 00000000000000/* * Thickbox 3 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ var tb_pathToImage = "../images/loadingAnimation.gif"; eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<4 5=\'B\'><4 5=\'8\'>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'><4 5=\'8\'>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' />");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D&1d;&1d;2T &2R;"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;&2O; 2N"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"<4 5=\'2A\'>1l 1k 1j 1s");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"<4 5=\'2e\'>1l 1k 1j 1s ")}n{$("#B").N();$("#8").q(" ")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"<4 5=\'2e\'>1l 1k 1j 1s<4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i * */ /* Provide console simulation for firebug-less environments */ if (!("console" in window) || !("firebug" in console)) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; window.console = {}; for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {}; }; /** * Unwrap the first element that matches the given @expr@ from the targets and return them. */ $.fn.unwrap = function( expr ) { return this.each( function() { $(this).parents( expr ).eq( 0 ).after( this ).remove(); }); }; function showSource( e ) { var target = e.target; var codeSections = $(target). parents('.method-detail'). find('.method-source-code'); $(target). parents('.method-detail'). find('.method-source-code'). slideToggle(); }; function hookSourceViews() { $('.method-description,.method-heading').click( showSource ); }; function toggleDebuggingSection() { $('.debugging-section').slideToggle(); }; function hookDebuggingToggle() { $('#debugging-toggle img').click( toggleDebuggingSection ); }; function hookQuickSearch() { $('.quicksearch-field').each( function() { var searchElems = $(this).parents('.section').find( 'li' ); var toggle = $(this).parents('.section').find('h3 .search-toggle'); // console.debug( "Toggle is: %o", toggle ); var qsbox = $(this).parents('form').get( 0 ); $(this).quicksearch( this, searchElems, { noSearchResultsIndicator: 'no-class-search-results', focusOnLoad: false }); $(toggle).click( function() { // console.debug( "Toggling qsbox: %o", qsbox ); $(qsbox).toggle(); }); }); }; function highlightTarget( anchor ) { console.debug( "Highlighting target '%s'.", anchor ); $("a[name=" + anchor + "]").each( function() { if ( !$(this).parent().parent().hasClass('target-section') ) { console.debug( "Wrapping the target-section" ); $('div.method-detail').unwrap( 'div.target-section' ); $(this).parent().wrap( '
' ); } else { console.debug( "Already wrapped." ); } }); }; function highlightLocationTarget() { console.debug( "Location hash: %s", window.location.hash ); if ( ! window.location.hash || window.location.hash.length == 0 ) return; var anchor = window.location.hash.substring(1); console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" ); highlightTarget( anchor ); }; function highlightClickTarget( event ) { console.debug( "Highlighting click target for event %o", event.target ); try { var anchor = $(event.target).attr( 'href' ).substring(1); console.debug( "Found target anchor: %s", anchor ); highlightTarget( anchor ); } catch ( err ) { console.error( "Exception while highlighting: %o", err ); }; }; $(document).ready( function() { hookSourceViews(); hookDebuggingToggle(); hookQuickSearch(); highlightLocationTarget(); $('ul.link-list a').bind( "click", highlightClickTarget ); }); redland-bindings-1.0.16.1/docs/rdoc/rdf/0000755000175000017500000000000011776166205014610 500000000000000redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/0000755000175000017500000000000011776166205016221 500000000000000redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/stream_rb.html0000644000175000017500000000312512074643544021004 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: stream.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland
  • rdf/redland/util

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/serializer_rb.html0000644000175000017500000000307712074643544021670 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: serializer.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/schemas/0000755000175000017500000000000011776166204017643 500000000000000redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/schemas/rdfs_rb.html0000644000175000017500000000314712074643545022077 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: rdfs.rb [Redland Ruby API RDoc]
Last Modified
2006-03-15 22:03:30 -0800
Requires
  • rdf/redland
  • rdf/redland/constants

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/schemas/owl_rb.html0000644000175000017500000000310712074643545021736 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: owl.rb [Redland Ruby API RDoc]
Last Modified
2007-04-22 20:21:08 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/schemas/foaf_rb.html0000644000175000017500000000311012074643545022042 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: foaf.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/store_rb.html0000644000175000017500000000307212074643544020646 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: store.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/parser_rb.html0000644000175000017500000000317512074643544021012 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: parser.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland
  • rdf/redland/uri
  • rdf/redland/stream
  • uri

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/dc_rb.html0000644000175000017500000000306712074643545020105 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: dc.rb [Redland Ruby API RDoc]
Last Modified
2006-03-15 22:03:30 -0800
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/queryresults_rb.html0000644000175000017500000000310112074643545022273 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: queryresults.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/model_rb.html0000644000175000017500000000326212074643544020613 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: model.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland/store
  • rdf/redland/stream
  • rdf/redland/statement
  • rdf/redland/util

Description

require 'rdf/redland'


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/uri_rb.html0000644000175000017500000000307012074643544020307 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: uri.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/node_rb.html0000644000175000017500000000312212074643544020433 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: node.rb [Redland Ruby API RDoc]
Last Modified
2010-10-15 06:35:08 -0700
Requires
  • rdf/redland
  • rdf/redland/uri

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/util_rb.html0000644000175000017500000000277512074643545020501 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: util.rb [Redland Ruby API RDoc]
Last Modified
2006-03-15 22:03:30 -0800
Requires

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/statement_rb.html0000644000175000017500000000307612074643544021522 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: statement.rb [Redland Ruby API RDoc]
Last Modified
2006-03-15 22:03:30 -0800
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/resource_rb.html0000644000175000017500000000307512074643544021344 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: resource.rb [Redland Ruby API RDoc]
Last Modified
2010-10-15 06:35:08 -0700
Requires
  • rdf/redland

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland/query_rb.html0000644000175000017500000000312612074643544020657 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: query.rb [Redland Ruby API RDoc]
Last Modified
2012-07-07 18:52:22 -0700
Requires
  • rdf/redland
  • rdf/redland/stream

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdf/redland_rb.html0000644000175000017500000000372512074643545017520 00000000000000 Redland RDF Language Bindings - Ruby RDoc - File: redland.rb [Redland Ruby API RDoc]
Last Modified
2010-10-15 06:35:08 -0700
Requires
  • rdf/redland/model
  • rdf/redland/store
  • rdf/redland/stream
  • rdf/redland/statement
  • rdf/redland/util
  • rdf/redland/node
  • rdf/redland/parser
  • rdf/redland/queryresults
  • rdf/redland/query
  • rdf/redland/resource
  • rdf/redland/serializer
  • rdf/redland/uri
  • rdf/redland/resource
  • rdf/redland/util
  • redland
  • rdf/redland/constants

Description


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/FOAF.html0000644000175000017500000003127012074643545015360 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: FOAF

FOAF

Public Instance Methods

foaf_first(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 21
def foaf_first(node)
  @model.object(node,FOAF['firstName']).to_s
end
foaf_mbox(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 45
def foaf_mbox(node)
  @model.object(node,MBOX).to_s
end
foaf_name(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 25
def foaf_name(node)
  @model.object(node,NAME).to_s
end
foaf_namespace() click to toggle source
# File rdf/redland/schemas/foaf.rb, line 41
def foaf_namespace
  return FOAF
end
foaf_phone(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 37
def foaf_phone(node)
  @model.object(node,FOAF['phone']).to_s
end
foaf_surname(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 33
def foaf_surname(node)
  @model.object(node,FOAF['surname']).to_s
end
foaf_title(node) click to toggle source
# File rdf/redland/schemas/foaf.rb, line 29
def foaf_title(node)
  @model.object(node,FOAF['title']).to_s
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/index.html0000644000175000017500000005061412074643545015757 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Redland Ruby API RDoc

Redland Ruby API RDoc

This is the API documentation for 'Redland Ruby API RDoc'.

Files

Classes/Modules

Methods


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdoc-style.css0000644000175000017500000000000012074643545016541 00000000000000redland-bindings-1.0.16.1/docs/rdoc/Redland.html0000644000175000017500000002316612074643545016223 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: Redland

Redland

module RDF


This module initialises the Redland library and references all resources from it.


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/0000755000175000017500000000000011776166205015406 500000000000000redland-bindings-1.0.16.1/docs/rdoc/Redland/Parser.html0000644000175000017500000012540712074643545017460 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Parser

Redland::Parser

The Parser class for rdf. There are currently three types of parsers *'rdfxml'- a rdf parser *'ntriples' a An triples parser *'turtle' - a parser for the turtle syntax as defined in

http://www.dajobe.org/2004/01/turtle/

*'rss-tag-soup' - a parser for all RSS flavours and some atom *'grddl' - GRDDL

The last two may or may not be available depending on systems.

model = Model.new()
parser = Parser.ntriples()
parser.parse_into_model(model,'file:./ical.rdf')

Attributes

context[RW]

Public Class Methods

create_finalizer(parser) click to toggle source
# File rdf/redland/parser.rb, line 34
def Parser.create_finalizer(parser)
  proc {|id| # "Finalizer on #{id}"
    #$log_final.info "closing parser"
    Redland::librdf_free_parser(parser)
  }
end
new(name='rdfxml',mime_type="application/rdf+xml",uri=nil,context=nil) click to toggle source

create a new Parser. if no name is given, it defaults to parsing RDF/XML syntax

# File rdf/redland/parser.rb, line 25
def initialize(name='rdfxml',mime_type="application/rdf+xml",uri=nil,context=nil)
  @context = nil
  @idents = []
  uri=uri.uri if uri
  @parser = Redland.librdf_new_parser($world.world,name,mime_type,uri)
  raise RedlandError.new("Parser construction failed") if !@parser
  ObjectSpace.define_finalizer(self,Parser.create_finalizer(@parser))
end
ntriples(uri=nil) click to toggle source

create a parser for the ntriples syntax

# File rdf/redland/parser.rb, line 42
def Parser.ntriples(uri=nil)
  return Parser.new('ntriples',"",uri)
end
raptor(uri=nil) click to toggle source

create a parser for rdf syntax

# File rdf/redland/parser.rb, line 52
def Parser.raptor(uri=nil)
  return Parser.new('rdfxml','application/rdf+xml',uri)
end
turtle(uri=nil) click to toggle source

create a parser for the turtle syntax

# File rdf/redland/parser.rb, line 47
def Parser.turtle(uri=nil)
  return Parser.new('turtle',"",uri)
end

Public Instance Methods

add_ident(node) click to toggle source
# File rdf/redland/parser.rb, line 165
def add_ident(node)
  @idents << node
end
feature(uri) click to toggle source

Get a parser feature. The feature is a Uri

# File rdf/redland/parser.rb, line 147
def feature(uri)
  if uri.class == String then uri = Uri.new(uri) end
  value = Redland::librdf_parser_get_feature(@parser,uri.uri)
  if value == "NULL" or value == nil
    return nil
  else
    return Node.new(:from_object=>value)
  end
end
parse_as_stream(uri,base_uri=nil) click to toggle source

Parse the given uri with optional base_uri and return a Stream. If block_given, yield the Statement instead Returns nil on failure.

# File rdf/redland/parser.rb, line 59
def parse_as_stream(uri,base_uri=nil)
  if uri.class == String then uri = Uri.new(uri) end
  if base_uri.class == String then base_uri = Uri.new(base_uri) end
  unless base_uri
    my_stream = Redland::librdf_parser_parse_as_stream @parser, uri.uri, nil
  else
    my_stream = Redland::librdf_parser_parse_as_stream @parser, uri.uri ,base_uri.uri
  end
  return nil if !my_stream
  stream = Stream.new(my_stream,self)
  if !block_given?
    return stream
  else
    while not stream.end?
      yield stream.current
      stream.next
    end
  end
end
parse_into_model(model,uri,base_uri=nil,context=@context) click to toggle source

Parse the syntax at the uri Uri with optional base Uri base_uri into Model model. If the base_uri is given then the content is parsed as if it was at the base_uri rather than the uri. If the optional context is given, the statement is added to the context

NOTE: The order of the arguments to this method is different from the C API and other language bindings.

# File rdf/redland/parser.rb, line 85
def parse_into_model(model,uri,base_uri=nil,context=@context)
  #puts "parse_into_model context is #{context}"
  if uri.class == String
    uri = Uri.new(uri)
  end
  if base_uri
    if base_uri.class == String
      base_uri = Uri.new(base_uri)
    end
  else
    base_uri=uri 
  end
  if not context
    begin
      r = Redland.librdf_parser_parse_into_model(@parser,uri.uri,base_uri.uri,model.model)
    rescue RedlandError => err
      print "caught error"+ err
    end
  else #context
    raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    context = Node.ensure(context)
    my_stream = Redland::librdf_parser_parse_as_stream(@parser,uri.uri,base_uri.uri)
    Redland.librdf_model_context_add_statements(model.model,context,my_stream)
    #self.parse_as_stream(uri,base_uri){|s| model.add_statement(s,context)}
  end

end
parse_string_as_stream(string,base_uri) click to toggle source

Parse the syntax in string with required base Uri base_uri

Returns a Stream or yields Statement if block given. Returns nil on failure.

# File rdf/redland/parser.rb, line 118
def parse_string_as_stream(string,base_uri)
  if base_uri.class == String then base_uri = Uri.new(base_uri) end
  if not base_uri then raise RedlandError("A base URI is required when parsing a string") end
  my_stream = Redland::librdf_parser_parse_string_as_stream(@parser,string,base_uri.uri)
  return nil if !my_stream
  stream = Stream.new(my_stream,self)
  return stream if !block_given?
  while not stream.end?
    yield stream.current
    stream.next
  end
end
parse_string_into_model(model,string,base_uri=nil,context=@context) click to toggle source

Parse the syntax in String string with required Uri base_uri into Model model. if context is given then the context information is stored as well

NOTE: The order of the arguments to this method is different from the C API and other language bindings.

# File rdf/redland/parser.rb, line 136
def parse_string_into_model(model,string,base_uri=nil,context=@context)
  if base_uri.class == String then base_uri = Uri.new(base_uri)end
  if not base_uri then raise RedlandError.new("A base URI is required when parsing a string") end
  if not context
    return (Redland::librdf_parser_parse_string_into_model(@parser,string,base_uri.uri,model.model)== 0)
  else
    self.parse_string_as_stream(string,base_uri.uri){|s| model.add_statement(s,context)}
  end        
end
setFeature(uri,value) click to toggle source

Set a parser feature. The feature is named Uri uri and the value is a Node.

# File rdf/redland/parser.rb, line 159
def setFeature(uri,value)
  if uri.class == String then uri = Uri.new(uri) end
  if value.class == String then value = Node.new(:literal=>value) end
  return (Redland::librdf_parser_set_feature(@parser,uri.uri,value.node) == 0)
end
smush_file(model,uri,base_uri=nil,context=nil,idents=@idents) click to toggle source
# File rdf/redland/parser.rb, line 190
def smush_file(model,uri,base_uri=nil,context=nil,idents=@idents)
  to_change = {}
  temp_model = Model.new()
  self.parse_into_model(temp_model,uri,base_uri,context)
  idents.each do |ident|
    temp_model.find(nil,ident,nil){|s,p,o|
      old_id = s
      new_id = model.subject(p,o)
      if new_id
        to_change[old_id.to_s]= new_id if !to_change.key?(old_id.to_s)
      end
    }
  end
  #puts to_change
  temp_model.triples do |s,p,o|
    s = to_change[s.to_s] if to_change.key?(s.to_s)
    model.add(s,p,o,context)
  end
  
end
smush_string(string,model,idents=@idents) click to toggle source
# File rdf/redland/parser.rb, line 169
def smush_string(string,model,idents=@idents)
  to_change = {}
  temp_model = Model.new()
  self.parse_string_into_model(temp_model,string,'http://xml.com')
  idents.each do |ident|
    temp_model.find(nil,ident,nil){|s,p,o|
      old_id = s
      new_id = model.subject(p,o)
      if new_id
        to_change[old_id.to_s]= new_id if !to_change.key?(old_id.to_s)
      end
    }
  end
  #puts to_change
  temp_model.triples do |s,p,o|
    s = to_change[s.to_s] if to_change.key?(s.to_s)
    model.add(s,p,o)
  end
  
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/QueryResults.html0000644000175000017500000007433412074643545020715 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::QueryResults

Redland::QueryResults

This class provides query language results support

Attributes

results[R]

Public Class Methods

create_finalizer(results) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/queryresults.rb, line 17
def QueryResults.create_finalizer(results)
  proc{|id| # "Finalizer on #{id}"
    #$log_final.info "closing results"
    Redland::librdf_free_query_results(results)
  }
end
new(object) click to toggle source

this is not a public constructor

# File rdf/redland/queryresults.rb, line 11
def initialize(object)
  @results = object
  ObjectSpace.define_finalizer(self,QueryResults.create_finalizer(@results))
end

Public Instance Methods

as_stream() click to toggle source

Get a new Stream object representing the query results as an RDF Graph.

# File rdf/redland/queryresults.rb, line 92
def as_stream
  my_stream=Redland.librdf_query_results_as_stream(@results)
  return Stream.new(my_stream, self)
end
binding_name(index) click to toggle source

Get binding name for the current result

# File rdf/redland/queryresults.rb, line 45
def binding_name(index)
  return Redland.librdf_query_results_get_binding_name(@results,index)
end
binding_names() click to toggle source

Get the names all of the variable bindings as an array

# File rdf/redland/queryresults.rb, line 50
def binding_names
  count=Redland.librdf_query_results_get_bindings_count(@results)
  names=[]
  for i in 0..count-1
    names << binding_name(i)
  end
  return names
end
binding_value(index) click to toggle source

Get one binding value for the current result

# File rdf/redland/queryresults.rb, line 60
def binding_value(index)
  node = Redland.librdf_query_results_get_binding_value(@results,index)
  return node.nil? ? nil : Node.new(node)
end
binding_value_by_name(name) click to toggle source

Get the value of the variable binding name in the current query result.

# File rdf/redland/queryresults.rb, line 76
def binding_value_by_name(name)
  node=Redland.librdf_query_results_get_binding_value_by_name(@results,name)
  return node.nil? ? nil : Node.new(node)
end
binding_values() click to toggle source

Get an array of all the values of all of the variable bindings in the current query result.

# File rdf/redland/queryresults.rb, line 66
def binding_values
  count=Redland.librdf_query_results_get_bindings_count(@results)
  values=[]
  for i in 0..count-1
    values << binding_value(i)
  end
  return values
end
bindings() click to toggle source

Get an array of binding values

# File rdf/redland/queryresults.rb, line 82
def bindings
  (0...self.size).each{|i| binding_value( i ) }
end
bindings_count() click to toggle source

Get number of binding variables

# File rdf/redland/queryresults.rb, line 40
def bindings_count
  return Redland.librdf_query_results_get_bindings_count(@results)
end
count() click to toggle source

Get the number of results so far

# File rdf/redland/queryresults.rb, line 30
def count
  return Redland.librdf_query_results_get_count(@results)
end
finished?() click to toggle source

Test if the results are finished

# File rdf/redland/queryresults.rb, line 35
def finished?
  return (Redland.librdf_query_results_finished(@results) != 0)
end
get_boolean?() click to toggle source

Get the boolean query result

# File rdf/redland/queryresults.rb, line 139
def get_boolean?()
  return (Redland.librdf_query_results_get_boolean(@results) != 0)
end
is_bindings?() click to toggle source

Test if is variable bindings result

# File rdf/redland/queryresults.rb, line 124
def is_bindings?()
  return (Redland.librdf_query_results_is_bindings(@results) != 0)
end
is_boolean?() click to toggle source

Test if is a boolean result

# File rdf/redland/queryresults.rb, line 129
def is_boolean?()
  return (Redland.librdf_query_results_is_boolean(@results) != 0)
end
is_graph?() click to toggle source

Test if is an RDF graph result

# File rdf/redland/queryresults.rb, line 134
def is_graph?()
  return (Redland.librdf_query_results_is_graph(@results) != 0)
end
next() click to toggle source

Move to the next query result

# File rdf/redland/queryresults.rb, line 87
def next
  Redland.librdf_query_results_next(@results)
end
size() click to toggle source

Get the number of results so far

# File rdf/redland/queryresults.rb, line 25
def size
  return Redland.librdf_query_results_get_count(@results)
end
to_string(format_uri = nil, base_uri = nil) click to toggle source

Serialize to a string syntax in format_uri using the optional base_uri. The default format when none is given is determined by librdf_query_results_to_string

# File rdf/redland/queryresults.rb, line 100
def to_string(format_uri = nil, base_uri = nil)
  if self.is_graph?()
    tmpmodel=Model.new()
    tmpmodel.add_statements(self.as_stream())
    serializer=Serializer.new()
    return serializer.model_to_string(base_uri, tmpmodel)
  end

  if not self.is_boolean?() and not self.is_bindings?()
    raise RedlandError.new("Unknown query result format cannot be written as a string")
  end

  if format_uri
    format_uri = format_uri.uri
  end
  if base_uri
    base_uri = base_uri.uri
  end

  return Redland.librdf_query_results_to_string(@results, format_uri, base_uri)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/RedlandError.html0000644000175000017500000001216012074643545020576 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::RedlandError

Redland::RedlandError

Error class specific to this package


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Namespace.html0000644000175000017500000001703212074643545020112 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Namespace

Redland::Namespace

A helper class for namespace. Caches the nodes for a given namespaces

foaf = Namespace.new('http://xmlns.com/0.1/foaf/')
model.find(nil,foaf['name'],'Dominic')
puts foaf['name'] => http://xmlns.com/0.1/foaf/name

Public Class Methods

new(namespace) click to toggle source
# File rdf/redland/node.rb, line 198
def initialize(namespace)
  super(:uri_string=>namespace)
  @nodecache = {}
end

Public Instance Methods

[](item) click to toggle source
# File rdf/redland/node.rb, line 203
def [](item)
  return the_node(item)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Serializer.html0000644000175000017500000004737212074643545020341 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Serializer

Redland::Serializer

This module provides RDF graph to syntax serialization support via factory classes providing one or more particular target syntaxes.

Public Class Methods

create_finalizer(serializer) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/serializer.rb, line 26
def Serializer.create_finalizer(serializer)
  proc {|id| # "Finalizer on #{id}"
    #log_final.info "closing serializer"
    Redland::librdf_free_serializer(serializer)
  }
end
new(name='rdfxml',mime_type="application/rdf+xml",uri=nil) click to toggle source

Constructor - create a new Serializer object name - the serializer factory name mime_type - the MIME type of the syntax uri - URI of syntax

# File rdf/redland/serializer.rb, line 12
def initialize(name='rdfxml',mime_type="application/rdf+xml",uri=nil)
  uri = uri.uri if uri
  @serializer = Redland.librdf_new_serializer($world.world,name,mime_type,uri)
  raise RedlandError.new("Serializer construction failed") if !@serializer
  ObjectSpace.define_finalizer(self,Serializer.create_finalizer(@serializer))
end
ntriples(uri=nil) click to toggle source

Create a NTriples serializer uri - URI of syntax

# File rdf/redland/serializer.rb, line 21
def Serializer.ntriples(uri=nil)
  return Serializer.new('ntriples','text/plain',uri)
end

Public Instance Methods

feature(uri) click to toggle source

Get a parser feature. The feature is named via RDF::Redland::URI I<URI>

# File rdf/redland/serializer.rb, line 46
def feature(uri)
  uri = Uri.new(uri) unless uri.class == Uri
  value = Redland::librdf_serializer_get_feature(@serializer,uri.uri)
  if value == "NULL" or value==nil
    return nil
  else
    return Node.new(:from_object=>value)
  end
end
model_to_string(base_uri, model) click to toggle source

Serialize the RDF graph in model to a string

# File rdf/redland/serializer.rb, line 71
def model_to_string(base_uri, model)
  if base_uri
    base_uri = base_uri.uri
  end
  return Redland.librdf_serializer_serialize_model_to_string(@serializer, base_uri, model.model)
end
setFeature(uri,value) click to toggle source

Set a serializer feature. The feature is named via RDF::Redland::URI I<URI> and the value is a RDF::Redland::Node.

# File rdf/redland/serializer.rb, line 58
def setFeature(uri,value)
  uri = Uri.new(uri) unless uri.class == Uri
  if value.class == String then value = Node.new(:literal=>value) end
  return (Redland::librdf_serializer_set_feature(@serializer,uri.uri,value.node) == 0)
end
set_namespace(prefix, uri) click to toggle source

Set a serializer namepace to the desired prefix

# File rdf/redland/serializer.rb, line 65
def set_namespace(prefix, uri)
  uri = Uri.new(uri) unless uri.class == Uri
  return (Redland::librdf_serializer_set_namespace(@serializer,uri.uri,prefix) == 0)
end
to_file(name,model,base_uri=nil) click to toggle source

Serializes a model and stores it in a file name - the serializer factory name mime_type - the MIME type of the syntax base_uri - URI of syntax

# File rdf/redland/serializer.rb, line 37
def to_file(name,model,base_uri=nil)
  if base_uri
    base_uri = base_uri.uri
  end
  return Redland.librdf_serializer_serialize_model_to_file(@serializer,name,base_uri,model.model)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/MergedModel.html0000644000175000017500000004537012074643545020410 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::MergedModel

Redland::MergedModel

A non-context-aware model used for the purpose of merging

Attributes

canonical[R]
global_rewrites[R]

Public Class Methods

new(master_model) click to toggle source

Constructor - needs a master model to use

# File rdf/redland/model.rb, line 447
def initialize(master_model)
  @hooks = {}
  @count = {}
  @inverse_functional_properties = []
  @identifiers = [] # list of inverse functional properties to smush
  @canonical = {} #rewrites to perform on local level
  @global_rewrites = {} #rewrites to apply globally
  @transactions = []
  @master = master_model
  @pred_identifiers = {}
  super()
  
end

Public Instance Methods

find_canonical(predlist) click to toggle source

Locate predicates for smushing

# File rdf/redland/model.rb, line 475
def find_canonical(predlist)
  predlist.each do |pred|
    identifier = {}
    self.find(nil,pred,nil) do |subj,pred,obj|
      master_id = self.find_subject_in_master(pred,obj)
      if not master_id
        if not identifier.has_key?(obj.to_s)
          identifier[obj.to_s] = subj 
        elsif identifier[obj.to_s] != subj #already an identifying URI
          new_value = identifier[obj.to_s]
          if not @canonical.has_key?(subj.to_s)
            @canonical[subj.to_s] = new_value
          end
        end
      else # master_id
        if identifier.has_key?(obj.to_s)
          if identifier[obj.to_s] != master_id
            @canonical[subj.to_s] = master_id
            identifier[obj.to_s] = master_id
          end
        else # master_id not in identifier
          identifier[obj.to_s] = master_id
          if @canonical.has_key?(subj.to_s)
            if @canonical[subj.to_s] != master_id
              @global_rewrites[master_id] = @canonical[subj.to_s]
            end
          else
            if subj != master_id
              @canonical[subj.to_s] = master_id
            end
          end
        end
      end
    end # self.find
    @pred_identifiers[pred] = identifier
  end #predlist.each
end
find_subject_in_master(pred,obj) click to toggle source

Return one Node in the Model matching (?,predicate,target) The source and predicate can be a Node or Uri

# File rdf/redland/model.rb, line 463
def find_subject_in_master(pred,obj)
  return @master.subject(pred,obj)
end
rewrite(context=nil) click to toggle source

actually do the smush

# File rdf/redland/model.rb, line 514
def rewrite(context=nil)
  self.triples() do |sub,pred,obj|
    sub = @canonical[sub.to_s] if @canonical.key?(sub.to_s)
    obj = @canonical[obj.to_s] if @canonical.key?(obj.to_s)
    
    
    @master.add(sub,pred,obj,context)
  end
end
smush(predlist) click to toggle source

Effectively removes the listes Predicates from the Model by replacing all occurrences with a blank node (?? confirm)

# File rdf/redland/model.rb, line 469
def smush(predlist)
  self.find_canonical(predlist)
  self.rewrite()
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/NodeIterator.html0000644000175000017500000003551712074643545020625 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::NodeIterator

Redland::NodeIterator

The iterator provides a generic way to receive a sequence of values (order may or may not be import) from objects, usually generated on demand.

Public Class Methods

create_finalizer(iterator) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/stream.rb, line 114
def NodeIterator.create_finalizer(iterator)
  proc {|id| # "Finalizer on #{id}"
    #puts "closing iterator"
    Redland::librdf_free_iterator(iterator)
  }
end
new(object,model=nil,creator2=nil,creator3=nil) click to toggle source
# File rdf/redland/stream.rb, line 82
def initialize(object,model=nil,creator2=nil,creator3=nil)
  @iterator = object
  @model = model
  @creator2 = creator2
  @creator3 = creator3
  
  # Test if the iterator has finished
  def end?()
    return (Redland.librdf_iterator_end(@iterator) != 0)
  end

  # Get the current object from the iterator
  def current
    my_node = Redland.librdf_iterator_get_object(@iterator)
    if my_node == "NULL" or my_node == nil
      return nil
    elsif is_literal?(my_node)
      return Literal.from_node(my_node)
    else
      return Resource.new(my_node,@model)
    end
  end

  # Move to the next iterator element
  def next()
    my_node=Redland.librdf_iterator_next(@iterator)
  end

  ObjectSpace.define_finalizer(self,NodeIterator.create_finalizer(@iterator))
end

Public Instance Methods

current() click to toggle source

Get the current object from the iterator

# File rdf/redland/stream.rb, line 94
def current
  my_node = Redland.librdf_iterator_get_object(@iterator)
  if my_node == "NULL" or my_node == nil
    return nil
  elsif is_literal?(my_node)
    return Literal.from_node(my_node)
  else
    return Resource.new(my_node,@model)
  end
end
end?() click to toggle source

Test if the iterator has finished

# File rdf/redland/stream.rb, line 89
def end?()
  return (Redland.librdf_iterator_end(@iterator) != 0)
end
next() click to toggle source

Move to the next iterator element

# File rdf/redland/stream.rb, line 106
def next()
  my_node=Redland.librdf_iterator_next(@iterator)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/BNode.html0000644000175000017500000001651012074643545017205 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::BNode

Redland::BNode

A class to make Blank Node creation easier

model = Model.new
dom = BNode.new('dom') # create with optional id

I will probably depreciate this and just use Resource.new() to generate blank nodes.

Public Class Methods

new(id=nil) click to toggle source
# File rdf/redland/node.rb, line 184
def initialize(id=nil)
  @node = Redland.librdf_new_node_from_blank_identifier($world.world,id)
  if not @node then raise RedlandError.new("Node construction failed")end
  ObjectSpace.define_finalizer(self,Node.create_finalizer(@node))
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/OWL.html0000644000175000017500000001505512074643545016662 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: Redland::OWL

Redland::OWL

Public Instance Methods

add_datatype(prop) click to toggle source
# File rdf/redland/schemas/owl.rb, line 12
def add_datatype(prop)
  
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Uri.html0000644000175000017500000002773412074643545016767 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Uri

Redland::Uri

Attributes

uri[RW]

Public Class Methods

create_finalizer(uri) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/uri.rb, line 29
def Uri.create_finalizer(uri)
  proc {|id| # "Finalizer on #{id}"
    #puts "closing uri"
    Redland::librdf_free_uri(uri)
  }
end
new(uri_string) click to toggle source

Initialize a Uri

uri = RDF::Redland::Uri.new('kris')
uri2 = RDF::Redland::Uri.new(uri)
require 'uri'
uri = Uri.parse('http://www.xmlns.com')
uri_from_Uri = RDF::Redland::Uri.new(uri)
# File rdf/redland/uri.rb, line 15
def initialize(uri_string)
  case uri_string
  when String
    @uri = Redland.librdf_new_uri($world.world,uri_string)
  when Uri
    @uri = Redland.librdf_new_uri_from_uri(uri_string.uri)
  when SWIG::TYPE_p_librdf_uri_s
    @uri = Redland.librdf_new_uri_from_uri(uri_string)
  end
  if not @uri then raise RedlandError.new("Unable to create Uri") end
  ObjectSpace.define_finalizer(self,Uri.create_finalizer(@uri))
end

Public Instance Methods

==(other) click to toggle source

Equivalence. Only works with other URI objects

# File rdf/redland/uri.rb, line 42
def == (other)
  return (Redland.librdf_uri_equals(self.uri,other.uri) != 0)
end
to_s() click to toggle source

Returns a string for this URI

# File rdf/redland/uri.rb, line 37
def to_s
  return Redland.librdf_uri_to_string(@uri)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/RDFS.html0000644000175000017500000003240512074643545016755 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: Redland::RDFS

Redland::RDFS

Public Instance Methods

add_label(a_label,lang=nil) click to toggle source

add a 'www.w3.org/2000/01/rdf-schema#label' to this resource. a label is a literal that can have a language. If a label for a given language is already defined, it replaces the label. If a label is not defined for a language it adds the label

res.add_label('my label') # label created
res.add_label('change label') #label changed to 'change label'
res.add_label('change again','en') # label added with language English
# File rdf/redland/schemas/rdfs.rb, line 49
def add_label(a_label,lang=nil)
  label = Literal.new(a_label,lang)
  labels = self.get_properties(RDFS_LABEL) do |a_label| 
    if a_label.language == lang
      self.model.delete(self,RDFS_LABEL,a_label)
    end       
  end
  self.add_property(RDFS_LABEL,label)
  return self
end
comment() click to toggle source

get the object with the following predicate: www.w3.org/2000/01/rdf-schema#comment'

# File rdf/redland/schemas/rdfs.rb, line 28
def comment()
  self.get_property(RDFS_COMMENT).to_s
end
comment=(a_comment) click to toggle source

same as the following

model.add(this,Resource.new('http://www.w3.org/2000/01/rdf-schema#comment','comment')
# File rdf/redland/schemas/rdfs.rb, line 34
def comment=(a_comment)
  if a_comment.class == String
    self.delete_property(RDFS_COMMENT)
    self.add_property(RDFS_COMMENT,a_comment)
  end
  return self
end
label(lang=nil) click to toggle source

return the label for this resource if the lang is defined, return the label for this language if no label found return nil

# File rdf/redland/schemas/rdfs.rb, line 63
def label(lang=nil)
  self.get_properties(RDFS_LABEL) do |label|
    if label.language == lang
      return label
    end
  end
  return nil
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/HashOpen.html0000644000175000017500000001512212074643545017721 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::HashOpen

Redland::HashOpen

Store the triples in a hash using bdb in the current directory

Public Class Methods

new(name) click to toggle source
# File rdf/redland/store.rb, line 101
def initialize(name)
  @store = Redland::librdf_new_storage $world.world, "hashes",name, "new='no',hash-type='bdb',dir='.'"
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Util.html0000644000175000017500000002700512074643545017134 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: Redland::Util

Redland::Util

Public Instance Methods

get_node_array(node_iterator) click to toggle source

Given an Iterator, returns an array of all Nodes beyond it including this one

# File rdf/redland/util.rb, line 22
def get_node_array(node_iterator)
  node_array = []
  while not node_iterator.end?
    node_array << node_iterator.current
    node_iterator.next
  end
  return node_array
end
get_statement_array(stream) click to toggle source

Given an Stream, returns an array of all Statements beyond it including this one

# File rdf/redland/util.rb, line 33
def get_statement_array(stream)
  statement_array = []
  while not stream.end?
    statement_array << stream.current
    stream.next
  end
  return statement_array
end
is_blank?(node) click to toggle source

Return true if node is a blank node

# File rdf/redland/util.rb, line 15
def is_blank?(node)
  return (Redland.librdf_node_is_blank(node) !=0)

end
is_literal?(node) click to toggle source

Return true if node is a literal

# File rdf/redland/util.rb, line 5
def is_literal?(node)
  return (Redland.librdf_node_is_literal(node) !=0)
end
is_resource?(node) click to toggle source

Return true if node is a resource with a URI

# File rdf/redland/util.rb, line 10
def is_resource?(node)
  return (Redland.librdf_node_is_resource(node) !=0)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Node.html0000644000175000017500000010124012074643545017076 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Node

Redland::Node

Attributes

node[R]

Public Class Methods

anon(id) click to toggle source

Creates a new blank node with the specified ID (?? confirm)

# File rdf/redland/node.rb, line 84
def Node.anon(id)
  n = Node.new('')
  n.bnode(id)
  n
end
create_finalizer(node) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/node.rb, line 79
def Node.create_finalizer(node)
  proc {|id| Redland::librdf_free_node(node) }
end
ensure(node) click to toggle source

Ensures that the argument is a node by constructing one or returning nil (?? confirm)

# File rdf/redland/node.rb, line 158
def Node.ensure(node)
  case node
  when Node
    my_node = Redland.librdf_new_node_from_node(node.node)
  when SWIG::TYPE_p_librdf_node_s
    my_node = Redland.librdf_new_node_from_node(node)
  when Uri
    my_node = Redland.librdf_new_node_from_uri($world.world,node.uri)
  when URI
    my_node = Redland.librdf_new_node_from_uri_string($world.world,node.to_s)
  else
    my_node = nil
  end
  return my_node
end
new(arg=nil) click to toggle source

Create an RDF Node

Resource or property node creation

n1 = Node.new(Uri.new("http://example.com/foo"))

String literal node creation

n2 = Node.new("foo")
# File rdf/redland/node.rb, line 21
def initialize(arg=nil)
  if arg.class == String
    temp = arg
    arg = {}
    arg[:literal]= temp
    @node = self.node_from_hash(arg)
  elsif arg.class == Hash
    @node = node_from_hash(arg)
  else
    @node = Node.ensure(arg)
  end
  raise RedlandError.new("Node construction failed") if not @node
  ObjectSpace.define_finalizer(self,Node.create_finalizer(@node))
end

Public Instance Methods

==(other) click to toggle source

Equivalency. Only works for comparing two Nodes

# File rdf/redland/node.rb, line 106
def ==(other)
  return (Redland.librdf_node_equals(self.node,other.node) != 0)
end
blank?() click to toggle source

Return true if node is a blank node

# File rdf/redland/node.rb, line 101
def blank?
  return (Redland.librdf_node_is_blank(self.node) !=0)
end
blank_identifier() click to toggle source

returns the blank identifier for this node if the internal model is a blank node

# File rdf/redland/node.rb, line 148
def blank_identifier()
  unless self.blank?
    raise NodeTypeError.new("Can't get blank identifier for node type %s" % self.node_type)
  else
    return Redland.librdf_node_get_blank_identifier(self.node)
  end
end
bnode(id=nil) click to toggle source

Sets this node's value to a blank node with the specified ID (?? confirm)

# File rdf/redland/node.rb, line 74
def bnode(id=nil)
  @node = Redland.librdf_new_node_from_blank_identifier($world.world,id)
end
literal() click to toggle source

returns a Literal if the node is a literal type

# File rdf/redland/node.rb, line 139
def literal
  unless self.literal?
    raise NodeTypeError.new("Can't get literal value for node type %s" % self.node_type)
  end
  return Literal.from_node(self.node)
end
literal?() click to toggle source

Return true if node is a literal

# File rdf/redland/node.rb, line 91
def literal?
  return (Redland.librdf_node_is_literal(self.node) !=0)
end
node_from_hash(hash) click to toggle source

sets this node's value using a blank or URI extracted from a Hash (?? confirm)

# File rdf/redland/node.rb, line 38
def node_from_hash(hash)
  if hash.key?(:blank)
    node = Redland.librdf_new_node_from_blank_identifier($world.world,hash[:blank])
  end
  if hash.key?(:from_object)
    if hash.key?(:do_not_copy)
      node = hash[:from_object]
    else
      node = Redland.librdf_new_node_from_node(hash[:from_object])
    end
  end
  
  if hash.key?(:uri_string)
    node = Redland.librdf_new_node_from_uri_string($world.world,hash[:uri_string])
  end
  if hash.key?(:literal)
    node = node_from_literal(hash)
  end
  return node
end
node_from_literal(hash) click to toggle source

sets this node's value using a literal value extracted from a Hash (?? confirm)

# File rdf/redland/node.rb, line 61
def node_from_literal(hash)
  xml_language = hash.key?(:xml_language) ? hash[:xml_language] : ""
  wf_xml = hash.key?(:wf_xml?) ? 1 : 0
  if hash.key?(:datatype)
    datatype = hash[:datatype]
    node = Redland.librdf_new_node_from_typed_literal($world.world,hash[:literal],xml_language,datatype.uri)
  else
    node = Redland.librdf_new_node_from_literal($world.world,hash[:literal],xml_language,wf_xml)
  end
  return node
end
node_type() click to toggle source

Get the type of this node as a string (Node.node_types)

# File rdf/redland/node.rb, line 125
def node_type()
  return @@node_types[Redland.librdf_node_get_type(self.node)]
end
resource?() click to toggle source

Return true if node is a resource with a URI

# File rdf/redland/node.rb, line 96
def resource?
  return (Redland.librdf_node_is_resource(self.node) !=0)
end
to_s() click to toggle source

Convert this to a string

# File rdf/redland/node.rb, line 111
def to_s
  if self.literal?
    Redland.librdf_node_get_literal_value(self.node)
  elsif self.blank?
    Redland.librdf_node_get_blank_identifier(self.node)
  elsif self.resource?
    uri = Redland.librdf_node_get_uri(self.node)
    Redland.librdf_uri_to_string(uri) unless uri.nil?
  else
    nil
  end
end
uri() click to toggle source

return a copy of the internal uri

# File rdf/redland/node.rb, line 130
def uri
  if self.resource?
    return Uri.new(Redland.librdf_node_get_uri(self.node))
  else
    raise NodeTypeError.new("Can't get URI for node type %s" % self.node_type() )
  end
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/World.html0000644000175000017500000002152612074643545017310 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::World

Redland::World

The world object is the single global variable in Redland that all the classes, their factories and implementations reference.

In most programs there should be only one Redland world, using multiple models although multiple worlds are possible.

Attributes

world[RW]

include Singleton

Public Class Methods

create_finalizer(world) click to toggle source
# File rdf/redland.rb, line 54
def World.create_finalizer(world)
  proc {|id| "Finalizer on #{id}"
    #log_final.info "closing world"
    # This is commented out because Ruby fails to guarantee this
    # is called after all other redland destructors
    #Redland::librdf_free_world world
  }
end
new() click to toggle source

Create new RDF World object (constructor)

# File rdf/redland.rb, line 48
def initialize()
  @world = Redland::librdf_new_world()
  Redland::librdf_world_open(@world)
  ObjectSpace.define_finalizer(self,World.create_finalizer(@world))
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Statement.html0000644000175000017500000006277612074643545020201 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Statement

Redland::Statement

Redland Statement (triple class). The main means of manipulating statements is by the subject,predicate,and object properties

require 'rdf'
Statement creation from nodes
statement1 = Statement.new(node1,node2,node3)
statement2 = Statement.new(:statement=>statement)

if statement2.resource?
  puts "statement2.subject has uri #{statement2.subject.uri}"

Attributes

statement[R]

the internal librdf statement

Public Class Methods

create_finalizer(statement) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/statement.rb, line 70
def Statement.create_finalizer(statement)
  proc {|id| Redland::librdf_free_statement(statement) }
end
new(subject=nil,predicate=nil,object=nil,model=nil) click to toggle source

create a new Statement with subject,predicate,and object the subject, predicate, and objects can be of class String or Uri.

# File rdf/redland/statement.rb, line 25
def initialize(subject=nil,predicate=nil,object=nil,model=nil)
  @model = model
  
  if subject.class == Hash
    if subject.key?(:from_object)
      @statement = Redland.librdf_new_statement_from_statement(subject[:from_object])
      @model = subject[:model]
    end
  else
    
    unless subject
      s = nil
    else
      if (subject.class == Uri)|| (subject.class == String)
        subject = Node.new(subject)
      end
      s = Redland.librdf_new_node_from_node(subject.node)
    end
    
    unless predicate
      p = nil
    else    
      if (predicate.class == Uri) || (predicate.class == String)
        predicate = Node.new(predicate)
      end
      p = Redland.librdf_new_node_from_node(predicate.node)
    end

    unless object
      o = nil
    else    
      if (object.class == Uri) || (object.class == String)
        object = Node.new(object)
      end
      o = Redland.librdf_new_node_from_node(object.node)
    end
    @statement = Redland.librdf_new_statement_from_nodes($world.world,s,p,o)
  end

  raise RedlandError.new("Statement construction failed") if !@statement
  ObjectSpace.define_finalizer(self,Statement.create_finalizer(@statement))

end

Public Instance Methods

==(other) click to toggle source

Equivalency. Only works for comparing two Statements

# File rdf/redland/statement.rb, line 140
def ==(other)
  return (Redland.librdf_statement_equals(self.statement,other.statement) != 0)
end
object() click to toggle source

return the object of the statement triple. The return value is either a Literal or Resource depending if object returned from the store is literal or not

# File rdf/redland/statement.rb, line 94
def object()
  object_node = Redland.librdf_statement_get_object(self.statement)
  return Literal.from_node(object_node) if is_literal?(object_node)
  return Resource.new(object_node,@model)
end
object=(value) click to toggle source

set the object of the statement

# File rdf/redland/statement.rb, line 111
def object=(value)
  if value
    Redland.librdf_statement_set_object(self.statement,
                                        Redland.librdf_new_node_from_node(value.node))
  else
    Redland.librdf_statement_set_object(self.statement, nil)
  end
end
predicate() click to toggle source

return the predicate of the statement triple.

# File rdf/redland/statement.rb, line 87
def predicate()
  return wrap_node(Redland.librdf_statement_get_predicate(self.statement))
end
predicate=(value) click to toggle source

set the predicate of the statement

# File rdf/redland/statement.rb, line 121
def predicate=(value)
  if value
    Redland.librdf_statement_set_predicate(self.statement,
                                           Redland.librdf_new_node_from_node(value.node))
  else
    Redland.librdf_statement_set_predicate(self.statement, nil)
  end
end
subject() click to toggle source

return the subject of the statement triple. The subject is of class Resource

# File rdf/redland/statement.rb, line 82
def subject()
  return Resource.new(Redland.librdf_statement_get_subject(self.statement),@model)
end
subject=(value) click to toggle source

set the subject of the statement

# File rdf/redland/statement.rb, line 101
def subject=(value)
  if value
    Redland.librdf_statement_set_subject(self.statement,
                                         Redland.librdf_new_node_from_node(value.node))
  else
    Redland.librdf_statement_set_subject(self.statement, nil)
  end
end
to_s() click to toggle source

Convert this Statement to a string

# File rdf/redland/statement.rb, line 131
def to_s()
  unless self.statement
    raise RedlandError.new("Statement is invalid")
  else
    return Redland.librdf_statement_to_string(self.statement)
  end
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Model.html0000644000175000017500000024102712074643545017261 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Model

Redland::Model

Attributes

model[R]

Public Class Methods

create_finalizer(model) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/model.rb, line 27
def Model.create_finalizer(model)
  proc {|id| # "Finalizer on #{id}"
    #$log_final.info "closing model"
    Redland::librdf_free_model(model)
  }
end
new(store=nil) click to toggle source

Constructor - takes an optional argument store, which should be one of the storage classes (all derived from TripleStore)

# File rdf/redland/model.rb, line 17
def initialize(store=nil)
  @statements = []
  store = MemoryStore.new() if not store
  @model = Redland.librdf_new_model($world.world,store.store,"")
  raise RedlandError.new("Creating new Model failed") if not @model
  @store = store
  ObjectSpace.define_finalizer(self,Model.create_finalizer(@model))
end

Public Instance Methods

add(subject,predicate,object,context=nil) click to toggle source

Add the triples (s,p,o) to the model with the optional context

# File rdf/redland/model.rb, line 71
def add(subject,predicate,object,context=nil)
  my_statement = Statement.new(subject,predicate,object)
  self.add_statement(my_statement,context)
end
add_statement(statement,context=nil) click to toggle source

Add the Statement to the Model with optional context Node

# File rdf/redland/model.rb, line 60
def add_statement(statement,context=nil)
  if context
    context = Node.ensure(context)
    raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    return Redland.librdf_model_context_add_statement(self.model,context,statement.statement)
  else
    return Redland.librdf_model_add_statement(self.model,statement.statement)
  end
end
add_statements(statement_stream,context=nil) click to toggle source

Add the Stream of Statements to the Model with optional context Node

# File rdf/redland/model.rb, line 78
def add_statements(statement_stream,context=nil)
  if context
    context = Node.ensure(context)
    raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    Redland.librdf_model_context_add_statements(self.model,context,statement_stream.stream)
  else
    return Redland.librdf_model_add_statements(self.model,statement_stream.stream)
  end
end
as_stream(context=nil) click to toggle source

list the model contents as a stream of statements

# File rdf/redland/model.rb, line 188
def as_stream(context=nil)
  if context
    context = Node.ensure(context)
    raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    my_stream = Redland.librdf_model_context_as_stream(self.model,context)
  else
    my_stream = Redland.librdf_model_as_stream(self.model)
  end
  return Stream.new(my_stream,self)
end
contexts() click to toggle source

yield the contexts defined in the model. If the store wasn't set up for contexts raises a RedlandError. If no block_given returns an array of the contexts

# File rdf/redland/model.rb, line 352
def contexts()
  my_iterator = Redland.librdf_model_get_contexts(@model)
  raise RedlandError.new("Unable to create iterator for contexts") if !my_iterator
  iterator= NodeIterator.new(my_iterator,self)
  if block_given?
    while not iterator.end?
      yield iterator.current
      iterator.next
    end
  else
    context_array = []
    while not iterator.end?
      context_array << iterator.current
      iterator.next
    end
    return context_array
  end
end
create_resource(str=nil,context=nil) click to toggle source

create a resource for this model. The str can be a String, or a Redland::Uri

# File rdf/redland/model.rb, line 36
def create_resource(str=nil,context=nil)
  resource = Resource.new(str,self,context)
  if context
    resource.set_context(Resource.new(context))
  end
  return resource
end
delete(s,p,o,context=nil) click to toggle source

Remove the statement made of the triples (s,p,o) with the optional context Node

# File rdf/redland/model.rb, line 156
def delete(s,p,o,context=nil)
  if [s,p,o].all? { |e| e }
    statement = Statement.new(s,p,o)
    self.delete_statement(statement,context)
  else
    self.find(s,p,o,context) do |ds, dp, d_o|
      st = Statement.new(ds, dp, d_o)
      Kernel.p st
      self.delete_statement(st, context)
    end
  end
end
delete_context(context) click to toggle source

Remove the Statements from the Model with the given context Node

# File rdf/redland/model.rb, line 170
def delete_context(context)
  context = Node.ensure(context)
  raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
  return Redland.librdf_model_context_remove_statements(self.model,context)
end
delete_statement(statement,context=nil) click to toggle source

Remove the Statement from the Model with the optional context Node

# File rdf/redland/model.rb, line 145
def delete_statement(statement,context=nil)
  if context
    context = Node.ensure(context)
    RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    return Redland.librdf_model_context_remove_statement(self.model,context,statement.statement)
  else
    return Redland.librdf_model_remove_statement(self.model,statement.statement)
  end
end
dump_model(context=nil) click to toggle source

a screen dump of the triples, if context is included a screen dump of the triples for the given context

# File rdf/redland/model.rb, line 380
def dump_model(context=nil)
  self.triples(context){|s,p,o| puts "#{s}:#{p}:#{o}"}
end
find(s=nil,p=nil,o=nil,context=nil) click to toggle source

find the statements matching the given triple. The triples can be nil

Find all triples with FOAF of Dominic

model.find(nil,FOAF['firstName'],'Dominic Sisneros'){|s,p,o ...}
# File rdf/redland/model.rb, line 238
def find(s=nil,p=nil,o=nil,context=nil)
  statement = Statement.new(s,p,o,self)
  if context
    context = Node.ensure(context)
    raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context
    my_stream = Redland.librdf_model_find_statements_in_context(self.model,statement.statement,context)
  else
    my_stream = Redland.librdf_model_find_statements(self.model,statement.statement)
  end
  return nil if not my_stream      
  stream = Stream.new(my_stream,self)
  if block_given?
    while not stream.end?
      my_statement = stream.current
      yield my_statement.subject,my_statement.predicate,my_statement.object
      stream.next
    end
  else #block not given
    return get_statement_array(stream)
  end
end
get_resource(arg) click to toggle source

get a resource given by str. If arg is a string it will create a Resource from it.

# File rdf/redland/model.rb, line 46
def get_resource(arg)
  res = self.find(Resource.new(arg),nil,nil)
  return (res.nil? || res[0].nil?) ? nil : res[0].subject
end
include?(s,p,o) click to toggle source

Returns true if the given Triple is in the model

# File rdf/redland/model.rb, line 182
def include?(s,p,o)
  statement = Statement.new(s,p,o)
  self.include_statement?(statement)
end
include_statement?(statement) click to toggle source

Returns true if the Statement is in the Model

# File rdf/redland/model.rb, line 177
def include_statement?(statement)
  return (Redland.librdf_model_contains_statement(self.model,statement.statement) != 0)
end
load(uri, name="", mime_type="", type_uri=nil) click to toggle source
# File rdf/redland/model.rb, line 433
def load(uri, name="", mime_type="", type_uri=nil)
  ruri = uri.uri
  rtype_uri = type_uri.nil? ? nil : type_uri.uri
  return Redland.librdf_model_load(@model, ruri, name, mime_type, rtype_uri)
end
object(source,predicate) click to toggle source

Return one Node in the Model matching (source, predicate,?) The source and predicate can be a Node or Uri

# File rdf/redland/model.rb, line 266
def object(source,predicate)
  if source.class == Uri then source = Node.new(source) end
  if predicate.class == Uri then predicate = Node.new(predicate) end
  my_node = Redland.librdf_model_get_target(self.model,source.node,predicate.node)
  return nil if not my_node
  return Literal.from_node(my_node) if is_literal?(my_node)
  return Resource.new(my_node,self,false)
end
parse_and_merge(parser,uri,predlist,context=uri,st=nil) click to toggle source

parser the file with the given parser and uri and smushes the file with the model on the statements with the given predlist

# File rdf/redland/model.rb, line 387
def parse_and_merge(parser,uri,predlist,context=uri,st=nil)
  context = Uri.new(context) if context == uri
  temp_model = MergedModel.new(self)
  if st
    temp_model.add_statement(st)
  else
    parser.parse_as_stream(uri){|s|temp_model.add_statement(s)}
  end
  temp_model.find_canonical(predlist)
  temp_model.rewrite(context)
  if temp_model.global_rewrites.size > 0
    print "***** GLOBAL REWRITES UNDERWAY ***"
    #self.rewrite(temp_model.global_rewrites)
  end
end
predicates(source,target) click to toggle source

Return an array of Predicate Nodes in the Model matching (subject,?,target) The subject and target can be a Node or Uri If block_given? yields the Subject Node

# File rdf/redland/model.rb, line 317
def predicates(source,target)
  if source.class == Uri
    source = Node.new(source)
  end
  if target.class == Uri or target.class == String
    target =Node.new(target)
  end
  my_iterator = Redland.librdf_model_get_arcs(self.model,source.node,target.node)
  raise RedlandError.new("unable to create iterator") if !my_iterator
  iterator = NodeIterator.new(my_iterator,self,source,target)
  if block_given?    
    while not iterator.end?
      yield iterator.current
      iterator.next
    end
  else 
    return get_node_array(iterator)
  end
end
query_execute(query) click to toggle source

execute a query

# File rdf/redland/model.rb, line 416
def query_execute(query)
  results=Redland.librdf_model_query_execute(@model, query.query)
  if not results
    return nil
  else
    return QueryResults.new(results)
  end
end
rewrite(change_hash) click to toggle source

clears the transactions (?? confirm)

# File rdf/redland/model.rb, line 404
def rewrite(change_hash)
  transactions = []
end
save(filename) click to toggle source

saves this model to the specified filename

# File rdf/redland/model.rb, line 373
def save(filename)
  serializer = Serializer.new()
  serializer.to_file(filename,self)
end
size() click to toggle source

Return the size of the Storage Model. Raises a redland error if the model has non countable storage

# File rdf/redland/model.rb, line 53
def size()
  s = get_size()
  raise RedlandError.new("Attempt to get size when using non-countable storage") if s < 0
  return s
end
smush(pred) click to toggle source

Effectively removes a Predicate from the Model by replacing all occurrences with a blank node (?? confirm)

# File rdf/redland/model.rb, line 90
def smush(pred)
  identifying_hash = {}
  canonical = {}
  mapme = []
  transactions = []
  self.find(nil,pred,nil){|sub,pred,obj|
    if not identifying_hash.has_key?(obj.to_s)
      identifying_hash[obj.to_s] = sub
    elsif identifying_hash[obj.to_s] != sub
      subject_string = sub.to_s
      if not canonical.has_key?(subject_string)
        # print "amodule Rdf dding mapping: ",subject_string,"--->",identifying_hash[obj.to_s]
        canonical[subject_string] = identifying_hash[obj.to_s]
        mapme << Node.new(sub)
      end
    end
  }
  
  self.triples(){ |sub,pred,obj| 
    ss = sub.to_s
    os = obj.to_s
    new_statement = nil
    replace = false

    if canonical.has_key?(ss)
      if not replace
        new_statement = Statement.new(sub,pred,obj)
        replace = 1
      end
      new_statement.subject = canonical[ss]
    end
    if canonical.has_key?(os)
      if not replace
        new_statement = Statement.new(sub,pred,obj)
        replace = 1
        new_statement.object = canonical[os]
      end
    end
    
    if replace
      
      transactions << [Statement.new(sub,pred,obj),new_statement]
    end
  }

  
  transactions.each{ |pair|
    self.delete_statement(pair[0])
    self.add_statement(pair[1])
  }
end
statement_array_or_yield(stream) click to toggle source
# File rdf/redland/model.rb, line 260
def statement_array_or_yield(stream)
  
end
statements(context = nil) click to toggle source

Yield the statements if a block is given.

# File rdf/redland/model.rb, line 216
def statements(context = nil)
  stream = self.as_stream(context)
  while not stream.end?
    yield stream.current
    stream.next
  end
end
subject(predicate,target) click to toggle source

Return one Node in the Model matching (?,predicate,target) The source and predicate can be a Node or Uri

# File rdf/redland/model.rb, line 301
def subject(predicate,target)
  if predicate.class == Uri
    predicate = Node.new(predicate)
  end
  if target.class == Uri or target.class == String
    target = Node.new(target)
  end
  my_node = Redland.librdf_model_get_source(self.model,predicate.node,target.node)
  return nil if !my_node
  return Literal.from_node(my_node) if is_literal?(my_node)
  return Resource.new(my_node,self,false)
end
subjects(predicate,target) click to toggle source

Return an array of Subject Nodes in the Model matching (?,predicate,target) The predicate and target can be a Node or Uri If block_given? yields the Subject Node

# File rdf/redland/model.rb, line 278
def subjects(predicate,target)
  if predicate.class == Uri
    predicate = Node.new(predicate)
  end
  if target.class == Uri or target.class == String
    target = Node.new(target)
  end
  my_iterator = Redland.librdf_model_get_sources(self.model,predicate.node,target.node)
  raise RedlandError.new("Unable to create iterator") if !my_iterator
  iterator = NodeIterator.new(my_iterator,self,predicate,target)
  if block_given?
    while not iterator.end?
      yield iterator.current
      iterator.next
    end
  else
    return get_node_array(iterator)
  end

end
to_string(name="", base_uri=nil, mime_type="", type_uri=nil) click to toggle source

Serialize the Model to a syntax

# File rdf/redland/model.rb, line 426
def to_string(name="", base_uri=nil, mime_type="", type_uri=nil)
  rbase_uri = base_uri.nil? ? nil : base_uri.uri
  rtype_uri = type_uri.nil? ? nil : type_uri.uri

  return Redland.librdf_model_to_string(@model, rbase_uri, name, mime_type, rtype_uri)
end
triples(context=nil) click to toggle source

Yield the triples subject, predicate, and object if a block is given. Otherwise return an array of the statements

# File rdf/redland/model.rb, line 202
def triples(context=nil)
  stream = self.as_stream(context)
  return nil if not stream
  if block_given?
    while not stream.end?
      yield stream.current.subject ,stream.current.predicate,stream.current.object
      stream.next
    end
  else
    return get_statement_array(stream)
  end
end
triples_with_context(context=nil) click to toggle source

Yield the triples as well as the context

# File rdf/redland/model.rb, line 225
def triples_with_context(context=nil)
  stream = self.as_stream(context)
  while not stream.end?
    statement = stream.current
    yield statement.subject, statement.predicate, statement.object, stream.context
    stream.next
  end
end
yield_node_or_array(iterator) click to toggle source
# File rdf/redland/model.rb, line 337
def yield_node_or_array(iterator)
  iterator = NodeIterator.new(my_iterator,self,source,target)
  if block_given?    
    while not iterator.end?
      yield iterator.current
      iterator.next
    end
  else 
    return get_node_array(iterator)
  end
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/ContextParser.html0000644000175000017500000002304512074643545021020 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::ContextParser

Redland::ContextParser

Class for parsing a file

Public Class Methods

new(file) click to toggle source

Create a new ContextParser for a file

# File rdf/redland/parser.rb, line 218
def initialize(file)
  case file
  when String
    file = file.expand_path(file)
    raise RedlandError("File doesn't exist") unless File.file?(file)
    @uri == Uri.new(file)
  when File
  end
  @parser = Redland.librdf_new_parser($world.world,name,mime_type,@uri.uri,@uri.uri)
  raise RedlandError.new("Parser construction failed") if !@parser
  ObjectSpace.define_finalizer(self,Parser.create_finalizer(@parser))
  
end

Public Instance Methods

parse_into_model(model,string,base_uri) click to toggle source

Parse a file into a model (?? confirm - why doesn't it use most of it's args)

# File rdf/redland/parser.rb, line 233
def parse_into_model(model,string,base_uri)
  super(model,@uri,nil,@uri)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/HashStore.html0000644000175000017500000003346412074643545020125 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::HashStore

Redland::HashStore

Store the triples in a hash. Can use memory or bdb

Attributes

hash_type[RW]

Public Class Methods

new(hash_type='memory',name='',dir='.', want_new=true,write=true,contexts=true) click to toggle source

hash_type either memory or bdb. If it's bdb, you must specify a name

# File rdf/redland/store.rb, line 56
def initialize(hash_type='memory',name='',dir='.', want_new=true,write=true,contexts=true)
  @hash_type = hash_type
  @dir = dir
  unless ( (hash_type == 'memory') || (hash_type == 'bdb'))
    raise RedlandError.new('Hash must be memory or bdb')
  end

  if hash_type=='bdb' then
    unless (name != '')
      raise RedlandError.new('bdb must have a filename')
    end
  end
  if (( want_new == true)|| (want_new == 'yes') || (want_new == 'Yes'))
    want_new = 'yes'
  elsif
    ( (want_new == false) || (want_new == 'no') || (want_new == 'No'))
    want_new = 'no'
  end
  if ((write == true) || (write == 'yes') || (write == 'Yes'))
    write = 'yes'
  elsif
    ( (write == false) || (write == 'no') || (write == 'No'))
    write = 'no'
  end
  if ((contexts == true) || (contexts == 'yes') || (contexts == 'Yes'))
    contexts = 'yes'
  elsif ((contexts == false) || (contexts == 'no') || (contexts == 'No'))
    contexts = 'no'
  end
  
  options = "hash-type='#{hash_type}',new='#{want_new}', dir='#{dir}', write='#{write}',contexts='#{contexts}'"
  super('hashes',name,options)
end
read_store(name,dir='.',write=true) click to toggle source
# File rdf/redland/store.rb, line 90
def HashStore.read_store(name,dir='.',write=true)
  return HashStore.new('bdb',name,dir,false,write)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/TripleStore.html0000644000175000017500000002532512074643545020476 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::TripleStore

Redland::TripleStore

A class for storing RDF triples

Attributes

store[RW]
store_type[RW]

Public Class Methods

create_finalizer(store) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/store.rb, line 33
def TripleStore.create_finalizer(store)
  proc {|id| # "Finalizer on #{id}"
    #$log_final.info "closing store"
    Redland::librdf_free_storage(store) if store
  }
end
new(store_type='memory',name='',options='') click to toggle source

Creates a store with the given type, name, and options

# File rdf/redland/store.rb, line 10
def initialize(store_type='memory',name='',options='')
  case store_type
  when "memory";
  when "hashes";
  when "file";
  when "uri";
  when "mysql";
  when "sqlite";
  when "postgresql";
  else
    raise RedlandError.new("Failed to initialize storage, unknown storage type [#{store_type}]")
  end
  @name = name
  @store_type = store_type
  @store=Redland.librdf_new_storage($world.world,store_type,name,options)
  unless @store
    raise RedlandError.new("Creating Storage Failed")
  end

  ObjectSpace.define_finalizer(self,TripleStore.create_finalizer(@store))
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Resource.html0000644000175000017500000007125412074643545020013 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Resource

Redland::Resource

include Redland

Attributes

model[R]

The internal model this Resource is connected to

node[R]

The internal librdf_node

Public Class Methods

new(arg=nil,model=nil,new_node=true) click to toggle source

Create a Redland::Resource. Arg can be a String, or a Redland::Uri

# File rdf/redland/resource.rb, line 16
def initialize(arg=nil,model=nil,new_node=true)
  @context = nil
  case arg
  when nil
    @node = Redland.librdf_new_node_from_blank_identifier($world.world,nil)
  when String
    @node = Redland.librdf_new_node_from_uri_string($world.world,arg)
  when Uri
    @node = Redland.librdf_new_node_from_uri($world.world,arg.uri)
  when Node
    @node = Redland.librdf_new_node_from_node(arg.node)
  when SWIG::TYPE_p_librdf_node_s
    
    @node = new_node ? Redland.librdf_new_node_from_node(arg): arg
  end
  raise RedlandError.new("Node construction failed") if not @node
  ObjectSpace.define_finalizer(self,Node.create_finalizer(@node))

  model ||= Model.new
  @model = model
end

Public Instance Methods

add_property(p,o,context=nil) click to toggle source

Adds a statement to the model with the subject as the resource and p as the predicate and o as the object same as Model.add(this,p,o)

# File rdf/redland/resource.rb, line 94
def add_property(p,o,context=nil)
  @model.add(self,p,o,context)
  return self
end
delete_properties() click to toggle source

Removes all of the properties from the model with this resource as the subject

# File rdf/redland/resource.rb, line 108
def delete_properties()
  self.get_properties().each{|st| @model.delete_statement(st)}
end
delete_property(pred,context=nil) click to toggle source

Removes the property from the model with the predicate pred and optional context

# File rdf/redland/resource.rb, line 101
def delete_property(pred,context=nil)
  @model.delete(self,pred,self.get_property(pred),context)
  return self
end
get_properties(pred=nil) click to toggle source

Answer model.find(self,pred,nil) in the associated model If no predicate or block given, returns and array of statements matching model.find(self,nil,nil) If block_given? yields the predicate and the object

resource.get_properties() do |p,o|
  puts "<td>#{p}</td><td>#{o}</td>"
end

If pred given, answers model.find(self,pred,nil) if no block return an array of the object values

nicknames = resource.get_properties(FOAF::NICK)

if block_given yields the objects which satisfy the predicate

puts "Nicknames are"
  resource.get_properties(FOAF_NICK){|o| puts o}
# File rdf/redland/resource.rb, line 60
def get_properties(pred=nil)
  statements = @model.find(self,pred,nil)
  if pred
    if block_given?
      statements.each{|st| yield st.object}
    else
      statements.map{|st| st.object}
    end
  else
    return statements if not block_given?
    statements.each{ |st| yield st.predicate,st.object}
  end
end
get_property(p) click to toggle source

Answer model.find(self,p,nil) in the associated model. If there are several such statements, any one of them may be returned

# File rdf/redland/resource.rb, line 40
def get_property(p)
  @model.object(self,p)
end
object_of_predicate(pred = nil) click to toggle source

Finds all objects of a given predicate. Takes an optional block, yielding each statement if given.

# File rdf/redland/resource.rb, line 76
def object_of_predicate(pred = nil)
  # statements = @model.find(nil,pred,self)
  if pred
    if block_given?
      @model.subjects(pred,self){|sub| yield sub}
    else
      return @model.subjects(pred,self)
    end
  else
    statements = @model.find(nil,nil,self)
    return statements if not block_given?
    statements.each { |st| yield st.subject,st.predicate}
  end
end
set_context(context) click to toggle source

Defines a context for this resource

# File rdf/redland/resource.rb, line 146
def set_context(context)
  @context = context
end
set_type(type,context=@context) click to toggle source

Set the type of this Resource

# File rdf/redland/resource.rb, line 139
def set_type(type,context=@context)
  self.delete_property(TYPE)
  self.add_property(TYPE,type,context)
  return self
end
type() click to toggle source

returns the RDF type of this Resource where RDF type is <www.w3.org/1999/02/22-rdf-syntax-ns#TYPE>

# File rdf/redland/resource.rb, line 134
def type
  self.get_property(TYPE)
end
type=(type,context=@context) click to toggle source

Sets the RDF type of this Resource where RDF type is <www.w3.org/1999/02/22-rdf-syntax-ns#TYPE>

# File rdf/redland/resource.rb, line 126
def type=(type,context=@context)
  self.delete_property(TYPE)
  self.add_property(TYPE,type,context)
  return self
end
type?(type) click to toggle source

Determine if this resource is of a given type

# File rdf/redland/resource.rb, line 113
def type?(type)
  self.model.find(self,TYPE,type).size != 0
end
update_property(prop,value,context=nil) click to toggle source

Change the value of the given property

# File rdf/redland/resource.rb, line 118
 def update_property(prop,value,context=nil)
   self.delete_property(prop)
   self.add_property(prop,value,context)
   return self
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/FileStore.html0000644000175000017500000001457212074643545020120 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::FileStore

Redland::FileStore

Store the triples in a file

Public Class Methods

new(mem_name,options) click to toggle source
# File rdf/redland/store.rb, line 110
def initialize(mem_name,options)
  super("file",mem_name,options)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/MemoryStore.html0000644000175000017500000001474212074643545020510 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::MemoryStore

Redland::MemoryStore

Store the triples in memory

Public Class Methods

new(mem_name="",options_string="") click to toggle source
# File rdf/redland/store.rb, line 45
def initialize(mem_name="",options_string="")
  super('memory',mem_name,options_string)
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Literal.html0000644000175000017500000003174412074643545017620 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Literal

Redland::Literal

A literal node

Attributes

language[R]

the language of the literal

value[R]

the string value of the literal

Public Class Methods

from_node(node) click to toggle source

create a literal from another Node

# File rdf/redland/node.rb, line 246
def Literal.from_node(node)
  lang = Redland.librdf_node_get_literal_value_language(node) if Redland.librdf_node_get_literal_value_language(node)
  str = Redland.librdf_node_get_literal_value(node)
  hash_uri = Redland.librdf_node_get_literal_value_datatype_uri(node)
  hash_uri = Uri.new(Redland.librdf_uri_to_string(hash_uri)) if hash_uri
  return Literal.new(str,lang,hash_uri)
end
from_xml(str,lang=nil) click to toggle source

create a literal from and xml string

literal = Literal.from_xml('<em>This is emphasized</em>')
# File rdf/redland/node.rb, line 256
def Literal.from_xml(str,lang=nil)
  return Literal.new(str,lang,nil,true)
end
new(str,lang=nil,uri=nil,is_xml=false) click to toggle source

create a new Literal node

literal = Literal.new('Dominic')
label = Literal.new('Name','en')
# File rdf/redland/node.rb, line 231
def initialize(str,lang=nil,uri=nil,is_xml=false)
  @value = str
  @language = lang
  is_xml = is_xml==true ? 1 : 0
  if uri
    @node = Redland.librdf_new_node_from_typed_literal($world.world,value,lang,uri.uri)
  else
    @node = Redland.librdf_new_node_from_literal($world.world,value,lang,is_xml)
  end

  raise RedlandError.new("Node construction failed") if not @node
  ObjectSpace.define_finalizer(self,Node.create_finalizer(@node))
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/NodeTypeError.html0000644000175000017500000001221212074643545020752 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::NodeTypeError

Redland::NodeTypeError

Incorrect node type


(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Query.html0000644000175000017500000002613712074643545017331 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Query

Redland::Query

This class provides query language support for RDF models either via an adaptor class or direct by persistant storage.

Attributes

query[R]

Public Class Methods

create_finalizer(query) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/query.rb, line 36
def Query.create_finalizer(query)
  proc{|id| # "Finalizer on #{id}"
    #$log_final.info "closing query"
    Redland::librdf_free_query(query)
  }
end
new(query,language=nil,uri=nil,base_uri=nil) click to toggle source

Constructor - create a new Query object query - the query string language - the name of the query language uri - the URI identifying the query language

# File rdf/redland/query.rb, line 17
def initialize(query,language=nil,uri=nil,base_uri=nil)
  @language = language
  @uri = uri
  @query = Redland.librdf_new_query($world.world,language,uri,query,base_uri)
  return nil if not @query
  ObjectSpace.define_finalizer(self,Query.create_finalizer(@query))
end

Public Instance Methods

execute(model) click to toggle source

Execute a query on a model

# File rdf/redland/query.rb, line 26
def execute(model)
  results=Redland.librdf_query_execute(@query,model.model)
  if not results
    return nil
  else
    return QueryResults.new(results)
  end
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/Redland/Stream.html0000644000175000017500000003631512074643545017456 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Class: Redland::Stream

Redland::Stream

This module provides a method to generate a stream of statements, suitable for outputing from RDF/XML parsers, returning as the results of queries and serialising models in order to manipulate them or transform into another syntax.

Attributes

stream[RW]

Public Class Methods

create_finalizer(stream) click to toggle source

You shouldn't use this. Used internally for cleanup.

# File rdf/redland/stream.rb, line 22
def Stream.create_finalizer(stream)
  proc {|id| # "Finalizer on #{id}"
    #puts "closing stream"
    Redland::librdf_free_stream(stream)
  }
end
new(object,model) click to toggle source

Create a wrapper for a librdf_stream object (?? confirm)

# File rdf/redland/stream.rb, line 15
def initialize(object,model)
  @stream = object
  @model = model
  ObjectSpace.define_finalizer(self,Stream.create_finalizer(@stream))
end

Public Instance Methods

context() click to toggle source

Get the context of the current Statement in the stream

# File rdf/redland/stream.rb, line 62
def context()
  if not self.stream
    return true
  end
  my_node = Redland.librdf_stream_get_context(@stream)
  if not my_node
    return nil
  else
    return Node.new(:from_object=>my_node)
  end
end
current() click to toggle source

Get the current Statement in the stram

# File rdf/redland/stream.rb, line 39
def current
  if not self.stream
    return nil
  end
  my_statement = Redland.librdf_stream_get_object(self.stream)
  
  unless my_statement
    return nil
  else
    return Statement.new(:from_object=>my_statement,:model=>@model)
  end
end
end?() click to toggle source

Test if the stream has ended

# File rdf/redland/stream.rb, line 30
def end?
  if not @stream
    return true
  else
    return (Redland.librdf_stream_end(self.stream) != 0)
  end
end
next() click to toggle source

Move to the next Statement in the stream

# File rdf/redland/stream.rb, line 53
def next()
  if not self.stream
    return true
  else
    return Redland.librdf_stream_next(self.stream)
  end
end

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/images/0000755000175000017500000000000011776165535015307 500000000000000redland-bindings-1.0.16.1/docs/rdoc/images/bullet_black.png0000644000175000017500000000032311776165535020356 00000000000000‰PNG  IHDRµú7êgAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<eIDAT(ÏcøÏ€2 .R ̣We®7JaWĐơ¿ëÛÿäÿ\ XÈ]íúŸ₫?öăæ«XH^íøŸô?́Ứ „₫7¥Ăÿ3`·‚[­á*60H ÚÄÑ₫s–ơàVIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/tag_green.png0000644000175000017500000000114511776165535017671 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<÷IDAT8Ë…“Ia†ûÒUĂ¿ éø{æbFcôªN4FMtÜnîñÆ̉-=́6c li4ÈBH!Ñ(ÚdX̣úƠ—ĐÂâ¡.Uơ>ơÖ×ƠBµZE¥RA¹\F©TB±XD¡P€®ëÈçó„}!†år¹½^C2™̀^ˆ@“I`&ŸÜétlå˜ $“É,S3M£D.—Ó'“ æó9Ï0NCÓ´­¦®™øœY6§Ó)F?»ˆ2¯µÛm$ Äb± ˆ@“W–‹H<₫ơÏN¯ă‘tÍx­Ơj‘ D"‘5ˆÀv´Æă1oÍf₫èâäô^¹÷g÷đœVf³I.lˆÍf¯°­ÑhÄ›¾™9<–ñV½‹OÚC|8»¿i4ä>ŸC8%•J‰lGk8̣¦z·€§¾#¼Smȉr„XÉÅëµZ\@’¤{—x<.²­Á`°ùøơ^oâ¥r óÅŒ»…Bđx<—×^”í'ªªjơû}̣äóU¼đßÀ›è1₫üư}Q́°W¸ÑhT ‡Ă]"·kêL|ÓsË»Ưn‡ưˆÛ# ~¿ß¢K\}b³üx'€BQ'{i‹¬^¯oïPȲ́ôz½‰].—cë)ÿïweSL|iWưù(«ÓSIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/page_white_text.png0000644000175000017500000000052611776165535021120 00000000000000‰PNG  IHDRµú7êgAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<èIDATÁ1nSAÀÙÇ4A¸‚‚(¡I“Sp.KPp"„̉Q̉A7%ƒß₫û1Ó¢;ó°ó+„‹çưZ######Ïù´µ±DWk=æCù›?ù‘û|̃ÚX‚æjä˜9昇́³ËÈSóekMs9¾•¯NNV«ƠG@ÿà¶‹kD)Ẵ4¼hn­†“¡”éĐ.Q¦@ønJ)1]:À;1@ø¡ ÓT˜̃:Àt€Ÿ¦ĩ:ˆö€I²$fM³-Ú+g”]î₫´•Ï^LvIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/date.png0000644000175000017500000000116211776165535016652 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<IDAT8Ë•RmkA~î¼Ô‹çK$‚ˆ5X¤%¢ íÇ‚!àó³¿#?P…@PZ(*EúAÅ#¾Ü¹Û™w˜Ô:đ0»;3ϼ́@J ‰–Íf?W«Ơo™Læî¿í` …OµZí+ûđ›§M“¿Øëæçù<†ww• ^ăIؼ½Å›ËKü¼¿ÇæúZÙ̉RjºFÂNV0+Ăv»E8Çq €¸®+˜äbF"ÊvÂÜs¬¾;Ă4 tåÔíơ ˆÄ>9ckèt»ÊÖyxđ àơØDŒ²7ÎÎĐ³m\Pöµ¦S€t¬]ßIo…@ô#Ù/ƯدàĂé)̃[äf—œƒÈ^Ñ»£#dHk„àbG"ơ«¨×ë̉uƯ¿Âq¹\.Xøc8ÖÀY¯×h·ÛH§Óè÷ûª÷ù|r¹́}¹/ú!FˆĐäs¹R©B¡(³è÷˜§]đ…ÑjµT5”ª£Vü˜?ZxYâl6ƒ Ésđd2Qg†çwpûdÜ­¶C2™äåÁp8„A¿ÆƠ唨®Đ*³©X,¢¯å¬<}" úW›„‚ ûаæ 8s"‘ÀjµR-ù-tiMÉ1ÊeưK¼ ˜¬Ùl¢T*=L§Ó/Fă#₫Cè7~°₫ -:MW1¹ùIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/package.png0000644000175000017500000000152511776165535017333 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<çIDAT8Ë}“Kh\u…¿{gî̀4ĂL¦’”)‰BŸ1>̉n\ÔâF²±)µ¡PAD¨  Q¤TWf!”"ظ®¦` ¡HC0ijC“1ͳ“̀L›fwîëÿû¹(v!ƒg}ø6ß9–ª̉)wyc‘/T4«"œ˜ëÔ³₫ X˜8Ñ«¢¨Èû»÷̀›v‡Ë×›*ú¹ôÜØơû‹WGU}[E>ÉîÙß7ø&¶åœt‚Ji’Gë³+*rQE¾>û{û `áêè¢̉=ĂÇûŸÂí9o/rorœ₫gaw=MĐª²U¥QŸVcƾ;}ź;qâDÎ>µ̀r Ïă7j́Tç1a“¨U&ḿ8₫6‰îl7K½¼ÀVio{åǤ9sđƠËVÔ¨Ñ,O"a´WÅ«—©¯mpt́kœ̀.h-£­V}ƯÅÈàÖ¯K§“*̉R¬\ÊM“- Đ®̃¡«'O¾'CüU0)đ7 ½†·9Msù&î3§P#­¤€V 'w'ů̀ Í N,ïo°•póú#âLRi4Q’j„Ç hÉ]¸½GˆS\ÿ²ù;QƒØíƤ³ˆB¬H£Æ`«1…ª‰@<Đ€d÷^²{â9¦]â Æø!Æó‰¼‰"Ô¶dlÇDÔ @|0mp‹Ä Ä ‰›QÓÇÉ a+¨ˆk«‘K7¾¢½½ é"$ºÀ„  h$?$öB©r‡N#&Cif ™N¼7ÚÿS°³²V[¼6¶…lßáL/HbFå6ºt÷¿åX¿=Çֽɕد}ÈGO¦|ë»—zUäC5r®øâh¾8üD>ơµ)4VÊw₫âÁêͦ|«"—¶´ÑñL\>2¤FΫÈ[û^yÇjW–¹?ÿ'q{ưgùBiîßøo¦.¨È§ˆ¤TäËcç¯têưܲÂ^&ưÈIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/page_white_width.png0000644000175000017500000000046511776165535021255 00000000000000‰PNG  IHDRµú7êgAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<ÇIDAT(Ï…‘A‚0E¥âÖ•n\x½§qob♼† ÙRÊw( ögÚIæu2¿UÄï5ùS‡®¥†6­VX¹àʲJ6YhlÁOe<±Æ¤j³56á“S&¢ˆ̃¹5ˆÿån2 •́,ˆàbeă %,r̀[;ƯzÖ³»đ X`ÑÚ́<ªÆÛdzè®B”Ǹ¢7|É!Aøư/ˆn2=V́ŒÚâY¾Œ ăræoÿ v¶øZdIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/loadingAnimation.gif0000644000175000017500000001337611776165535021205 00000000000000GIF89aĐ Äûûû÷÷÷óóóïïïêêêæææââẫ̃̃ÚÚÚÖÖÖ̉̉̉ÎÎÎÊÊÊÅÅÅÁÁÁ½½½¹¹¹µµµ±±±©©©ÿÿÿ!ÿ NETSCAPE2.0!ù ,Đ ÿ Å@Rihª®lë¾p,Ïtm¿#6NÏüŒ̉+ör‹¤rD4ÊhÓé@F“Cjz]LÖë×–j·]﹬̀RÙØñ3-ĂÁH$wƒPy‡ |KI†ˆ‰‹Œ\K“ˆŒ Q\˜‡•]PI–¢Ÿ  ¬¨¥°¤’~$² ~Æ ÁËÁĂÅÇÈỀÁ–Đ̉ÓÖÇØ̀ƠÏ×ÓÔÛÆƯËƠJÇÉâƠĐǻÚéÆëâÚàǗßï æÀ%:`–Á@ XÈP@AO 2|ø(¢D‡º**¼H‘E‰}láF=ÿ$¹Æ‹@\9±åL˜ J(ÈƠ)?‚ ``ÁÏC…=4èRO@›>}5éTDU‡^=”U©Q¨H¥~¥ÖêX¬eµå֫΂:<…!€»æb`¯^O àơ»v”àÁy ':<ø/%Æ„ẹ́Eœ˜n`Ê3A¾›ÙđÂÆë~¾`îÛ¸Rf*Đ4µLÀ¬›ªE3è́DZœ[öí±“̃FUÛơëƠºg*>|AoáÊGªë4QÅ]ïÀ̃V;÷¤̃™ <€íG)Ÿç®}ùñëÓSvOÖ<}´í¿&p đæÄyôØ]†Xg Xà‡ ¢`€"1 A˜ fJh!æ’B2§8'‘m ”øuÑ™tbj)̣–œºÅH s6.7ăL;jÔ£J?´‘p6æĐ‚l¨@k[‚ “Ø-)–’Pº„V•X™¥”fQ9å{fưÄ¥Z^v &™é0 l¶éæ›pÆ)g 9P!ù ,Î ÿ EMb¹œT5+…ªkûÆslăyị́‹”Î[ơJ;Đw3iH¢Ê’:—QªèXƠR$ÚĂâà511™ç@¯Ôeg;=›(gúÚ™×Ùn%pf"ƒ|…‡w}‚ˆzv[xE%` +•% ‰‰Ÿ¤1" ¡¨ª ¦ª¨¤²1›°¶™©ª¬§£½ ·¯½­Ă‰±Æ·È1ŸË+ +Ơ'i 1Ö˜~ ÛÔ×~ÚÜăÓåá%Ưtæâ±îë"íßóÖéḯẹ̀çäöƯ«'đ–$|dЉ'Ná7o%pèDzơ:đ)†Dö©è€HŒ$ÅÿœD˜̣€Eétl¨±ä̀‘5żlP•4 #óy€”5Ÿí—SåRzC>¥ j¹©U›œz›̉§]ß$åjƠQM ʆķÀ˜772à1@Ü’üDH¼;Ü‹%Đ…º²ïÀq€̃Û›XÆÀ‰‰MÆg·±ßŒNά®gƯMWz!`¤›îdÓÏƯÑ¥]₫Øôuj™€a×Î}ûa Ư¸÷6;»5Ơ¬D•zT«h,5ä~¶z~“@y[µ:­3Mú7²g‚Gª]„Ûđ̉áqÿ=@c5 4ÿu·¹̣¿†ñ탟5_ÇÜÀ_9“½—_A˜Mt B\ư—K ⵘ}" @lÔƠD›iÜ·Quç+bøaq&²̉{#'¢L²HÇjz¢"$&˜¢ ̉$B!ù ,Î ÿ EIäˆè²@*PăR*;Ă²[·®ăđºƠÍL­Ül7D̉Í%³G‰I0)´÷Ëm½̉IÔ²º‡ÅØØ`̀ĐI©Ă}>ăí·}-RÍơwFu}y„|Oˆ(p*Œ"rt{R‘“A>( ^( •"£ª4¨®± ±³® °3²´½¶®¬ºÁ½¹À©3£¿3ÅỀ.Î.¤µ·ÆĐ§É v.*o 3àâu æßá zëçîzạ̊»đ́(è øöüêùD́ë×.¥zÿ Ha ÀïÚÑ€§P €‰ê*6¼ñ̀=‰%¥Ñ£¥ú8ÿêA%ϤH”]J‚¹Q&–ߨÙ2äL z¡ë…†AÉ”>50j(‚ ]éT¦.„s µ*­IÑ@m:n¬Tx^7†}v(ÚHÀy’!8º/í À«4^Ö¹ÅđGi`zùÚAˆ"àÂ?l§8]É'ST̉§X’*3Π@X¾¤MS<@µèœ®-¡.íùÀ́Ø/Aï¤Ùy5́Ú|U×vëÛ¬ÆÏ°VÏrä4<A:\à4Å×bmœüdv®i›ç{Ë¿ĐÓ›̣Wê'7†ï₫nü…̀é×aÜĐq{ù"8V™_ú̀u_^̣Øâ2ö•Ø_ÔÆ[k‚¡oâ¦Tpbp :¦áM ‚sákóx_"VØ“‡™!ù ,Î ÿ %R4 yÔ¬Ô¢®í»Ê\ĂK®û·Ù©ÅĂưl'#ÍÅÓQˆ<àP:’é A*É4¤ G‡…£™Z…ÇẠ́éL†±ÓnqÛ,‡ÓÑI‡\ÏïEoIUzqx#)ƒ_"" „‘“ •0„0› +¢0¤#¨#¦I­"«£¯'±ª¬µ„2 0›  qÈ+ĂËtÍ'Ï̀ ĐkÇÖØ`ÚÎ×ñÓàÑÉÜ€â#äÙ̉ế|î2çaqôVkÊÂûø₫ñăoE€f NC¸})TÇ`¾€R8±Đć=û5ÀÚ&ëơ¥D9́Û¦ Z{¹@æ»—1M†Û´¦Í‡)ĂüTy²¦N39]Ʊé A°oôÂØV jƠ>Z0Ơ V©TËyºÀƯĂ¯eÍ]U‡¶ë4´f!P c0z® kW+_½ û^´«Ñ`v£"ăÅa@x:@O,Ȭtç™K5ózÙsRĐtH5Úy3ëÊ¥ª>yz=„3[/÷Z|‹&¼°âƯx @7nƯĂGd…nÜ óBé^‡©|{Z¯C£Nñ°3ñZó&$’p¾{f®;^C}Cö÷ĂoŸ ₫ù÷%!ù ,Î ÿ %$5£¸,%”:„¦kùÂ.]ç#>µ”Èá ƒB"ÈZRpÇ]2öS±’ÊhkÔ9ŸE­-ơe<Í©Ăá¬k Gj6Ó-ŒĂt·ÈÍ××wsz|mƒ…‚OQti€Œ‡x‘‹41 ) ƒU" œƒ ›B §£ª¬Q ¤¦´°¦¢¤»B§©ª¿À¹)¶À¨¦±·Æ#«¼ ¡ B+uÖØÚ  ×)ÙÛ̃åÚ é#ǽèäïëíó"æáăß úpÜág¯ß¿=ïQÈÇÁPüa QÜÁ…*Ö‘Xb<88̉ÓÁÅl$áÿ˜œ˜’ĐQ,?î y2£̀=0ƠµT#ràΗ5æ Ơ ˜9`jLmgT̉J2í‡ÁMŒWy6ÍjukƠ«K÷y·0©iºP0J¡Cg&(`đÏÜoq]̃혗']u}C*  đ‚¿ïà^\sx¢a·…GtKpeĂˆaô¤@›j̣v₫l›gĐVêD­z$êÍ£Q‹>m÷b́Ú1ÿ´öùÚ6í}ó4 @•lñ´`Ѫ¼zvsêGt® 2yÖÀ/V+½ùSëßÇ=^˜ƒ‡ï"ä+Y  09Ú›>0}Ỵ̈̃LjËî`ùíabøqĂO „ơ'8^ÛXŸdû’Û|5 […¬ahW€Y¸á7Ö‘W6!‚Ÿi¤ÍÇ!‰²qHX&®(@‰3í&B!ù ,Î ÿ Q$é@RS’Ë"®Ô ©k;ÂÎ Sö]æ3X'¢•†+àζS ŸéơŒâtUi¬˜½k ëîé`À‡m̉0¯Đêc̀]‚—×÷wÚñlŸ÷dt$v}‚„k~zq,l†ˆryu€x”?)B†† œ†¢   ¢©«; ¨0¯0±©Ÿ°£;ª¦·¼µ+ ¤¹Â­À¬²³ÁG† 0-gÑÓ+Ơ ̉ÔÖ.zàÛâßÚ%Üă“åêçäé$Ü̃z ̣ôèáƯûæưñøƠ+l’(jxü9hN¡†ê²tâ<‰; 8O€Ă7óyœxH#Ç|ÿ¬ö‘bH–$ѼLipåȅѹ ¨Ö2"ØÉ-ă¢A¿í(ª”ŸP’$µ·tj»@{­Ús(W£Ó$( đÏ=„!u’5—ö(¾jmÏn wmĸo­ô™ A»ñÂ@w/·…ư…¢ àdÔ1+:'ÂÊØl¶´1Üf™#‡|,z2æ0HgœùÙäå̉Ç@1}ăƠ©Ù¯·[¥¸3ëS+|ç₫7UÛǃï.Ù{¹Î Påµ0ʶc=+PL‚0ơ3î:~ÿ‹Öpøë'¸ƠÎưúv{ÓßO’ûn<Åó׿¶~)À@Ị̈uäŸP6 ¨̉k (’¨™Ă K'vK Vó`I9(Z…LÈG!!ù ,Î ÿ ƠPeRN*'µ,Ô¢ä́Âv*Ïo<ë¶̃îäÁ†¦bKøs M½œ3ˆk>o¾–̣ÄÔR® ÆsAE1f‡m):·̉k®­vîÜÎväM{wl ƒ…r‡tqPmŒ|ˆuF~?W a3ƒ& ƒŸA¢6  ©«›œª6 §-¤ƒ ´­²3º¨¥- ¬œ¸.»,Áµ¶É6o 3/hÑÓ-Ơ×ỏÔÖ ØàÛâäÚ'ÜdĐåêÖ́zÙáƯzßé&Üẵîùçüø(èCGo߉Ỏä¢Àaá¾9ÑœD= ækOOEuj(à¢Ç‘ƠLÿʱăÊ₫T¦IR&K‹.ƠØHÛÎ=­ư “§ Ÿtˆ₫tI’©Â£Bé0E:qjÔªP°êÔáhªYÖ܉ ʾëBíF¶dĂT0@¸ÜK!AƯ½_âaw°9¸̃hP (”!Ñ¢,é”fÊÊ“mZ¦,rÆâÆ[|.ª˜1é‘£wZŒæh%Í.Í:›^mÙRiç¶½7Ṽ¿}c\ÛÄâĂuï;oà‰ư>oư—ÖĂ¼Óơu+],Éb›ƒd]/\îæù.¨®€àá¹âû*h3ô;¤é߯¬ß~û₫Î’ ˜“|HoXgƒ€¼6’] ¡¡‰ !!ù ,Î ÿ E9$#%5(µ,Ô’rûÖ(iÚ0.ê¼̃̀áƯ´`lXtÁ†D%´ydJ­6ÆîÇH¡^.êpđÀâÙl¤„[kï=.Ë¿î´(>×Søx~€gypv}‡lNtjˆx{e> ‚( ™~~ ›Ÿ¡Ÿ- ª¤ª¬-¨ª  £,-°(¨¥¢±®˜¦¿·¯µ­Ä¹¾± ' Ÿe -/pĐÔ(ÖØu Û'ƯÍßá"Ư ‡ÓƠ×éuëÜí‡à́ îôñöêæăóư₫•«GN„ ƒ́ăÀÅ¡LƠ”1Ă:ÅI<„à̃9uŒ’¢G 'ÿ₫9ñcÉ•-Q¾$ÓÚL–'lDÁàÎ7UƯT‘ùTª×„ t̃Ѧï€BUƒ@%J«ªJŪđ)W?LƯS¤¾Y ¤b“ŒZvm®Ỡ‰êÎư¸Đ‘]xơF¬0ïI·{ưV—XgÜ|â´-Bf¤E¬–#ß̀|.@•4O†ưüP4̉u8S g Ö¥_Ÿnö;Ó¨Ơ­(›Ơ¢Që)µó³wÇ®<.Ü(°Ê³2?ëôÈÖeGïÚ|L•Ơ…"xØ/…ƒ-¢÷Û/́y€ƒ+,ßp=Eúï1›  dùQ€øÙ·Ü~¢€2Kê”›$ªáơàr `m*YsáC zFn¶ ak}¶“nn˜ÚI#—“…´Q!ù ,Î ÿ %R4Ôœ"CA,åÀñÑ(~Úº8׼دööDAÖ•̀2hs´ÜƯŒµ+Áp]¬ĂÂˤ€OḅÎKÛăw8^>Üu¸z´`Ï÷H~htkv"x…m†€|1Z, †‘–-™‚#œ5•1"£1’¢™™¨' ¦¯'¡[´#¶”–˜,œ ¥,}, Â'Ä pÊ#ÄÆhÉ1 ̉wÔĂ ÍaÚË×ÁƠá̃Ï"ÖƯÓæÑâÛéw ëÄÀ#Èpđ"bù1°âV- ¿akèc—ÉB€) °P@Ă;ÿ]Xq£ÄŒ#Ńˆ-A¿"ß²Syr›©–àL¥4eM¦Êph²\@̀eÎq/oªœ ô§ÏÍD2(đ¯˜³q Å̀s:gª̉u@ª«Fu+‹¬QåAUÄôƯÓ¯ZăÍ#xbRŒ‡‹‘4Åv™G1 ˆ́ M¯¬ˆüÎÉ»—đÁ;8FâˆP`BÛ©3he£11O~™ çœËŸ‹†>z‚(éC¦3—©úA=¯Ë\ŸưZ-×Ú‡¾A“í­́‰¼aïÆ-qiSâR“­Üö°Ym¢G„(‹1¾çî¦Í¾—¸Å½€µ=dtïqëB‹[̃î̃!ù ,Đ ÿ %dihª®lë¾p,Ï4É0T:”Ô”‹…n瘂9â„\§¨©< ¥P)…JÊZ“Ưè+^«fđ(û³-N …Ǥ4¥Ăan¾ç÷t#o~$z|u„#†Svx…€@‡‚“•‰"‹'›ˆ‘¢% £#m# ±«³S³µ·%± ¸³± À¼$¨Å%µÂ§ ¿ËÁ¸²ÑÇ#¨ĐËÖ°ÊËͽÙ$̉& AÑŒ"µæÈÏ% ©… ï$ñó§ªø#úôHƯƒ'/ 9óü“đßBH EdèOâC)L„˜q#F‚o– Ø̣gŸB’bÿDIʤC–œ¸´Ô•'C’ÂùRg̀™Gú´ 4^M=F\¸dd‹“3 Xæå ™KlüÙ£ˆ̀@«@¸†ƯTöë?}¥æIVÂöUT+¯öơ»ö́’Æo§l­|gr· T·e»öluÅÓ­ßỠ’úv́×Gä]l<Ư‘æ»sg¥_D ›)4EØQÀă÷ñú̉_i¸)ÀPi#¦÷!h Da %¸’€.@ƠÛqËMØÜOQ `€pnˆ„yHW‡ÂC¡"Ø$¢s* ¢›]hp$ÄèV 8æ¨ă<öèc !;redland-bindings-1.0.16.1/docs/rdoc/images/ruby.png0000644000175000017500000000112011776165535016710 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<âIDAT8ËÍ“ƯK“QÇ÷ ºï&*z™ó­( zÑ2—Ë4«ØrĂ!«á\e7§7̃V"‚x!bT7åR*¨c¦ âö<§¹|öâó|:[WADá>—ßï9ßßï{L€i'˜v‡ñ Ó%IID=zÀ/¶;îÂÛ"ïơˆ\k«È̃¸)´k±u¹9™¹xÉ]2§$ĂëW0= óóẨú»·$‡‡Q††H¢>}F|`€øăn6ϜϤkN7 >̣â9LLÀè(,.ÂÜŒ¡ƒÄ}>Ö¼^‡ ·›OMM|éí%꿨:/T]F$ ̣6VW)©)t‡ƒ5»ơÆF¾K–ëêøÜÓĂ²·Qq"¡©r–f óî‘y_êOºa| ˜Åp¹HJ¡*MT›X8̀×[^Dùñ˜r¸²̣·-|íæ|[Ûäv(33°°€!Ÿ.êëÉ44°Ñ×Ç«eÇbÊ¡rëטu¹Íóúd¾+ôË@Î S[K¶¿Ÿo~TKơºrĐjưk¶®´˜ǾoraŒŒPˆDPîy5å@YË?ióÜ…½éSg£¹@'˼Zj¿Åù_MƠ5™÷½̀»’Úwôê.ÿ ;á'5ăÚ¿_ªăÊIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/page_green.png0000644000175000017500000000115511776165535020033 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<ÿIDATÁ?Œßsàçưù~~¿ëơêTI¤!!âbFÄ ,H8ƒ„Éb±1a5Úl’ ’NƒQBË b`‘^8MµAôî~ßïçåy*‰ç̃¿ôÆöîÖë­\À)(¤È0ñëkù¢₫¾₫̃åư½€Jâž¹üÉÛi­Î†IH ®₫»qñ»₫øíø¿Ÿ~øùÜ×û{ÇĐ¡MơĐºOgüÓÔª(2X2̀sÜÜ,}àO>Ø};®Îxøú3o}~ÛW½tÜ ªÎ$™ÖS³jôbjLEMa8¿»¶÷Äy÷̃¿µƯww>†¡ ¡­J«̉ª´*m*¿ÿuÓ=g6=W̃|êvÓjz :@BŸ(%UÆZéë4¿\‹“1ăÄÓ÷m©̃fèôj"‚j¥A¦Æ6Ê“hT‚*J ‚ V ZJZ $@‡1“0PHZĂ(} )B”e°  Ă‘„ @)zcàÔeè° –Á0Â2FH±ùdÆ#±ÿåËà±W?³9 Ăÿî¥WªêñÈi!ˆGcŒï{s₫éû̃l6ƠIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/macFFBgHack.png0000644000175000017500000000031711776165535017752 00000000000000‰PNG  IHDRÄé…csBIT|dˆ pHYs  ̉Ư~ütEXtSoftwareAdobe Fireworks CS3˜ÖFtEXtCreation Time7/16/07Z§ÿ (IDATH‰íÍA0!´§U[ Gϱ½JJJJJJJJJÀYÑñüŸ…IEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/zoom.png0000644000175000017500000000126411776165535016724 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<FIDAT8Ë̉KHÔAÀñï̀ª-–K¾C=Ø ¡Cm̉fuîP–‰)D—êB§"ÂK»$A„ e¤¦t¶¨¤đ ô‚JŒÍZî»ÿyuÙmüÁ0ø}f~3#œsL̃²|!!|g-V©9­¼Që麳ưc¬`²ïT«™C8*¬—èô£5̃b¬F'âÎR!DÆĐ‹› ­kbâ^sPÈ̀!«½»²¾«¨ÊLocÂgÀע≣‡.=^uéíÖ˜ˆ¬ïê[ €¨ê65ỗ¶FG´§• !§Ô P ä%wN5•\«̉q=(¡t@ȀѶ(t2)Ơ§ "«L?B₫2¬uXcY‘äV$¦ÆÚƒÔ&ư´çÍa]c̣Ât²¥€Ô<â *¡æ̉ă©QçÄ1àđ}E )h˜’Y—­§§̉„ê°’…æ6` øDXr<:=UR½Íï÷̀áóûO®úÎ9Ư8̉*}̣ªV&b==h”é·ÖqÙÜ+;¶ËœâJT<ÆÔÓçüụ́­øø­—³ËÀÈơĂA !CÎ:”§£¾̀¼Êú}änAHÉ~0bM”¸36» ü+†/ç——ö”ƒøsóIÄ¢̀¾™àÉÀ«ÏEkÿ …óJ {ÊvíÄ!ùùé=_ßMÏyKªb]Àö½aµ¤{6W°03ñDĂ”¬Ÿ?§ÉR;óÎc’ÉéÁË}÷s̃}W ”b{{ûûÊÊJlffæ™`̀Ü[µÿ%ÊÜn÷Js.—ëĂ›/„ZAËËË8>>F¡P@>ŸÇáá¡̀ñ5¬}q$ {ö_µËËKx<„B!‰ùùy™+q”•‹‹‹IEÂçóauuN§S‚1st“ËåpppöLMM¹¡”;99ßïG T/=/ö÷÷±µµ… LNNæaOÍd2H$8;;Ăùù9ÄûpzzZtÄxggáp^¯W" bbbBUæææ$A:Æíí-"‘ˆ´»··WœU9D6nnnJĐíøø¸ÊJUUqssƒd2‰X,&Uù´ƯƯ]ÙHËtF'$ €ÍfSñ·÷÷÷Đ4 ñx\>C¢¿¿v»½½½XZZÂÚÚúúúdÎjµr€Ê*³³³^²G£Q¤R)ŒŒŒđ×××’ŒcĂÀÀ€tÄ]±Æl6GñMïÅr˜¦§§¢££±8¨­­…ÉdÂđđ0ÚÛÛe\SSĂÆß$immMW̉áp”544øzzzIpuu½^ơơu90¾_¬9ªªªººº>’ »»ûáƠ^WTT|́  ÓéP]]ºº: Æ$¨¯¯ÿA‚æææ»WŸÄ¶Ăƒƒƒwâ{5nÛØØZZZĐÖÖ&cæÄ]5¬}EP^^₫®²²̣³Á`¸0¿,˃ÀcccăW/"Ö˜ăkXû §ùùY®j–IEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/plugin.png0000644000175000017500000000111711776165535017233 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<áIDAT8Ë¥’=H•qƯf~\?‘Ä,ˆ›yoX£{KCµ´7ÑPcM´5º4EkS$¤8V*w²¸‚JƯB%Ëî{s^1ăª‹g9đçœçß9IDp8´Ûăƒ©»%w%I¯ =¹´—@]móvœbS?ù–|b̉Đ~ÔÜ?ÿøGƠªi¤lT70³™ư’ˆàáô½p’£,Ç@Û™Äܘ^Y3“$Ơ™O¯ê4̃MKư‹®BƯ†€eSúºJ›‡µtO9­iÔ„ •ʆíé—n#2à·ëèÛu` *ĂÎø£̣Ó_£ ¥R4Êáè+ơ*‡€B¥ªåíªu• ñϘMY­U×·o½ụ̀AaL¥Gµ­Û½›kEđ|"÷2w₫Ø9¥m…[ûy’Gw¾SđôBæ3{¹øeÛ₫rÜ~Àă«¹ŸÁ<œ{ @ÀÓ¹% ó@ÆIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/bullet_toggle_minus.png0000644000175000017500000000031711776165535022001 00000000000000‰PNG  IHDRµú7êgAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<aIDAT(ÏcøÏ€2ĐQÁ‘½ûÿïú¿åÿúÿ+ÿ/̃‹EÁ̃ÿ‡àpÖ, ¶%Ö‚á¡ÿ°)X”€€CÿÛ±)XŒdB=6³ÜP†MÁ„u]ÿ[€z+ÿ—üÏ_70!I¶È“zS5¯…IEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/bug.png0000644000175000017500000000140611776165535016513 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<˜IDAT8Ë“ÉOSQÆù\^[ Øªtzï% l$–*“**”2:  iRpˆ¦´¶ c0ÑèÆÄ…Kw&&`44Äđù‰(¦eáâKîɽçwÎwrO€¸XÊ\¦‘¹HiÙsÆcUQz@¹ưï›ö™ø;Ö„Id„TaË€¯ö)jèù·C'ÙKTóï8=¨¨ưʯæ9̃‚^z›“í–ØÔΘ͹™1OFöZ[ô¬”WÊ-GçzÖ?‡Đ®&­%*€ñ©M¤„ÆGnæN!øaO>Nc॒[ɨX·ÿơ0NôÅqg*¤1SuÜb|î{g|îfz)̀¾»§&\ — 5\ Í0 ‰3¦i² DŸö;`|î0>A?Tx4^̣ËÙ`¼oûqs©ö`>ʦ²`ôÂ÷fC«v§@m†X ¦å¤[r\†ÀûAt.–¢) G™[ ĂŒ÷×°Ïđ`¥’N1Ä¢ï)­B룲ˆÑW×s+ư:”Nd¡Øs÷V»a*DƠX.pBÜ&B²]°›ÔH@TÏÿ3@ƠPÚÚ  wVÚP6™3yp-¶ĂâÑĂ4 Ǽ “$ÙH®'°9„™{m@ßUô¥¹$èZjCñ¸®…XÜ:Tä gÎ꺢ËLƠ:¢:æ?ơ[#¹{1ˆ®P=.2 ¹F\™i°A-D 7Â7q£XI¯×¤b4¸ka÷ÔAjï% ͼj&QË«HÜä–&€s.ˆ `•j¹“¬üŸ‚KLE3ü*ΫX wØ6²â_àlđÊÁ=Ÿ@ü€Ç¿“hˆßv÷ ·,qq‚úIEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/images/wrench.png0000644000175000017500000000114211776165535017221 00000000000000‰PNG  IHDRóÿagAMA¯È7étEXtSoftwareAdobe ImageReadyqÉe<ôIDAT8Ë•“ËoQÅù_ü[ŒcŒ+W.]‹Ñ…¤iá5  g  m°–ÖJ[FÔq†—Éè¤#_Đ)ÚqƠ¸ÓÓ;,“¶@÷‘{ó;ßùÎÍupL©TÊ™H$¢(Z‚ XÿßM„“ɤ“€Ưn¦i"ă\nt:ôû}äóyD£Ñó đøØåÏ0 ¹\ ĂÚ–IUËăñ4(r‘¶áÍ úHM°k̀ˆÀ_¿ßá4·Ç_z—ü€iy€'¯"[ư êén1Æû³rM¥_ïAú`béíñơ=$Ikå_p-¶qĂS~¦À²=li~3ÀBv"q²ZâAªëÔ§̀¸—r¸[ØÔöG–¹—]<&áeÔ!î'Ú¸67 Üyôôºq‹$OÚX!đ=_™Ư~1ÍGsÜ~øE³ƒZQ†x&qWøK3ÓÁÇ!̃¤ëu®Înă¢kzØGrjùQûn»IEND®B`‚redland-bindings-1.0.16.1/docs/rdoc/DC.html0000644000175000017500000001232312074643545015131 00000000000000 Redland RDF Language Bindings - Ruby RDoc - Module: DC

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol

redland-bindings-1.0.16.1/docs/rdoc/rdoc.css0000644000175000017500000003257512074643545015431 00000000000000/* * "Darkfish" Rdoc CSS * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $ * * Author: Michael Granger * */ /* Base Green is: #6C8C22 */ *{ padding: 0; margin: 0; } body { background: #efefef; font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif; } body.class, body.module, body.file { margin-left: 40px; } body.file-popup { font-size: 90%; margin-left: 0; } h1 { font-size: 300%; text-shadow: rgba(135,145,135,0.65) 2px 2px 3px; color: #6C8C22; } h2,h3,h4 { margin-top: 1.5em; } :link, :visited { color: #6C8C22; text-decoration: none; } :link:hover, :visited:hover { border-bottom: 1px dotted #6C8C22; } pre { background: #ddd; padding: 0.5em 0; } /* @group Generic Classes */ .initially-hidden { display: none; } .quicksearch-field { width: 98%; background: #ddd; border: 1px solid #aaa; height: 1.5em; -webkit-border-radius: 4px; } .quicksearch-field:focus { background: #f1edba; } .missing-docs { font-size: 120%; background: white url(images/wrench_orange.png) no-repeat 4px center; color: #ccc; line-height: 2em; border: 1px solid #d00; opacity: 1; padding-left: 20px; text-indent: 24px; letter-spacing: 3px; font-weight: bold; -webkit-border-radius: 5px; -moz-border-radius: 5px; } .target-section { border: 2px solid #dcce90; border-left-width: 8px; padding: 0 1em; background: #fff3c2; } /* @end */ /* @group Index Page, Standalone file pages */ body.indexpage { margin: 1em 3em; } body.indexpage p, body.indexpage div, body.file p { margin: 1em 0; } .indexpage .rdoc-list p, .file .rdoc-list p { margin: 0em 0; } .indexpage ol, .file #documentation ol { line-height: 160%; } .indexpage ul, .file #documentation ul { line-height: 160%; list-style: none; } .indexpage ul :link, .indexpage ul :visited { font-size: 16px; } .indexpage li, .file #documentation li { padding-left: 20px; } .indexpage ol, .file #documentation ol { margin-left: 20px; } .indexpage ol > li, .file #documentation ol > li { padding-left: 0; } .indexpage ul > li, .file #documentation ul > li { background: url(images/bullet_black.png) no-repeat left 4px; } .indexpage li.module { background: url(images/package.png) no-repeat left 4px; } .indexpage li.class { background: url(images/ruby.png) no-repeat left 4px; } .indexpage li.file { background: url(images/page_white_text.png) no-repeat left 4px; } .file li p, .indexpage li p { margin: 0 0; } /* @end */ /* @group Top-Level Structure */ .class #metadata, .file #metadata, .module #metadata { float: left; width: 260px; } .class #documentation, .file #documentation, .module #documentation { margin: 2em 1em 5em 300px; min-width: 340px; } .file #metadata { margin: 0.8em; } #validator-badges { clear: both; margin: 1em 1em 2em; } /* @end */ /* @group Metadata Section */ #metadata .section { background-color: #dedede; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #aaa; margin: 0 8px 16px; font-size: 90%; overflow: hidden; } #metadata h3.section-header { margin: 0; padding: 2px 8px; background: #ccc; color: #666; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-bottom: 1px solid #aaa; } #metadata #home-section h3.section-header { border-bottom: 0; } #metadata ul, #metadata dl, #metadata p { padding: 8px; list-style: none; } #file-metadata ul { padding-left: 28px; list-style-image: url(images/page_green.png); } dl.svninfo { color: #666; margin: 0; } dl.svninfo dt { font-weight: bold; } ul.link-list li { white-space: nowrap; } ul.link-list .type { font-size: 8px; text-transform: uppercase; color: white; background: #969696; padding: 2px 4px; -webkit-border-radius: 5px; } /* @end */ /* @group Project Metadata Section */ #project-metadata { margin-top: 3em; } .file #project-metadata { margin-top: 0em; } #project-metadata .section { border: 1px solid #aaa; } #project-metadata h3.section-header { border-bottom: 1px solid #aaa; position: relative; } #project-metadata h3.section-header .search-toggle { position: absolute; right: 5px; } #project-metadata form { color: #777; background: #ccc; padding: 8px 8px 16px; border-bottom: 1px solid #bbb; } #project-metadata fieldset { border: 0; } #no-class-search-results { margin: 0 auto 1em; text-align: center; font-size: 14px; font-weight: bold; color: #aaa; } /* @end */ /* @group Documentation Section */ .description { font-size: 100%; color: #333; } .description p { margin: 1em 0.4em; } .description li p { margin: 0; } .description ul { margin-left: 1.5em; } .description ul li { line-height: 1.4em; } .description dl, #documentation dl { margin: 8px 1.5em; border: 1px solid #ccc; } .description dl { font-size: 14px; } .description dt, #documentation dt { padding: 2px 4px; font-weight: bold; background: #ddd; } .description dd, #documentation dd { padding: 2px 12px; } .description dd + dt, #documentation dd + dt { margin-top: 0.7em; } #documentation .section { font-size: 90%; } #documentation h2.section-header { margin-top: 2em; padding: 0.75em 0.5em; background: #ccc; color: #333; font-size: 175%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } #documentation h3.section-header { margin-top: 2em; padding: 0.25em 0.5em; background-color: #dedede; color: #333; font-size: 150%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } #constants-list > dl, #attributes-list > dl { margin: 1em 0 2em; border: 0; } #constants-list > dl dt, #attributes-list > dl dt { padding-left: 0; font-weight: bold; font-family: Monaco, "Andale Mono"; background: inherit; } #constants-list > dl dt a, #attributes-list > dl dt a { color: inherit; } #constants-list > dl dd, #attributes-list > dl dd { margin: 0 0 1em 0; padding: 0; color: #666; } .documentation-section h2 { position: relative; } .documentation-section h2 a { position: absolute; top: 8px; right: 10px; font-size: 12px; color: #9b9877; visibility: hidden; } .documentation-section h2:hover a { visibility: visible; } /* @group Method Details */ #documentation .method-source-code { display: none; } #documentation .method-detail { margin: 0.5em 0; padding: 0.5em 0; cursor: pointer; } #documentation .method-detail:hover { background-color: #f1edba; } #documentation .method-heading { position: relative; padding: 2px 4px 0 20px; font-size: 125%; font-weight: bold; color: #333; background: url(images/brick.png) no-repeat left bottom; } #documentation .method-heading :link, #documentation .method-heading :visited { color: inherit; } #documentation .method-click-advice { position: absolute; top: 2px; right: 5px; font-size: 10px; color: #9b9877; visibility: hidden; padding-right: 20px; line-height: 20px; background: url(images/zoom.png) no-repeat right top; } #documentation .method-detail:hover .method-click-advice { visibility: visible; } #documentation .method-alias .method-heading { color: #666; background: url(images/brick_link.png) no-repeat left bottom; } #documentation .method-description, #documentation .aliases { margin: 0 20px; color: #666; } #documentation .method-description p, #documentation .aliases p { line-height: 1.2em; } #documentation .aliases { padding-top: 4px; font-style: italic; cursor: default; } #documentation .method-description p { padding: 0; } #documentation .method-description p + p { margin-bottom: 0.5em; } #documentation .method-description ul { margin-left: 1.5em; } #documentation .attribute-method-heading { background: url(images/tag_green.png) no-repeat left bottom; } #documentation #attribute-method-details .method-detail:hover { background-color: transparent; cursor: default; } #documentation .attribute-access-type { font-size: 60%; text-transform: uppercase; vertical-align: super; padding: 0 2px; } /* @end */ /* @end */ /* @group Source Code */ div.method-source-code { background: #262626; color: #efefef; margin: 1em; padding: 0.5em; border: 1px dashed #999; overflow: hidden; } div.method-source-code pre { background: inherit; padding: 0; color: white; overflow: auto; } /* @group Ruby keyword styles */ .ruby-constant { color: #7fffd4; background: transparent; } .ruby-keyword { color: #00ffff; background: transparent; } .ruby-ivar { color: #eedd82; background: transparent; } .ruby-operator { color: #00ffee; background: transparent; } .ruby-identifier { color: #ffdead; background: transparent; } .ruby-node { color: #ffa07a; background: transparent; } .ruby-comment { color: #b22222; font-weight: bold; background: transparent; } .ruby-regexp { color: #ffa07a; background: transparent; } .ruby-value { color: #7fffd4; background: transparent; } /* @end */ /* @end */ /* @group File Popup Contents */ .file #metadata, .file-popup #metadata { } .file-popup dl { font-size: 80%; padding: 0.75em; background-color: #dedede; color: #333; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } .file dt { font-weight: bold; padding-left: 22px; line-height: 20px; background: url(images/page_white_width.png) no-repeat left top; } .file dt.modified-date { background: url(images/date.png) no-repeat left top; } .file dt.requires { background: url(images/plugin.png) no-repeat left top; } .file dt.scs-url { background: url(images/wrench.png) no-repeat left top; } .file dl dd { margin: 0 0 1em 0; } .file #metadata dl dd ul { list-style: circle; margin-left: 20px; padding-top: 0; } .file #metadata dl dd ul li { } .file h2 { margin-top: 2em; padding: 0.75em 0.5em; background-color: #dedede; color: #333; font-size: 120%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } /* @end */ /* @group ThickBox Styles */ #TB_window { font: 12px Arial, Helvetica, sans-serif; color: #333333; } #TB_secondLine { font: 10px Arial, Helvetica, sans-serif; color:#666666; } #TB_window :link, #TB_window :visited { color: #666666; } #TB_window :link:hover, #TB_window :visited:hover { color: #000; } #TB_window :link:active, #TB_window :visited:active { color: #666666; } #TB_window :link:focus, #TB_window :visited:focus { color: #666666; } #TB_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; } .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;} .TB_overlayBG { background-color:#000; filter:alpha(opacity=75); -moz-opacity: 0.75; opacity: 0.75; } * html #TB_overlay { /* ie6 hack */ position: absolute; height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); } #TB_window { position: fixed; background: #ffffff; z-index: 102; color:#000000; display:none; border: 4px solid #525252; text-align:left; top:50%; left:50%; } * html #TB_window { /* ie6 hack */ position: absolute; margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); } #TB_window img#TB_Image { display:block; margin: 15px 0 0 15px; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; border-top: 1px solid #666; border-left: 1px solid #666; } #TB_caption{ height:25px; padding:7px 30px 10px 25px; float:left; } #TB_closeWindow{ height:25px; padding:11px 25px 10px 0; float:right; } #TB_closeAjaxWindow{ padding:7px 10px 5px 0; margin-bottom:1px; text-align:right; float:right; } #TB_ajaxWindowTitle{ float:left; padding:7px 0 5px 10px; margin-bottom:1px; font-size: 22px; } #TB_title{ background-color: #6C8C22; color: #dedede; height:40px; } #TB_title :link, #TB_title :visited { color: white !important; border-bottom: 1px dotted #dedede; } #TB_ajaxContent{ clear:both; padding:2px 15px 15px 15px; overflow:auto; text-align:left; line-height:1.4em; } #TB_ajaxContent.TB_modal{ padding:15px; } #TB_ajaxContent p{ padding:5px 0px 5px 0px; } #TB_load{ position: fixed; display:none; height:13px; width:208px; z-index:103; top: 50%; left: 50%; margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */ } * html #TB_load { /* ie6 hack */ position: absolute; margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); } #TB_HideSelect{ z-index:99; position:fixed; top: 0; left: 0; background-color:#fff; border:none; filter:alpha(opacity=0); -moz-opacity: 0; opacity: 0; height:100%; width:100%; } * html #TB_HideSelect { /* ie6 hack */ position: absolute; height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); } #TB_iframeContent{ clear:both; border:none; margin-bottom:-1px; margin-top:1px; _margin-bottom:1px; } /* @end */ /* @group Debugging Section */ #debugging-toggle { text-align: center; } #debugging-toggle img { cursor: pointer; } #rdoc-debugging-section-dump { display: none; margin: 0 2em 2em; background: #ccc; border: 1px solid #999; } /* @end */ redland-bindings-1.0.16.1/docs/pydoc/0000755000175000017500000000000010077001466014212 500000000000000redland-bindings-1.0.16.1/docs/pydoc/RDF.html0000644000175000017500000030456111776157646015467 00000000000000 Redland RDF Application Framework - Python API Reference

Redland RDF Application Framework - Python API Reference

 
 
RDF (version 1.1, $Date$)
index
 
Modules
        
Redland
string
sys
 
Classes
        
__builtin__.object
Iterator
Model
NS
Node
Parser
NTriplesParser
TurtleParser
Query
RDQLQuery
SPARQLQuery
Serializer
NTriplesSerializer
RDFXMLSerializer
Statement
Storage
HashStorage
MemoryStorage
Stream
Uri
 
class HashStorage(Storage)
    Redland Hashed Storage class
 
   import RDF
   h1=RDF.HashStorage("abc", options="hash-type='memory'")
 
   # Creating a storage with contexts enabled
   s=RDF.HashStorage("def", options="contexts='yes'")
 
Class of hashed Storage for a particular type of hash (typically
hash-type is "memory" or "bdb") and any other options.
 
 
Method resolution order:
HashStorage
Storage
__builtin__.object

Methods defined here:
__init__(self, hash_name, options='')

Methods inherited from Storage:
__del__(self)

Data descriptors inherited from Storage:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Iterator(__builtin__.object)
    Redland Node Iterator class
 
A class for iterating over a sequence of Node s such as
those returned from a Model query.  Some methods return
Iterator s or Python sequences.  If this is used, it works
as follows:
 
  iterator=model.get_targets_iterator(source, arc)
  while not iterator.end():
    # get the current Node
    node=iterator.current()
    # do something with it
    # (it is shared; you must copy it you want to keep it)
    ...
    iterator.next()
  iterator=None
 
  Methods defined here:
__del__(self)
__init__(self, object, creator1=None, creator2=None, creator3=None)
Create an RDF Iterator (constructor).
__iter__(self)
context(self)
Return the context Node of the current object on the Iterator
current(self)
Return the current object on the Iterator
end(self)
Return true if the iterator is exhausted
have_elements(self)
next(self)
Move to the next object on the Iterator

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class MemoryStorage(Storage)
    Redland memory Storage class
 
   import RDF
   h1=RDF.MemoryStorage()
   h1=RDF.MemoryStorage("abc")
   h2=RDF.MemoryStorage("abc", "write='no'")
 
   # Creating a storage with contexts enabled
   s = RDF.MemoryStorage(options_string="contexts='yes'")
 
Class of memory Storage with optional name, additional options.
 
 
Method resolution order:
MemoryStorage
Storage
__builtin__.object

Methods defined here:
__init__(self, mem_name='', options_string='')

Methods inherited from Storage:
__del__(self)

Data descriptors inherited from Storage:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Model(__builtin__.object)
    Redland Graph class
 
  import RDF
  model = RDF.Model(storage)
 
The main interface to the Redland RDF graph (formed from triples, or
RDF statements).  There are many methods for adding, removing, querying
statements and serializing them to/from syntaxes using the Serializer
or Parser classes.
 
Models can also be used as Python sequences to give every triple in the
model:
 
  for statement in model:
    print statement
 
Models have other aspects of sequence types.  The following also works:
 
  if statement in model:            # do whatever
  if (statement, context) in model: # do whatever
 
  del model[statement]              # remove statement from model
  del model[statement, context]     # ditto for context-aware model
 
  model.append(statement)           # append a statement
  model.append(statement, context)  # append statement with context
 
  num_items = len(model) # get number of statements in the model
                         # works only with countable storages
 
  Methods defined here:
__contains__(self, arg)
__del__(self)
__delitem__(self, arg)
__init__(self, storage=None, **args)
Create an RDF Model (constructor).
 
Create a Model from an existing Storage (most common use).  
 
Optional parameters:
 
  options_string - A string of options for the Model
  options_hash   - A Hash of options for the Model
 
  m1 = RDF.Model(s1)
  m1 = RDF.Model(storage = s1)
 
Copy an existing model m1, copying the underlying Storage of m1
 
  m2 = RDF.Model(model = m1)
 
Create a model using an in-memory storage.
 
  m3 = RDF.Model()
__iter__(self)
__len__(self)
__str__(self)
__unicode__(self)
add(self, subject, predicate, object)
Add the statement (subject,predicate,object) to the model.
DEPRECATED. Use Model.append(Statement(s,p,o)) instead.
add_statement(self, statement, context=None)
Add the Statement to the Model with optional context Node.
For Python idiom you should use Model.append() instead, which does
the same thing.
add_statements(self, statement_stream, context=None)
Add the Stream of Statements to the Model with the optional
context Node
add_typed_literal_statement(self, subject, predicate, string, xml_language=None, datatype=None)
Add the Statement (subject,predicate, typed literal) to the Model
where the typed literal is constructed from the
literal string, optional XML language and optional datatype URI.
DEPRECATED. Use Model.append(Statement(s,p,o)) instead.
append(self, statement, context=None)
Append a Statement to the Model, with optional context Node.
 
model.append(Statement(s, p, o)
arcs = get_predicates(self, source, target)
as_stream(self, context=None)
Return the Model as a Stream of Statements.  No need to use
this explicitly, instead do:
    
    for statement in model:
        # process statement
as_stream_context(self, context=None)
Return the Model as a Stream of (statement, context) tuples.
 
 for (s, c) in model.as_stream_context():
     # do whatever
 
Specify the optional argument context if you want to hardwire
the stream's context.
contains_statement(self, statement)
Return true if the Statement is in the Model
contains_statement_context(self, statement, context)
Return true if the Statement is in the Model with the specified
context.  Note that the implementation is pretty inefficient.
context_remove_statements = remove_statements_with_context(self, context)
execute(self, query)
find_statements(self, statement, context=None)
Return a Stream of Statements matching the given Statement --
any nodes with value None of the statement match any Node in
the Model.
 
Specify the optional argument context if you want to search
only in one context.
 
qs = RDF.Statement(subject = None,
    predicate = RDF.Node(uri_string = "http://example.com/pred"),
    object = None)
for statement in model.find_statements(qs):
    # do whatever
find_statements_context(self, statement)
Return a Stream of Statements with context, matching the given
Statement -- any nodes with value None of the statement match
any Node in the Model.
 
qs = RDF.Statement(subject = None,
    predicate = RDF.Node(uri_string = "http://example.com/pred"),
    object = None)
for (statement, context) in model.find_statements_context(qs):
    # do whatever
get_arc = get_predicate(self, source, target)
get_arcs = get_predicates(self, source, target)
get_contexts(self)
Return a sequence of context Nodes in the Model.
get_feature(self, uri)
Return the Node value of Model feature URI uri
get_predicate(self, source, target)
Return one Node in the Model matching (source, ?, target).
The source can be a Node or Uri, the target a NodeUri or string.
get_predicates(self, source, target)
Return a sequence of Nodes that are the predicates
of Statements in the Model matching (source, ?, target).
 
Instead of specifying a Node for source, you can shortcut with
Uri, and with a Uri or string for target.
 
e.g.
  model.get_predicates(Uri("http://example.com/me"), "Fred")
get_predicates_context(self, source, target)
As for Model.get_predicates but returns a list of 
(statement, context) tuples.
get_source(self, predicate, target)
Return one Node in the Model matching (?, predicate, target).
The predicate can be a Node or Uri, the target a NodeUri or string.
get_sources(self, predicate, target)
Return a sequence of Node s that are the source
of Statements in the Model matching (?, predicate, target).
 
Instead of specifying a Node for predicate, you can shortcut with
Uri, and with a Uri or string for target.
 
e.g.
  model.get_sources(Uri("http://example.com/name"), "Fred")
get_sources_context(self, predicate, target)
As for Model.get_sources but returns a list of 
(statement, context) tuples.
get_target(self, source, predicate)
Return one Node in the Model matching (source, predicate, ?).
The source and predicate can be a Node or Uri.
get_targets(self, source, predicate)
Return a sequence of Nodes that are the targets
of Statements in the Model matching (source, predicate, ?).
 
Instead of specifying a Node for source or predicate, you
can shortcut with a Uri.
 
e.g.
 
  model.get_targets(Uri("http://example.com/me"), prednode)
get_targets_context(self, source, predicate)
As for Model.get_targets but returns a list of 
(statement, context) tuples.
load(self, uri, name='', mime_type='', type_uri=None, handler=None)
Load triples into the Model from a URI in a syntax.
Returns a boolean success or failure.
 
If no parser name is given, the parser to use is guessed.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
predicates = get_predicates(self, source, target)
remove_statement(self, statement, context=None)
Remove the Statement from the Model with the optional context Node.
This is used by the __delitem__ method.  Preferred way of removing a
Statement is:
    
    del model[statement]
    del model[statement, context]
remove_statements_with_context(self, context)
Remove all Statements from the Model with the given context Node
run_as_statements(self, query)
serialise = as_stream(self, context=None)
set_feature(self, uri, value)
Set the Node value of Model feature URI uri.
size(self)
Return the size of the Model in number of statements.
Returns a value < 0 if number of statements not countable.
sources = get_sources(self, predicate, target)
sync(self)
Synchronise the Model with the underlying Storage.
targets = get_targets(self, source, predicate)
to_string(self, base_uri=None, name='', mime_type='', type_uri=None)
Serialize the Model to a syntax.
 
print model.to_string(base_uri="http://example.org/base")
 
If no serializer name is given, the default serializer RDF/XML is used.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class NS(__builtin__.object)
    Redland Namespace Utility Class
 
import RDF
nspace = RDF.NS("http://example.com/foo#")
 
# creates an RDF Node for http://example.com/foo#blah   
node1 = nspace.blah
 
# creates an RDF Node for http://example.com/foo#blah   
node2 = nspace['blah']
 
A class for generating RDF Nodes with URIs from the same vocabulary
(such as XML Namespace) varying only in the appended name in
the vocabulary.  Each node returned is a pointer to a shared copy.
 
  Methods defined here:
__getattr__(self, localName)
__getitem__(self, localName)
__init__(self, prefix)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class NTriplesParser(Parser)
    Redland N-Triples Parser class
 
import RDF
parser=RDF.NTriplesParser()
 
 
Method resolution order:
NTriplesParser
Parser
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Parser:
__del__(self)
get_feature(self, uri)
Return the Node value of Parser feature URI uri
namespaces_seen(self)
Get a dictionary of prefix/URI pairs for namespaces seen during parsing.
parse_as_stream(self, uri, base_uri=None)
Return a Stream of Statements from parsing the content at
a URI for the optional base URI or None if the parsing fails.
 
(This depends on what URI support raptor provides to redland)
 
  for statement in parser.parse_as_stream(""):
      print statement
parse_into_model(self, model, uri, base_uri=None, handler=None)
Parse into the Model model from the content at the URI, for
the optional base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
 
parser.parse_into_model(model, "file:./foo.rdf",
                        "http://example.com/foo.rdf")
parse_string_as_stream(self, string, base_uri)
Return a Stream of Statements from parsing the content in
string with the required base URI or None if the parsing fails.
 
  for statement in parser.parse_string_as_stream(rdfstring, base_uri):
      print statement
parse_string_into_model(self, model, string, base_uri, handler=None)
Parse into the Model model from the content string
 with the required base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
set_feature(self, uri, value)
Set the Node value of Parser feature URI uri.
set_uri_filter(self, filter)
Set a function for rejecting retrieval of URIs seen during parsing.
 
Return False or 0 to not reject the URI
 
def reject(uri):
  if "bad" == uri:
    return True
  return False
 
parser.set_uri_filter(reject)

Data descriptors inherited from Parser:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class NTriplesSerializer(Serializer)
    Redland N-Triples Serializer class
 
import RDF
ser=RDF.NTriplesSerializer()
 
 
Method resolution order:
NTriplesSerializer
Serializer
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Serializer:
__del__(self)
get_feature(self, uri)
Return the value of Serializer feature URI uri
serialize_model_to_file(self, name, model, base_uri=None)
Serialize to filename name the Model model using the
optional base URI.
serialize_model_to_string(self, model, base_uri=None)
Serialize to a string using the optional base URI.
serialize_stream_to_string(self, stream, base_uri=None)
Serialize a stream to a string using the optional base URI.
set_feature(self, uri, value)
Set the value of Serializer feature URI uri.
set_namespace(self, prefix, uri)
Set a namespace prefix and URI for the Serializer to use.

Data descriptors inherited from Serializer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Node(__builtin__.object)
    Redland Node (RDF Resource, Property, Literal) Class
 
  import RDF
 
  node1=RDF.Node()
 
  node2=RDF.Node(RDF.Uri("http://example.com/"))
  node3=RDF.Node("Hello, World!")
 
  node4=RDF.Node(uri_string="http://example.com/")
  node5=RDF.Node(literal="<tag>content</tag>", is_wf_xml=1)
  node6=RDF.Node(blank="abc")
  node7=RDF.Node(node5)
...
 
  print node2
  if node7.is_resource():
    print "Resource with URI", node7.uri
 
  if node5.is_blank():
    print "Resource with blank node name ", node5.blank_identifier
 
  Methods defined here:
__del__(self)
Free an RDF Node (destructor).
__eq__(self, other)
Equality of an RDF Node compared to another RDF Node.
__hash__(self)
__init__(self, arg=None, **args)
Create an RDF Node (constructor).
 
Resource or Property node creation:
 
  n1 = Node(Uri("http://example.com/foo"))
 
String literal node creation (see below for more complex
ways of building literals.)
 
  n2 = Node("foo")
 
Node copying:
 
  n3 = Node(n1)
 
Or create a new RDF Node using the following named parameters:
 
  uri_string  - create a resource node from a string URI
  uri         - create a resource node from a URI object
  literal     - create a literal node from a literal string   
    datatype     - the datatype URI
    is_wf_xml    - the literal is XML (alternative to datatype)
    language     - the literal XML language
  blank       - create a resource node from with a blank node identiifer
  node        - copy a node
__ne__(self, other)
Inequality of an RDF Node compared to another RDF Node.
__str__(self)
Get a string representation of an RDF Node.
__unicode__(self)
Get a Unicode string representation of an RDF Node.
is_blank(self)
Return true if node is a blank node
is_literal(self)
Return true if node is a literal
is_resource(self)
Return true if node is a resource  with a URI

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
blank
The blank node identifier
blank_identifier
The node identifier of a blank node
literal
A tuple of the string, language and datatype values of the node
literal_value
A dictionary containing the value of the node literal with keys string, language and datatype
type
The node type, an integer
uri
The URI of a resource node
 
class Parser(__builtin__.object)
    Redland Syntax Parser Class
 
import RDF
parser1=RDF.Parser()
parser2=RDF.Parser(name="rdfxml")
parser3=RDF.Parser(mime_type="application/rdf+xml")
 
stream=parser2.parse_as_stream("file://dir/file.rdf")
parser3.parse_into_model(model, "file://dir/file.rdf", "http://example.org/")
 
The default parser type if not given explicitly is raptor,
for the RDF/XML syntax.
 
  Methods defined here:
__del__(self)
__init__(self, name=None, mime_type=None, uri=None)
Create an RDF Parser (constructor).
 
Create a new RDF Parser for a particular syntax.  The parser is
chosen by the fields given to the constructor, all of which are
optional.  When any are given, they must all match.  The default
parser is chosen if none are given, which is RDF/XML in the
standard configuration of Raptor.
 
  name      - parser syntax name
  mime_type - syntax mime type
  uri       - URI identifying the syntax
get_feature(self, uri)
Return the Node value of Parser feature URI uri
namespaces_seen(self)
Get a dictionary of prefix/URI pairs for namespaces seen during parsing.
parse_as_stream(self, uri, base_uri=None)
Return a Stream of Statements from parsing the content at
a URI for the optional base URI or None if the parsing fails.
 
(This depends on what URI support raptor provides to redland)
 
  for statement in parser.parse_as_stream(""):
      print statement
parse_into_model(self, model, uri, base_uri=None, handler=None)
Parse into the Model model from the content at the URI, for
the optional base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
 
parser.parse_into_model(model, "file:./foo.rdf",
                        "http://example.com/foo.rdf")
parse_string_as_stream(self, string, base_uri)
Return a Stream of Statements from parsing the content in
string with the required base URI or None if the parsing fails.
 
  for statement in parser.parse_string_as_stream(rdfstring, base_uri):
      print statement
parse_string_into_model(self, model, string, base_uri, handler=None)
Parse into the Model model from the content string
 with the required base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
set_feature(self, uri, value)
Set the Node value of Parser feature URI uri.
set_uri_filter(self, filter)
Set a function for rejecting retrieval of URIs seen during parsing.
 
Return False or 0 to not reject the URI
 
def reject(uri):
  if "bad" == uri:
    return True
  return False
 
parser.set_uri_filter(reject)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Query(__builtin__.object)
    Redland Query interface class
 
import RDF
 
q1 = RDF.Query("SELECT ?a ?c WHERE (?a dc:title ?c) USING dc FOR <http://purl.org/dc/elements/1.1/>")
q2 = RDF.Query("- - -", query_language="triples")
q3 = RDF.Query("select $a where ...", query_language="sparql")
 
results=q1.execute(model)
for result in results:
  print result['a']
  print result['c']
 
for statement in q2.execute().as_stream(model):
  print statement
 
  Methods defined here:
__del__(self)
__init__(self, querystring, base_uri=None, query_language='sparql', query_uri=None)
execute(self, model)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class RDFXMLSerializer(Serializer)
    Redland RDF/XML Serializer class
 
import RDF
ser=RDF.RDFXMLSerializer()
 
 
Method resolution order:
RDFXMLSerializer
Serializer
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Serializer:
__del__(self)
get_feature(self, uri)
Return the value of Serializer feature URI uri
serialize_model_to_file(self, name, model, base_uri=None)
Serialize to filename name the Model model using the
optional base URI.
serialize_model_to_string(self, model, base_uri=None)
Serialize to a string using the optional base URI.
serialize_stream_to_string(self, stream, base_uri=None)
Serialize a stream to a string using the optional base URI.
set_feature(self, uri, value)
Set the value of Serializer feature URI uri.
set_namespace(self, prefix, uri)
Set a namespace prefix and URI for the Serializer to use.

Data descriptors inherited from Serializer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class RDQLQuery(Query)
    Redland RDQL Query class
 
 
Method resolution order:
RDQLQuery
Query
__builtin__.object

Methods defined here:
__init__(self, querystring, base_uri=None)

Methods inherited from Query:
__del__(self)
execute(self, model)

Data descriptors inherited from Query:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class SPARQLQuery(Query)
    Redland SPARQL Query class
 
 
Method resolution order:
SPARQLQuery
Query
__builtin__.object

Methods defined here:
__init__(self, querystring, base_uri=None)

Methods inherited from Query:
__del__(self)
execute(self, model)

Data descriptors inherited from Query:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Serializer(__builtin__.object)
    Redland Syntax Serializer Class
 
import RDF
ser1=RDF.Serializer()
 
ser2=RDF.Serializer(mime_type="application/rdf+xml")
 
ser3=RDF.Serializer(name="ntriples")
 
A class for turning a Model into a syntax serialization (at present
only to local files).
 
  Methods defined here:
__del__(self)
__init__(self, name=None, mime_type=None, uri=None)
Create an RDF Serializer (constructor).
 
The arguments name, mime_type and uri are all optional and
when omitted the default serialization syntax is used.  If
any arguments are given, they must all match for an appropriate
syntax to be chosen.  For example, RDF/XML has a MIME type of
'application/rdf+xml' so this can be given with the mime_type
argument, however the N-Triples has none, so the 'ntriples' name
must be used.  Most syntaxes have URIs.
get_feature(self, uri)
Return the value of Serializer feature URI uri
serialize_model_to_file(self, name, model, base_uri=None)
Serialize to filename name the Model model using the
optional base URI.
serialize_model_to_string(self, model, base_uri=None)
Serialize to a string using the optional base URI.
serialize_stream_to_string(self, stream, base_uri=None)
Serialize a stream to a string using the optional base URI.
set_feature(self, uri, value)
Set the value of Serializer feature URI uri.
set_namespace(self, prefix, uri)
Set a namespace prefix and URI for the Serializer to use.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Statement(__builtin__.object)
    Redland Statement (triple) class.  The main means of manipulating
statements is by the subject, predicate and object properties.
 
  import RDF
  statement1 = RDF.Statement(node1, node2, node3)
  statement2 = RDF.Statement(statement = statement1)
 
  if statement2.subject.is_resource():
    print "statement2 subject is URI ",statement2.subject.uri
 
  statement.object = Node("hello, world")
 
  Methods defined here:
__del__(self)
__eq__(self, other)
Equality of an RDF Statement compared to another RDF Statement.
__init__(self, subject=None, predicate=None, object=None, **args)
Constructor for Statement.
 
Create a Statement from three Node objects.
 
    s1 = RDF.Statement(subjnode, prednode, objnode)
 
Node argument can be replaced with Uri or string to
shortcut Node creation.
 
    s2 = RDF.Statement(Uri(""), Uri(""), "baz")
 
Copy an existing Statement s1.
 
    s3 = RDF.Statement(statement=s1)
__ne__(self, other)
Inequality of an RDF Statement compared to another RDF Statement.
__str__(self)
__unicode__(self)
matches(self, other)
Comparison of this potentially incomplete RDF Statement compared to another RDF Statement.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
object
The object node of the statement.
predicate
The predicate node of the statement.
subject
The subject node of the statement.
 
class Storage(__builtin__.object)
    Redland Statement Storage class
 
   import RDF
   storage=RDF.Storage(storage_name="memory")
 
The Redland abstraction for storing RDF graphs as Statements.
 
There are no user methods (can only be constructed).
 
You should normally use a specialized class such as MemoryStorage or
HashStorage in preference to this class.
 
  Methods defined here:
__del__(self)
__init__(self, **args)
Create an RDF Storage (constructor).
 
    Create a new RDF Storage using any of these forms
 
  s1=RDF.Storage(storage_name="name",options_string="")
 
Create a Storage of the given type.  Currently the built in storage
names that are always present are 'memory', 'hashes', 'file' and
'uri'.  'bdb' is available when Sleepycat / BerkeleyDB is compiled
in, 'mysql' when MySQL is compiled in, and 'sqlite' when SQLite is
compiled in.  If storage_name is omitted, it defaults to 'memory'.
 
The argument 'name' can be used when the storage needs a name
to operate, such as used for a filename or URI:
 
  s1=RDF.Storage(storage_name="file", name='/filename',options_string="")
 
  s2=RDF.Storage(storage_name="uri", name='http://rdf.example.org/',options_string="")
 
 
The required argument options_string allows additional store-specific
options to be given, some of which are required by certain stores.
This uses the following form:
 
  s3=RDF.Storage(storage_name="name", name='abc',
                 options_string="key1='value1', key2='value2', ...")
 
for multiple key/value option pairs, option values are always
surrounded by single quotes.
 
The common options are:
  new - optional and takes a boolean value (default false)
    If true, it deletes any existing store and creates a new one
    otherwise if false (default) open an existing store.
 
  write - optional and takes a boolean value (default true)
    If true (default) the Storage is opened read-write otherwise
    if false the storage is opened read-only and for file-based
    Storages or those with locks, may be opened with shared-readers.
 
Some storage types have additional options:
 
storage_name 'hashes' has options:
  hash-type -  the name of any hash type supported.
    'memory' (default), 'file' hash types are always present. 'bdb' is
    available when BerkeleyDB is compiled in,
  dir - the directory name to create the files in (default '.')
  mode - the file creation mode (default 0644 octal)
 
storage_name 'mysql' has options:
  host - required MySQL database hostname
  port - optional MySQL database port (defaults to 3306)
  database - required MySQL database name
  user - required MySQL database user
  password - required MySQL database password
 
stoage name 'sqlite' has options:
  synchronous - optional value off, normal or full
      
The other form is:
  s4=RDF.Storage(storage=s1)
Copy an existing Storage s1.
 
 
Note: there are convience classes to create a memory storage
  s5=RDF.MemoryStorage()
 
and Hash storage:
  # memory hash
  s6=RDF.HashStorage('abc')
 
  # specified bdb hash stored in files named 'def'*
  s7=RDF.HashStorage('def', options="hash-type='bdb'")

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Stream(__builtin__.object)
    Redland Statement Stream class
 
A class encapsulating a sequence of Statements, such as
those returned from a Model query.  Can be used as a Python
sequence.
 
stream = model.find_statements(query_statement)
for statement in stream:
   # do whatever with 'statement'
   # note it is shared and will go out of scope, so you must
   # copy it if you want it to stay around
 
You should not normally find yourself needing to use this
class explicitly.
 
  Methods defined here:
__del__(self)
__init__(self, object, creator)
Create an RDF Stream (constructor).
__iter__(self)
context(self)
Return the context Node of the current object on the Stream
context_iter(self)
Return an iterator over this stream that
returns (stream, context) tuples each time it is iterated.
DEPRECATED.  Instead use the context-aware method appropriate,
e.g.  Model.find_statements_context() or Model.as_stream_context()
current(self)
Return the current Statement on the Stream
end(self)
Return true if the stream is exhausted
next(self)
Move to the next Statement on the Stream

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class TurtleParser(Parser)
    Redland Turtle Parser class
 
import RDF
parser=RDF.TurtleParser()
 
 
Method resolution order:
TurtleParser
Parser
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Parser:
__del__(self)
get_feature(self, uri)
Return the Node value of Parser feature URI uri
namespaces_seen(self)
Get a dictionary of prefix/URI pairs for namespaces seen during parsing.
parse_as_stream(self, uri, base_uri=None)
Return a Stream of Statements from parsing the content at
a URI for the optional base URI or None if the parsing fails.
 
(This depends on what URI support raptor provides to redland)
 
  for statement in parser.parse_as_stream(""):
      print statement
parse_into_model(self, model, uri, base_uri=None, handler=None)
Parse into the Model model from the content at the URI, for
the optional base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
 
parser.parse_into_model(model, "file:./foo.rdf",
                        "http://example.com/foo.rdf")
parse_string_as_stream(self, string, base_uri)
Return a Stream of Statements from parsing the content in
string with the required base URI or None if the parsing fails.
 
  for statement in parser.parse_string_as_stream(rdfstring, base_uri):
      print statement
parse_string_into_model(self, model, string, base_uri, handler=None)
Parse into the Model model from the content string
 with the required base URI.  Returns a boolean success or failure.
 
If handler is given, an error handler with the signature
  def handler(code, level, facility, message, line, column, byte, file, uri)
is called.
set_feature(self, uri, value)
Set the Node value of Parser feature URI uri.
set_uri_filter(self, filter)
Set a function for rejecting retrieval of URIs seen during parsing.
 
Return False or 0 to not reject the URI
 
def reject(uri):
  if "bad" == uri:
    return True
  return False
 
parser.set_uri_filter(reject)

Data descriptors inherited from Parser:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
class Uri(__builtin__.object)
    Redland URI Class
 
import RDF
uri1 = RDF.Uri("http://example.com/")
uri2 = RDF.Uri(uri1)
 
  Methods defined here:
__del__(self)
__eq__(self, other)
Equality of RDF URI to another RDF URI.
__hash__(self)
__init__(self, arg=None, **args)
Create an RDF URI (constructor).
 
Creates a new RDF URI from either of the following forms:
 
  uri1 = RDF.Uri("http://example.com/")
  
Create a URI from the given string.
 
  uri2 = RDF.Uri(uri1)
 
Copy an existing URI uri1.
__ne__(self, other)
Inequality of RDF URI to another RDF URI.
__str__(self)
Get a string representation of an RDF URI.
__unicode__(self)
Get a Unicode string representation of an RDF URI.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
 
Functions
        
debug(value=None)
Get/set Redland debugging output status.
 
RDF.debug (1)   # enable debugging
if RDF.debug(): # test for debug mode
 
Data
         __all__ = ['Node', 'Statement', 'Model', 'Iterator', 'Serializer', 'NTriplesSerializer', 'RDFXMLSerializer', 'Stream', 'Storage', 'MemoryStorage', 'HashStorage', 'Uri', 'Parser', 'TurtleParser', 'NTriplesParser', 'NS', 'Query', 'RDQLQuery', 'SPARQLQuery', 'debug']
__author__ = 'Dave Beckett - http://www.dajobe.org/, Edd Dumbi...sefulinc.com> and Matt Biddulph <mb@picdiary.com>'
__date__ = '$Date$'
__version__ = '1.1'
 
Author
         Dave Beckett - http://www.dajobe.org/, Edd Dumbill <edd@usefulinc.com> and Matt Biddulph <mb@picdiary.com>

(C) Copyright 2000-2012 Dave Beckett, Copyright 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/README0000644000175000017500000000104211776166242013704 00000000000000 Redland RDF Application Framework Bindings - Documentation The latest documentation is on the Redland and and Redland Bindings web sites. * Redland API documentation (HTML) (redland package) * Redland Perl interface * Redland PHP interface * Redland Python interface * Redland Ruby interface * Redland storage implementations overview __________________________________________________________________ Copyright (C) 2000-2007 Dave Beckett, Copyright (C) 2000-2005 University of Bristol redland-bindings-1.0.16.1/docs/python.html0000644000175000017500000001544511033062714015230 00000000000000 Redland RDF Application Framework - Python Interface

Redland RDF Application Framework - Python Interface

Installing the Redland Python interface

This is built if --with-python is given to the configure line, or --with-python=python2.3 to use a particular python version/program. The standard 'make' at the top level will build it.

You can also compile the python interface by hand as follows:

  cd python
  make

  # optional - runs the pyunit tests
  make check

To install it system wide do this as root (or maybe via sudo make install):

  root# make install

If you do not want it installed system wide, or do not have write access to the system python area, you can install into any directory you like by setting the DESTDIR as follows:

  $ make install DESTDIR=/path/to/wherever

although you will likely need let python know about this area either by the PYTHONPATH environment variable or some other mechanism. The shared library that provides the interface Redland.so (or similar name) will also be installed and the system will not find it unless that directory is pointed at. This is system specific but the choices are setting environment variables DYLD_LIBRARY_PATH (OSX), LD_LIBRARY_PATH (everyone else) or editing the /etc/ld.so.conf file (Linux, others?). See your system documentation or manual pages about shared library linking such as ld.so(1).

The python interface for Redland is mature and requires Python 2.3 (preferred) or 2.2. It has been tested with the following versions:

2.3.3 on Linux/x86
2.3.3 on FreeBSD/x86
2.3 on OSX/PPC
2.2 on Linux/x86

Testing the Redland Python interface

If you did the install above, run the python example program with:

  python example.py

(Using the same chosen earlier)

Otherwise, to run it in the source tree you need to find out the architecture-specific sub-directory it created in the build directory such as build/lib.linux-i686-2.2 and run it with:

  PYTHONPATH=build/lib.linux-i686-2.3 python example.py

and the result should be:

  found statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
  Parsing URI (file) ../data/dc.rdf
  Parsing added 3 statements
  Printing all statements
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/description], "The generic home page of Dave Beckett."}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/title], "Dave Beckett's Home Page"}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
  Writing model to test-out.rdf as rdf/xml

Using the Redland Python API

Read the pydoc Redland Python API for full details of the classes and methods provided along with examples of use.

The Python API is an object-based API reflecting the same structure of the Redland objects with simple mappings between them:

ConceptRedland ClassPython ClassPurpose
Resource / Literallibrdf_nodeRDF.Node RDF Model & Syntax nodes
Statement / Triplelibrdf_statementRDF.Statement RDF Model & Syntax arcs (statements, triples) [isa Resource]
Modellibrdf_modelRDF.Model Set of Statements usually held in one Storage.
Storagelibrdf_storageRDF.Storage Storage for Models either persistant or in-memory.
Streamlibrdf_streamRDF.Stream Providing sequences of Statements from Parsers, queries.
Parserlibrdf_parserRDF.Parser Syntaxes parsers delivering Stream of Statements or writing to a Model
Querylibrdf_queryRDF.Query Querying of an Model delivering a QueryResults
QueryResultslibrdf_query_resultsRDF.QueryResults Results of applying an Query to a Model giving either variable bindings with Node values or Stream of Statements
Serializerlibrdf_serializerRDF.Serializer Serializes a Model into a syntax such as RDF/XML
Iteratorlibrdf_iteratorRDF.Iterator Enumerating lists (of Node) from queries.
URIlibrdf_uriRDF.Uri Provides URIs for Resources, Parsers, ...
World RDF.World RDF wrapper class handling Redland startup/shutdown
Digestlibrdf_digest  Internal content digest class
Hashlibrdf_hash  Internal key:value maps class

Copyright (C) 2000-2007 Dave Beckett, Copyright (C) 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/php.html0000644000175000017500000000307711033062714014474 00000000000000 Redland RDF Application Framework - PHP Interface

Redland RDF Application Framework - PHP Interface

Installing the Redland PHP interface

This is built if --with-php is given to the configure line. The standard 'make' at the top level will build it.

You can also compile the PHP interface by hand as follows:

  cd php
  make

  # optional
  make check

To install it system wide do this as root (or maybe via sudo make install). NOTE: This is untested:

  root# make install

The PHP interface has been used with PHP 4.3.8, 4.3.3, 4.3.2, 4.2.2, 4.1.2 and 5.1.2 and is beta quality - has been used in production.

Redland PHP API Introduction

The PHP API is an object-based API with the class names and method names flattened into PHP procedure names like this: librdf_class_method - the same names as in the underlying C API. The object references become PHP variables.

Testing the Redland PHP interface

There is not yet an example program to exercise the PHP interface.


Copyright (C) 2002-2007 Dave Beckett, Copyright (C) 2002-2005 University of Bristol

redland-bindings-1.0.16.1/docs/perl.html0000644000175000017500000001735611033062714014654 00000000000000 Redland RDF Application Framework - Perl Interface

Redland RDF Application Framework - Perl Interface

Installing the Redland Perl interface

This is built if --with-perl is given to the configure line, or --with-perl=perl5.8 to use a particular perl version/program. The standard 'make' at the top level will build it.

You can also compile the perl interface by hand as follows:

  cd perl
  make

  # optional
  make check

To install it system wide do this as root (or maybe via sudo make install):

  root# make install

The Redland Perl interface is mature has been tested with the following versions (5.6.0 is the likely minimum; 5.005 is too old).

5.8.3 on Solaris/Sparc
5.8.3 on Linux/x86
5.8.2 on Linux/x86
5.8.1-RC3 on OSX/PPC
5.8.0 on Linux/x86
5.8.0 on Linux/IA64

Testing the Redland Perl interface

If you did the optional install above, run the perl example program with:

  perl ./example.pl

Otherwise, to run in the source tree do:

  perl -Iblib/arch -Iblib/lib ./example.pl

and the result should be:

  Creating storage

  Creating model

  Creating statement

  Adding statement to model

  Adding statement (new Statement(n, n, n)) to model

  Adding statement (n,n,n) to model

  Parsing URI (file) ../data/dc.rdf
  Parsing added 3 statements

  Printing all statements
  Statement: {[http://example.org/foo], [http://example.org/foo], [http://example.org/foo]}
  Statement: {[http://example.org/foo], [http://example.org/foo], [http://example.org/foo]}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/title], "Dave Beckett's Home Page"}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
  Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/description], "The generic home page of Dave Beckett."}

  Searching model for statements matching predicate http://purl.org/dc/elements/1.1/creator
  Matching Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
    Subject: [http://www.dajobe.org/]
    Predicate: [http://purl.org/dc/elements/1.1/creator]
    Object: Dave Beckett
  Matching Statement: {[http://www.dajobe.org/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
    Subject: [http://www.dajobe.org/]
    Predicate: [http://purl.org/dc/elements/1.1/creator]
    Object: Dave Beckett

  Searching model for targets of subject http://www.dajobe.org/ predicate http://purl.org/dc/elements/1.1/creator
  Matching Node: Dave Beckett
  Matching Node: Dave Beckett
  Querying for dc:titles:
  result 1: {
    a=[http://www.dajobe.org/]
    c=Dave Beckett's Home Page
  }

  Writing model to test-out.rdf as rdf/xml

Done

Using the Redland Perl API

Read the Redland Perl POD documentation for full details of the classes and methods provided along with examples of use.

The Perl API is an object-based API reflecting the same structure of the Redland objects with simple mappings between them:

ConceptRedland ClassPerl ClassPurpose
Resource / Literallibrdf_nodeRDF::Redland::Node,
RDF::Redland::BlankNode,
RDF::Redland::URINode,
RDF::Redland::LiteralNode and
RDF::Redland::XMLLiteralNode
RDF Model & Syntax nodes
Statement / Triplelibrdf_statementRDF::Redland::Statement RDF Model & Syntax arcs (statements, triples) [isa Resource]
Modellibrdf_modelRDF::Redland::Model Set of Statements usually held in one Storage.
Storagelibrdf_storageRDF::Redland::Storage Storage for Models either persistant or in-memory.
Streamlibrdf_streamRDF::Redland::Stream Providing sequences of Statements from Parsers, queries.
Parserlibrdf_parserRDF::Redland::Parser Syntaxes parsers delivering Stream of Statements or writing to a Model
Querylibrdf_queryRDF::Redland::Query Querying of an Model delivering a QueryResults
QueryResultslibrdf_query_resultsRDF::Redland::QueryResults Results of applying an Query to a Model giving either variable bindings with Node values or Stream of Statements
Serializerlibrdf_serializerRDF::Redland::Serializer Serializes a Model into a syntax such as RDF/XML
Iteratorlibrdf_iteratorRDF::Redland::Iterator Enumerating lists (of Node) from queries.
URIlibrdf_uriRDF::Redland::URI Provides URIs for Resources, Parsers, ...
World RDF::Redland RDF wrapper class handling Redland startup/shutdown
Digestlibrdf_digest  Internal content digest class
Hashlibrdf_hash  Internal key:value maps class
  RDF::Redland::RSS Perl Module providing RSS 1.0 support.

Perl API Reference Documentation

Either use any of the RDF::Redland:: module links above or start at the main RDF::Redland module and follow the references from there.


Copyright (C) 2000-2007 Dave Beckett, Copyright (C) 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/Makefile.am0000644000175000017500000001051611776200406015055 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - docs automake file for Redland Bindings # # Copyright (C) 2000-2005, David Beckett http://www.dajobe.org/ # Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # EXTRA_DIST=\ README.html README \ perl.html python.html ruby.html php.html \ fix-pod-xhtml fix-python-xhtml fix-rdoc-xhtml \ pod pydoc rdoc POD_MODULES=RDF/Redland RDF/Redland/Iterator RDF/Redland/Model RDF/Redland/Node RDF/Redland/Parser RDF/Redland/Query RDF/Redland/QueryResults RDF/Redland/RSS RDF/Redland/Serializer RDF/Redland/Statement RDF/Redland/Storage RDF/Redland/Stream RDF/Redland/URI RDF/Redland/BlankNode RDF/Redland/URINode RDF/Redland/LiteralNode RDF/Redland/XMLLiteralNode DOC_C_FILES=$(DOC_CLASSES:%=$(srcdir)/../librdf/rdf_%.c) PERL_HTML_POD_FILES=$(POD_MODULES:%=pod/%.html) PYTHON_HTML_PYDOC_FILES=pydoc/RDF.html RUBY_FILES= model node parser query resource serializer statement \ store stream uri schemas/foaf schemas/owl schemas/rdfs dc util \ queryresults RUBY_CLASSES= FOAF DC Redland Redland/OWL Redland/Util Redland/RDFS \ Redland/Serializer Redland/NodeTypeError Redland/Uri \ Redland/HashStore Redland/Query Redland/HashOpen Redland/Parser \ Redland/Node Redland/Model Redland/ContextParser Redland/Stream \ Redland/MemoryStore Redland/Statement Redland/Literal \ Redland/RedlandError Redland/NodeIterator Redland/FileStore \ Redland/Namespace Redland/World Redland/TripleStore Redland/Resource \ Redland/MergedModel Redland/BNode Redland/QueryResults RUBY_HTML_SOURCE_FILES=$(RUBY_FILES:%=rdoc/rdf/redland/%_rb.html) RUBY_HTML_CLASS_FILES=$(RUBY_CLASSES:%=rdoc/%.html) RUBY_HTML_RDOC_FILES= \ $(RUBY_HTML_SOURCE_FILES) \ rdoc/rdf/redland_rb.html \ $(RUBY_HTML_CLASS_FILES) \ rdoc/index.html RUBY_EXTRA_RDOC_FILES= \ rdoc/rdoc.css rdoc/rdoc-style.css CLEANFILES=README MAINTAINERCLEANFILES=pod pydoc rdoc-dirs-stamp PERL=perl # Create some text files from HTML sources LYNX=lynx LYNXARGS=-dump -nolist SUFFIXES = .html .txt .sgml .ps .pdf .pm .pod .3 pod: $(PERL_HTML_POD_FILES) pydoc: $(PYTHON_HTML_PYDOC_FILES) rdoc: $(RUBY_HTML_RDOC_FILES) $(RUBY_EXTRA_RDOC_FILES) .html.txt: $(LYNX) $(LYNXARGS) $< > $@ if MAINTAINER_MODE # PERL $(PERL_HTML_POD_FILES): pod/%.html: $(srcdir)/../perl/lib/%.pm $(srcdir)/fix-pod-xhtml mkdir -p pod/RDF/Redland -pod2html --noindex --htmlroot /docs/pod --infile=$< | tidy -asxml -wrap 1000 2>/dev/null | $(PERL) $(srcdir)/fix-pod-xhtml $@ rm -f pod2htm* $(srcdir)/../python/RDF.html: $(srcdir)/../python/RDF.py cd $(srcdir)/../python && $(MAKE) RDF.html # PYTHON $(PYTHON_HTML_PYDOC_FILES): pydoc/%.html: $(srcdir)/../python/RDF.html $(srcdir)/fix-python-xhtml mkdir -p pydoc -tidy -asxml -wrap 1000 $< 2>/dev/null | $(PERL) $(srcdir)/fix-python-xhtml $@ .pod.html: $(srcdir)/fix-pod-xhtml -pod2html --noindex --htmlroot /docs/pod --infile=$< | tidy -asxml -wrap 1000 2>/dev/null | $(PERL) $(srcdir)/fix-pod-xhtml $@ rm -f pod2htm* # RUBY $(RUBY_HTML_RDOC_FILES): rdoc/%.html: $(srcdir)/fix-rdoc-xhtml rdoc-dirs-stamp -tidy -asxml -wrap 1000 $(srcdir)/../ruby/$@ 2>/dev/null | $(PERL) $(srcdir)/fix-rdoc-xhtml $@ $(RUBY_EXTRA_RDOC_FILES): rdoc-dirs-stamp @for file in $(RUBY_EXTRA_RDOC_FILES); do \ if test -r $(srcdir)/../ruby/$$file; then \ echo $(INSTALL_DATA) $(srcdir)/../ruby/$$file $$file; \ $(INSTALL_DATA) $(srcdir)/../ruby/$$file $$file; \ else \ echo touch $$file; \ touch $$file; \ fi; \ done rdoc-dirs-stamp: $(srcdir)/../ruby/rdoc-stamp mkdir -p rdoc rdoc/Redland rdoc/rdf rdoc/rdf/redland rdoc/rdf/redland/schemas && touch $@ $(srcdir)/../ruby/rdoc-stamp: cd $(srcdir)/../ruby && $(MAKE) docs endif clean-local: rm -rf pod2htm* README: README.html $(LYNX) $(LYNXARGS) $< > $@ @SET_MAKE@ redland-bindings-1.0.16.1/docs/Makefile.in0000644000175000017500000004071412063416534015072 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - docs automake file for Redland Bindings # # Copyright (C) 2000-2005, David Beckett http://www.dajobe.org/ # Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = perl PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ README.html README \ perl.html python.html ruby.html php.html \ fix-pod-xhtml fix-python-xhtml fix-rdoc-xhtml \ pod pydoc rdoc POD_MODULES = RDF/Redland RDF/Redland/Iterator RDF/Redland/Model RDF/Redland/Node RDF/Redland/Parser RDF/Redland/Query RDF/Redland/QueryResults RDF/Redland/RSS RDF/Redland/Serializer RDF/Redland/Statement RDF/Redland/Storage RDF/Redland/Stream RDF/Redland/URI RDF/Redland/BlankNode RDF/Redland/URINode RDF/Redland/LiteralNode RDF/Redland/XMLLiteralNode DOC_C_FILES = $(DOC_CLASSES:%=$(srcdir)/../librdf/rdf_%.c) PERL_HTML_POD_FILES = $(POD_MODULES:%=pod/%.html) PYTHON_HTML_PYDOC_FILES = pydoc/RDF.html RUBY_FILES = model node parser query resource serializer statement \ store stream uri schemas/foaf schemas/owl schemas/rdfs dc util \ queryresults RUBY_CLASSES = FOAF DC Redland Redland/OWL Redland/Util Redland/RDFS \ Redland/Serializer Redland/NodeTypeError Redland/Uri \ Redland/HashStore Redland/Query Redland/HashOpen Redland/Parser \ Redland/Node Redland/Model Redland/ContextParser Redland/Stream \ Redland/MemoryStore Redland/Statement Redland/Literal \ Redland/RedlandError Redland/NodeIterator Redland/FileStore \ Redland/Namespace Redland/World Redland/TripleStore Redland/Resource \ Redland/MergedModel Redland/BNode Redland/QueryResults RUBY_HTML_SOURCE_FILES = $(RUBY_FILES:%=rdoc/rdf/redland/%_rb.html) RUBY_HTML_CLASS_FILES = $(RUBY_CLASSES:%=rdoc/%.html) RUBY_HTML_RDOC_FILES = \ $(RUBY_HTML_SOURCE_FILES) \ rdoc/rdf/redland_rb.html \ $(RUBY_HTML_CLASS_FILES) \ rdoc/index.html RUBY_EXTRA_RDOC_FILES = \ rdoc/rdoc.css rdoc/rdoc-style.css CLEANFILES = README MAINTAINERCLEANFILES = pod pydoc rdoc-dirs-stamp # Create some text files from HTML sources LYNX = lynx LYNXARGS = -dump -nolist SUFFIXES = .html .txt .sgml .ps .pdf .pm .pod .3 all: all-am .SUFFIXES: .SUFFIXES: .html .txt .sgml .ps .pdf .pm .pod .3 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ clean-local distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am pod: $(PERL_HTML_POD_FILES) pydoc: $(PYTHON_HTML_PYDOC_FILES) rdoc: $(RUBY_HTML_RDOC_FILES) $(RUBY_EXTRA_RDOC_FILES) .html.txt: $(LYNX) $(LYNXARGS) $< > $@ # PERL @MAINTAINER_MODE_TRUE@$(PERL_HTML_POD_FILES): pod/%.html: $(srcdir)/../perl/lib/%.pm $(srcdir)/fix-pod-xhtml @MAINTAINER_MODE_TRUE@ mkdir -p pod/RDF/Redland @MAINTAINER_MODE_TRUE@ -pod2html --noindex --htmlroot /docs/pod --infile=$< | tidy -asxml -wrap 1000 2>/dev/null | $(PERL) $(srcdir)/fix-pod-xhtml $@ @MAINTAINER_MODE_TRUE@ rm -f pod2htm* @MAINTAINER_MODE_TRUE@$(srcdir)/../python/RDF.html: $(srcdir)/../python/RDF.py @MAINTAINER_MODE_TRUE@ cd $(srcdir)/../python && $(MAKE) RDF.html # PYTHON @MAINTAINER_MODE_TRUE@$(PYTHON_HTML_PYDOC_FILES): pydoc/%.html: $(srcdir)/../python/RDF.html $(srcdir)/fix-python-xhtml @MAINTAINER_MODE_TRUE@ mkdir -p pydoc @MAINTAINER_MODE_TRUE@ -tidy -asxml -wrap 1000 $< 2>/dev/null | $(PERL) $(srcdir)/fix-python-xhtml $@ @MAINTAINER_MODE_TRUE@.pod.html: $(srcdir)/fix-pod-xhtml @MAINTAINER_MODE_TRUE@ -pod2html --noindex --htmlroot /docs/pod --infile=$< | tidy -asxml -wrap 1000 2>/dev/null | $(PERL) $(srcdir)/fix-pod-xhtml $@ @MAINTAINER_MODE_TRUE@ rm -f pod2htm* # RUBY @MAINTAINER_MODE_TRUE@$(RUBY_HTML_RDOC_FILES): rdoc/%.html: $(srcdir)/fix-rdoc-xhtml rdoc-dirs-stamp @MAINTAINER_MODE_TRUE@ -tidy -asxml -wrap 1000 $(srcdir)/../ruby/$@ 2>/dev/null | $(PERL) $(srcdir)/fix-rdoc-xhtml $@ @MAINTAINER_MODE_TRUE@$(RUBY_EXTRA_RDOC_FILES): rdoc-dirs-stamp @MAINTAINER_MODE_TRUE@ @for file in $(RUBY_EXTRA_RDOC_FILES); do \ @MAINTAINER_MODE_TRUE@ if test -r $(srcdir)/../ruby/$$file; then \ @MAINTAINER_MODE_TRUE@ echo $(INSTALL_DATA) $(srcdir)/../ruby/$$file $$file; \ @MAINTAINER_MODE_TRUE@ $(INSTALL_DATA) $(srcdir)/../ruby/$$file $$file; \ @MAINTAINER_MODE_TRUE@ else \ @MAINTAINER_MODE_TRUE@ echo touch $$file; \ @MAINTAINER_MODE_TRUE@ touch $$file; \ @MAINTAINER_MODE_TRUE@ fi; \ @MAINTAINER_MODE_TRUE@ done @MAINTAINER_MODE_TRUE@rdoc-dirs-stamp: $(srcdir)/../ruby/rdoc-stamp @MAINTAINER_MODE_TRUE@ mkdir -p rdoc rdoc/Redland rdoc/rdf rdoc/rdf/redland rdoc/rdf/redland/schemas && touch $@ @MAINTAINER_MODE_TRUE@$(srcdir)/../ruby/rdoc-stamp: @MAINTAINER_MODE_TRUE@ cd $(srcdir)/../ruby && $(MAKE) docs clean-local: rm -rf pod2htm* README: README.html $(LYNX) $(LYNXARGS) $< > $@ @SET_MAKE@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/docs/fix-pod-xhtml0000755000175000017500000000321611033062714015440 00000000000000#!/usr/bin/perl # # Format XHTML generated by pod2html (via tidy) for websites # # Usage: pod2html ... MODULE.pm | tidy ... | fix-pod-xhtml OUTPUT-FILE # # Copyright (C) 2001-2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2001-2004 University of Bristol - http://www.bristol.ac.uk/ # use strict; use File::Basename; my $progname=basename $0; my $main_title="Redland RDF Application Framework"; die "USAGE: $progname OUTPUT-FILE\n" if @ARGV < 1; my $doc_title; my($file)=@ARGV; my($pod_rdf_rel)=($file =~ m%^pod/RDF/%) ? '../' : ''; my($pod_rdf_redland_rel)=($file =~ m%^pod/RDF/Redland/%) ? '' : 'Redland/'; open(OUT, ">$file") or die "$progname: Cannot create $file - $!\n"; print OUT qq{\n}; open(IN, "-"); while() { if(m%(.*?)%) { $doc_title=$1; $doc_title =~ s/^(.*) - Redland (.*) Class$/Perl $1 Class/; s%(.*?)%$main_title - $doc_title%; } next if /^\s*%

%; s%

%%; s%
%%; s%href="/docs/pod/RDF/Redland/([^"]+)"%href="$pod_rdf_redland_rel$1"%g; s%href="/docs/pod/RDF/([^"]+)"%href="$pod_rdf_rel$1"%g; s%^]*>%\n\n

$main_title - $doc_title

\n\n%; s%^

%%; my $year=1900+(localtime)[5]; print OUT <<"EOT" if m%^%;


(C) Copyright 2000-$year Dave Beckett, (C) Copyright 2000-2005 University of Bristol

EOT print OUT; } close(IN); close(OUT); redland-bindings-1.0.16.1/docs/README.html0000644000175000017500000000220311033062714014630 00000000000000 Redland RDF Application Framework Bindings - Documentation

Redland RDF Application Framework Bindings - Documentation

The latest documentation is on the Redland and and Redland Bindings web sites.


Copyright (C) 2000-2007 Dave Beckett, Copyright (C) 2000-2005 University of Bristol

redland-bindings-1.0.16.1/docs/fix-python-xhtml0000755000175000017500000000462411033062714016203 00000000000000#!/usr/bin/perl # # Format XHTML generated by pod2html (via tidy) for websites # # Usage: tidy ... pydoc.html | fix-python-xhtml OUTPUT-FILE # # (C) Copyright 2002 Dave Beckett - http://www.dajobe.org/ # University of Bristol # use strict; use File::Basename; my $progname=basename $0; my $main_title="Redland RDF Application Framework"; my $doc_title="Python API Reference"; die "USAGE: $progname OUTPUT-FILE\n" if @ARGV < 1; my($file)=@ARGV; my($pod_rdf_rel)=($file =~ m%^pod/RDF/%) ? '../' : ''; my($pod_rdf_redland_rel)=($file =~ m%^pod/RDF/Redland/%) ? '' : 'Redland/'; my $skip_heading=0; open(OUT, ">$file") or die "$progname: Cannot create $file - $!\n"; print OUT qq{\n}; open(IN, "-"); while() { if(m%(.*?)%) { s%(.*?)%$main_title - $doc_title%; } next if /^\#%) { $skip_heading=1; next; } elsif ($skip_heading == 1) { if(m%\#

%) { $skip_heading=2; print OUT "\n"; } next; } # Links to other Python modules, exceptions s%(.+?)%$2%g; #" # The horrors of guessing urls in text s%([^<]+)%$2%g; # " s%([^<]+)%$2%g; # " # Never leave these in web pages s%/[^<]+%%g; # " s%RDF.html\#%#%; # Bad IDs, who writes this stuff? s%%my $a=$1; $a =~ s/\<.*?\>//g; qq{}%ge; s%%my $a=$1; $a =~ s/\<.*?\>//g; $a =~ s/^-//; $a=~ s/ /-/g; qq{}%ge; s%%%g; # All the __new__ links are broken s%__new__%__new__%; # This is broken too, dunno why s%debug%debug%; if(m%^%) { print OUT qq{\n\n

$main_title - $doc_title

\n\n}; next; } my $year=1900+(localtime)[5]; print OUT <<"EOT" if m%^%;

(C) Copyright 2000-$year Dave Beckett, Copyright 2000-2005 University of Bristol

EOT print OUT; } close(IN); close(OUT); redland-bindings-1.0.16.1/docs/ruby.html0000644000175000017500000001351411033062714014663 00000000000000 Redland RDF Application Framework - Ruby Interface

Redland RDF Application Framework - Ruby Interface

Installing the Redland Ruby interface

This is built if --with-ruby is given to the configure line, or --with-ruby=ruby1.8 to use a particular Ruby version/program. The standard 'make' at the top level will build it.

You can also compile the Ruby interface by hand as follows:

  cd ruby
  make

  # optional (some tests require test/unit.rb - ships with ruby 1.8.0+)
  make check

To install it system wide do this as root (or maybe via sudo make install):

  root# make install

The Ruby interface was originally written by Dominic Sisneros at the rdf-redland project on RubyForge. The interface here is an update of that with some fixes.

The Ruby interface has been tested with Ruby 1.8.3, 1.8.2, 1.8.1, 1.8. The minimum version is likely 1.8 although older ones may work.

Testing the Redland Ruby interface

The example program provided parses an RDF/XML source file into a model. It should be run with two arguments - the URI of the content (as file:/path/to/content) and the syntax name (say, rdfxml):

   # If installed
   ruby example.ruby file:../data/dc.rdf rdfxml

   # In source tree
   ruby -I. -Ilib example.ruby file:../data/dc.rdf rdfxml

Using the Redland Ruby API

Read the Ruby Doc Redland Ruby Doc API for details of the classes and methods provided wrapping the C API.

The Ruby API is an object-based API reflecting the same structure of the Redland objects with simple mappings between them:

ConceptRedland ClassRuby ClassPurpose
Resource / Literallibrdf_nodeRedland::Node
Redland::BNode
Redland::Literal
RDF Model & Syntax nodes
Statement / Triplelibrdf_statementRedland::Statement RDF Model & Syntax arcs (statements, triples) [isa Resource]
Modellibrdf_modelRedland::Model Set of Statements usually held in one Storage.
Storagelibrdf_storageRedland::TripleStore
Redland::FileStore
Redland::HashStore
Redland::MemoryStore
Storage for Models either persistant or in-memory.
Streamlibrdf_streamRedland::Stream Providing sequences of Statements from Parsers, queries.
Parserlibrdf_parserRedland::Parser Syntaxes parsers delivering Stream of Statements or writing to a Model
Querylibrdf_queryRedland::Query Querying of an Model delivering a QueryResults
QueryResultslibrdf_query_resultsRedland::QueryResults Results of applying an Query to a Model giving either variable bindings with Node values or Stream of Statements
Serializerlibrdf_serializerRedland::Serializer Serializes a Model into a syntax such as RDF/XML
Iteratorlibrdf_iterator  Enumerating lists (of Node) from queries.
URIlibrdf_uriRedland::Uri Provides URIs for Resources, Parsers, ...
World Redland::World RDF wrapper class handling Redland startup/shutdown
Digestlibrdf_digest  Internal content digest class
Hashlibrdf_hash  Internal key:value maps class

Copyright (C) 2002-2007 Dave Beckett, Copyright (C) 2002-2005 University of Bristol

redland-bindings-1.0.16.1/docs/fix-rdoc-xhtml0000755000175000017500000000403711776163726015632 00000000000000#!/usr/bin/perl # # Format XHTML generated by rdoc (via tidy) for websites # # Usage: rdoc .... # for f in `find outdir -name \*.html -print`; # tidy ... $f | fix-rdoc-xhtml $f.new && mv $f.new $f; # donek OUTPUT-FILE # # Copyright (C) 2001-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2001-2005 University of Bristol - http://www.bristol.ac.uk/ # use strict; use File::Basename; my $progname=basename $0; my $main_title="Redland RDF Language Bindings - Ruby RDoc"; die "USAGE: $progname OUTPUT-FILE\n" if @ARGV < 1; my($file)=@ARGV; my $is_index = ($file =~ /(fr_file_index|fr_class_index|fr_method_index)/); open(OUT, ">$file") or die "$progname: Cannot create $file - $!\n"; open(IN, "-"); while() { if(m%(.*?)%) { s%(.*?)%$main_title - $1%; } if(m%%) { print OUT; print OUT <<"EOT" if !$is_index;
EOT next; } next if /^\n}; } if(m%"validator-badges"%) { while() { last if m%
%; } next; } my $year=1900+(localtime)[5]; if(m%^%) { print OUT <<"EOT";
EOT print OUT <<"EOT" if !$is_index; EOT print OUT <<"EOT";

(C) Copyright 2004-$year Dave Beckett, (C) Copyright 2004-2005 University of Bristol

EOT } print OUT; } close(IN); close(OUT); redland-bindings-1.0.16.1/LICENSE-2.0.txt0000644000175000017500000002613610406177664014226 00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. redland-bindings-1.0.16.1/perl/0000755000175000017500000000000012074650260013107 500000000000000redland-bindings-1.0.16.1/perl/t/0000755000175000017500000000000012074650260013352 500000000000000redland-bindings-1.0.16.1/perl/t/test1.t0000644000175000017500000001047611522705745014535 00000000000000# -*- Mode: Perl -*- # # test1.t - Redland perl test 1 - RDF::Redland::CORE low level APIs # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # ######################### We start with some black magic to print on failure. BEGIN { $| = 1; print "1..6\n"; } END {print "not ok 1\n" unless $loaded;} use RDF::Redland::CORE; $loaded = 1; print "ok 1\n"; ######################### End of black magic. use strict; my $test=2; # Test using RDF::Redland::CORE module only my $debug=defined $ENV{'TEST_VERBOSE'}; my $world=&RDF::Redland::CORE::librdf_new_world(); &RDF::Redland::CORE::librdf_world_open($world); &RDF::Redland::CORE::librdf_perl_world_init($world); my $storage=&RDF::Redland::CORE::librdf_new_storage($world, "hashes", "test", "new='yes',hash-type='memory',dir='.'"); if(!$storage) { warn "Redland::librdf_new_storage failed\n"; print "not ok $test\n"; exit 1; } print "ok $test\n"; $test++; my $model=&RDF::Redland::CORE::librdf_new_model($world, $storage, ""); if(!$model) { warn "Redland::librdf_new_model failed\n"; print "not ok $test\n"; exit 1; } print "ok $test\n"; $test++; my $statement=&RDF::Redland::CORE::librdf_new_statement_from_nodes($world, &RDF::Redland::CORE::librdf_new_node_from_uri_string($world, "http://www.dajobe.org/"), &RDF::Redland::CORE::librdf_new_node_from_uri_string($world, "http://purl.org/dc/elements/1.1/creator"), &RDF::Redland::CORE::librdf_new_node_from_literal($world, "Dave Beckett", "", 0) ); if(!$statement) { warn "Redland::librdf_new_statement_from_nodes failed\n"; print "not ok $test\n"; exit 1; } print "ok $test\n"; $test++; &RDF::Redland::CORE::librdf_model_add_statement($model, $statement); &RDF::Redland::CORE::librdf_free_statement($statement); $statement=undef; $statement=&RDF::Redland::CORE::librdf_new_statement($world); my $stream=&RDF::Redland::CORE::librdf_model_find_statements($model,$statement); &RDF::Redland::CORE::librdf_free_statement($statement); $statement=undef; my $failed=0; while(!&RDF::Redland::CORE::librdf_stream_end($stream)) { $statement=&RDF::Redland::CORE::librdf_stream_get_object($stream); my $s=&RDF::Redland::CORE::librdf_statement_to_string($statement); if(!length $s) { warn "Redland::librdf_new_statement_to_string failed\n"; print "not ok $test\n"; $failed=1; last; } warn "found statement: $s\n" if $debug; &RDF::Redland::CORE::librdf_stream_next($stream); } &RDF::Redland::CORE::librdf_free_stream($stream); $stream=undef; last if $failed; print "ok $test\n"; $test++; my $source_node=&RDF::Redland::CORE::librdf_new_node_from_uri_string($world, "http://www.dajobe.org/"); my $target_node=&RDF::Redland::CORE::librdf_new_node_from_uri_string($world, "http://purl.org/dc/elements/1.1/creator"); my $iterator=&RDF::Redland::CORE::librdf_model_get_targets($model,$source_node,$target_node); $failed=0; while(!&RDF::Redland::CORE::librdf_iterator_end($iterator)) { my $node=&RDF::Redland::CORE::librdf_iterator_get_object($iterator); my $n=&RDF::Redland::CORE::librdf_node_to_string($node); if(!length $n) { warn "Redland::librdf_node_to_string failed\n"; print "not ok $test\n"; $failed=1; last; } warn "found node: $n\n" if $debug; &RDF::Redland::CORE::librdf_iterator_next($iterator); } &RDF::Redland::CORE::librdf_free_iterator($iterator); $iterator=undef; &RDF::Redland::CORE::librdf_free_node($source_node); $source_node=undef; &RDF::Redland::CORE::librdf_free_node($target_node); $target_node=undef; unless($failed) { print "ok $test\n"; } $test++; &RDF::Redland::CORE::librdf_free_model($model); $model=undef; &RDF::Redland::CORE::librdf_free_storage($storage); $storage=undef; &RDF::Redland::CORE::librdf_perl_world_finish(); $world=undef; exit 0; redland-bindings-1.0.16.1/perl/t/test2.t0000644000175000017500000000763511522705745014541 00000000000000# -*- Mode: Perl -*- # # test2.t - Redland perl test 2 - general RDF::Redland coverage # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # ######################### We start with some black magic to print on failure. BEGIN { $| = 1; print "1..7\n"; } END {print "not ok 1\n" unless $loaded;} use RDF::Redland; $loaded = 1; print "ok 1\n"; ######################### End of black magic. use strict; my $test=2; # Test the RDF::Redland module interfaces $RDF::Redland::Debug=1 if $ENV{'TEST_VERBOSE'}; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory',dir='.'"); if(!$storage) { warn "new RDF::Redland::Storage failed\n"; print "not ok $test\n"; last; } print "ok $test\n"; $test++; my $model=new RDF::Redland::Model($storage, ""); if(!$model) { warn "new RDF::Redland::Model failed\n"; print "not ok $test\n"; last; } print "ok $test\n"; $test++; my $statement=RDF::Redland::Statement->new_from_nodes(RDF::Redland::Node->new_from_uri_string("http://www.dajobe.org/"), RDF::Redland::Node->new_from_uri_string("http://purl.org/dc/elements/1.1/creator"), RDF::Redland::Node->new_from_literal("Dave Beckett", "", 0)); if(!$statement) { warn "new RDF::Redland::Statement->new_from_nodes failed\n"; print "not ok $test\n"; last; } print "ok $test\n"; $test++; $model->add_statement($statement); $statement=undef; # Match against an empty statement - find everything $statement=RDF::Redland::Statement->new_from_nodes(undef,undef,undef); my $stream=$model->find_statements($statement); my $failed=0; while(!$stream->end) { my $s=$stream->current->as_string; if(!length $s) { warn "RDF::Redland::Statement->as_string failed\n"; print "not ok $test\n"; $failed=1; last; } warn "found statement: $s\n" if $RDF::Redland::Debug; $stream->next; } last if $failed; my $source_node=RDF::Redland::Node->new_from_uri_string("http://www.dajobe.org/"); my $target_node=RDF::Redland::Node->new_from_uri_string("http://purl.org/dc/elements/1.1/creator"); my $iterator=$model->targets_iterator($source_node,$target_node); $failed=0; while(!$iterator->end) { my $n=$iterator->current->as_string; if(!length $n) { warn "RDF::Redland::Node->as_string failed\n"; print "not ok $test\n"; $failed=1; last; } warn "found node: $n\n" if $RDF::Redland::Debug; $iterator->next; } $iterator=undef; $source_node=undef; $target_node=undef; last if $failed; my $sub=RDF::Redland::Node->new_from_uri_string("http://example.org/subject"); my $pred=RDF::Redland::Node->new_from_uri_string("http://example.org/predicate"); my $dt_uri=new RDF::Redland::URI("http://example.org/datatype"); $model->add_typed_literal_statement($sub, $pred, "Literal content", "en-GB", $dt_uri); $sub=undef; $pred=undef; print "ok $test\n"; $test++; my $serializer=new RDF::Redland::Serializer(); $serializer->serialize_model_to_file("test-out.rdf", undef, $model); print "ok $test\n"; $test++; # This happens automatically at the end of scope, but can be forced. # However the stream must be closed before the object that generated # it is destroyed. $stream=undef; # These happen automatically but can be forced; model always has # to be closed first, so it keeps a reference to storage around - sneaky! $storage=undef; $model=undef; print "ok $test\n"; $test++; exit 0; redland-bindings-1.0.16.1/perl/t/test3.t0000644000175000017500000000430611522705745014532 00000000000000# -*- Mode: Perl -*- # # test3.t - Redland perl test 3 - error and warnings # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # ######################### We start with some black magic to print on failure. BEGIN { $| = 1; print "1..3\n"; } END {print "not ok 1\n" unless $loaded;} use RDF::Redland::CORE; $loaded = 1; print "ok 1\n"; ######################### End of black magic. use strict; my $test=2; # Test using Redland module only my $debug=defined $ENV{'TEST_VERBOSE'}; my $world=&RDF::Redland::CORE::librdf_new_world(); &RDF::Redland::CORE::librdf_world_open($world); &RDF::Redland::CORE::librdf_perl_world_init($world); package RDF::Redland::World; sub message ($$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; if($level > 3) { if(ref $RDF::Redland::Error_Sub) { return $RDF::Redland::Error_Sub->($message); } else { die "Redland error: $message\n"; } } else { if(ref $RDF::Redland::Warning_Sub) { return $RDF::Redland::Warning_Sub->($message); } else { warn "Redland warning: $message\n"; } } 1; } package main; # check 'die' works my $result='not ok'; eval '&RDF::Redland::CORE::librdf_internal_test_error($world)'; $result='ok' if $@ =~ /test error message number 1/; print "$result $test\n"; $test++; # check 'warn' works $::warn_worked='not ok'; $SIG{__WARN__}=sub { $::warn_worked='ok' if shift =~ /test warning message number 2/ }; &RDF::Redland::CORE::librdf_internal_test_warning($world); print "$::warn_worked $test\n"; &RDF::Redland::CORE::librdf_perl_world_finish(); $world=undef; exit 0; redland-bindings-1.0.16.1/perl/t/Makefile.am0000644000175000017500000000004310406177663015333 00000000000000EXTRA_DIST=test1.t test2.t test3.t redland-bindings-1.0.16.1/perl/t/Makefile.in0000644000175000017500000002661312063416535015352 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = perl/t DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = test1.t test2.t test3.t all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/t/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu perl/t/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/perl/lib/0000755000175000017500000000000012074650260013655 500000000000000redland-bindings-1.0.16.1/perl/lib/RDF/0000755000175000017500000000000012074650260014270 500000000000000redland-bindings-1.0.16.1/perl/lib/RDF/Redland.pm0000644000175000017500000001325312074650256016130 00000000000000# -*- Mode: Perl -*- # # Redland.pm - Redland top level Perl module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # use RDF::Redland::Iterator; use RDF::Redland::Model; use RDF::Redland::Node; use RDF::Redland::BlankNode; use RDF::Redland::URINode; use RDF::Redland::LiteralNode; use RDF::Redland::XMLLiteralNode; use RDF::Redland::Parser; use RDF::Redland::Query; use RDF::Redland::QueryResults; use RDF::Redland::Serializer; use RDF::Redland::Statement; use RDF::Redland::Storage; use RDF::Redland::Stream; use RDF::Redland::URI; use RDF::Redland::CORE; package RDF::Redland::World; sub new ($) { my($proto)=@_; my $class = ref($proto) || $proto; my $self = {}; # This line is needed because otherwise will perl will barf a # warning (that CANNOT be disabled with no warnings 'once') about # an unused variable. $_p_librdf_world_s::OWNER = 1; $self->{WORLD} = &RDF::Redland::CORE::librdf_new_world(); &RDF::Redland::CORE::librdf_world_open($self->{WORLD}); &RDF::Redland::CORE::librdf_perl_world_init($self->{WORLD}); bless ($self, $class); $self->{ME}=$self; return $self; } sub DESTROY ($) { warn "RDF::World DESTROY\n" if $RDF::Debug; &RDF::Redland::CORE::librdf_perl_world_finish(); } sub message ($$$$$$$$$) { if(ref $RDF::Redland::Log_Sub) { return $RDF::Redland::Log_Sub->(@_); } my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; if($level > 3) { if(ref $RDF::Redland::Error_Sub) { return $RDF::Redland::Error_Sub->($message); } else { die "Redland error: $message\n"; } } else { if(ref $RDF::Redland::Warning_Sub) { return $RDF::Redland::Warning_Sub->($message); } else { warn "Redland warning: $message\n"; } } 1; } package RDF::Redland; use vars qw($VERSION $Debug $World $Error_Sub $Warning_Sub); $VERSION= eval sprintf("%s.%02d_%02d_%02d", split(/\./, "1.0.16.1")); $Debug=0; $World=new RDF::Redland::World; $Error_Sub=undef; $Warning_Sub=undef; $Log_Sub=undef; =pod =head1 NAME RDF::Redland - Redland RDF Class =head1 SYNOPSIS use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, ""); ... =head1 DESCRIPTION This class initialises the Redland RDF classes. See the main classes for full detail: L, L, L, L, L, L, L, L, L, L, L, L, L, L and L. =head1 STATIC METHODS =over =item set_log_handler SUB Set I as the subroutine to be called on any Redland error, warning or log message. The subroutine must have the followign signature: sub handler ($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; # int error code # int log level # int facility causing the error (parsing, serializing, ...) # string error message # int line number (<0 if not relevant) # int column number (<0 if not relevant) # int byte number (<0 if not relevant) # string file name or undef # string URI or undef # ...do something with the information ... }; RDF::Redland::set_log_handler(\&handler); =cut sub set_log_handler ($) { $Log_Sub=shift; } =item reset_log_handler Reset redland to use the default logging handler, typically printing the message to stdout or stderr and exiting on a fatal error. =cut sub reset_log_handler () { $Log_Sub=undef; } =item set_error_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set I as the subroutine to be called on a Redland error with the error message as the single argument. For example: RDF::Redland::set_error_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run die $msg =cut sub set_error_handler ($) { $Error_Sub=shift; } =item set_warning_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set I as the subroutine to be called on a Redland warning with the warning message as the single argument. For example: RDF::Redland::set_warning_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run warn $msg =cut sub set_warning_handler ($) { $Warning_Sub=shift; } =pod =back =head1 SEE ALSO L, L, L, L, L, L, L, L, L, L, L, L, L, L and L. =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/0000755000175000017500000000000012074650260015641 500000000000000redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Model.pm0000644000175000017500000004331311522705745017171 00000000000000# -*- Mode: Perl -*- # # Model.pm - Redland Perl RDF Model module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Model; use strict; use RDF::Redland::Iterator; use RDF::Redland::Stream; =pod =head1 NAME RDF::Redland::Model - Redland RDF Model Class =head1 SYNOPSIS use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, ""); ... my(@sources)=$model->targets($predicate_node, $object_node); ... =head1 DESCRIPTION Manipulate the RDF model. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new STORAGE OPTIONS_STRING =item new_with_options STORAGE OPTIONS_HASH Create a new RDF::Redland::Model object using RDF::Redland::Storage object I with a options. The options can be given either as a string in the first form as I. The options take the form key1='value1',key2='value2'. The quotes are required. In the second case I is a reference to a Perl hash of options. =cut sub new ($$$) { my($proto,$storage,$options_string)=@_; my $class = ref($proto) || $proto; my $self = {}; warn qq{RDF::Redland::Model->new(storage, "$options_string")\n} if $RDF::Redland::Debug; $self->{MODEL}=&RDF::Redland::CORE::librdf_new_model($RDF::Redland::World->{WORLD},$storage->{STORAGE},$options_string); return undef if !$self->{MODEL}; # keep a reference to storage so model is always destroyed before storage $self->{STORAGE}=$storage; bless ($self, $class); return $self; } sub new_with_options ($$$) { my($proto,$storage,$options)=@_; my $class = ref($proto) || $proto; my $self = {}; my $options_hash=RDF::Redland::Hash->new_from_perl_hash($options); $self->{MODEL}=&RDF::Redland::CORE::librdf_new_model_with_options($storage->{STORAGE},$options_hash->{HASH}); return undef if !$self->{MODEL}; # keep a reference to storage so model is always destroyed before storage $self->{STORAGE}=$storage; bless ($self, $class); return $self; } =item new_from_model MODEL Create a new model from an existing RDF::Redland::Model I (copy constructor). =cut sub new_from_model ($$) { my($proto,$model)=@_; my $class = ref($proto) || $proto; my $self = {}; $self->{MODEL}=&RDF::Redland::CORE::librdf_new_model_from_model($model->{MODEL}); return undef if !$self->{MODEL}; bless ($self, $class); return $self; } =pod =back =cut # DESTRUCTOR sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Model DESTROY $self" if $RDF::Redland::Debug; if(!$self->{MODEL}) { warn "RDF::Redland::Model DESTROY - librdf model object gone\n" if $RDF::Redland::Debug; } else { &RDF::Redland::CORE::librdf_free_model($self->{MODEL}); } warn "RDF::Redland::Model DESTROY done\n" if $RDF::Redland::Debug; } =head1 METHODS =over =item size Return the size of the model (number of statements). =cut sub size ($) { &RDF::Redland::CORE::librdf_model_size(shift->{MODEL}); } =item sync Synchronise the model to the underlying storage. =cut sub sync ($) { &RDF::Redland::CORE::librdf_model_sync(shift->{MODEL}); } =item add SUBJECT PREDICATE OBJECT Add a new statement to the model with I, I and I. These can be RDF::Redland::Node, RDF::Redland::URI or perl URI objects. =cut sub add ($$$$) { my($self,$subject,$predicate,$object)=@_; return $self->add_statement($subject,$predicate,$object); } =item add_typed_literal_statement SUBJECT PREDICATE STRING [XML_LANGUAGE [DATATYPE]] Add a new statement to the model containing a typed literal string object I with (optional) XML language (xml:lang attribute) I and (optional) datatype URI I. I or I can either or both be set to undef. =cut sub add_typed_literal_statement ($$$$$;$$) { my($self,$subject,$predicate,$string,$xml_language,$datatype)=@_; $subject=&RDF::Redland::CORE::librdf_new_node_from_node($subject->{NODE}); $predicate=&RDF::Redland::CORE::librdf_new_node_from_node($predicate->{NODE}); $xml_language ||= ""; my $uri=$datatype ? $datatype->{URI} : undef; return &RDF::Redland::CORE::librdf_model_add_typed_literal_statement($self->{MODEL},$subject,$predicate,$string,$xml_language,$uri); } =item add_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT] Add RDF::Redland::Statement I or the statement formed by I to the model. If the optional I is given, associate it with that context. Any of I or I can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. =cut sub add_statement ($;$$$$) { my($self,@rest)=@_; my $statement=undef; if(scalar(@rest)>2) { $statement=new RDF::Redland::Statement(splice(@rest, 0, 3)); } else { $statement=shift(@rest); } my $node=shift(@rest); if($node) { my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; return &RDF::Redland::CORE::librdf_model_context_add_statement($self->{MODEL},$node,$statement->{STATEMENT}); } else { return &RDF::Redland::CORE::librdf_model_add_statement($self->{MODEL},$statement->{STATEMENT}); } } =item add_statements STREAM [CONTEXT] Add the statements from the RDF::Redland::Stream I to the model. If the optional I is given, associate it with that context. I can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. =cut sub add_statements ($$;$) { my($self,$statement_stream,$node)=@_; if($node) { my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; return &RDF::Redland::CORE::librdf_model_context_add_statements($self->{MODEL},$node,$statement_stream->{STREAM}); } else { return &RDF::Redland::CORE::librdf_model_add_statements($self->{MODEL},$statement_stream->{STREAM}); } } =item remove_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT] Remove RDF::Redland::Statement I or the statement formed by I from the model. If the optional I is given, remove only the statement stored with that context. Any of I or I can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. =cut sub remove_statement ($;$$$$) { my($self,@rest)=@_; my $statement=undef; if(scalar(@rest)>2) { $statement=new RDF::Redland::Statement(splice(@rest, 0, 3)); } else { $statement=shift(@rest); } my $node=shift(@rest); if($node) { my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; return &RDF::Redland::CORE::librdf_model_context_remove_statement($self->{MODEL},$node,$statement->{STATEMENT}); } else { return &RDF::Redland::CORE::librdf_model_remove_statement($self->{MODEL},$statement->{STATEMENT}); } } =item remove_context_statements CONTEXT Remove all RDF::Redland::Statement Is from the model with the given I context. I can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. =cut sub remove_context_statements ($$) { my($self,$node)=@_; my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; return &RDF::Redland::CORE::librdf_model_context_remove_statements($self->{MODEL},$node); } =item contains_statement STATEMENT Return non 0 if the model contains RDF::Redland::Statement I. =cut sub contains_statement ($$) { my($self,$statement)=@_; return &RDF::Redland::CORE::librdf_model_contains_statement($self->{MODEL},$statement->{STATEMENT}); } =item as_stream [CONTEXT] Return a new RDF::Redland::Stream object seralising the entire model, or just those statements with I, as RDF::Redland::Statement objects. If given, I can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. =cut sub as_stream ($;$) { my($self,$node)=@_; my $stream; if($node) { my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; $stream=&RDF::Redland::CORE::librdf_model_context_as_stream($self->{MODEL}, $node); } else { $stream=&RDF::Redland::CORE::librdf_model_as_stream($self->{MODEL}); } return new RDF::Redland::Stream($stream,$self); } # Older names sub serialise ($) { shift->as_stream; } sub serialize ($) { shift->as_stream; } =item find_statements STATEMENT [CONTEXT] Find all matching statements in the model matching partial RDF::Redland::Statement I (any of the subject, predicate, object RDF::Redland::Node can be undef). If I is given, finds statements only in that context. In an array context, returns an array of the matching RDF::Redland::Statement objects. In a scalar context, returns the RDF::Redland::Stream object representing the results. =cut sub find_statements ($$;$) { my($self,$statement,$node)=@_; my $stream; if($node) { my $class=ref($node); $node=&RDF::Redland::Node::_ensure($node); die "Cannot make a Node from an object of class $class\n" unless $node; $stream=&RDF::Redland::CORE::librdf_model_find_statements_in_context($self->{MODEL},$statement->{STATEMENT}, $node); } else { $stream=&RDF::Redland::CORE::librdf_model_find_statements($self->{MODEL},$statement->{STATEMENT}); } my $user_stream=new RDF::Redland::Stream($stream,$self); return $user_stream if !wantarray; my(@results)=(); while(!$user_stream->end) { push(@results, $user_stream->current); $user_stream->next; } $user_stream=undef; @results; } =item sources ARC TARGET Get all source RDF::Redland::Node objects for a given arc I, target I> RDF::Redland::Node objects as a list of RDF::Redland::Node objects. =cut sub sources ($$$) { my($self,$arc,$target)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_sources($self->{MODEL},$arc->{NODE},$target->{NODE}); return () if !$iterator; my $user_iterator=new RDF::Redland::Iterator($iterator,$self,$arc,$target); return () if !$user_iterator; my(@results)=(); while(!$user_iterator->end) { push(@results, $user_iterator->current); $user_iterator->next; } $user_iterator=undef; @results; } =item arcs SOURCE TARGET Get all arc RDF::Redland::Node objects for a given source I, target I RDF::Redland::Node objects as a list of RDF::Redland::Node objects. =cut sub arcs ($$$) { my($self,$source,$target)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_arcs($self->{MODEL},$source->{NODE},$target->{NODE}); return () if !$iterator; my $user_iterator=new RDF::Redland::Iterator($iterator,$self,$source,$target); return () if !$user_iterator; my(@results)=(); while(!$user_iterator->end) { push(@results, $user_iterator->current); $user_iterator->next; } $user_iterator=undef; @results; } =item targets SOURCE ARC Get all target RDF::Redland::Node objects for a given source I, arc I RDF::Redland::Node objects as a list of RDF::Redland::Node objects. =cut sub targets ($$$) { my($self,$source,$arc)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_targets($self->{MODEL},$source->{NODE},$arc->{NODE}); return () if !$iterator; my $user_iterator=new RDF::Redland::Iterator($iterator,$self,$source,$arc); return () if !$user_iterator; my(@results)=(); while(!$user_iterator->end) { push(@results, $user_iterator->current); $user_iterator->next; } $user_iterator=undef; @results; } =item sources_iterator ARC TARGET Get all source RDF::Redland::Node objects for a given arc I, target I RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. =cut sub sources_iterator ($$$) { my($self,$arc,$target)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_sources($self->{MODEL},$arc->{NODE},$target->{NODE}); my $user_iterator=new RDF::Redland::Iterator($iterator,$self,$arc,$target); $user_iterator; } =item arcs_iterator SOURCE TARGET Get all arc RDF::Redland::Node objects for a given source I, target I RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. =cut sub arcs_iterator ($$$) { my($self,$source,$target)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_arcs($self->{MODEL},$source->{NODE},$target->{NODE}); return new RDF::Redland::Iterator($iterator,$self,$source,$target); } =item targets_iterator SOURCE ARC Get all target RDF::Redland::Node objects for a given source I, arc I RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. =cut sub targets_iterator ($$$) { my($self,$source,$arc)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_targets($self->{MODEL},$source->{NODE},$arc->{NODE}); return new RDF::Redland::Iterator($iterator,$self,$source,$arc); } =item source ARC TARGET Get one source RDF::Redland::Node object that matches a given arc I, target I RDF::Redland::Node objects or undef if there is no match. =cut sub source ($$$) { my($self,$arc,$target)=@_; my $node=&RDF::Redland::CORE::librdf_model_get_source($self->{MODEL},$arc->{NODE},$target->{NODE}); return $node ? RDF::Redland::Node->_new_from_object($node,1) : undef; } =item arc SOURCE TARGET Get one arc RDF::Redland::Node object that matches a given source I, target I RDF::Redland::Node objects or undef if there is no match. =cut sub arc ($$$) { my($self,$source,$target)=@_; my $node=&RDF::Redland::CORE::librdf_model_get_arc($self->{MODEL},$source->{NODE},$target->{NODE}); return $node ? RDF::Redland::Node->_new_from_object($node,1) : undef; } =item target SOURCE ARC Get one target RDF::Redland::Node object that matches a given source I, arc I RDF::Redland::Node objects or undef if there is no match. =cut sub target ($$$) { my($self,$source,$arc)=@_; my $node=&RDF::Redland::CORE::librdf_model_get_target($self->{MODEL},$source->{NODE},$arc->{NODE}); return $node ? RDF::Redland::Node->_new_from_object($node,1) : undef; } =item contexts Get all context RDF::Redland::Node objects in the model =cut sub contexts ($) { my($self)=@_; my $iterator=&RDF::Redland::CORE::librdf_model_get_contexts($self->{MODEL}); return () if !$iterator; my $user_iterator=new RDF::Redland::Iterator($iterator,$self); return () if !$user_iterator; my(@results)=(); while(!$user_iterator->end) { push(@results, $user_iterator->current); $user_iterator->next; } $user_iterator=undef; @results; } =item feature URI [VALUE] Get/set a model feature. The feature is named via RDF::Redland::URI I and the value is a RDF::Redland::Node. If I is given, the feature is set to that value, otherwise the current value is returned. =cut sub feature ($$;$) { my($self,$uri,$value)=@_; warn "RDF::Redland::Model->feature('$uri', '$value')\n" if $RDF::Redland::Debug; $uri=RDF::Redland::URI->new($uri) unless ref $uri; return &RDF::Redland::CORE::librdf_model_set_feature($self->{MODEL},$uri->{URI},$value->{NODE}) if $value; $value=&RDF::Redland::CORE::librdf_model_get_feature($self->{MODEL},$uri->{URI}); return $value ? RDF::Redland::Node->_new_from_object($value,1) : undef; } =item query_execute QUERY Execute the I RDF::Redland::Query against the model returning a result set RDF::Redland::QueryResults or undef on failure. =cut sub query_execute ($$) { my($self,$query)=@_; my $results = &RDF::Redland::CORE::librdf_model_query_execute($self->{MODEL}, $query->{QUERY}); return $results ? RDF::Redland::QueryResults->new($results) : undef; } =item load URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI [HANDLER ]]] Load content from I into the model, guessing the parser. =cut sub load ($$;$$$$) { my($self,$uri,$name,$type,$syntax_uri,$handler)=@_; my $ruri=$uri ? $uri->{URI} : undef; my $rsyntax_uri=$syntax_uri ? $syntax_uri->{URI} : undef; if($handler) { &RDF::Redland::set_log_handler($handler); } my $rc=&RDF::Redland::CORE::librdf_model_load($self->{MODEL},$ruri, $name, $type, $rsyntax_uri); if($handler) { &RDF::Redland::reset_log_handler(); } return $rc; } =item to_string [BASE-URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI]]] Serialize the model to a syntax. If no serializer name is given, the default serializer RDF/XML is used. =cut sub to_string($;$$$$) { my($self,$uri,$name,$type,$syntax_uri)=@_; my $ruri=$uri ? $uri->{URI} : undef; my $rsyntax_uri=$syntax_uri ? $syntax_uri->{URI} : undef; return &RDF::Redland::CORE::librdf_model_to_string($self->{MODEL}, $ruri, $name, $type, $rsyntax_uri); } =pod =back =head1 OLDER METHODS =over =item serialise =item serialize Return a new RDF::Redland::Stream object seralising the model as RDF::Redland::Statement objects. Replaced by as_stream to reduce confusion with the RDF::Redland::Serializer class. =back =head1 SEE ALSO L, L and L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/RSS.pm0000644000175000017500000004772311522705745016611 00000000000000# -*- Mode: Perl -*- # # RSS.pm - Redland Perl RSS 1.0 module # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::RSS; use strict; use RDF::Redland; use vars qw(@ISA $NS_URL $DC_NS_URL); @ISA=qw(RDF::Redland::Model); $NS_URL="http://purl.org/rss/1.0/"; $DC_NS_URL="http://purl.org/dc/elements/1.1/"; =pod =head1 NAME RDF::Redland::RSS - Redland RSS 1.0 Class =head1 SYNOPSIS use RDF::Redland::RSS; ... my $rss=RDF::Redland::RSS->new_from_model($model); my $rss2=new RDF::Redland::RSS("http://example.com/test.rdf"); ... for my $channel ($rss->channels) { ... print "channel title is ",$channel->title->as_string,"\n"; # UTF-8 } my(@items)=$channel->items; # Print channel items (URI, title) for my $item (@items) { print "item ",$item->uri->as_string, " ", $item->title->as_string, "\n"; } ... print $rss->as_xhtml(width => 320, align => 'right'); =head1 DESCRIPTION A class for processing RSS 1.0 as RDF, traversing the resulting graph using RSS propertiiies and formatting the output as XHTML. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new SOURCE_URI_STRING [BASE_URI_STRING] Process RSS 1.0 at source URI I. If the I string is given then use that as the base URI rather than the source URI. =cut # Do it all here, create storage (in memory), model, parse it. sub new ($$;$) { my($proto,$source_uri_string,$base_uri_string)=@_; my $class = ref($proto) || $proto; $base_uri_string ||= $source_uri_string; my $base_uri=new RDF::Redland::URI $base_uri_string; return undef if !$base_uri; my $source_uri=new RDF::Redland::URI $source_uri_string; return undef if !$source_uri; my $storage=new RDF::Redland::Storage("hashes", "rss", "new='yes',write='yes',hash-type='memory'"); return undef if !$storage; my $self=new RDF::Redland::Model($storage, ""); return undef if !$self; my $parser=new RDF::Redland::Parser('raptor'); return undef if !$parser; $parser->parse_into_model($source_uri, $base_uri, $self); bless ($self, $class); # reconsecrate as RDF::Redland::RSS return $self; } =item new MODEL Process RSS 1.0 from content stored in RDF::Redland::Model I. =cut sub new_from_model ($$) { my($proto,$model)=@_; my $class = ref($proto) || $proto; my $self = $model; bless ($self, $class); # reconsecrate as RDF::Redland::RSS return $self; } =pod =back =cut # DESTRUCTOR sub DESTROY ($) { my $self=shift; $self->SUPER::DESTROY(); warn "RDF::Redland::RSS DESTROY\n" if $RDF::Redland::Debug; } sub _find_by_type ($$) { my($self,$type_value)=@_; my $rdf_type=RDF::Redland::Node->new_from_uri_string("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); return () if !$rdf_type; my $object=RDF::Redland::Node->new_from_uri_string($type_value); return () if !$object; my(@results)=$self->sources($rdf_type, $object); # Turn the nodes into RDF::Redland::RSS:Node-s @results=map { RDF::Redland::RSS::Node->new($self,$_) } @results; return(@results); } =head1 METHODS =over =item channels Return the RSS channels (EchannelE tags) as a list of RDF::Redland::RSS::Node objects. =cut sub channels ($) { shift->_find_by_type($NS_URL.'channel'); } =item items Return the RSS items (EitemE tags) as a list of RDF::Redland::RSS::Node objects. =cut sub items ($) { shift->_find_by_type($NS_URL.'item'); } =item image Return the RSS 1.0 image (EimageE tag) as an RDF::Redland::RSS::Node object. =cut sub image ($) { shift->_find_by_type($NS_URL.'image'); } =item textinput Return the RSS 1.0 textinput (EtextinputE tag) as an RDF::Redland::RSS::Node object. =cut sub textinput ($) { shift->_find_by_type($NS_URL.'textinput'); } =item as_xhtml (key1 => value1, key2 => value2, ...) Return a formatted XHTML string (or full XHTML document) representing the RSS 1.0 content with various options set as listed in the section below. The parameters to this method are mostly from the specification of the viewRssBox macro at http://macros.userland.com/viewRssBox =back =head1 AS_XHTML OPTIONS =over =item boxTitle A string, is the text displayed in the title of the box. It defaults to the title element of the channel. =item align A string, has three possible values, left, right or the empty string. The HTML table is either left-aligned, right-aligned or not aligned. It defaults to the empty string. =item width A number, is the width of the box, in pixels. It defaults to 125. Note that the title bar determines the minimum width of the box, if you're having trouble getting it to be narrower, try shortening boxTitle. =item frameColor A string, is the hex browser color for the frame of the box. Defaults to "#000000". =item titleBarTextColor A string, is the hex browser color for the text in the title bar of the box. Defalults to "#000000". =item titleBarColor A string, is the hex browser color for the title bar of the box. Defaults to "#ADD8E6". =item boxFillColor A string, is the hex browser color for the main part of the box. Defaults to "#FFFFFF". =item time A string, is text that's displayed as the time to the right of the box title. Defaults to "". =item hspace A number, is the number of pixels to the left and right of the box. Defaults to 0. =item vspace A number, is the number of pixels above and below the box. Defaults to 0. =item full If set to any value, returns a full XHTML document. Defaults to returning an HTML fragment. =item imageAlign A string, has two possible values, left or right. The channel image is either left-aligned or right-aligned. It defaults to right aligned. =back =cut sub as_xhtml ($%) { my($self,%opts)=@_; my $url=$opts{url}; sub format_literal ($) { my $string=shift; return 'UNDEFINED' if !$string; $string=$string->literal_value; return '' if !defined $string || !length $string; # No need for HTML::Entities here for four things $string =~ s/\&/\&/g; $string =~ s//\>/g; $string =~ s/"/\"/g; $string; } sub format_url($) { shift->as_string; } my($channel)=$self->channels; return '' unless $channel; my(@items)=$channel->items; return '' unless @items; my $boxTitle=$opts{boxTitle} || ($channel->title && format_literal($channel->title)) || ''; my $align=$opts{align} || ''; my $image_align=$opts{imageAlign} || 'right'; my $width=$opts{width} || '125'; my $frameColor=$opts{frameColor} || '#000000'; my $titleBarTextColor=$opts{titleBarTextColor} || '#000000'; my $titleBarColor=$opts{titleBarColor} || '#ADD8E6'; my $boxFillColor=$opts{boxFillColor} || '#FFFFFF'; my $time=$opts{'time'} || ''; my $hspace=$opts{hspace} || 0; my $vspace=$opts{vspace} || 0; my $full=$opts{full}; my $dc_date=RDF::Redland::Node->new_from_uri_string('http://purl.org/dc/elements/1.1/date'); if(!$time) { $time=$channel->property($dc_date); $time=$time ? format_literal($time) : ''; } my $width_opt=($width eq 'infinity' ? '' : qq{ width="$width"}); my $align_opt=$align ? qq{ align="$align"} : ''; my $time_fmt=($time eq '') ? ' ' : qq{$time}; my $channel_title_fmt=qq{$boxTitle}; my $ch_uri=$channel->uri ? format_url($channel->uri) : 'No URI'; my $ch_link=$channel->link ? format_url($channel->link) : 'No Link'; my $ch_desc=$channel->description ? $channel->description->literal_value : undef; my $ch_desc_fmt=$ch_desc ? qq{

$ch_desc

\n\n} : ''; my $output=''; $output.=<<"EOT" if $full; $boxTitle

$boxTitle

Converted from RSS 1.0 content at $ch_uri by Redland RDF::Redland::RSS module as_xhtml method

EOT $output.=<<"EOT"; EOT if($vspace >=0 || $hspace >=0) { $output.=<<"EOT"; EOT $align_opt=''; } $output.=<<"EOT"; EOT my $image=$channel->image; my $image_string=''; if($image) { my $image_title=$image->title ? format_literal($image->title) : undef; my $image_link=$image->link ? format_url($image->link) : undef; my $image_url=$image->image_url ? format_url($image->image_url) : undef; if ($image_title && $image_link && $image_url) { $image_string=qq{$image_title\n } } else { $output.=qq{ <-- image missing some fields -->\n}; } } $output.= <<"EOT"; $image_string$channel_title_fmt $ch_desc_fmt
    EOT my $dc_source=RDF::Redland::Node->new_from_uri_string('http://purl.org/dc/elements/1.1/source'); my $dc_subject=RDF::Redland::Node->new_from_uri_string('http://purl.org/dc/elements/1.1/subject'); for my $item (@items) { my $item_title=$item->title ? format_literal($item->title) : undef; my $item_link=$item->link ? format_url($item->link) : undef; my $item_desc=$item->description ? $item->description->literal_value : ''; if(my $date=$item->property($dc_date)) { $item_desc.="
    " if $item_desc; $item_desc.="".format_literal($date).""; } if(my $source=$item->property($dc_source)) { $item_desc.="
    " if $item_desc; $item_desc.="Source: ".format_literal($source).""; } if(my $subject=$item->property($dc_subject)) { $item_desc.="
    " if $item_desc; my $fmt_subject; if($subject->type eq $RDF::Redland::Node::Type_Literal) { $fmt_subject=format_literal($subject); } else { $fmt_subject=format_url($subject); $fmt_subject=qq{$fmt_subject}; } $item_desc.="Subject: $fmt_subject"; } if($item_link && $item_title) { $output.=qq{
  • $item_title}; $output.=": $item_desc" if $item_desc; $output.=qq{
  • \n}; } else { $output.=qq{ <-- item missing some fields -->\n}; } } $output.=qq{
\n\n}; my $textinput=$channel->textinput; if($textinput) { my $t_uri=$textinput->uri; my $t_title=$textinput->title; my $t_link=$textinput->link; my $t_desc=$textinput->description; my $t_name=$textinput->name; if($t_uri && $t_title && $t_link && $t_desc && $t_name) { my $t_uri_string=format_url($t_uri); my $t_name_string=format_literal($t_name); my $t_desc_string=$t_desc ? $t_desc->literal_value : ''; my $t_title_string=format_literal($t_title); $output.= <<"EOT";
$t_title_string
$t_desc_string EOT } else { $output .= qq{ \n}; } } $output.=<<"EOT";
 
 
  $time_fmt
EOT if($vspace >=0 || $hspace >=0) { $output.=<<"EOT";     EOT } $output.=<<"EOT" if $full; EOT $output; } package RDF::Redland::RSS::Node; use RDF::Redland::Node; use vars qw(@ISA); @ISA=qw(RDF::Redland::Node); =head1 NAME RDF::Redland::RSS::Node - Redland RSS 1.0 Node Class =head1 DESCRIPTION Class representing concepts in an RSS 1.0 RDF graph. =cut ###################################################################### =pod =head1 CONSTRUCTORS No public constructors. Nodes are created either by methods of this class or RDF::Redland::RSS. =cut sub new ($$$) { my($proto,$model,$node)=@_; my $class = ref($proto) || $proto; return undef if !$model || !$node; warn "RDF::Redland::RSS::Node::new in model $model with node $node\n" if $RDF::Redland::Debug; my $self=$node; $self->{MODEL}=$model; bless ($self, $class); # reconsecrate as RDF::Redland::RSS::Node return $self; } sub DESTROY ($) { my $self=shift; $self->SUPER::DESTROY(); warn "RDF::Redland::RSS::Node DESTROY\n" if $RDF::Redland::Debug; } sub _find_targets_by_predicate ($$) { my($self,$uri_string)=@_; warn "RDF::Redland::RSS::_find_targets_by_predicate from $self with predicate $uri_string\n" if $RDF::Redland::Debug; my $predicate=RDF::Redland::Node->new_from_uri_string($uri_string); return () if !$predicate; my(@targets)=$self->{MODEL}->targets($self,$predicate); warn "RDF::Redland::RSS::_find_targets_by_predicate returned ",scalar @targets, " results\n" if $RDF::Redland::Debug; # Convert list of RDF::Redland::Node-s into list of RDF::Redland::RSS::Node-s return map { RDF::Redland::RSS::Node->new($self->{MODEL}, $_) } @targets; } =head1 METHODS =over =item title Get the RSS titles for channel, image, item or textinput. Returns either a list or first one found depending on calling context. =cut # Convienience accessors # for all (channel, image, item, textinput) resources sub title ($) { my(@r)=shift->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'title'); return wantarray ? @r : $r[0]; } =item link Get the RSS link for channel, image, item or textinput. Returns either a list or first one found depending on calling context. =cut sub link ($) { my(@r)=shift->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'link'); return wantarray ? @r : $r[0]; } =item description Get the Dublin Core description element or RSS description for channel, item or textinput. Returns either a list or first one found depending on calling context. =cut # for channel, item, textinput resources sub description ($) { my $node=shift; my(@r); @r=$node->_find_targets_by_predicate($RDF::Redland::RSS::DC_NS_URL.'description'); return (wantarray ? @r : $r[0]) if @r; @r=$node->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'description'); return wantarray ? @r : $r[0]; } =item image_url Get the RSS image URL string for an image. Returns either a list or first one found depending on calling context. =cut # for image resources sub image_url ($) { my(@r)=shift->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'url'); return wantarray ? @r : $r[0]; } =item name Get the RSS name for a textinput. Returns either a list or first one found depending on calling context. =cut # for textinput resources sub name ($) { my(@r)=shift->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'name'); return wantarray ? @r : $r[0]; } # ------------------------- # Methods for channels only =item items Get the RSS items in a channel as a list of RDF::Redland::RSS::Node objects. =cut # always returns a list of nodes sub items ($) { my $self=shift; my $items_predicate=RDF::Redland::Node->new_from_uri_string($RDF::Redland::RSS::NS_URL.'items'); return () if !$items_predicate; # Get 1st resource inside - i.e. the 1st rdf:Seq my $seq_resource=$self->{MODEL}->target($self, $items_predicate); return () if !$seq_resource; $seq_resource=RDF::Redland::RSS::Node->new($self->{MODEL}, $seq_resource); # Find all rdf:_ properties from my(@resources); for my $prop ($seq_resource->properties) { if($prop->uri->as_string =~ m%^http://www.w3.org/1999/02/22-rdf-syntax-ns#_(\d+)$%) { push(@resources, [$1, $seq_resource->{MODEL}->target($seq_resource, $prop)] ); } } # In order - sort them by ordinal, convert to RDF::Redland::RSS::Node objects # and return return map {RDF::Redland::RSS::Node->new($self->{MODEL}, $_->[1])} sort {$a->[0] <=> $b->[0]} @resources; } =item image Get the image of a channel as an RDF::Redland::RSS::Node object or undef if not present. =cut # for channel (0 or 1 allowed) sub image ($) { my $self=shift; my($image)=$self->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'image'); return undef if !$image; return RDF::Redland::RSS::Node->new($self->{MODEL}, $image); } =item textinput Get the textinput of a channel as an RDF::Redland::RSS::Node object or undef if not present. =cut # for channel (0 or 1 allowed) sub textinput ($) { my $self=shift; my($textinput)=$self->_find_targets_by_predicate($RDF::Redland::RSS::NS_URL.'textinput'); return undef if !$textinput; return RDF::Redland::RSS::Node->new($self->{MODEL}, $textinput); } =item property PROPERTY Get the value of the named property off an RDF::Redland::RSS::Node where I is an RDF::Redland::Node or RDF::Redland::RSS::Node. Returns a list of RDF::Redland::RSS::Node objects or first one found depending on calling context. =cut # general property sub property ($$) { my($self,$property)=@_; if(wantarray) { my(@targets)=$self->{MODEL}->targets($self,$property); # Convert list of RDF::Redland::Node-s into list of RDF::Redland::RSS:Node-s return map { RDF::Redland::RSS::Node->new($self->{MODEL}, $_) } @targets; } else { my $target=$self->{MODEL}->target($self,$property); return RDF::Redland::RSS::Node->new($self->{MODEL}, $target); } } =item properties Get all properties off the RDF::Redland::RSS::Node. Returns a list of RDF::Redland::RSS::Node objects. =cut sub properties ($) { my($self)=@_; my $statement=new RDF::Redland::Statement($self, undef, undef); my(@arcs_out_statements)=$self->{MODEL}->find_statements($statement); # Convert list of RDF::Redland::Statement-s into a list of # RDF::Redland::RSS:Node-s predicates. return map { new RDF::Redland::RSS::Node($self->{MODEL}, $_->predicate) } @arcs_out_statements; } =item properties_with_ns_prefix NS_PREFIX Get all unique properties of the RDF::Redland::RSS::Node which have namespace URI prefix I. Returns a list of the properties as RDF::Redland::RSS::Node objects. =cut sub properties_with_ns_prefix ($$) { my($self,$ns_prefix)=@_; my(@arcs); my(%arcs_uris_seen); for my $arc ($self->properties) { my $uri=$arc->uri->as_string; next unless $uri =~ m%^$ns_prefix(.*)$% && !$arcs_uris_seen{$uri}; push(@arcs, $arc); $arcs_uris_seen{$uri}=1; } @arcs; } =pod =back =head1 SEE ALSO L and RSS 1.0 web pages at http://purl.org/rss/1.0/ =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/BlankNode.pm0000644000175000017500000000311411522705745017761 00000000000000# -*- Mode: Perl -*- # # BlankNode.pm - Redland Perl RDF Blank Node module # # Copyright (C) 2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::BlankNode; use strict; use vars qw(@ISA); @ISA='RDF::Redland::Node'; =pod =head1 NAME RDF::Redland::BlankNode - Redland RDF Blank Node Class =head1 SYNOPSIS use RDF::Redland; my $node1=new RDF::Redland::BlankNode("id"); =head1 DESCRIPTION This class represents a blank nodes in the RDF graph. See L for the methods on this object. =cut ###################################################################### =pod =head1 CONSTRUCTOR =over =item new IDENTIFIER Create a new blank node with identifier I. =cut # CONSTRUCTOR sub new ($$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; return RDF::Redland::Node->new_from_blank_identifier($arg); } =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/URI.pm0000644000175000017500000000723411561664720016572 00000000000000# -*- Mode: Perl -*- # # URI.pm - Redland Perl RDF URI module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::URI; use strict; use Encode; =pod =head1 NAME RDF::Redland::URI - Redland RDF URI Class =head1 SYNOPSIS use RDF::Redland; my $uri=new RDF::Redland::URI("http://example.com/"); my $uri2=RDF::Redland::URI->new_from_uri($uri); print $uri2->as_string,"\n"; =head1 DESCRIPTION Represents a URI as a mostly-opaque object for identifying things in the RDF world. The URIs are also used for identifying features for the RDF::Redland::Parser and RDF::Redland::Serializer classes. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new STRING Create a new RDF::Redland::URI object from a URI string. =cut sub new ($$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; if(my $arg_class=ref($arg)) { if(UNIVERSAL::isa($arg, 'RDF::Redland::URI')) { return $arg->clone; } elsif (UNIVERSAL::isa($arg, 'URI::URL')) { $arg=$arg->as_string; } else { die "RDF::Redland::URI::new - Cannot make a URI from an object of class $arg_class\n"; } } $self->{URI}=&RDF::Redland::CORE::librdf_new_uri($RDF::Redland::World->{WORLD},$arg); return undef if !$self->{URI}; bless ($self, $class); return $self; } =item clone URI Copy a RDF::Redland::URI =cut sub clone ($) { my($uri)=@_; my $class = ref($uri); my $self = {}; if(!$class || $class ne 'RDF::Redland::URI') { die "RDF::Redland::URI::clone - Cannot copy a URI object not of class RDF::Redland::URI\n"; } $self->{URI}=&RDF::Redland::CORE::librdf_new_uri_from_uri($uri->{URI}); return undef if !$self->{URI}; bless ($self, $class); return $self; } sub new_from_uri ($$) { my($proto,$uri)=@_; return $uri->clone; } sub _new_from_object ($$) { my($proto,$object)=@_; my $class = ref($proto) || $proto; my $self = {}; warn "RDF::Redland::URI->_new_from_object from object $object\n" if $RDF::Redland::Debug; $self->{URI}=$object; $self->{DONT_FREE_ME}=1; bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { my $self=shift; warn "RDF::Redland::URI DESTROY\n" if $RDF::Redland::Debug; if($self->{URI}) { if(!$self->{DONT_FREE_ME}) { &RDF::Redland::CORE::librdf_free_uri($self->{URI}); } } } =head1 METHODS =over =item as_string Return the statement formatted as a string (UTF-8 encoded). =cut sub as_string ($) { return decode_utf8(&RDF::Redland::CORE::librdf_uri_to_string(shift->{URI})); } =item equals URI Return non zero if this uri is equal to URI =cut sub equals ($$) { my($self,$uri)=@_; &RDF::Redland::CORE::librdf_uri_equals($self->{URI}, $uri->{URI}); } =pod =back =head1 OLD METHODS =over =item new_from_uri URI Create a new RDF::Redland::URI object from RDF::Redland::URI I (copy constructor). Instead use: $u=$uri->clone =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Iterator.pm0000644000175000017500000000702411522705745017721 00000000000000# -*- Mode: Perl -*- # # Iterator.pm - Redland Perl RDF Iterator module # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Iterator; use strict; =pod =head1 NAME RDF::Redland::Iterator - Redland RDF Iterator Class =head1 SYNOPSIS use RDF::Redland; ... my $iterator=$model->targets_iterator($source_node, $arc_node); while($iterator && !$iterator->end) { my $node=$iterator->current; ... $iterator->next; } =head1 DESCRIPTION This class is used to return lists of RDF::Redland::Node objects from a method that returns an RDF::Redland::Iterator - commonly one of the get_sources_iterator, get_targets_iterator or get_arcs_iterator methods of the RDF::Redland::Model class. This allows efficient retrieval of long lists of RDF::Redland::Node objects but isn't really very Perl-friendly. The get_sources, get_targets or get_arcs methods of RDF::Redland::Model class return Perl lists and the get_source, get_target and get_arc methods return single arbitrary results. =cut ###################################################################### =pod =head1 CONSTRUCTORS No public constructors - are created and returned from various methods of classes including RDF::Redland::Model =cut # CONSTRUCTOR # (main) sub new ($$@) { my($proto,$object,@creators)=@_; return undef if !$object; warn "RDF::Redland::Iterator->new($object,@creators)\n" if $RDF::Redland::Debug; my $class = ref($proto) || $proto; my $self = {}; $self->{ITERATOR}=$object; # Keep around a reference to the objects that we use # so that perl does not destroy them while we are using them $self->{CREATORS}=[@creators]; bless ($self, $class); return $self; } # DESTRUCTOR sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Iterator DESTROY\n" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_iterator($self->{ITERATOR}); $self->{CREATORS}=undef; } =head1 METHODS =over =item end Return non 0 if the iterator has finished =cut sub end ($) { &RDF::Redland::CORE::librdf_iterator_end(shift->{ITERATOR}); } =item current Returns the current RDF::Redland::Node object from the iteration or undef if the iteration is finished. =cut sub current ($) { my $object=&RDF::Redland::CORE::librdf_iterator_get_object(shift->{ITERATOR}); RDF::Redland::Node->_new_from_object($object); } =item next Moves the iterator to the next item, returns undef if the iteration is finished. =cut sub next ($) { return &RDF::Redland::CORE::librdf_iterator_next(shift->{ITERATOR}); } =item context Returns the context RDF::Redland::Node object from the iteration or undef if the iteration is finished. =cut sub context ($) { my $object=&RDF::Redland::CORE::librdf_iterator_get_context(shift->{ITERATOR}); RDF::Redland::Node->_new_from_object($object); } =pod =back =head1 SEE ALSO L and L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Query.pm0000644000175000017500000000642511522705745017241 00000000000000# -*- Mode: Perl -*- # # Query.pm - Redland Perl RDF Query module # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Query; use strict; use RDF::Redland::Stream; =pod =head1 NAME RDF::Redland::Query - Redland RDF Syntax Query Class =head1 SYNOPSIS use RDF::Redland; ... my $query=new RDF::Redland::Query($query_string); # default query language my $results=$query->execute($model); # or my $results=$model->query_execute($query); while(!$results->finished) { for (my $i=0; $i < $results->bindings_count(); $i++) { my $name=$results->binding_name($i); my $value=$results->binding_value($i); # ... do something with the results } $results->next_result; } =head1 DESCRIPTION This class represents queries of various syntaxes over an RDF::Redland::Model returning a sequence of results that (currently) bind variable names to RDF::Redland::Node values. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new QUERY-STRING [BASE-URI [QUERY-LANG-URI [QUERY-LANG]]] Create a new RDF::Redland::Query object for a query string I with optional base URI I IN QUERY language I or query language URI I (both can be undef). If I is omitted, the current directory is used as the base URI. If I is undef, the default query language "rdql" is used. If I is omitted, no base URI is used. =cut # CONSTRUCTOR # (main) sub new ($;$$$$) { my($proto,$query_string,$base_uri,$uri,$language)=@_; my $class = ref($proto) || $proto; my $self = {}; my $redbaseuri = undef; my $reduri = undef; $language ||= "rdql"; if(defined $base_uri) { $redbaseuri=$base_uri->{URI}; } if(defined $uri) { $reduri=$uri->{URI}; } $self->{QUERY}=&RDF::Redland::CORE::librdf_new_query($RDF::Redland::World->{WORLD},$language,$reduri,$query_string,$redbaseuri); return undef if !$self->{QUERY}; bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { warn "RDF::Redland::Query DESTROY\n" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_query(shift->{QUERY}); } =head1 METHODS =over =item execute MODEL Run the query against model I returning a RDF::Redland::QueryResults object or undef on failure. =cut sub execute ($$) { my($self,$model)=@_; my $results = &RDF::Redland::CORE::librdf_query_execute($self->{QUERY},$model->{MODEL}); return $results ? RDF::Redland::QueryResults->new($results) : undef; } =pod =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/XMLLiteralNode.pm0000644000175000017500000000316511522705745020715 00000000000000# -*- Mode: Perl -*- # # XMLLiteralNode.pm - Redland Perl RDF URI Node module # # Copyright (C) 2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::XMLLiteralNode; use strict; use vars qw(@ISA); @ISA='RDF::Redland::Node'; =pod =head1 NAME RDF::Redland::XMLLiteralNode - Redland RDF URI Node Class =head1 SYNOPSIS use RDF::Redland; my $node1=new RDF::Redland::XMLLiteralNode("content"); =head1 DESCRIPTION This class represents RDF Typed Literals for XML in the RDF graph. See L for the methods on this object. =cut ###################################################################### =pod =head1 CONSTRUCTOR =over =item new STRING Create a new XML datatyped literal node for the XML in I. =cut # CONSTRUCTOR sub new ($$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; return RDF::Redland::Node->new_xml_literal($arg); } =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Makefile.am0000644000175000017500000000035510406177663017630 00000000000000EXTRA_DIST=Iterator.pm Model.pm Node.pm Parser.pm Query.pm \ QueryResults.pm Statement.pm Storage.pm Serializer.pm Stream.pm \ URI.pm RSS.pm CORE.pm \ BlankNode.pm URINode.pm LiteralNode.pm XMLLiteralNode.pm MAINTAINERCLEANFILES=CORE.pm redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Makefile.in0000644000175000017500000002730712063416535017642 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = perl/lib/RDF/Redland DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = Iterator.pm Model.pm Node.pm Parser.pm Query.pm \ QueryResults.pm Statement.pm Storage.pm Serializer.pm Stream.pm \ URI.pm RSS.pm CORE.pm \ BlankNode.pm URINode.pm LiteralNode.pm XMLLiteralNode.pm MAINTAINERCLEANFILES = CORE.pm all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/lib/RDF/Redland/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu perl/lib/RDF/Redland/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Storage.pm0000644000175000017500000001352711522705745017541 00000000000000# -*- Mode: Perl -*- # # Storage.pm - Redland Perl RDF Storage module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Storage; use strict; =pod =head1 NAME RDF::Redland::Storage - Redland RDF Storage Class =head1 SYNOPSIS use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); ... =head1 DESCRIPTION Create objects for storing RDF::Redland::Model objects either persistently or in memory. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new STORAGE_NAME [NAME [OPTIONS_STRING]] Create a new RDF::Redland::Storage object for the storage factory named I with storage named I and storage options I which are specific to the storage factory type. The storage options may be given either as a Perl hash or as a string. The string form are formatted in the form key1='value1',key2='value2' and the single quotes are required. The Perl hash form follows normal Perl conventions, and the boolean options use normal Perl concepts of truth. Currently defined storage options: =over =item new='yes' Create a new storage erasing any existing one (boolean, default). =item write='yes' Provide write access to store (boolean, default) otherwise is read only. =item dir='DIR' Work in DIR directory when creating files. =item mode='MODE' File creation mode, default is (octal) 0644 Takes decimal (123), hex (0x123) or octal (0123). =item contexts='yes' Enable statement contexts. Each statement can be stored with an optional context Node and the context retrieved after queries. Boolean. =item hash-type='TYPE' (I storage only) Use the TYPE hash-type for I storage. Current defined types are 'memory' and 'bdb' but is dependent on the hash factories available. =item index-predicates='yes' (I storage only) Enable indexing from predicates to (subject,object) which can in particular be useful for rdf:type relations. Boolean. =item bulk='no' (I storage only) Whether model/storage method add_statements should be optimized, until a model/storage sync operation. Boolean. =item merge='no' (I storage only) Whether to maintain a table with merged models. Boolean. =back Example, string form: $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='bdb',dir='.'"); Example, Perl hash form: $storage=new RDF::Redland::Storage("hashes", "test", {new=>1,hash-type=>'bdb',dir=>'.'}); Creates a new storage of the I type (indexed hashes) named I (these will be file names or URIs if the storage is persistent) and with options I so a new storage is created with BerkeleyDB (BDB) key:value hashes i.e. persistent and in the current directory. Example, Perl hash form: $storage=new RDF::Redland::Storage("mysql", "test", {host=>'localhost',database=>'testdb',user=>'testuser',new=>0,password=>'',contexts=>1}); Uses an existing storage of the I type, named I on localhost with database name I using a user I and no password. Contexts are enabled. =cut sub new ($$;$$) { my($proto,$storage_name,$name,$options)=@_; my $class = ref($proto) || $proto; my $self = {}; my $options_string = $options; # Default to use the string as is. if (ref($options) eq 'HASH') { # Build the string from a key=>value hash my %booleans = (new=>1,bulk=>1,merge=>1,write=>1,contexts=>1,'index-predicates'=>1); $options_string = ''; while (my ($key, $value) = each(%{$options})) { if (defined($value)) { if (length($options_string) > 0) { $options_string .= ','; } if ($booleans{$key}) { $options_string .= "$key='". (($value) ? 'yes':'no') ."'"; } else { $options_string .= "$key='$value'"; } } } } warn qq{RDF::Redland::Storage->new("$storage_name", "$name", "$options_string")\n} if $RDF::Redland::Debug; $self->{STORAGE}=&RDF::Redland::CORE::librdf_new_storage($RDF::Redland::World->{WORLD},$storage_name,$name,$options_string); return undef if !$self->{STORAGE}; bless ($self, $class); return $self; } =item new_from_storage STORAGE Create a new RDF::Redland::Storage object from RDF::Redland::Storage I (copy constructor). The new storage may have a new name chosen by the storage factory. =cut sub new_from_storage ($$$) { my($proto,$storage)=@_; my $class = ref($proto) || $proto; my $self = {}; $self->{STORAGE}=&RDF::Redland::CORE::librdf_new_storage_from_storage($storage->{STORAGE}); return undef if !$self->{STORAGE}; bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Storage DESTROY $self" if $RDF::Redland::Debug; if(!$self->{STORAGE}) { warn "RDF::Redland::Storage DESTROY - librdf storage object gone\n" if $RDF::Redland::Debug; } else { &RDF::Redland::CORE::librdf_free_storage($self->{STORAGE}); } warn "RDF::Redland::Storage DESTROY done\n" if $RDF::Redland::Debug; } =pod =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/URINode.pm0000644000175000017500000000315411522705745017375 00000000000000# -*- Mode: Perl -*- # # URINode.pm - Redland Perl RDF URI Node module # # Copyright (C) 2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::URINode; use strict; use vars qw(@ISA); @ISA='RDF::Redland::Node'; =pod =head1 NAME RDF::Redland::URINode - Redland RDF URI Node Class =head1 SYNOPSIS use RDF::Redland; my $node1=new RDF::Redland::URINode("http://example.org/"); =head1 DESCRIPTION This class represents URIs in the RDF graph. See L for the methods on this object. =cut ###################################################################### =pod =head1 CONSTRUCTOR =over =item new URI Create a new URI node. I can be either a RDF::Redland::URI object, a perl URI class or a literal string. =cut # CONSTRUCTOR sub new ($$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; return RDF::Redland::Node->new_from_uri($arg); } =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/LiteralNode.pm0000644000175000017500000000361211522705745020331 00000000000000# -*- Mode: Perl -*- # # LiteralNode.pm - Redland Perl RDF Literal Node module # # Copyright (C) 2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::LiteralNode; use strict; use vars qw(@ISA); @ISA='RDF::Redland::Node'; =pod =head1 NAME RDF::Redland::LiteralNode - Redland RDF Literal Node Class =head1 SYNOPSIS use RDF::Redland; my $node1=new RDF::Redland::LiteralNode("Hello, World!"); my $node2=new RDF::Redland::LiteralNode("Bonjour monde!", undef, "fr"); =head1 DESCRIPTION This class represents RDF literal and Typed Literals in the RDF graph. See L for the methods on this object. =cut ###################################################################### =pod =head1 CONSTRUCTOR =over =item new STRING [DATATYPE [XML_LANGUAGE]] Create a new literal node for a literal value I. Optional datatype URI I (RDF::Redland::URI, perl URI or string) and language (xml:lang attribute) I may also be given. =cut # CONSTRUCTOR sub new ($$;$$) { my($proto,$arg,$datatype,$xml_language)=@_; my $class = ref($proto) || $proto; my $self = {}; return RDF::Redland::Node->new_literal($arg,$datatype,$xml_language); } =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Statement.pm0000644000175000017500000001621211522705745020073 00000000000000# -*- Mode: Perl -*- # # Statement.pm - Redland Perl RDF Statement module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Statement; use strict; use RDF::Redland::Node; =pod =head1 NAME RDF::Redland::Statement - Redland RDF Statement Class =head1 SYNOPSIS use RDF::Redland; my $statement1=new RDF::Redland::Statement($statement); my $statement2=new RDF::Redland::Statement($subject,$predicate,$object); ... if($statement->subject->equals($node)) { ... } =head1 DESCRIPTION Manipulate RDF statements which comprise three RDF::Redland::Node objects. Also used for I statements which can have empty parts and are used for matching statements in statement queries of the model - see the L. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new NODE NODE NODE|STATEMENT Create a new statement from nodes or copy an existing statement. If three Is are given, make a new statement from them. Each Node can be a Redland::RDF:Node, a Redland::RDF::URI, a perl URI or a string literal. Otherwise I must be an existing statement to copy. =cut sub new ($;$$$) { my($proto,@args)=@_; my $class = ref($proto) || $proto; my $self = {}; if(scalar(@args)==3) { for (@args) { next if !defined $_; if(my $class=ref $_) { $_=&RDF::Redland::Node::_ensure($_); die "Cannot make a Node from an object of class $class\n" unless $_; } else { $_=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$_); } } # end for args $self->{STATEMENT}=&RDF::Redland::CORE::librdf_new_statement_from_nodes($RDF::Redland::World->{WORLD}, @args); } elsif (scalar(@args) == 1) { my $s=$args[0]; if(!ref($s) || ref($s) ne 'RDF::Redland::Statement') { die "RDF::Redland::Statement::new - Cannot copy a statement object not of class RDF::Redland::Statement\n"; } $self->{STATEMENT}=&RDF::Redland::CORE::librdf_new_statement_from_statement($RDF::Redland::World->{WORLD}, $s->{STATEMENT}); } elsif (scalar(@args) == 0) { $self->{STATEMENT}=&RDF::Redland::CORE::librdf_new_statement($RDF::Redland::World->{WORLD}); } else { die "RDF::Redland::Statement::new - bad arguments. Either give one argument to copy a statement or three to build from nodes.\n"; } return undef if !$self->{STATEMENT}; bless ($self, $class); return $self; } =item clone Copy a RDF::Redland::Statement. =cut sub clone ($$) { my($statement)=@_; my $class = ref($statement); my $self = {}; if(!$class || $class ne 'RDF::Redland::Statement') { die "RDF::Redland::Statement::clone - Cannot copy a statement object not of class RDF::Redland::Statement\n"; } $self->{STATEMENT}=&RDF::Redland::CORE::librdf_new_statement_from_statement($statement->{STATEMENT}); return undef if !$self->{STATEMENT}; bless ($self, $class); return $self; } sub new_from_statement ($$) { my($proto,$statement)=@_; return $statement->clone; } sub new_from_nodes ($$$$) { my($proto,$s,$p,$o)=@_; return RDF::Redland::Statement->new($s,$p,$o); } # internal constructor to build a new object from a statement created # by librdf e.g. from the result of a stream->next operation # It always makes a new Redland Statement sub _new_from_object ($$) { my($proto,$object)=@_; return undef if !$object; my $class = ref($proto) || $proto; my $self = {}; $self->{STATEMENT}=&RDF::Redland::CORE::librdf_new_statement_from_statement($object); bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Statement DESTROY $self\n" if $RDF::Redland::Debug; if($self->{STATEMENT}) { &RDF::Redland::CORE::librdf_free_statement($self->{STATEMENT}); } warn "RDF::Redland::Statement DESTROY done\n" if $RDF::Redland::Debug; } =head1 METHODS =over =item subject [SUBJECT] Get/set the statement subject. When a RDF::Redland::Node I is given, sets the subject of the statement, otherwise returns a reference to the statement RDF::Redland::Node subject. =cut sub subject ($;$) { my($self,$subject)=@_; return RDF::Redland::Node->_new_from_object(&RDF::Redland::CORE::librdf_statement_get_subject(shift->{STATEMENT})) unless $subject; my $s=&RDF::Redland::CORE::librdf_new_node_from_node($subject->{NODE}); return &RDF::Redland::CORE::librdf_statement_set_subject($self->{STATEMENT},$s); } =item predicate [PREDICATE] Get/set the statement predicate. When RDF::Redland::Node I is given, sets the predicate of the statement, otherwise returns a reference to the statement RDF::Redland::Node predicate. =cut sub predicate ($;$) { my($self,$predicate)=@_; return RDF::Redland::Node->_new_from_object(&RDF::Redland::CORE::librdf_statement_get_predicate(shift->{STATEMENT})) unless $predicate; my $p=&RDF::Redland::CORE::librdf_new_node_from_node($predicate->{NODE}); return &RDF::Redland::CORE::librdf_statement_set_predicate($self->{STATEMENT},$p); } =item object [OBJECT] Get/set the statement object. When RDF::Redland::Node I is given, sets the object of the statement, otherwise returns a reference to the statement RDF::Redland::Node object. =cut sub object ($;$) { my($self,$object)=@_; return RDF::Redland::Node->_new_from_object(&RDF::Redland::CORE::librdf_statement_get_object(shift->{STATEMENT})) unless $object; my $o=&RDF::Redland::CORE::librdf_new_node_from_node($object->{NODE}); return &RDF::Redland::CORE::librdf_statement_set_object($self->{STATEMENT},$o); } =item as_string Return the statement formatted as a string (UTF-8 encoded). =cut sub as_string ($) { &RDF::Redland::CORE::librdf_statement_to_string(shift->{STATEMENT}); } =item equals STATEMENT Return non zero if this statement is equal to STATEMENT =cut sub equals ($$) { my($self,$statement)=@_; &RDF::Redland::CORE::librdf_statement_equals($self->{STATEMENT}, $statement->{STATEMENT}); } =pod =back =head1 OLD METHODS =over =item new_from_nodes SUBJECT PREDICATE OBJECT Create a new RDF::Redland::Statement with the given RDF::Redland::Node objects as parts (or undef when empty for a I statement). Use instead: $a=new RDF::Redland::Statement($subject, $predicate, $object); =item new_from_statement STATEMENT Create a new RDF::Redland::Statement object from RDF::Redland::Statement I (copy constructor). Use instead: $s=$old_statement->clone; =cut =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Stream.pm0000644000175000017500000000645711522705745017374 00000000000000# -*- Mode: Perl -*- # # Stream.pm - Redland Perl RDF Stream module # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Stream; use strict; use RDF::Redland::Statement; =pod =head1 NAME RDF::Redland::Stream - Redland RDF Stream of RDF::Redland::Statement objects Class =head1 SYNOPSIS use RDF::Redland; ... my $stream=$model->serialise; while($stream && !$stream->end) { my $statement=$stream->current; ... $stream->next; } =head1 DESCRIPTION Represents a sequence of RDF::Redland::Statement objects passed between various Redland objects. =cut ###################################################################### =pod =head1 CONSTRUCTORS No public constructors - are created and returned from various methods of classes including RDF::Redland::Model and RDF::Redland::Parser =cut sub new ($$$) { my($proto,$object,$creator)=@_; my $class = ref($proto) || $proto; my $self = {}; $self->{STREAM}=$object; # Keep around a reference to the object that created the stream so # that perl destroys us before it. $self->{CREATOR}=$creator; bless ($self, $class); return $self; } # DESTRUCTOR sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Stream DESTROY $self" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_stream($self->{STREAM}) if($self->{STREAM}); $self->{CREATOR}=undef; warn "RDF::Redland::Stream DESTROY done\n" if $RDF::Redland::Debug; } =head1 METHODS =over =item end Returns non 0 if the stream is finished. =cut sub end ($) { my $self=shift; return 1 if !$self->{STREAM}; &RDF::Redland::CORE::librdf_stream_end($self->{STREAM}); } =item current Returns the current RDF::Redland::Statement object in the stream or undef if the stream is finished. =cut sub current ($) { my $self=shift; return undef if !$self->{STREAM}; my $statement=&RDF::Redland::CORE::librdf_stream_get_object($self->{STREAM}); RDF::Redland::Statement->_new_from_object($statement); } =pod =item next Moves to the next RDF::Redland::Statement object in the stream. Returns non-zero if the stream is finished. =cut sub next ($) { my $self=shift; return 1 if !$self->{STREAM}; return &RDF::Redland::CORE::librdf_stream_next($self->{STREAM}); } =item context Returns the context RDF::Redland::Node object in the stream or undef if the stream is finished. =cut sub context ($) { my $self=shift; return undef if !$self->{STREAM}; my $object=&RDF::Redland::CORE::librdf_stream_get_context($self->{STREAM}); RDF::Redland::Node->_new_from_object($object); } =pod =back =head1 SEE ALSO L and L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/QueryResults.pm0000644000175000017500000001704611522705745020624 00000000000000# -*- Mode: Perl -*- # # QueryResults.pm - Redland Perl RDF Query Results module # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::QueryResults; use RDF::Redland::Stream; use strict; =pod =head1 NAME RDF::Redland::QueryResults - Redland RDF Syntax Query Results Class =head1 SYNOPSIS use RDF::Redland; ... my $query=new RDF::Redland::Query("query string", undef, undef, "sparql"); my $results=$model->query_execute($query); # or my $results=$query->execute($model); while(!$results->finished) { for (my $i=0; $i < $results->bindings_count(); $i++) { my $name=$results->binding_name($i); my $value=$results->binding_value($i); # ... do something with the results } $results->next_result; } The $results in the example is an object of class RDF::Redland::QueryResults. =head1 DESCRIPTION This class represents queries of various syntaxes over an RDF::Redland::Model returning a sequence of results that bind variable names to RDF::Redland::Node values. =cut ###################################################################### =pod =head1 CONSTRUCTOR There are no public constructors. =cut # CONSTRUCTOR sub new ($$) { my($proto,$object)=@_; my $class = ref($proto) || $proto; my $self = {}; $self->{QUERYRESULTS}=$object; bless ($self, $class); return $self; } # DESTRUCTOR sub DESTROY ($) { warn "RDF::Redland::QueryResults DESTROY\n" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_query_results(shift->{QUERYRESULTS}); } =head1 METHODS =over =item count Return the number of current results from the query. =cut sub count ($) { my($self)=@_; return &RDF::Redland::CORE::librdf_query_results_get_count($self->{QUERYRESULTS}); } =item finished Return non-0 if the results have been exhausted. =cut sub finished ($) { my($self)=@_; return &RDF::Redland::CORE::librdf_query_results_finished($self->{QUERYRESULTS}); } =item binding_name INDEX Get the name of variable binding I in the array of variable names. =cut sub binding_name ($$) { my($self,$index)=@_; return &RDF::Redland::CORE::librdf_query_results_get_binding_name($self->{QUERYRESULTS},$index); } =item binding_names Get the names all of the variable bindings as an array. =cut sub binding_names ($) { my($self)=shift; my(@names); my $count=&RDF::Redland::CORE::librdf_query_results_get_bindings_count($self->{QUERYRESULTS}); for (my $i=0; $i < $count; $i++) { push(@names, $self->binding_name($i)); } return @names; } =item binding_value INDEX Get the value of the variable binding I in the current query result. =cut sub binding_value ($$) { my($self,$index)=@_; my $node=&RDF::Redland::CORE::librdf_query_results_get_binding_value($self->{QUERYRESULTS},$index); RDF::Redland::Node->_new_from_object($node); } =item binding_values Get the values of all of the variable bindings in the current query result. =cut sub binding_values ($) { my($self)=shift; my(@values); my $count=&RDF::Redland::CORE::librdf_query_results_get_bindings_count($self->{QUERYRESULTS}); for (my $i=0; $i < $count; $i++) { push(@values, $self->binding_value($i)); } return @values; } =item binding_value_by_name NAME Get the value of the variable binding I in the current query result. =cut sub binding_value_by_name ($$) { my($self,$name)=@_; my $node=&RDF::Redland::CORE::librdf_query_results_get_binding_value_by_name($self->{QUERYRESULTS},$name); RDF::Redland::Node->_new_from_object($node); } =item bindings Get the variable names and values of the current query result as a hash =cut sub bindings ($) { my($self)=shift; my(%results); my $count=&RDF::Redland::CORE::librdf_query_results_get_bindings_count($self->{QUERYRESULTS}); for (my $i=0; $i < $count; $i++) { $results{$self->binding_name($i)}=$self->binding_value($i); } return %results; } =item bindings_count Return the number of variable bindings. =cut sub bindings_count ($) { my($self)=@_; return &RDF::Redland::CORE::librdf_query_results_get_bindings_count($self->{QUERYRESULTS}); } =item next_result Move to the next query result. =cut sub next_result ($) { my($self)=@_; return &RDF::Redland::CORE::librdf_query_results_next($self->{QUERYRESULTS}); } =item as_stream Return a new RDF::Redland::Stream object representing the query results as an RDF Graph. =cut sub as_stream($) { my($self)=@_; die "Query results is not in RDF graph format" unless $self->is_graph; my $stream=&RDF::Redland::CORE::librdf_query_results_as_stream($self->{QUERYRESULTS}); return new RDF::Redland::Stream($stream,$self); } =item to_string [FORMAT-URI [BASE-URI]] Serialize to a string syntax in format I using the optional I. The default format when none is given is determined by librdf_query_results_to_string. =cut sub to_string($;$$) { my($self, $format_uri, $base_uri)=@_; $format_uri ||= undef; $base_uri ||= undef; if($self->is_graph) { my $tmpstorage=RDF::Redland::Storage->new("memory"); my $tmpmodel=RDF::Redland::Model->new($tmpstorage, ""); $tmpmodel->add_statements($self->as_stream); my $serializer=RDF::Redland::Serializer->new(); return $serializer->serialize_model_to_string($base_uri, $tmpmodel); } if(!$self->is_boolean && !$self->is_bindings) { die "Unknown query result format cannot be written as a string"; } if($format_uri && !ref($format_uri)) { $format_uri = RDF::Redland::URI->new($format_uri); } my $rformat_uri=$format_uri ? $format_uri->{URI} : undef; if($base_uri && !ref($base_uri)) { $base_uri = RDF::Redland::URI->new($base_uri); } my $rbase_uri=$base_uri ? $base_uri->{URI} : undef; warn "RDF::Redland::QueryResults format URI ".$format_uri->as_string." base URI ".($base_uri ? $base_uri->as_string : "undef")."\n" if $RDF::Redland::Debug; return &RDF::Redland::CORE::librdf_query_results_to_string($self->{QUERYRESULTS}, $rformat_uri, $rbase_uri); } =item is_bindings Return non-0 if the query results format is variable bindings =cut sub is_bindings($) { my($self)=shift; return &RDF::Redland::CORE::librdf_query_results_is_bindings($self->{QUERYRESULTS}); } =item is_boolean Return non-0 if the query results format is a boolean =cut sub is_boolean($) { my($self)=shift; return &RDF::Redland::CORE::librdf_query_results_is_boolean($self->{QUERYRESULTS}); } =item is_graph Return non-0 if the query results format is an RDF graph =cut sub is_graph($) { my($self)=shift; return &RDF::Redland::CORE::librdf_query_results_is_graph($self->{QUERYRESULTS}); } =item get_boolean Get the boolean query result; non-0 is true. =cut sub get_boolean($) { my($self)=shift; die "Query result is not in boolean format" unless $self->is_boolean; return &RDF::Redland::CORE::librdf_query_results_get_boolean($self->{QUERYRESULTS}); } =pod =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Parser.pm0000644000175000017500000001574211522705745017372 00000000000000# -*- Mode: Perl -*- # # Parser.pm - Redland Perl RDF Parser module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Parser; use strict; use RDF::Redland::Stream; =pod =head1 NAME RDF::Redland::Parser - Redland RDF Syntax Parsers Class =head1 SYNOPSIS use RDF::Redland; ... my $parser=new RDF::Redland::Parser("rdfxml"); my $parser2=new RDF::Redland::Parser(undef, "application/rdf+xml); # Return as an RDF::Redland::Stream my $stream=$parser->parse_as_stream($source_uri, $base_uri); # Store in an RDF::Redland::Model $parser->parse_into_model($source_uri, $base_uri, $model); =head1 DESCRIPTION This class represents parsers of various syntaxes that can deliver a RDF model either as a RDF::Redland::Stream of RDF::Redland::Statement objects or directly into an RDF::Redland::Model object. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new [NAME [MIME_TYPE [URI]]] Create a new RDF::Redland::Parser object for a syntax parser named I, with MIME Type I and/or URI I. Any field can be undef or omitted; if all are omitted, a parser that provides MIME Type application/rdf+xml will be requested. =cut # CONSTRUCTOR # (main) sub new ($;$$$) { my($proto,$name,$mime_type,$uri)=@_; my $class = ref($proto) || $proto; my $self = {}; my $reduri = undef; if(defined $uri) { $reduri=$uri->{URI}; } $self->{PARSER}=&RDF::Redland::CORE::librdf_new_parser($RDF::Redland::World->{WORLD},$name,$mime_type,$reduri); return undef if !$self->{PARSER}; bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { warn "RDF::Redland::Parser DESTROY\n" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_parser(shift->{PARSER}); } =head1 METHODS =over =item parse_as_stream SOURCE_URI BASE_URI Parse the syntax at the RDF::Redland::URI I with optional base RDF::Redland::URI I. If the base URI is given then the content is parsed as if it was at the base URI rather than the source URI. Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure. =cut sub parse_as_stream ($$$) { my($self,$uri,$base_uri)=@_; my $rbase_uri=$base_uri ? $base_uri->{URI} : undef; my $stream=&RDF::Redland::CORE::librdf_parser_parse_as_stream($self->{PARSER},$uri->{URI}, $rbase_uri); return undef if !$stream; return new RDF::Redland::Stream($stream,$self); } =item parse_into_model SOURCE_URI BASE_URI MODEL [HANDLER] Parse the syntax at the RDF::Redland::URI I with optional base RDF::Redland::URI I into RDF::Redland::Model I. If the base URI is given then the content is parsed as if it was at the base URI rather than the source URI. If the optional I is given, it is a reference to a sub with the signature sub handler($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; ... } that receives errors in parsing. =cut sub parse_into_model ($$$$;$) { my($self,$uri,$base_uri,$model,$handler)=@_; if($handler) { &RDF::Redland::set_log_handler($handler); } my $rbase_uri=$base_uri ? $base_uri->{URI} : undef; my $rc=&RDF::Redland::CORE::librdf_parser_parse_into_model($self->{PARSER},$uri->{URI},$rbase_uri,$model->{MODEL}); if($handler) { &RDF::Redland::reset_log_handler(); } return $rc; } =item parse_string_as_stream STRING BASE_URI Parse the syntax in I with required base RDF::Redland::URI I. Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure. =cut sub parse_string_as_stream ($$$) { my($self,$string,$base_uri)=@_; my $rbase_uri=$base_uri ? $base_uri->{URI} : undef; my $stream=&RDF::Redland::CORE::librdf_parser_parse_string_as_stream($self->{PARSER},$string, $rbase_uri); return undef if !$stream; return new RDF::Redland::Stream($stream,$self); } =item parse_string_into_model STRING BASE_URI MODEL [HANDLER] Parse the syntax in I with required base RDF::Redland::URI I into RDF::Redfland::Model I. If the optional I is given, it is a reference to a sub with the signature sub handler($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; ... } that receives errors in parsing. =cut sub parse_string_into_model ($$$$;$) { my($self,$string,$base_uri,$model,$handler)=@_; if($handler) { &RDF::Redland::set_log_handler($handler); } my $rbase_uri=$base_uri ? $base_uri->{URI} : undef; my $rc=&RDF::Redland::CORE::librdf_parser_parse_string_into_model($self->{PARSER},$string,$rbase_uri,$model->{MODEL}); if($handler) { &RDF::Redland::reset_log_handler(); } return $rc; } =item feature URI [VALUE] Get/set a parser feature. The feature is named via RDF::Redland::URI I and the value is a RDF::Redland::Node. If I is given, the feature is set to that value, otherwise the current value is returned. =cut sub feature ($$;$) { my($self,$uri,$value)=@_; warn "RDF::Redland::Parser->feature('$uri', '$value')\n" if $RDF::Redland::Debug; $uri=RDF::Redland::URI->new($uri) unless ref $uri; if(!defined $value) { $value=&RDF::Redland::CORE::librdf_parser_get_feature($self->{PARSER}, $uri->{URI}); return $value ? RDF::Redland::Node->_new_from_object($value,1) : undef; } $value=RDF::Redland::LiteralNode->new($value) unless ref $value; return &RDF::Redland::CORE::librdf_parser_set_feature($self->{PARSER}, $uri->{URI}, $value->{NODE}) } =item namespaces_seen Get the set of namespace declarations seen during parsing as a hash of key:prefix string (may be ''), value: RDF::Redland::URI objects. =cut sub namespaces_seen($) { my $self=shift; my $count=&RDF::Redland::CORE::librdf_parser_get_namespaces_seen_count($self->{PARSER}); my(%namespaces)=(); for (my $offset=0; $offset < $count; $offset++) { my $prefix=&RDF::Redland::CORE::librdf_parser_get_namespaces_seen_prefix($self->{PARSER}, $offset); $prefix ||= ''; my $uri=&RDF::Redland::CORE::librdf_parser_get_namespaces_seen_uri($self->{PARSER}, $offset); my $ruri=$uri ? RDF::Redland::URI->_new_from_object($uri) : undef; $namespaces{$prefix}=$ruri; } return %namespaces; } =pod =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Serializer.pm0000644000175000017500000001047611522705745020246 00000000000000# -*- Mode: Perl -*- # # Serializer.pm - Redland Perl RDF Serializer module # # Copyright (C) 2002-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2002-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Serializer; use strict; use RDF::Redland::Stream; =pod =head1 NAME RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class =head1 SYNOPSIS use RDF::Redland; ... my $serializer=new RDF::Redland::Serializer("ntriples"); $serializer->serialize_model_to_file("foo.rdf", $base_uri, $model); =head1 DESCRIPTION This class represents serializers that turn RDF graphs into various syntaxes. from an RDF::Redland::Model object. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new [NAME [MIME_TYPE [URI]]] Create a new RDF::Redland::Serializer object for a syntax serializer named I, with MIME Type I and/or URI I. Any field can be undef or omitted; if all are omitted, the default serializer is used, currently 'ntriples'. =cut # CONSTRUCTOR # (main) sub new ($;$$$) { my($proto,$name,$mime_type,$uri)=@_; my $class = ref($proto) || $proto; my $self = {}; if(defined $uri) { $uri=$uri->{URI}; } $self->{SERIALIZER}=&RDF::Redland::CORE::librdf_new_serializer($RDF::Redland::World->{WORLD},$name,$mime_type,$uri); return undef if !$self->{SERIALIZER}; bless ($self, $class); return $self; } =pod =back =cut sub DESTROY ($) { warn "RDF::Redland::Serializer DESTROY\n" if $RDF::Redland::Debug; &RDF::Redland::CORE::librdf_free_serializer(shift->{SERIALIZER}); } =head1 METHODS =over =item serialize_model_to_file FILENAME BASE_URI MODEL Serialize the RDF Graph I as syntax with the base RDF::Redland::URI I to file I. =cut sub serialize_model_to_file ($$$$) { my($self,$name,$base_uri,$model)=@_; return &RDF::Redland::CORE::librdf_serializer_serialize_model_to_file($self->{SERIALIZER},$name, $base_uri->{URI},$model->{MODEL}); } =item serialize_model_to_string BASE-URI MODEL Serialize the RDF Graph I to a syntax. If no serializer name is given, the default serializer RDF/XML is used. =cut sub serialize_model_to_string($$$) { my($self,$uri,$model)=@_; return &RDF::Redland::CORE::librdf_serializer_serialize_model_to_string($self->{SERIALIZER}, $uri->{URI}, $model->{MODEL}); } =item set_namespace PREFIX URI Define a namespace I with the supplied I for use in serializing an RDF Graph. =cut sub set_namespace ($$$) { my($self,$prefix, $uri)=@_; warn "RDF::Redland::Serializer->namespace('$prefix', '$uri')\n" if $RDF::Redland::Debug; $uri=RDF::Redland::URI->new($uri) unless ref $uri; return &RDF::Redland::CORE::librdf_serializer_set_namespace($self->{SERIALIZER},$uri->{URI}, $prefix); } =item feature URI [VALUE] Get/set a serializer feature. The feature is named via RDF::Redland::URI I and the value is a string. If I is given, the feature is set to that value, otherwise the current value is returned. =cut sub feature ($$;$) { my($self,$uri,$value)=@_; warn "RDF::Redland::Serializer->feature('$uri', '$value')\n" if $RDF::Redland::Debug; $uri=RDF::Redland::URI->new($uri) unless ref $uri; if(!defined $value) { $value=&RDF::Redland::CORE::librdf_serializer_get_feature($self->{SERIALIZER}, $uri->{URI}); return $value ? RDF::Redland::Node->_new_from_object($value,1) : undef; } $value=RDF::Redland::LiteralNode->new($value) unless ref $value; return &RDF::Redland::CORE::librdf_serializer_set_feature($self->{SERIALIZER}, $uri->{URI}, $value->{NODE}); } =pod =back =head1 SEE ALSO L, L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/CORE.pm0000644000175000017500000004130411776152620016656 00000000000000# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.7 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. package RDF::Redland::CORE; use base qw(Exporter); use base qw(DynaLoader); package RDF::Redland::COREc; bootstrap RDF::Redland::CORE; package RDF::Redland::CORE; @EXPORT = qw(); # ---------- BASE METHODS ------------- package RDF::Redland::CORE; sub TIEHASH { my ($classname,$obj) = @_; return bless $obj, $classname; } sub CLEAR { } sub FIRSTKEY { } sub NEXTKEY { } sub FETCH { my ($self,$field) = @_; my $member_func = "swig_${field}_get"; $self->$member_func(); } sub STORE { my ($self,$field,$newval) = @_; my $member_func = "swig_${field}_set"; $self->$member_func($newval); } sub this { my $ptr = shift; return tied(%$ptr); } # ------- FUNCTION WRAPPERS -------- package RDF::Redland::CORE; *librdf_new_digest = *RDF::Redland::COREc::librdf_new_digest; *librdf_free_digest = *RDF::Redland::COREc::librdf_free_digest; *librdf_digest_init = *RDF::Redland::COREc::librdf_digest_init; *librdf_digest_update = *RDF::Redland::COREc::librdf_digest_update; *librdf_digest_update_string = *RDF::Redland::COREc::librdf_digest_update_string; *librdf_digest_final = *RDF::Redland::COREc::librdf_digest_final; *librdf_digest_to_string = *RDF::Redland::COREc::librdf_digest_to_string; *librdf_new_hash = *RDF::Redland::COREc::librdf_new_hash; *librdf_new_hash_from_string = *RDF::Redland::COREc::librdf_new_hash_from_string; *librdf_new_hash_from_array_of_strings = *RDF::Redland::COREc::librdf_new_hash_from_array_of_strings; *librdf_hash_to_string = *RDF::Redland::COREc::librdf_hash_to_string; *librdf_free_hash = *RDF::Redland::COREc::librdf_free_hash; *librdf_new_world = *RDF::Redland::COREc::librdf_new_world; *librdf_free_world = *RDF::Redland::COREc::librdf_free_world; *librdf_world_open = *RDF::Redland::COREc::librdf_world_open; *librdf_world_get_feature = *RDF::Redland::COREc::librdf_world_get_feature; *librdf_world_set_feature = *RDF::Redland::COREc::librdf_world_set_feature; *librdf_parser_get_accept_header = *RDF::Redland::COREc::librdf_parser_get_accept_header; *librdf_world_set_logger = *RDF::Redland::COREc::librdf_world_set_logger; *librdf_free_iterator = *RDF::Redland::COREc::librdf_free_iterator; *librdf_iterator_end = *RDF::Redland::COREc::librdf_iterator_end; *librdf_iterator_get_object = *RDF::Redland::COREc::librdf_iterator_get_object; *librdf_iterator_get_context = *RDF::Redland::COREc::librdf_iterator_get_context; *librdf_iterator_next = *RDF::Redland::COREc::librdf_iterator_next; *librdf_new_uri = *RDF::Redland::COREc::librdf_new_uri; *librdf_new_uri_from_uri = *RDF::Redland::COREc::librdf_new_uri_from_uri; *librdf_new_uri_from_filename = *RDF::Redland::COREc::librdf_new_uri_from_filename; *librdf_free_uri = *RDF::Redland::COREc::librdf_free_uri; *librdf_uri_to_string = *RDF::Redland::COREc::librdf_uri_to_string; *librdf_uri_equals = *RDF::Redland::COREc::librdf_uri_equals; *librdf_uri_compare = *RDF::Redland::COREc::librdf_uri_compare; *librdf_new_node = *RDF::Redland::COREc::librdf_new_node; *librdf_new_node_from_uri_string = *RDF::Redland::COREc::librdf_new_node_from_uri_string; *librdf_new_node_from_uri = *RDF::Redland::COREc::librdf_new_node_from_uri; *librdf_new_node_from_uri_local_name = *RDF::Redland::COREc::librdf_new_node_from_uri_local_name; *librdf_new_node_from_normalised_uri_string = *RDF::Redland::COREc::librdf_new_node_from_normalised_uri_string; *librdf_new_node_from_literal = *RDF::Redland::COREc::librdf_new_node_from_literal; *librdf_new_node_from_typed_literal = *RDF::Redland::COREc::librdf_new_node_from_typed_literal; *librdf_new_node_from_node = *RDF::Redland::COREc::librdf_new_node_from_node; *librdf_new_node_from_blank_identifier = *RDF::Redland::COREc::librdf_new_node_from_blank_identifier; *librdf_free_node = *RDF::Redland::COREc::librdf_free_node; *librdf_node_get_uri = *RDF::Redland::COREc::librdf_node_get_uri; *librdf_node_get_type = *RDF::Redland::COREc::librdf_node_get_type; *librdf_node_get_literal_value = *RDF::Redland::COREc::librdf_node_get_literal_value; *librdf_node_get_literal_value_as_latin1 = *RDF::Redland::COREc::librdf_node_get_literal_value_as_latin1; *librdf_node_get_literal_value_language = *RDF::Redland::COREc::librdf_node_get_literal_value_language; *librdf_node_get_literal_value_datatype_uri = *RDF::Redland::COREc::librdf_node_get_literal_value_datatype_uri; *librdf_node_get_literal_value_is_wf_xml = *RDF::Redland::COREc::librdf_node_get_literal_value_is_wf_xml; *librdf_node_get_li_ordinal = *RDF::Redland::COREc::librdf_node_get_li_ordinal; *librdf_node_to_string = *RDF::Redland::COREc::librdf_node_to_string; *librdf_node_get_blank_identifier = *RDF::Redland::COREc::librdf_node_get_blank_identifier; *librdf_node_is_resource = *RDF::Redland::COREc::librdf_node_is_resource; *librdf_node_is_literal = *RDF::Redland::COREc::librdf_node_is_literal; *librdf_node_is_blank = *RDF::Redland::COREc::librdf_node_is_blank; *librdf_node_equals = *RDF::Redland::COREc::librdf_node_equals; *librdf_new_statement = *RDF::Redland::COREc::librdf_new_statement; *librdf_new_statement_from_statement = *RDF::Redland::COREc::librdf_new_statement_from_statement; *librdf_new_statement_from_nodes = *RDF::Redland::COREc::librdf_new_statement_from_nodes; *librdf_free_statement = *RDF::Redland::COREc::librdf_free_statement; *librdf_statement_get_subject = *RDF::Redland::COREc::librdf_statement_get_subject; *librdf_statement_set_subject = *RDF::Redland::COREc::librdf_statement_set_subject; *librdf_statement_get_predicate = *RDF::Redland::COREc::librdf_statement_get_predicate; *librdf_statement_set_predicate = *RDF::Redland::COREc::librdf_statement_set_predicate; *librdf_statement_get_object = *RDF::Redland::COREc::librdf_statement_get_object; *librdf_statement_set_object = *RDF::Redland::COREc::librdf_statement_set_object; *librdf_statement_equals = *RDF::Redland::COREc::librdf_statement_equals; *librdf_statement_match = *RDF::Redland::COREc::librdf_statement_match; *librdf_statement_to_string = *RDF::Redland::COREc::librdf_statement_to_string; *librdf_statement_is_complete = *RDF::Redland::COREc::librdf_statement_is_complete; *librdf_new_model = *RDF::Redland::COREc::librdf_new_model; *librdf_new_model_with_options = *RDF::Redland::COREc::librdf_new_model_with_options; *librdf_new_model_from_model = *RDF::Redland::COREc::librdf_new_model_from_model; *librdf_free_model = *RDF::Redland::COREc::librdf_free_model; *librdf_model_size = *RDF::Redland::COREc::librdf_model_size; *librdf_model_add = *RDF::Redland::COREc::librdf_model_add; *librdf_model_add_string_literal_statement = *RDF::Redland::COREc::librdf_model_add_string_literal_statement; *librdf_model_add_typed_literal_statement = *RDF::Redland::COREc::librdf_model_add_typed_literal_statement; *librdf_model_add_statement = *RDF::Redland::COREc::librdf_model_add_statement; *librdf_model_add_statements = *RDF::Redland::COREc::librdf_model_add_statements; *librdf_model_remove_statement = *RDF::Redland::COREc::librdf_model_remove_statement; *librdf_model_contains_statement = *RDF::Redland::COREc::librdf_model_contains_statement; *librdf_model_as_stream = *RDF::Redland::COREc::librdf_model_as_stream; *librdf_model_find_statements = *RDF::Redland::COREc::librdf_model_find_statements; *librdf_model_find_statements_in_context = *RDF::Redland::COREc::librdf_model_find_statements_in_context; *librdf_model_get_sources = *RDF::Redland::COREc::librdf_model_get_sources; *librdf_model_get_arcs = *RDF::Redland::COREc::librdf_model_get_arcs; *librdf_model_get_targets = *RDF::Redland::COREc::librdf_model_get_targets; *librdf_model_get_source = *RDF::Redland::COREc::librdf_model_get_source; *librdf_model_get_arc = *RDF::Redland::COREc::librdf_model_get_arc; *librdf_model_get_arcs_out = *RDF::Redland::COREc::librdf_model_get_arcs_out; *librdf_model_get_arcs_in = *RDF::Redland::COREc::librdf_model_get_arcs_in; *librdf_model_has_arc_in = *RDF::Redland::COREc::librdf_model_has_arc_in; *librdf_model_has_arc_out = *RDF::Redland::COREc::librdf_model_has_arc_out; *librdf_model_get_target = *RDF::Redland::COREc::librdf_model_get_target; *librdf_model_context_add_statement = *RDF::Redland::COREc::librdf_model_context_add_statement; *librdf_model_context_add_statements = *RDF::Redland::COREc::librdf_model_context_add_statements; *librdf_model_context_remove_statement = *RDF::Redland::COREc::librdf_model_context_remove_statement; *librdf_model_context_remove_statements = *RDF::Redland::COREc::librdf_model_context_remove_statements; *librdf_model_context_as_stream = *RDF::Redland::COREc::librdf_model_context_as_stream; *librdf_model_sync = *RDF::Redland::COREc::librdf_model_sync; *librdf_model_get_contexts = *RDF::Redland::COREc::librdf_model_get_contexts; *librdf_model_contains_context = *RDF::Redland::COREc::librdf_model_contains_context; *librdf_model_get_feature = *RDF::Redland::COREc::librdf_model_get_feature; *librdf_model_set_feature = *RDF::Redland::COREc::librdf_model_set_feature; *librdf_model_load = *RDF::Redland::COREc::librdf_model_load; *librdf_model_query_execute = *RDF::Redland::COREc::librdf_model_query_execute; *librdf_model_to_string = *RDF::Redland::COREc::librdf_model_to_string; *librdf_model_transaction_start = *RDF::Redland::COREc::librdf_model_transaction_start; *librdf_model_transaction_commit = *RDF::Redland::COREc::librdf_model_transaction_commit; *librdf_model_transaction_rollback = *RDF::Redland::COREc::librdf_model_transaction_rollback; *librdf_new_storage = *RDF::Redland::COREc::librdf_new_storage; *librdf_new_storage_from_storage = *RDF::Redland::COREc::librdf_new_storage_from_storage; *librdf_free_storage = *RDF::Redland::COREc::librdf_free_storage; *librdf_parser_check_name = *RDF::Redland::COREc::librdf_parser_check_name; *librdf_new_parser = *RDF::Redland::COREc::librdf_new_parser; *librdf_free_parser = *RDF::Redland::COREc::librdf_free_parser; *librdf_parser_parse_as_stream = *RDF::Redland::COREc::librdf_parser_parse_as_stream; *librdf_parser_parse_into_model = *RDF::Redland::COREc::librdf_parser_parse_into_model; *librdf_parser_parse_string_as_stream = *RDF::Redland::COREc::librdf_parser_parse_string_as_stream; *librdf_parser_parse_string_into_model = *RDF::Redland::COREc::librdf_parser_parse_string_into_model; *librdf_parser_parse_counted_string_as_stream = *RDF::Redland::COREc::librdf_parser_parse_counted_string_as_stream; *librdf_parser_parse_counted_string_into_model = *RDF::Redland::COREc::librdf_parser_parse_counted_string_into_model; *librdf_parser_get_feature = *RDF::Redland::COREc::librdf_parser_get_feature; *librdf_parser_set_feature = *RDF::Redland::COREc::librdf_parser_set_feature; *librdf_parser_guess_name = *RDF::Redland::COREc::librdf_parser_guess_name; *librdf_parser_guess_name2 = *RDF::Redland::COREc::librdf_parser_guess_name2; *librdf_parser_get_namespaces_seen_prefix = *RDF::Redland::COREc::librdf_parser_get_namespaces_seen_prefix; *librdf_parser_get_namespaces_seen_uri = *RDF::Redland::COREc::librdf_parser_get_namespaces_seen_uri; *librdf_parser_get_namespaces_seen_count = *RDF::Redland::COREc::librdf_parser_get_namespaces_seen_count; *librdf_new_query = *RDF::Redland::COREc::librdf_new_query; *librdf_new_query_from_query = *RDF::Redland::COREc::librdf_new_query_from_query; *librdf_free_query = *RDF::Redland::COREc::librdf_free_query; *librdf_query_execute = *RDF::Redland::COREc::librdf_query_execute; *librdf_query_get_limit = *RDF::Redland::COREc::librdf_query_get_limit; *librdf_query_set_limit = *RDF::Redland::COREc::librdf_query_set_limit; *librdf_query_get_offset = *RDF::Redland::COREc::librdf_query_get_offset; *librdf_query_set_offset = *RDF::Redland::COREc::librdf_query_set_offset; *librdf_query_results_as_stream = *RDF::Redland::COREc::librdf_query_results_as_stream; *librdf_query_results_get_count = *RDF::Redland::COREc::librdf_query_results_get_count; *librdf_query_results_next = *RDF::Redland::COREc::librdf_query_results_next; *librdf_query_results_finished = *RDF::Redland::COREc::librdf_query_results_finished; *librdf_query_results_get_binding_value = *RDF::Redland::COREc::librdf_query_results_get_binding_value; *librdf_query_results_get_binding_name = *RDF::Redland::COREc::librdf_query_results_get_binding_name; *librdf_query_results_get_binding_value_by_name = *RDF::Redland::COREc::librdf_query_results_get_binding_value_by_name; *librdf_query_results_get_bindings_count = *RDF::Redland::COREc::librdf_query_results_get_bindings_count; *librdf_query_results_to_file = *RDF::Redland::COREc::librdf_query_results_to_file; *librdf_query_results_to_file2 = *RDF::Redland::COREc::librdf_query_results_to_file2; *librdf_query_results_to_string = *RDF::Redland::COREc::librdf_query_results_to_string; *librdf_query_results_to_string2 = *RDF::Redland::COREc::librdf_query_results_to_string2; *librdf_free_query_results = *RDF::Redland::COREc::librdf_free_query_results; *librdf_query_results_is_bindings = *RDF::Redland::COREc::librdf_query_results_is_bindings; *librdf_query_results_is_boolean = *RDF::Redland::COREc::librdf_query_results_is_boolean; *librdf_query_results_is_graph = *RDF::Redland::COREc::librdf_query_results_is_graph; *librdf_query_results_is_syntax = *RDF::Redland::COREc::librdf_query_results_is_syntax; *librdf_query_results_get_boolean = *RDF::Redland::COREc::librdf_query_results_get_boolean; *librdf_serializer_check_name = *RDF::Redland::COREc::librdf_serializer_check_name; *librdf_new_serializer = *RDF::Redland::COREc::librdf_new_serializer; *librdf_free_serializer = *RDF::Redland::COREc::librdf_free_serializer; *librdf_serializer_serialize_stream_to_file = *RDF::Redland::COREc::librdf_serializer_serialize_stream_to_file; *librdf_serializer_serialize_model_to_file = *RDF::Redland::COREc::librdf_serializer_serialize_model_to_file; *librdf_serializer_serialize_stream_to_string = *RDF::Redland::COREc::librdf_serializer_serialize_stream_to_string; *librdf_serializer_serialize_model_to_string = *RDF::Redland::COREc::librdf_serializer_serialize_model_to_string; *librdf_serializer_get_feature = *RDF::Redland::COREc::librdf_serializer_get_feature; *librdf_serializer_set_feature = *RDF::Redland::COREc::librdf_serializer_set_feature; *librdf_serializer_set_namespace = *RDF::Redland::COREc::librdf_serializer_set_namespace; *librdf_free_stream = *RDF::Redland::COREc::librdf_free_stream; *librdf_stream_end = *RDF::Redland::COREc::librdf_stream_end; *librdf_stream_next = *RDF::Redland::COREc::librdf_stream_next; *librdf_stream_get_object = *RDF::Redland::COREc::librdf_stream_get_object; *librdf_stream_get_context = *RDF::Redland::COREc::librdf_stream_get_context; *librdf_log_message_code = *RDF::Redland::COREc::librdf_log_message_code; *librdf_log_message_level = *RDF::Redland::COREc::librdf_log_message_level; *librdf_log_message_facility = *RDF::Redland::COREc::librdf_log_message_facility; *librdf_log_message_message = *RDF::Redland::COREc::librdf_log_message_message; *librdf_log_message_locator = *RDF::Redland::COREc::librdf_log_message_locator; *raptor_locator_line = *RDF::Redland::COREc::raptor_locator_line; *raptor_locator_column = *RDF::Redland::COREc::raptor_locator_column; *raptor_locator_byte = *RDF::Redland::COREc::raptor_locator_byte; *raptor_locator_file = *RDF::Redland::COREc::raptor_locator_file; *raptor_locator_uri = *RDF::Redland::COREc::raptor_locator_uri; *librdf_internal_test_error = *RDF::Redland::COREc::librdf_internal_test_error; *librdf_internal_test_warning = *RDF::Redland::COREc::librdf_internal_test_warning; *librdf_perl_world_init = *RDF::Redland::COREc::librdf_perl_world_init; *librdf_perl_world_finish = *RDF::Redland::COREc::librdf_perl_world_finish; # ------- VARIABLE STUBS -------- package RDF::Redland::CORE; *librdf_short_copyright_string = *RDF::Redland::COREc::librdf_short_copyright_string; *librdf_copyright_string = *RDF::Redland::COREc::librdf_copyright_string; *librdf_version_string = *RDF::Redland::COREc::librdf_version_string; *librdf_version_major = *RDF::Redland::COREc::librdf_version_major; *librdf_version_minor = *RDF::Redland::COREc::librdf_version_minor; *librdf_version_release = *RDF::Redland::COREc::librdf_version_release; *librdf_version_decimal = *RDF::Redland::COREc::librdf_version_decimal; *raptor_version_string = *RDF::Redland::COREc::raptor_version_string; *raptor_version_major = *RDF::Redland::COREc::raptor_version_major; *raptor_version_minor = *RDF::Redland::COREc::raptor_version_minor; *raptor_version_release = *RDF::Redland::COREc::raptor_version_release; *raptor_version_decimal = *RDF::Redland::COREc::raptor_version_decimal; *rasqal_version_string = *RDF::Redland::COREc::rasqal_version_string; *rasqal_version_major = *RDF::Redland::COREc::rasqal_version_major; *rasqal_version_minor = *RDF::Redland::COREc::rasqal_version_minor; *rasqal_version_release = *RDF::Redland::COREc::rasqal_version_release; *rasqal_version_decimal = *RDF::Redland::COREc::rasqal_version_decimal; 1; redland-bindings-1.0.16.1/perl/lib/RDF/Redland/Node.pm0000644000175000017500000003233611561664720017021 00000000000000# -*- Mode: Perl -*- # # Node.pm - Redland Perl RDF Node module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # package RDF::Redland::Node; use strict; use Encode; use vars qw($Type_Resource $Type_Property $Type_Literal $Type_Statement $Type_Blank); # FIXME: Should be the same as values of librdf_node_type enum in rdf_node.h # and mechanically kept in sync. $Type_Resource = 1; $Type_Literal = 2; $Type_Blank = 4; # FIXME: Needs to also match documentation near sub type =pod =head1 NAME RDF::Redland::Node - Redland RDF Node (RDF Resource, Property, Literal) Class =head1 SYNOPSIS use RDF::Redland; my $node1=new RDF::Redland::Node("Hello, World!"); my $node2=new RDF::Redland::Node($uri); # $uri is an RDF::Redland::URI my $node3=$node2->clone; my $node4=new RDF::Redland::URINode("http://example.com/"); my $node5=new RDF::Redland::LiteralNode("Hello, World!"); my $node6=new RDF::Redland::XMLLiteral("content"); my $node7=new RDF::Redland::BlankNode("genid1"); # alternate more verbose ways: my $node4=RDF::Redland::Node->new_from_uri("http://example.com/"); my $node5=RDF::Redland::Node->new_literal("Hello, World!"); my $node6=RDF::Redland::Node->new_xml_literal("content"); my $node7=RDF::Redland::Node->new_from_blank_identifier("genid1"); ... print $node4->uri->as_string,"\n"; # Using RDF::Redland::URI::as_string print $node5->literal_value_as_latin1,"\n"; =head1 DESCRIPTION This class represents RDF URIs, literals and blank nodes in the RDF graph. =cut ###################################################################### =pod =head1 CONSTRUCTORS =over =item new [STRING | URI | NODE] Create a new URI node, literal node or copy an existing node. If a literal I is given, make a plain literal node. If a the argument is of type I (perl URI or RDF::Redland::URI), make a resource node. Otherwise if the argument is an RDF::Redland::Node I, copy it. =cut # CONSTRUCTOR # (main) sub new ($;$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; if($arg) { if(my $arg_class=ref($arg)) { # Try several classes if(UNIVERSAL::isa($arg, 'RDF::Redland::Node')) { return $arg->clone; } elsif(UNIVERSAL::isa($arg, 'RDF::Redland::URI')) { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$arg->as_string); } elsif (UNIVERSAL::isa($arg, 'URI')) { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$arg->as_string); } else { die "RDF::Redland::Node::new - Cannot make a node from an object of class $arg_class\n"; } } else { # Not a class $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_typed_literal($RDF::Redland::World->{WORLD},$arg,'',undef); } } else { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node($RDF::Redland::World->{WORLD}); } return undef if !$self->{NODE}; bless ($self, $class); return $self; } sub new_from_uri_string ($$) { my($proto,$uri_string)=@_; my $class = ref($proto) || $proto; my $self = {}; die "RDF::Redland::Node::new_from_uri_string - Cannot create node from empty URI\n" unless $uri_string; $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$uri_string); return undef if !$self->{NODE}; bless ($self, $class); return $self; } =item new_from_uri URI Create a new URI node. I can be either a RDF::Redland::URI object, a perl URI class or a literal string. An alternative is: new RDF::Redland::URINode("http://example.org/"); =cut sub new_from_uri ($$) { my($proto,$arg)=@_; my $class = ref($proto) || $proto; my $self = {}; if(my $class=ref $arg) { if(UNIVERSAL::isa($arg, 'RDF::Redland::URI')) { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri($RDF::Redland::World->{WORLD},$arg->{URI}); } elsif (UNIVERSAL::isa($arg, 'URI')) { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$arg->as_string); } else { die "RDF::Redland::Node::new_from_uri - Cannot make a Node from an object of class $class\n"; } } else { $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$arg); } return undef if !$self->{NODE}; bless ($self, $class); return $self; } sub new_from_literal ($$$$) { my($proto,$string,$xml_language,$is_wf_xml)=@_; my $class = ref($proto) || $proto; my $self = {}; $is_wf_xml=($is_wf_xml ? 1 : 0); $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_literal($RDF::Redland::World->{WORLD},$string,$xml_language,$is_wf_xml); return undef if !$self->{NODE}; bless ($self, $class); return $self; } =item new_literal STRING [DATATYPE [XML_LANGUAGE]] Create a new literal node for a literal value I. Optional datatype URI I (RDF::Redland::URI, perl URI or string) and language (xml:lang attribute) I may also be given. An alternative is: new RDF::Redland::LiteralNode("Hello, World!"); new RDF::Redland::LiteralNode("Bonjour monde!", undef, "fr"); =cut sub new_literal ($$;$$) { my($proto,$string,$dt,$xml_language)=@_; my $class = ref($proto) || $proto; my $self = {}; my $dt_uri=undef; if(defined $dt) { if(UNIVERSAL::isa($dt, 'RDF::Redland::URI')) { # nop } elsif (UNIVERSAL::isa($dt, 'URI')) { $dt=RDF::Redland::URI->new($dt->as_string); } else { $dt=RDF::Redland::URI->new($dt); } $dt_uri=$dt->{URI}; } $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_typed_literal($RDF::Redland::World->{WORLD},$string,$xml_language,$dt_uri); return undef if !$self->{NODE}; bless ($self, $class); return $self; } =item new_xml_literal STRING Create a new XML datatyped literal node for the XML in I. An alternative is: new RDF::Redland::XMLLiteral("content"); =cut sub new_xml_literal ($$) { my($proto,$string)=@_; return $proto->new_from_literal($string,'',1); } =item new_from_blank_identifier IDENTIFIER Create a new blank node with blank node identifier I. An alternative is: new RDF::Redland::BlankNode("id"); =cut sub new_from_blank_identifier ($;$) { my($proto,$identifier)=@_; my $class = ref($proto) || $proto; my $self = {}; $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_blank_identifier($RDF::Redland::World->{WORLD},$identifier); return undef if !$self->{NODE}; bless ($self, $class); return $self; } =item clone Copy a RDF::Redland::Node. =cut sub clone ($) { my($node)=@_; my $class = ref($node); my $self = {}; if(!$class || $class ne 'RDF::Redland::Node') { die "RDF::Redland::Node::clone - Cannot copy a node object not of class RDF::Redland::Node\n"; } $self->{NODE}=&RDF::Redland::CORE::librdf_new_node_from_node($node->{NODE}); return undef if !$self->{NODE}; bless ($self, $class); return $self; } sub new_from_node ($$) { my($proto,$node)=@_; return $node->clone; } # internal constructor to build an object from a node created # by librdf e.g. from the result of a iterator->next operation # It always makes a new Redland Node sub _new_from_object ($$;$) { my($proto,$object,$do_not_copy)=@_; return undef if !$object; my $class = ref($proto) || $proto; my $self = {}; $self->{NODE}=$do_not_copy ? $object : &RDF::Redland::CORE::librdf_new_node_from_node($object); bless ($self, $class); return $self; } =pod =back =cut # DESTRUCTOR sub DESTROY ($) { my $self=shift; warn "RDF::Redland::Node DESTROY $self" if $RDF::Redland::Debug; if($self->{NODE}) { &RDF::Redland::CORE::librdf_free_node($self->{NODE}); } warn "RDF::Redland::Node DESTROY done\n" if $RDF::Redland::Debug; } =head1 METHODS =over =item uri Get the current URI of the node as an RDF::Redland::URI object. =cut sub uri ($) { my $obj=&RDF::Redland::CORE::librdf_node_get_uri(shift->{NODE}); return $obj ? RDF::Redland::URI->_new_from_object($obj) : undef; } =item blank_identifier Get the current blank identifier of the node =cut sub blank_identifier ($) { return &RDF::Redland::CORE::librdf_node_get_blank_identifier(shift->{NODE}); } =item type Get the node type. It is recommended to use the is_resource, is_literal or is_blank methods in preference to this (both simpler and quicker). The current list of types that are supported are: $RDF::Redland::Node::Type_Resource $RDF::Redland::Node::Type_Literal $RDF::Redland::Node::Type_Blank Example: if ($node->type == $RDF::Redland::Node::Type_Resource) { print "Node is a resource with URI ", $node->uri->as_string, "\n"; } else { ... } =cut sub type ($) { return &RDF::Redland::CORE::librdf_node_get_type(shift->{NODE}); } =item is_resource Return true if node is a resource (with a URI) =cut sub is_resource($) { return &RDF::Redland::CORE::librdf_node_is_resource(shift->{NODE}); } =item is_literal Return true if node is a literal =cut sub is_literal($) { return &RDF::Redland::CORE::librdf_node_is_literal(shift->{NODE}); } =item is_blank Return true if node is a blank nodeID =cut sub is_blank($) { return &RDF::Redland::CORE::librdf_node_is_blank(shift->{NODE}); } =item literal_value Get the node literal value string as UTF-8 (when the node is of type $RDF::Redland::Node::Type_Literal) =cut sub literal_value ($) { return decode_utf8(&RDF::Redland::CORE::librdf_node_get_literal_value(shift->{NODE})); } =item literal_value_as_latin1 Get the node literal value string converted from UTF-8 to ISO Latin-1 (when the node is of type $RDF::Redland::Node::Type_Literal) =cut sub literal_value_as_latin1 ($) { &RDF::Redland::CORE::librdf_node_get_literal_value_as_latin1(shift->{NODE}); } =item literal_value_language Get the node literal XML language (when the node is of type $RDF::Redland::Node::Type_Literal) or undef if not present. =cut sub literal_value_language ($) { &RDF::Redland::CORE::librdf_node_get_literal_value_language(shift->{NODE}); } =item literal_value_is_wf_xml Return non 0 if the literal string is well formed XML (when the node is of type $RDF::Redland::Node::Type_Literal). =cut sub literal_value_is_wf_xml ($) { &RDF::Redland::CORE::librdf_node_get_literal_value_is_wf_xml(shift->{NODE}); } =item literal_datatype Return the RDF::Redland::URI of the literal datatype or undef if it is not a datatype. =cut sub literal_datatype($) { my $self=shift; my $uri=&RDF::Redland::CORE::librdf_node_get_literal_value_datatype_uri($self->{NODE}); return $uri ? RDF::Redland::URI->new(&RDF::Redland::CORE::librdf_uri_to_string($uri)) : undef; } =item as_string Return the RDF::Redland::Node formatted as a string (UTF-8 encoded). =cut sub as_string ($) { my $v = decode_utf8(&RDF::Redland::CORE::librdf_node_to_string(shift->{NODE})); return $v; } =item equals NODE Return non zero if this node is equal to NODE =cut sub equals ($$) { my($self,$node)=@_; &RDF::Redland::CORE::librdf_node_equals($self->{NODE}, $node->{NODE}); } # Ensure the thing given is a Redland node, promoting it if possible # from other perl objects. sub _ensure ($) { my $node=shift; if(UNIVERSAL::isa($node, 'RDF::Redland::Node')) { $node=&RDF::Redland::CORE::librdf_new_node_from_node($node->{NODE}); } elsif(UNIVERSAL::isa($node, 'RDF::Redland::URI')) { $node=&RDF::Redland::CORE::librdf_new_node_from_uri($RDF::Redland::World->{WORLD},$node->{URI}); } elsif (UNIVERSAL::isa($node, 'URI')) { $node=&RDF::Redland::CORE::librdf_new_node_from_uri_string($RDF::Redland::World->{WORLD},$node->as_string); } else { $node=undef; } return $node; } =pod =back =head1 OLDER METHODS =over =item new_from_literal STRING XML_LANGUAGE IS_WF Create a new RDF::Redland::Node object for a literal value I with XML language (xml:lang attribute) I and if content is well formed XML, when I is non 0. I is optional can can be set to undef. This method remains but using new_literal is prefered. Instead, for plain literals use: $node=new RDF::Redland::Node("blah") =item new_from_typed_literal STRING [DATATYPE [XML_LANGUAGE]] Renamed to new_literal with same arguments. =item new_from_uri_string URI_STRING Create a new RDF::Redland::Node object for a resource with URI I. It is equivalent to use the shorter: $a=new RDF::Redland::Node->new_from_uri($uri_string) =item new_from_node NODE Create a new RDF::Redland::Node object from existing RDF::Redland::Node I (copy constructor). It is equivalent to use: $new_node=$old_node->clone =back =head1 SEE ALSO L =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/RDF/Makefile.am0000644000175000017500000000006510406177663016255 00000000000000EXTRA_DIST=Redland.pm Redland.pm.in SUBDIRS=Redland redland-bindings-1.0.16.1/perl/lib/RDF/Makefile.in0000644000175000017500000004513012063416535016263 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = perl/lib/RDF DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/Redland.pm.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = Redland.pm CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = Redland.pm Redland.pm.in SUBDIRS = Redland all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/lib/RDF/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu perl/lib/RDF/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): Redland.pm: $(top_builddir)/config.status $(srcdir)/Redland.pm.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/perl/lib/RDF/Redland.pm.in0000644000175000017500000001326411660044035016527 00000000000000# -*- Mode: Perl -*- # # Redland.pm - Redland top level Perl module # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # use RDF::Redland::Iterator; use RDF::Redland::Model; use RDF::Redland::Node; use RDF::Redland::BlankNode; use RDF::Redland::URINode; use RDF::Redland::LiteralNode; use RDF::Redland::XMLLiteralNode; use RDF::Redland::Parser; use RDF::Redland::Query; use RDF::Redland::QueryResults; use RDF::Redland::Serializer; use RDF::Redland::Statement; use RDF::Redland::Storage; use RDF::Redland::Stream; use RDF::Redland::URI; use RDF::Redland::CORE; package RDF::Redland::World; sub new ($) { my($proto)=@_; my $class = ref($proto) || $proto; my $self = {}; # This line is needed because otherwise will perl will barf a # warning (that CANNOT be disabled with no warnings 'once') about # an unused variable. $_p_librdf_world_s::OWNER = 1; $self->{WORLD} = &RDF::Redland::CORE::librdf_new_world(); &RDF::Redland::CORE::librdf_world_open($self->{WORLD}); &RDF::Redland::CORE::librdf_perl_world_init($self->{WORLD}); bless ($self, $class); $self->{ME}=$self; return $self; } sub DESTROY ($) { warn "RDF::World DESTROY\n" if $RDF::Debug; &RDF::Redland::CORE::librdf_perl_world_finish(); } sub message ($$$$$$$$$) { if(ref $RDF::Redland::Log_Sub) { return $RDF::Redland::Log_Sub->(@_); } my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; if($level > 3) { if(ref $RDF::Redland::Error_Sub) { return $RDF::Redland::Error_Sub->($message); } else { die "Redland error: $message\n"; } } else { if(ref $RDF::Redland::Warning_Sub) { return $RDF::Redland::Warning_Sub->($message); } else { warn "Redland warning: $message\n"; } } 1; } package RDF::Redland; use vars qw($VERSION $Debug $World $Error_Sub $Warning_Sub); $VERSION= eval sprintf("%s.%02d_%02d_%02d", split(/\./, "@PACKAGE_VERSION@")); $Debug=0; $World=new RDF::Redland::World; $Error_Sub=undef; $Warning_Sub=undef; $Log_Sub=undef; =pod =head1 NAME RDF::Redland - Redland RDF Class =head1 SYNOPSIS use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, ""); ... =head1 DESCRIPTION This class initialises the Redland RDF classes. See the main classes for full detail: L, L, L, L, L, L, L, L, L, L, L, L, L, L and L. =head1 STATIC METHODS =over =item set_log_handler SUB Set I as the subroutine to be called on any Redland error, warning or log message. The subroutine must have the followign signature: sub handler ($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; # int error code # int log level # int facility causing the error (parsing, serializing, ...) # string error message # int line number (<0 if not relevant) # int column number (<0 if not relevant) # int byte number (<0 if not relevant) # string file name or undef # string URI or undef # ...do something with the information ... }; RDF::Redland::set_log_handler(\&handler); =cut sub set_log_handler ($) { $Log_Sub=shift; } =item reset_log_handler Reset redland to use the default logging handler, typically printing the message to stdout or stderr and exiting on a fatal error. =cut sub reset_log_handler () { $Log_Sub=undef; } =item set_error_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set I as the subroutine to be called on a Redland error with the error message as the single argument. For example: RDF::Redland::set_error_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run die $msg =cut sub set_error_handler ($) { $Error_Sub=shift; } =item set_warning_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set I as the subroutine to be called on a Redland warning with the warning message as the single argument. For example: RDF::Redland::set_warning_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run warn $msg =cut sub set_warning_handler ($) { $Warning_Sub=shift; } =pod =back =head1 SEE ALSO L, L, L, L, L, L, L, L, L, L, L, L, L, L and L. =head1 AUTHOR Dave Beckett - http://www.dajobe.org/ =cut 1; redland-bindings-1.0.16.1/perl/lib/Makefile.am0000644000175000017500000000001410406177663015634 00000000000000SUBDIRS=RDF redland-bindings-1.0.16.1/perl/lib/Makefile.in0000644000175000017500000004457512063416534015663 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = perl/lib DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = RDF all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu perl/lib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/perl/CORE_wrap.c0000644000175000017500000114462211776152620014773 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGPERL #define SWIG_CASTRANK_MODE /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { register size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #ifdef __cplusplus /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ #include #include extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ #ifndef PERL_REVISION # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) # define PERL_PATCHLEVEL_H_IMPLICIT # include # endif # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) # include # endif # ifndef PERL_REVISION # define PERL_REVISION (5) # define PERL_VERSION PATCHLEVEL # define PERL_SUBVERSION SUBVERSION # endif #endif #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) #endif #ifndef SvIOK_UV # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) #endif #ifndef SvUOK # define SvUOK(sv) SvIOK_UV(sv) #endif #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) # define PL_sv_undef sv_undef # define PL_na na # define PL_errgv errgv # define PL_sv_no sv_no # define PL_sv_yes sv_yes # define PL_markstack_ptr markstack_ptr #endif #ifndef IVSIZE # ifdef LONGSIZE # define IVSIZE LONGSIZE # else # define IVSIZE 4 /* A bold guess, but the best we can make. */ # endif #endif #ifndef INT2PTR # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) # define PTRV UV # define INT2PTR(any,d) (any)(d) # else # if PTRSIZE == LONGSIZE # define PTRV unsigned long # else # define PTRV unsigned # endif # define INT2PTR(any,d) (any)(PTRV)(d) # endif # define NUM2PTR(any,d) (any)(PTRV)(d) # define PTR2IV(p) INT2PTR(IV,p) # define PTR2UV(p) INT2PTR(UV,p) # define PTR2NV(p) NUM2PTR(NV,p) # if PTRSIZE == LONGSIZE # define PTR2ul(p) (unsigned long)(p) # else # define PTR2ul(p) INT2PTR(unsigned long,p) # endif #endif /* !INT2PTR */ #ifndef SvPV_nolen # define SvPV_nolen(x) SvPV(x,PL_na) #endif #ifndef get_sv # define get_sv perl_get_sv #endif #ifndef ERRSV # define ERRSV get_sv("@",FALSE) #endif #ifndef pTHX_ #define pTHX_ #endif #include #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGINTERN const char* SWIG_Perl_ErrorType(int code) { switch(code) { case SWIG_MemoryError: return "MemoryError"; case SWIG_IOError: return "IOError"; case SWIG_RuntimeError: return "RuntimeError"; case SWIG_IndexError: return "IndexError"; case SWIG_TypeError: return "TypeError"; case SWIG_DivisionByZero: return "ZeroDivisionError"; case SWIG_OverflowError: return "OverflowError"; case SWIG_SyntaxError: return "SyntaxError"; case SWIG_ValueError: return "ValueError"; case SWIG_SystemError: return "SystemError"; case SWIG_AttributeError: return "AttributeError"; default: return "RuntimeError"; } } /* ----------------------------------------------------------------------------- * perlrun.swg * * This file contains the runtime support for Perl modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ #ifdef PERL_OBJECT #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), #define SWIG_PERL_OBJECT_CALL pPerl, #else #define SWIG_PERL_OBJECT_DECL #define SWIG_PERL_OBJECT_CALL #endif /* Common SWIG API */ /* for raw pointers */ #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) /* for raw packed data */ #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Perl-specific SWIG API */ #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #ifdef __cplusplus extern "C" { #endif #define SWIG_OWNER SWIG_POINTER_OWN #define SWIG_SHADOW SWIG_OWNER << 1 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL /* SWIG Perl macros */ /* Macro to declare an XS function */ #ifndef XSPROTO # define XSPROTO(name) void name(pTHX_ CV* cv) #endif /* Macro to call an XS function */ #ifdef PERL_OBJECT # define SWIG_CALLXS(_name) _name(cv,pPerl) #else # ifndef MULTIPLICITY # define SWIG_CALLXS(_name) _name(cv) # else # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) # endif #endif #ifdef PERL_OBJECT #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; #ifdef __cplusplus extern "C" { #endif typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #define SWIGCLASS_STATIC #else /* PERL_OBJECT */ #define MAGIC_PPERL #define SWIGCLASS_STATIC static SWIGUNUSED #ifndef MULTIPLICITY #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #else /* MULTIPLICITY */ #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); #ifdef __cplusplus } #endif #endif /* MULTIPLICITY */ #endif /* PERL_OBJECT */ # ifdef PERL_OBJECT # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) static void SWIG_Perl_croak_null(CPerlObj *pPerl) # else static void SWIG_croak_null() # endif { SV *err = get_sv("@", GV_ADD); # if (PERL_VERSION < 6) croak("%_", err); # else if (sv_isobject(err)) croak(0); else croak("%s", SvPV_nolen(err)); # endif } /* Define how strict is the cast between strings and integers/doubles when overloading between these types occurs. The default is making it as strict as possible by using SWIG_AddCast when needed. You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to disable the SWIG_AddCast, making the casting between string and numbers less strict. In the end, we try to solve the overloading between strings and numerical types in the more natural way, but if you can avoid it, well, avoid it using %rename, for example. */ #ifndef SWIG_PERL_NO_STRICT_STR2NUM # ifndef SWIG_PERL_STRICT_STR2NUM # define SWIG_PERL_STRICT_STR2NUM # endif #endif #ifdef SWIG_PERL_STRICT_STR2NUM /* string takes precedence */ #define SWIG_Str2NumCast(x) SWIG_AddCast(x) #else /* number takes precedence */ #define SWIG_Str2NumCast(x) x #endif #include SWIGRUNTIME const char * SWIG_Perl_TypeProxyName(const swig_type_info *type) { if (!type) return NULL; if (type->clientdata != NULL) { return (const char*) type->clientdata; } else { return type->name; } } /* Identical to SWIG_TypeCheck, except for strcmp comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Function for getting a pointer value */ SWIGRUNTIME int SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { swig_cast_info *tc; void *voidptr = (void *)0; SV *tsv = 0; if (own) *own = 0; /* If magical, apply more magic */ if (SvGMAGICAL(sv)) mg_get(sv); /* Check to see if this is an object */ if (sv_isobject(sv)) { IV tmp = 0; tsv = (SV*) SvRV(sv); if ((SvTYPE(tsv) == SVt_PVHV)) { MAGIC *mg; if (SvMAGICAL(tsv)) { mg = mg_find(tsv,'P'); if (mg) { sv = mg->mg_obj; if (sv_isobject(sv)) { tsv = (SV*)SvRV(sv); tmp = SvIV(tsv); } } } else { return SWIG_ERROR; } } else { tmp = SvIV(tsv); } voidptr = INT2PTR(void *,tmp); } else if (! SvOK(sv)) { /* Check for undef */ *(ptr) = (void *) 0; return SWIG_OK; } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ if (!SvROK(sv)) { /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ if (SvIOK(sv)) { return SWIG_ERROR; } else { /* NULL pointer (reference to undef). */ *(ptr) = (void *) 0; return SWIG_OK; } } else { return SWIG_ERROR; } } else { /* Don't know what it is */ return SWIG_ERROR; } if (_t) { /* Now see if the types match */ char *_c = HvNAME(SvSTASH(SvRV(sv))); tc = SWIG_TypeProxyCheck(_c,_t); if (!tc) { return SWIG_ERROR; } { int newmemory = 0; *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } } else { *ptr = voidptr; } /* * DISOWN implementation: we need a perl guru to check this one. */ if (tsv && (flags & SWIG_POINTER_DISOWN)) { /* * almost copy paste code from below SWIG_POINTER_OWN setting */ SV *obj = sv; HV *stash = SvSTASH(SvRV(obj)); GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (isGV(gv)) { HV *hv = GvHVn(gv); /* * To set ownership (see below), a newSViv(1) entry is added. * Hence, to remove ownership, we delete the entry. */ if (hv_exists_ent(hv, obj, 0)) { hv_delete_ent(hv, obj, 0, 0); } } } return SWIG_OK; } SWIGRUNTIME int SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); } SWIGRUNTIME void SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { SV *self; SV *obj=newSV(0); HV *hash=newHV(); HV *stash; sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); stash=SvSTASH(SvRV(obj)); if (flags & SWIG_POINTER_OWN) { HV *hv; GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (!isGV(gv)) gv_init(gv, stash, "OWNER", 5, FALSE); hv=GvHVn(gv); hv_store_ent(hv, obj, newSViv(1), 0); } sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); SvREFCNT_dec(obj); self=newRV_noinc((SV *)hash); sv_setsv(sv, self); SvREFCNT_dec((SV *)self); sv_bless(sv, stash); } else { sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); } } SWIGRUNTIMEINLINE SV * SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { SV *result = sv_newmortal(); SWIG_MakePtr(result, ptr, t, flags); return result; } SWIGRUNTIME void SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); strcpy(r,SWIG_Perl_TypeProxyName(type)); sv_setpv(sv, result); } SWIGRUNTIME SV * SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { SV *result = sv_newmortal(); SWIG_Perl_MakePackedObj(result, ptr, sz, type); return result; } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c = 0; if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; c = SvPV_nolen(obj); /* Pointer values must start with leading underscore */ if (*c != '_') return SWIG_ERROR; c++; c = SWIG_UnpackData(c,ptr,sz); if (ty) { tc = SWIG_TypeCheck(c,ty); if (!tc) return SWIG_ERROR; } return SWIG_OK; } /* Macros for low-level exception handling */ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } typedef XSPROTO(SwigPerlWrapper); typedef SwigPerlWrapper *SwigPerlWrapperPtr; /* Structure for command table */ typedef struct { const char *name; SwigPerlWrapperPtr wrapper; } swig_command_info; /* Information for constant table */ #define SWIG_INT 1 #define SWIG_FLOAT 2 #define SWIG_STRING 3 #define SWIG_POINTER 4 #define SWIG_BINARY 5 /* Constant information structure */ typedef struct swig_constant_info { int type; const char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_constant_info; /* Structure for variable table */ typedef struct { const char *name; SwigMagicFunc set; SwigMagicFunc get; swig_type_info **type; } swig_variable_info; /* Magic variable code */ #ifndef PERL_OBJECT # ifdef __cplusplus # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast(a),b,c) # else # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) # endif # ifndef MULTIPLICITY SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) # else SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) # endif #else # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) #endif { MAGIC *mg; sv_magic(sv,sv,'U',name,strlen(name)); mg = mg_find(sv,'U'); mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); mg->mg_virtual->svt_get = (SwigMagicFunc) get; mg->mg_virtual->svt_set = (SwigMagicFunc) set; mg->mg_virtual->svt_len = 0; mg->mg_virtual->svt_clear = 0; mg->mg_virtual->svt_free = 0; } SWIGRUNTIME swig_module_info * SWIG_Perl_GetModule(void) { static void *type_pointer = (void *)0; SV *pointer; /* first check if pointer already created */ if (!type_pointer) { pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); if (pointer && SvOK(pointer)) { type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); } } return (swig_module_info *) type_pointer; } SWIGRUNTIME void SWIG_Perl_SetModule(swig_module_info *module) { SV *pointer; /* create a new pointer */ pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); sv_setiv(pointer, PTR2IV(module)); } #ifdef __cplusplus } #endif /* Workaround perl5 global namespace pollution. Note that undefining library * functions like fopen will not solve the problem on all platforms as fopen * might be a macro on Windows but not necessarily on other operating systems. */ #ifdef do_open #undef do_open #endif #ifdef do_close #undef do_close #endif #ifdef do_exec #undef do_exec #endif #ifdef scalar #undef scalar #endif #ifdef list #undef list #endif #ifdef apply #undef apply #endif #ifdef convert #undef convert #endif #ifdef Error #undef Error #endif #ifdef form #undef form #endif #ifdef vform #undef vform #endif #ifdef LABEL #undef LABEL #endif #ifdef METHOD #undef METHOD #endif #ifdef Move #undef Move #endif #ifdef yylex #undef yylex #endif #ifdef yyparse #undef yyparse #endif #ifdef yyerror #undef yyerror #endif #ifdef invert #undef invert #endif #ifdef ref #undef ref #endif #ifdef read #undef read #endif #ifdef write #undef write #endif #ifdef eof #undef eof #endif #ifdef bool #undef bool #endif #ifdef close #undef close #endif #ifdef rewind #undef rewind #endif #ifdef free #undef free #endif #ifdef malloc #undef malloc #endif #ifdef calloc #undef calloc #endif #ifdef Stat #undef Stat #endif #ifdef check #undef check #endif #ifdef seekdir #undef seekdir #endif #ifdef open #undef open #endif #ifdef readdir #undef readdir #endif #ifdef bind #undef bind #endif #ifdef access #undef access #endif #ifdef stat #undef stat #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] #define SWIGTYPE_p_librdf_digest_s swig_types[1] #define SWIGTYPE_p_librdf_hash_s swig_types[2] #define SWIGTYPE_p_librdf_iterator_s swig_types[3] #define SWIGTYPE_p_librdf_log_func swig_types[4] #define SWIGTYPE_p_librdf_log_message swig_types[5] #define SWIGTYPE_p_librdf_model_s swig_types[6] #define SWIGTYPE_p_librdf_node_s swig_types[7] #define SWIGTYPE_p_librdf_parser_s swig_types[8] #define SWIGTYPE_p_librdf_query swig_types[9] #define SWIGTYPE_p_librdf_query_results swig_types[10] #define SWIGTYPE_p_librdf_serializer_s swig_types[11] #define SWIGTYPE_p_librdf_statement_s swig_types[12] #define SWIGTYPE_p_librdf_storage_s swig_types[13] #define SWIGTYPE_p_librdf_stream_s swig_types[14] #define SWIGTYPE_p_librdf_uri_s swig_types[15] #define SWIGTYPE_p_librdf_world_s swig_types[16] #define SWIGTYPE_p_p_char swig_types[17] #define SWIGTYPE_p_raptor_locator swig_types[18] static swig_type_info *swig_types[20]; static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init boot_RDF__Redland__CORE #define SWIG_name "RDF::Redland::COREc::boot_RDF__Redland__CORE" #define SWIG_prefix "RDF::Redland::COREc::" #define SWIGVERSION 0x020007 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) #ifdef __cplusplus extern "C" #endif #ifndef PERL_OBJECT #ifndef MULTIPLICITY SWIGEXPORT void SWIG_init (CV* cv); #else SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); #endif #else SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) { if (SvMAGICAL(obj)) { SV *tmp = sv_newmortal(); SvSetSV(tmp, obj); obj = tmp; } if (SvPOK(obj)) { STRLEN len = 0; char *cstr = SvPV(obj, len); size_t size = len + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { char* vptr = 0; if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = vptr; if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) { if (SvNIOK(obj)) { if (val) *val = SvNV(obj); return SWIG_OK; } else if (SvIOK(obj)) { if (val) *val = (double) SvIV(obj); return SWIG_AddCast(SWIG_OK); } else { const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; double v; errno = 0; v = strtod(nptr, &endptr); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } } return SWIG_TypeError; } #include #include SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max) { double x = *d; if ((min <= x && x <= max)) { double fx = floor(x); double cx = ceil(x); double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ if ((errno == EDOM) || (errno == ERANGE)) { errno = 0; } else { double summ, reps, diff; if (rd < x) { diff = x - rd; } else if (rd > x) { diff = rd - x; } else { return 1; } summ = rd + x; reps = diff/summ; if (reps < 8*DBL_EPSILON) { *d = rd; return 1; } } } return 0; } SWIGINTERN int SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) { if (SvUOK(obj)) { UV v = SvUV(obj); if (v <= ULONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else if (SvIOK(obj)) { IV v = SvIV(obj); if (v >= 0 && v <= ULONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else { int dispatch = 0; const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; unsigned long v; errno = 0; v = strtoul(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { if (val) *val = (unsigned long)(d); return res; } } } return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); return res; } SWIGINTERNINLINE SV * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { SV *obj = sv_newmortal(); if (carray) { sv_setpvn(obj, carray, size); } else { sv_setsv(obj, &PL_sv_undef); } return obj; } SWIGINTERNINLINE SV * SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERNINLINE SV * SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) { SV *sv; if (value >= IV_MIN && value <= IV_MAX) sv = newSViv(value); else sv = newSVpvf("%ld", value); return sv_2mortal(sv); } SWIGINTERNINLINE SV * SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) { return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif SWIGINTERN int SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) { if (SvUOK(obj)) { UV v = SvUV(obj); if (v <= LONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else if (SvIOK(obj)) { IV v = SvIV(obj); if (v >= LONG_MIN && v <= LONG_MAX) { if(val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else { int dispatch = 0; const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; long v; errno = 0; v = strtol(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { if (val) *val = (long)(d); return res; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) { long v; int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (int)(v); } } return res; } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) { SV *sv; if (value <= UV_MAX) sv = newSVuv(value); else sv = newSVpvf("%lu", value); return sv_2mortal(sv); } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value) { return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); } #ifdef __cplusplus extern "C" { #endif #ifdef PERL_OBJECT #define MAGIC_CLASS _wrap_RDF__Redland__CORE_var:: class _wrap_RDF__Redland__CORE_var : public CPerlObj { public: #else #define MAGIC_CLASS #endif SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL croak("Value is read-only."); return 0; } SWIGCLASS_STATIC int _wrap_librdf_short_copyright_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(librdf_short_copyright_string)) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_copyright_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(librdf_copyright_string)) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(librdf_version_string)) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_major))) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_minor))) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_release))) ; return 1; } SWIGCLASS_STATIC int _wrap_librdf_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_decimal))) ; return 1; } SWIGCLASS_STATIC int _wrap_raptor_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(raptor_version_string)) ; return 1; } SWIGCLASS_STATIC int _wrap_raptor_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_major))) ; return 1; } SWIGCLASS_STATIC int _wrap_raptor_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_minor))) ; return 1; } SWIGCLASS_STATIC int _wrap_raptor_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_release))) ; return 1; } SWIGCLASS_STATIC int _wrap_raptor_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_decimal))) ; return 1; } SWIGCLASS_STATIC int _wrap_rasqal_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(rasqal_version_string)) ; return 1; } SWIGCLASS_STATIC int _wrap_rasqal_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_major))) ; return 1; } SWIGCLASS_STATIC int _wrap_rasqal_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_minor))) ; return 1; } SWIGCLASS_STATIC int _wrap_rasqal_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_release))) ; return 1; } SWIGCLASS_STATIC int _wrap_rasqal_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_decimal))) ; return 1; } #ifdef PERL_OBJECT }; #endif #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif XS(_wrap_librdf_new_digest) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_digest *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_digest(world,name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_digest" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_digest" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); result = (librdf_digest *)librdf_new_digest(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_free_digest) { { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_digest(digest);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_digest" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_free_digest(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_digest_init) { { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_digest_init(digest);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_init" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_digest_init(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_digest_update) { { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_digest_update(digest,buf,length);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_digest_update" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); librdf_digest_update(arg1,(char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_digest_update_string) { { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_digest_update_string(digest,string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); librdf_digest_update_string(arg1,(char const *)arg2); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_digest_final) { { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_digest_final(digest);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_final" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_digest_final(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_digest_to_string) { { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_digest_to_string(digest);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_to_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); result = (char *)librdf_digest_to_string(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_hash) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_hash *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_hash(world,name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_hash_from_string) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int argvi = 0; librdf_hash *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_new_hash_from_string(world,name,string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_new_hash_from_array_of_strings) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_hash *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_new_hash_from_array_of_strings(world,name,string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "3"" of type '" "char const **""'"); } arg3 = (char **)(argp3); result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_hash_to_string) { { librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_hash_to_string(hash,filter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_hash_to_string" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_hash_to_string" "', argument " "2"" of type '" "char const *[]""'"); } arg2 = (char **)(argp2); result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_hash) { { librdf_hash *arg1 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_hash(hash);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_hash" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); librdf_free_hash(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_world) { { int argvi = 0; librdf_world *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: librdf_new_world();"); } result = (librdf_world *)librdf_new_world(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_world) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_world(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_world" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_free_world(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_world_open) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_world_open(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_open" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_world_open(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_world_get_feature) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_world_get_feature(world,feature);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_get_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_world_get_feature(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_world_set_feature) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_world_set_feature(world,feature,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_world_set_feature(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_get_accept_header) { { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_parser_get_accept_header(parser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_accept_header" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); result = (char *)librdf_parser_get_accept_header(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_world_set_logger) { { librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_world_set_logger(world,user_data,log_handler);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_logger" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_logger" "', argument " "2"" of type '" "void *""'"); } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_librdf_log_func, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } else { arg3 = *((librdf_log_func *)(argp3)); } } librdf_world_set_logger(arg1,arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_iterator) { { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_iterator(librdf_iterator *);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_iterator" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); librdf_free_iterator(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_iterator_end) { { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_iterator_end(iterator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_end" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_end(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_iterator_get_object) { { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_iterator_get_object(iterator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_object" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_object(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_iterator_get_context) { { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_iterator_get_context(iterator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_context" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_context(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_iterator_next) { { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_iterator_next(iterator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_next" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_next(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_uri) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_uri(world,string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); result = (librdf_uri *)librdf_new_uri(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_uri_from_uri) { { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_uri_from_uri(uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); result = (librdf_uri *)librdf_new_uri_from_uri(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_uri_from_filename) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_uri_from_filename(world,filename);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_filename" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri_from_filename" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_free_uri) { { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_uri(uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); librdf_free_uri(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_uri_to_string) { { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_uri_to_string(uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_to_string" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); result = (char *)librdf_uri_to_string(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_uri_equals) { { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_uri_equals(first_uri,second_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_equals" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_equals" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_equals(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_uri_compare) { { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_uri_compare(first_uri,second_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_compare" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_compare" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_compare(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_node) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_node(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); result = (librdf_node *)librdf_new_node(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_uri_string) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_node_from_uri_string(world,string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_uri) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_new_node_from_uri(world,uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_uri_local_name) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_new_node_from_uri_local_name(world,uri,local_name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_normalised_uri_string) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_new_node_from_normalised_uri_string(world,uri_string,source_uri,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_literal) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 4)) { SWIG_croak("Usage: librdf_new_node_from_literal(world,string,inStrOrNull,is_wf_xml);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (items > 3) { ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "librdf_new_node_from_literal" "', argument " "4"" of type '" "int""'"); } arg4 = (int)(val4); } result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_typed_literal) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 4)) { SWIG_croak("Usage: librdf_new_node_from_typed_literal(world,string,inStrOrNull,inUriOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_typed_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_typed_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_typed_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (items > 3) { res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_typed_literal" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); } result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_node) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_node_from_node(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_node *)librdf_new_node_from_node(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_node_from_blank_identifier) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 2)) { SWIG_croak("Usage: librdf_new_node_from_blank_identifier(world,inStrOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); if (items > 1) { res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); } result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_free_node) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_node(r);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); librdf_free_node(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_uri) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_uri(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_uri(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_type) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_type(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_type" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_type(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_literal_value) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_literal_value(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_literal_value_as_latin1) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_literal_value_as_latin1(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_as_latin1" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_as_latin1(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_literal_value_language) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_literal_value_language(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_language" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_language(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_literal_value_datatype_uri) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_literal_value_datatype_uri(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_datatype_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_literal_value_is_wf_xml) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_literal_value_is_wf_xml(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_is_wf_xml" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_li_ordinal) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_li_ordinal(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_li_ordinal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_li_ordinal(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_to_string) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_to_string(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_to_string" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_to_string(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_get_blank_identifier) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_get_blank_identifier(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_blank_identifier" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_blank_identifier(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_is_resource) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_is_resource(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_resource" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_resource(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_is_literal) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_is_literal(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_literal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_literal(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_is_blank) { { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_node_is_blank(node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_blank" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_blank(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_node_equals) { { librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_node_equals(first_node,second_node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_equals" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_node_equals" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_node_equals(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_statement) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_statement *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_statement(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); result = (librdf_statement *)librdf_new_statement(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_statement_from_statement) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_statement *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_statement_from_statement(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_statement *)librdf_new_statement_from_statement(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_statement_from_nodes) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_statement *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_new_statement_from_nodes(world,subject,predicate,object);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_nodes" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_statement_from_nodes" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_statement_from_nodes" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_statement_from_nodes" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_statement) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_statement(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); librdf_free_statement(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_get_subject) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_statement_get_subject(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_subject(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_set_subject) { { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_statement_set_subject(statement,subject);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_subject" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_subject(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_get_predicate) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_statement_get_predicate(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_predicate(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_set_predicate) { { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_statement_set_predicate(statement,predicate);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_predicate" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_predicate(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_get_object) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_statement_get_object(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_object(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_set_object) { { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_statement_set_object(statement,object);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_object" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_object(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_equals) { { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_statement_equals(statement1,statement2);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_equals" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_equals" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_equals(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_match) { { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_statement_match(statement,partial_statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_match" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_match" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_match(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_to_string) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_statement_to_string(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_to_string" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (char *)librdf_statement_to_string(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_statement_is_complete) { { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_statement_is_complete(statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_is_complete" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (int)librdf_statement_is_complete(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_model) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int argvi = 0; librdf_model *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_new_model(world,storage,options_string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_new_model_with_options) { { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_model *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_new_model_with_options(world,storage,options);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_with_options" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model_with_options" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model_with_options" "', argument " "3"" of type '" "librdf_hash *""'"); } arg3 = (librdf_hash *)(argp3); result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_model_from_model) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_model *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_model_from_model(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_from_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_model *)librdf_new_model_from_model(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_model) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_model(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); librdf_free_model(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_size) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_size(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_size" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_size(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_add) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_model_add(model,subject,predicate,object);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); result = (int)librdf_model_add(arg1,arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_add_string_literal_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int val6 ; int ecode6 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 6)) { SWIG_croak("Usage: librdf_model_add_string_literal_statement(model,subject,predicate,literal,inStrOrNull,is_wf_xml);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_string_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_string_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_string_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_string_literal_statement" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); if (items > 4) { res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_string_literal_statement" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); } if (items > 5) { ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "librdf_model_add_string_literal_statement" "', argument " "6"" of type '" "int""'"); } arg6 = (int)(val6); } result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); XSRETURN(argvi); fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); SWIG_croak_null(); } } XS(_wrap_librdf_model_add_typed_literal_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 5) || (items > 6)) { SWIG_croak("Usage: librdf_model_add_typed_literal_statement(model,subject,predicate,string,inStrOrNull,inUriOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "4"" of type '" "char *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "5"" of type '" "char *""'"); } arg5 = (char *)(buf5); if (items > 5) { res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "6"" of type '" "librdf_uri *""'"); } arg6 = (librdf_uri *)(argp6); } result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); XSRETURN(argvi); fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); SWIG_croak_null(); } } XS(_wrap_librdf_model_add_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_add_statement(model,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_add_statement(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_add_statements) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_add_statements(model,statement_stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statements" "', argument " "2"" of type '" "librdf_stream *""'"); } arg2 = (librdf_stream *)(argp2); result = (int)librdf_model_add_statements(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_remove_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_remove_statement(model,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_remove_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_remove_statement(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_contains_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_contains_statement(model,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_contains_statement(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_as_stream) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_as_stream(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_stream *)librdf_model_as_stream(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_find_statements) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_find_statements(model,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_find_statements_in_context) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 2) || (items > 3)) { SWIG_croak("Usage: librdf_model_find_statements_in_context(model,statement,inNodeOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements_in_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements_in_context" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); if (items > 2) { res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_find_statements_in_context" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); } result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_sources) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_sources(model,arc,target);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_sources" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_sources" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_sources" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_arcs) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_arcs(model,source,target);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arcs" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_targets) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_targets(model,source,arc);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_targets" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_targets" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_targets" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_source) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_source(model,arc,target);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_source" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_source" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_source" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_arc) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_arc(model,source,target);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arc" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arc" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arc" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_arcs_out) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_get_arcs_out(model,node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_arcs_in) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_get_arcs_in(model,node);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_has_arc_in) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_has_arc_in(model,node,property);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_in" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_has_arc_out) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_has_arc_out(model,node,property);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_out" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_target) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_get_target(model,source,arc);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_target" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_target" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_target" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_context_add_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_context_add_statement(model,context,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_context_add_statements) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_context_add_statements(model,context,stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statements" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_context_remove_statement) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_context_remove_statement(model,context,statement);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_remove_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_context_remove_statements) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_context_remove_statements(model,context);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_context_remove_statements(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_context_as_stream) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_context_as_stream(model,context);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_as_stream" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_sync) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_sync(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_sync" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); librdf_model_sync(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_contexts) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_iterator *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_get_contexts(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_contexts" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_iterator *)librdf_model_get_contexts(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_contains_context) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_contains_context(model,context);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_context" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_contains_context(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_get_feature) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_get_feature(model,feature);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_model_get_feature(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_set_feature) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_model_set_feature(model,feature,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_set_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_set_feature(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_load) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 5)) { SWIG_croak("Usage: librdf_model_load(model,uri,inStrOrNull,inStrOrNull,type_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_load" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_load" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_load" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_load" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); } if (items > 4) { res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_load" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); } result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); XSRETURN(argvi); fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); SWIG_croak_null(); } } XS(_wrap_librdf_model_query_execute) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_query_results *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_model_query_execute(model,query);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_query_execute" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_query_execute" "', argument " "2"" of type '" "librdf_query *""'"); } arg2 = (librdf_query *)(argp2); result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_to_string) { { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 2) || (items > 5)) { SWIG_croak("Usage: librdf_model_to_string(model,uri,inStrOrNull,inStrOrNull,inUriOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_to_string" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (items > 2) { res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_to_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (items > 3) { res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_to_string" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); } if (items > 4) { res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_to_string" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); } result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); free((char*)result); XSRETURN(argvi); fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); SWIG_croak_null(); } } XS(_wrap_librdf_model_transaction_start) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_transaction_start(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_start" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_start(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_transaction_commit) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_transaction_commit(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_commit" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_commit(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_model_transaction_rollback) { { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_model_transaction_rollback(model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_rollback" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_rollback(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_storage) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int argvi = 0; librdf_storage *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_new_storage(world,storage_name,name,options_string);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_storage" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_storage" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_storage" "', argument " "4"" of type '" "char *""'"); } arg4 = (char *)(buf4); result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); SWIG_croak_null(); } } XS(_wrap_librdf_new_storage_from_storage) { { librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_storage *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_storage_from_storage(old_storage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage_from_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); result = (librdf_storage *)librdf_new_storage_from_storage(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_storage) { { librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_storage(storage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); librdf_free_storage(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_check_name) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_parser_check_name(world,name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)librdf_parser_check_name(arg1,(char const *)arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_parser) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_parser *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_new_parser(world,name,mime_type,type_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_parser" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_parser" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_parser" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_parser" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_free_parser) { { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_parser(parser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_parser" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); librdf_free_parser(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_as_stream) { { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 2) || (items > 3)) { SWIG_croak("Usage: librdf_parser_parse_as_stream(parser,uri,inUriorNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_as_stream" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (items > 2) { res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); } result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_into_model) { { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_parser_parse_into_model(parser,uri,inUriOrNull,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_into_model" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_string_as_stream) { { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_parser_parse_string_as_stream(parser,string,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_string_into_model) { { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_parser_parse_string_into_model(parser,string,base_uri,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_string_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_counted_string_as_stream) { { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_parser_parse_counted_string_as_stream(parser,string,length,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, 0 | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_parser_parse_counted_string_into_model) { { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: librdf_parser_parse_counted_string_into_model(parser,string,length,base_uri,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "5"" of type '" "librdf_model *""'"); } arg5 = (librdf_model *)(argp5); result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_parser_get_feature) { { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_parser_get_feature(parser,feature);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_set_feature) { { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_parser_set_feature(parser,feature,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_set_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_parser_set_feature(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_guess_name) { { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_parser_guess_name(mime_type,buffer,identifier);"); } res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_parser_guess_name2) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_parser_guess_name2(world,mime_type,buffer,identifier);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name2" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_guess_name2" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); SWIG_croak_null(); } } XS(_wrap_librdf_parser_get_namespaces_seen_prefix) { { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_parser_get_namespaces_seen_prefix(parser,offset);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_get_namespaces_seen_uri) { { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; librdf_uri *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_parser_get_namespaces_seen_uri(parser,offset);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_parser_get_namespaces_seen_count) { { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_parser_get_namespaces_seen_count(parser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_count" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); result = (int)librdf_parser_get_namespaces_seen_count(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_new_query) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; librdf_query *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: librdf_new_query(world,name,inUriOrNull,query_string,inUriOrNull);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_query" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_query" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_new_query" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); SWIG_croak_null(); } } XS(_wrap_librdf_new_query_from_query) { { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_query *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_new_query_from_query(old_query);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query_from_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (librdf_query *)librdf_new_query_from_query(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_free_query) { { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_query(query);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); librdf_free_query(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_execute) { { librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_query_results *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_execute(query,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_execute" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_execute" "', argument " "2"" of type '" "librdf_model *""'"); } arg2 = (librdf_model *)(argp2); result = (librdf_query_results *)librdf_query_execute(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_get_limit) { { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_get_limit(query);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_limit(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_set_limit) { { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_set_limit(query,limit);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_limit" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (int)librdf_query_set_limit(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_get_offset) { { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_get_offset(query);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_offset(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_set_offset) { { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_set_offset(query,offset);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_offset" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (int)librdf_query_set_offset(arg1,arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_as_stream) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_stream *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_as_stream(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_as_stream" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (librdf_stream *)librdf_query_results_as_stream(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_count) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_get_count(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_count(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_next) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_next(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_next" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_next(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_finished) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_finished(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_finished" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_finished(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_binding_value) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_results_get_binding_value(query_results,offset);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_value" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_binding_name) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_results_get_binding_name(query_results,offset);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_name" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (char *)librdf_query_results_get_binding_name(arg1,arg2); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_binding_value_by_name) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_query_results_get_binding_value_by_name(query_results,name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_bindings_count) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_get_bindings_count(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_bindings_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_bindings_count(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_to_file) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_query_results_to_file(query_results,name,format_uri,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_query_results_to_file2) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: librdf_query_results_to_file2(query_results,name,mime_type,format_uri,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_file2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_query_results_to_string) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_query_results_to_string(query_results,format_uri,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_to_string2) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: librdf_query_results_to_string2(query_results,name,mime_type,format_uri,base_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_string2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_string2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); free((char*)result); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_free_query_results) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_query_results(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query_results" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); librdf_free_query_results(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_is_bindings) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_is_bindings(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_bindings" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_bindings(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_is_boolean) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_is_boolean(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_boolean(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_is_graph) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_is_graph(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_graph" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_graph(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_is_syntax) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_is_syntax(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_syntax" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_syntax(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_query_results_get_boolean) { { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_query_results_get_boolean(query_results);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_boolean(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_check_name) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_serializer_check_name(world,name);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_new_serializer) { { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; librdf_serializer *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_new_serializer(world,name,mime_type,type_uri);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_serializer" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_serializer" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_serializer" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_serializer" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, SWIG_OWNER | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_free_serializer) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_serializer(serializer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_serializer" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); librdf_free_serializer(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_serialize_stream_to_file) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_serializer_serialize_stream_to_file(serializer,name,base_uri,stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "4"" of type '" "librdf_stream *""'"); } arg4 = (librdf_stream *)(argp4); result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_serializer_serialize_model_to_file) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: librdf_serializer_serialize_model_to_file(serializer,name,inUriOrNull,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); SWIG_croak_null(); } } XS(_wrap_librdf_serializer_serialize_stream_to_string) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_serializer_serialize_stream_to_string(serializer,base_uri,stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_serialize_model_to_string) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_serializer_serialize_model_to_string(serializer,inUriOrNull,model);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "3"" of type '" "librdf_model *""'"); } arg3 = (librdf_model *)(argp3); result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; free((char*)result); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_get_feature) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: librdf_serializer_get_feature(serializer,feature);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_get_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_set_feature) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_serializer_set_feature(serializer,feature,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_serializer_set_namespace) { { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: librdf_serializer_set_namespace(serializer,nspace,prefix);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_namespace" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_namespace" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_namespace" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); XSRETURN(argvi); fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); SWIG_croak_null(); } } XS(_wrap_librdf_free_stream) { { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_free_stream(stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_stream" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); librdf_free_stream(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_stream_end) { { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_stream_end(stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_end" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_end(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_stream_next) { { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_stream_next(stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_next" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_next(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_stream_get_object) { { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_statement *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_stream_get_object(stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_object" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (librdf_statement *)librdf_stream_get_object(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_stream_get_context) { { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; librdf_node *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_stream_get_context(stream);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_context" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (librdf_node *)librdf_stream_get_context(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_log_message_code) { { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_log_message_code(message);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_code" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_code(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_log_message_level) { { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_log_message_level(message);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_level" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_level(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_log_message_facility) { { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_log_message_facility(message);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_facility" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_facility(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_log_message_message) { { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_log_message_message(message);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_message" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (char *)librdf_log_message_message(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_log_message_locator) { { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; raptor_locator *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_log_message_locator(message);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_locator" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (raptor_locator *)librdf_log_message_locator(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_raptor_locator_line) { { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: raptor_locator_line(locator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_line" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_line(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_raptor_locator_column) { { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: raptor_locator_column(locator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_column" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_column(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_raptor_locator_byte) { { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: raptor_locator_byte(locator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_byte" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_byte(arg1); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_raptor_locator_file) { { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: raptor_locator_file(locator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_file" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_file(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_raptor_locator_uri) { { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: raptor_locator_uri(locator);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_uri" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_uri(arg1); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_internal_test_error) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_internal_test_error(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_error" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_internal_test_error(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_internal_test_warning) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_internal_test_warning(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_warning" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_internal_test_warning(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_perl_world_init) { { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: librdf_perl_world_init(world);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_perl_world_init" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_perl_world_init(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_librdf_perl_world_finish) { { int argvi = 0; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: librdf_perl_world_finish();"); } librdf_perl_world_finish(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_char, &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_char, _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_constant_info swig_constants[] = { {0,0,0,0,0,0} }; #ifdef __cplusplus } #endif static swig_variable_info swig_variables[] = { { "RDF::Redland::COREc::librdf_short_copyright_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_short_copyright_string_get,0 }, { "RDF::Redland::COREc::librdf_copyright_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_copyright_string_get,0 }, { "RDF::Redland::COREc::librdf_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_string_get,0 }, { "RDF::Redland::COREc::librdf_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_major_get,0 }, { "RDF::Redland::COREc::librdf_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_minor_get,0 }, { "RDF::Redland::COREc::librdf_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_release_get,0 }, { "RDF::Redland::COREc::librdf_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_decimal_get,0 }, { "RDF::Redland::COREc::raptor_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_string_get,0 }, { "RDF::Redland::COREc::raptor_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_major_get,0 }, { "RDF::Redland::COREc::raptor_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_minor_get,0 }, { "RDF::Redland::COREc::raptor_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_release_get,0 }, { "RDF::Redland::COREc::raptor_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_decimal_get,0 }, { "RDF::Redland::COREc::rasqal_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_string_get,0 }, { "RDF::Redland::COREc::rasqal_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_major_get,0 }, { "RDF::Redland::COREc::rasqal_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_minor_get,0 }, { "RDF::Redland::COREc::rasqal_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_release_get,0 }, { "RDF::Redland::COREc::rasqal_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_decimal_get,0 }, {0,0,0,0} }; static swig_command_info swig_commands[] = { {"RDF::Redland::COREc::librdf_new_digest", _wrap_librdf_new_digest}, {"RDF::Redland::COREc::librdf_free_digest", _wrap_librdf_free_digest}, {"RDF::Redland::COREc::librdf_digest_init", _wrap_librdf_digest_init}, {"RDF::Redland::COREc::librdf_digest_update", _wrap_librdf_digest_update}, {"RDF::Redland::COREc::librdf_digest_update_string", _wrap_librdf_digest_update_string}, {"RDF::Redland::COREc::librdf_digest_final", _wrap_librdf_digest_final}, {"RDF::Redland::COREc::librdf_digest_to_string", _wrap_librdf_digest_to_string}, {"RDF::Redland::COREc::librdf_new_hash", _wrap_librdf_new_hash}, {"RDF::Redland::COREc::librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string}, {"RDF::Redland::COREc::librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings}, {"RDF::Redland::COREc::librdf_hash_to_string", _wrap_librdf_hash_to_string}, {"RDF::Redland::COREc::librdf_free_hash", _wrap_librdf_free_hash}, {"RDF::Redland::COREc::librdf_new_world", _wrap_librdf_new_world}, {"RDF::Redland::COREc::librdf_free_world", _wrap_librdf_free_world}, {"RDF::Redland::COREc::librdf_world_open", _wrap_librdf_world_open}, {"RDF::Redland::COREc::librdf_world_get_feature", _wrap_librdf_world_get_feature}, {"RDF::Redland::COREc::librdf_world_set_feature", _wrap_librdf_world_set_feature}, {"RDF::Redland::COREc::librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header}, {"RDF::Redland::COREc::librdf_world_set_logger", _wrap_librdf_world_set_logger}, {"RDF::Redland::COREc::librdf_free_iterator", _wrap_librdf_free_iterator}, {"RDF::Redland::COREc::librdf_iterator_end", _wrap_librdf_iterator_end}, {"RDF::Redland::COREc::librdf_iterator_get_object", _wrap_librdf_iterator_get_object}, {"RDF::Redland::COREc::librdf_iterator_get_context", _wrap_librdf_iterator_get_context}, {"RDF::Redland::COREc::librdf_iterator_next", _wrap_librdf_iterator_next}, {"RDF::Redland::COREc::librdf_new_uri", _wrap_librdf_new_uri}, {"RDF::Redland::COREc::librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri}, {"RDF::Redland::COREc::librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename}, {"RDF::Redland::COREc::librdf_free_uri", _wrap_librdf_free_uri}, {"RDF::Redland::COREc::librdf_uri_to_string", _wrap_librdf_uri_to_string}, {"RDF::Redland::COREc::librdf_uri_equals", _wrap_librdf_uri_equals}, {"RDF::Redland::COREc::librdf_uri_compare", _wrap_librdf_uri_compare}, {"RDF::Redland::COREc::librdf_new_node", _wrap_librdf_new_node}, {"RDF::Redland::COREc::librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string}, {"RDF::Redland::COREc::librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri}, {"RDF::Redland::COREc::librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name}, {"RDF::Redland::COREc::librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string}, {"RDF::Redland::COREc::librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal}, {"RDF::Redland::COREc::librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal}, {"RDF::Redland::COREc::librdf_new_node_from_node", _wrap_librdf_new_node_from_node}, {"RDF::Redland::COREc::librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier}, {"RDF::Redland::COREc::librdf_free_node", _wrap_librdf_free_node}, {"RDF::Redland::COREc::librdf_node_get_uri", _wrap_librdf_node_get_uri}, {"RDF::Redland::COREc::librdf_node_get_type", _wrap_librdf_node_get_type}, {"RDF::Redland::COREc::librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value}, {"RDF::Redland::COREc::librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1}, {"RDF::Redland::COREc::librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language}, {"RDF::Redland::COREc::librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri}, {"RDF::Redland::COREc::librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml}, {"RDF::Redland::COREc::librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal}, {"RDF::Redland::COREc::librdf_node_to_string", _wrap_librdf_node_to_string}, {"RDF::Redland::COREc::librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier}, {"RDF::Redland::COREc::librdf_node_is_resource", _wrap_librdf_node_is_resource}, {"RDF::Redland::COREc::librdf_node_is_literal", _wrap_librdf_node_is_literal}, {"RDF::Redland::COREc::librdf_node_is_blank", _wrap_librdf_node_is_blank}, {"RDF::Redland::COREc::librdf_node_equals", _wrap_librdf_node_equals}, {"RDF::Redland::COREc::librdf_new_statement", _wrap_librdf_new_statement}, {"RDF::Redland::COREc::librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement}, {"RDF::Redland::COREc::librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes}, {"RDF::Redland::COREc::librdf_free_statement", _wrap_librdf_free_statement}, {"RDF::Redland::COREc::librdf_statement_get_subject", _wrap_librdf_statement_get_subject}, {"RDF::Redland::COREc::librdf_statement_set_subject", _wrap_librdf_statement_set_subject}, {"RDF::Redland::COREc::librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate}, {"RDF::Redland::COREc::librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate}, {"RDF::Redland::COREc::librdf_statement_get_object", _wrap_librdf_statement_get_object}, {"RDF::Redland::COREc::librdf_statement_set_object", _wrap_librdf_statement_set_object}, {"RDF::Redland::COREc::librdf_statement_equals", _wrap_librdf_statement_equals}, {"RDF::Redland::COREc::librdf_statement_match", _wrap_librdf_statement_match}, {"RDF::Redland::COREc::librdf_statement_to_string", _wrap_librdf_statement_to_string}, {"RDF::Redland::COREc::librdf_statement_is_complete", _wrap_librdf_statement_is_complete}, {"RDF::Redland::COREc::librdf_new_model", _wrap_librdf_new_model}, {"RDF::Redland::COREc::librdf_new_model_with_options", _wrap_librdf_new_model_with_options}, {"RDF::Redland::COREc::librdf_new_model_from_model", _wrap_librdf_new_model_from_model}, {"RDF::Redland::COREc::librdf_free_model", _wrap_librdf_free_model}, {"RDF::Redland::COREc::librdf_model_size", _wrap_librdf_model_size}, {"RDF::Redland::COREc::librdf_model_add", _wrap_librdf_model_add}, {"RDF::Redland::COREc::librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement}, {"RDF::Redland::COREc::librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement}, {"RDF::Redland::COREc::librdf_model_add_statement", _wrap_librdf_model_add_statement}, {"RDF::Redland::COREc::librdf_model_add_statements", _wrap_librdf_model_add_statements}, {"RDF::Redland::COREc::librdf_model_remove_statement", _wrap_librdf_model_remove_statement}, {"RDF::Redland::COREc::librdf_model_contains_statement", _wrap_librdf_model_contains_statement}, {"RDF::Redland::COREc::librdf_model_as_stream", _wrap_librdf_model_as_stream}, {"RDF::Redland::COREc::librdf_model_find_statements", _wrap_librdf_model_find_statements}, {"RDF::Redland::COREc::librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context}, {"RDF::Redland::COREc::librdf_model_get_sources", _wrap_librdf_model_get_sources}, {"RDF::Redland::COREc::librdf_model_get_arcs", _wrap_librdf_model_get_arcs}, {"RDF::Redland::COREc::librdf_model_get_targets", _wrap_librdf_model_get_targets}, {"RDF::Redland::COREc::librdf_model_get_source", _wrap_librdf_model_get_source}, {"RDF::Redland::COREc::librdf_model_get_arc", _wrap_librdf_model_get_arc}, {"RDF::Redland::COREc::librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out}, {"RDF::Redland::COREc::librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in}, {"RDF::Redland::COREc::librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in}, {"RDF::Redland::COREc::librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out}, {"RDF::Redland::COREc::librdf_model_get_target", _wrap_librdf_model_get_target}, {"RDF::Redland::COREc::librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement}, {"RDF::Redland::COREc::librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements}, {"RDF::Redland::COREc::librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement}, {"RDF::Redland::COREc::librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements}, {"RDF::Redland::COREc::librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream}, {"RDF::Redland::COREc::librdf_model_sync", _wrap_librdf_model_sync}, {"RDF::Redland::COREc::librdf_model_get_contexts", _wrap_librdf_model_get_contexts}, {"RDF::Redland::COREc::librdf_model_contains_context", _wrap_librdf_model_contains_context}, {"RDF::Redland::COREc::librdf_model_get_feature", _wrap_librdf_model_get_feature}, {"RDF::Redland::COREc::librdf_model_set_feature", _wrap_librdf_model_set_feature}, {"RDF::Redland::COREc::librdf_model_load", _wrap_librdf_model_load}, {"RDF::Redland::COREc::librdf_model_query_execute", _wrap_librdf_model_query_execute}, {"RDF::Redland::COREc::librdf_model_to_string", _wrap_librdf_model_to_string}, {"RDF::Redland::COREc::librdf_model_transaction_start", _wrap_librdf_model_transaction_start}, {"RDF::Redland::COREc::librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit}, {"RDF::Redland::COREc::librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback}, {"RDF::Redland::COREc::librdf_new_storage", _wrap_librdf_new_storage}, {"RDF::Redland::COREc::librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage}, {"RDF::Redland::COREc::librdf_free_storage", _wrap_librdf_free_storage}, {"RDF::Redland::COREc::librdf_parser_check_name", _wrap_librdf_parser_check_name}, {"RDF::Redland::COREc::librdf_new_parser", _wrap_librdf_new_parser}, {"RDF::Redland::COREc::librdf_free_parser", _wrap_librdf_free_parser}, {"RDF::Redland::COREc::librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream}, {"RDF::Redland::COREc::librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model}, {"RDF::Redland::COREc::librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream}, {"RDF::Redland::COREc::librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model}, {"RDF::Redland::COREc::librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream}, {"RDF::Redland::COREc::librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model}, {"RDF::Redland::COREc::librdf_parser_get_feature", _wrap_librdf_parser_get_feature}, {"RDF::Redland::COREc::librdf_parser_set_feature", _wrap_librdf_parser_set_feature}, {"RDF::Redland::COREc::librdf_parser_guess_name", _wrap_librdf_parser_guess_name}, {"RDF::Redland::COREc::librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2}, {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix}, {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri}, {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count}, {"RDF::Redland::COREc::librdf_new_query", _wrap_librdf_new_query}, {"RDF::Redland::COREc::librdf_new_query_from_query", _wrap_librdf_new_query_from_query}, {"RDF::Redland::COREc::librdf_free_query", _wrap_librdf_free_query}, {"RDF::Redland::COREc::librdf_query_execute", _wrap_librdf_query_execute}, {"RDF::Redland::COREc::librdf_query_get_limit", _wrap_librdf_query_get_limit}, {"RDF::Redland::COREc::librdf_query_set_limit", _wrap_librdf_query_set_limit}, {"RDF::Redland::COREc::librdf_query_get_offset", _wrap_librdf_query_get_offset}, {"RDF::Redland::COREc::librdf_query_set_offset", _wrap_librdf_query_set_offset}, {"RDF::Redland::COREc::librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream}, {"RDF::Redland::COREc::librdf_query_results_get_count", _wrap_librdf_query_results_get_count}, {"RDF::Redland::COREc::librdf_query_results_next", _wrap_librdf_query_results_next}, {"RDF::Redland::COREc::librdf_query_results_finished", _wrap_librdf_query_results_finished}, {"RDF::Redland::COREc::librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value}, {"RDF::Redland::COREc::librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name}, {"RDF::Redland::COREc::librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name}, {"RDF::Redland::COREc::librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count}, {"RDF::Redland::COREc::librdf_query_results_to_file", _wrap_librdf_query_results_to_file}, {"RDF::Redland::COREc::librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2}, {"RDF::Redland::COREc::librdf_query_results_to_string", _wrap_librdf_query_results_to_string}, {"RDF::Redland::COREc::librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2}, {"RDF::Redland::COREc::librdf_free_query_results", _wrap_librdf_free_query_results}, {"RDF::Redland::COREc::librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings}, {"RDF::Redland::COREc::librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean}, {"RDF::Redland::COREc::librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph}, {"RDF::Redland::COREc::librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax}, {"RDF::Redland::COREc::librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean}, {"RDF::Redland::COREc::librdf_serializer_check_name", _wrap_librdf_serializer_check_name}, {"RDF::Redland::COREc::librdf_new_serializer", _wrap_librdf_new_serializer}, {"RDF::Redland::COREc::librdf_free_serializer", _wrap_librdf_free_serializer}, {"RDF::Redland::COREc::librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file}, {"RDF::Redland::COREc::librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file}, {"RDF::Redland::COREc::librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string}, {"RDF::Redland::COREc::librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string}, {"RDF::Redland::COREc::librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature}, {"RDF::Redland::COREc::librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature}, {"RDF::Redland::COREc::librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace}, {"RDF::Redland::COREc::librdf_free_stream", _wrap_librdf_free_stream}, {"RDF::Redland::COREc::librdf_stream_end", _wrap_librdf_stream_end}, {"RDF::Redland::COREc::librdf_stream_next", _wrap_librdf_stream_next}, {"RDF::Redland::COREc::librdf_stream_get_object", _wrap_librdf_stream_get_object}, {"RDF::Redland::COREc::librdf_stream_get_context", _wrap_librdf_stream_get_context}, {"RDF::Redland::COREc::librdf_log_message_code", _wrap_librdf_log_message_code}, {"RDF::Redland::COREc::librdf_log_message_level", _wrap_librdf_log_message_level}, {"RDF::Redland::COREc::librdf_log_message_facility", _wrap_librdf_log_message_facility}, {"RDF::Redland::COREc::librdf_log_message_message", _wrap_librdf_log_message_message}, {"RDF::Redland::COREc::librdf_log_message_locator", _wrap_librdf_log_message_locator}, {"RDF::Redland::COREc::raptor_locator_line", _wrap_raptor_locator_line}, {"RDF::Redland::COREc::raptor_locator_column", _wrap_raptor_locator_column}, {"RDF::Redland::COREc::raptor_locator_byte", _wrap_raptor_locator_byte}, {"RDF::Redland::COREc::raptor_locator_file", _wrap_raptor_locator_file}, {"RDF::Redland::COREc::raptor_locator_uri", _wrap_raptor_locator_uri}, {"RDF::Redland::COREc::librdf_internal_test_error", _wrap_librdf_internal_test_error}, {"RDF::Redland::COREc::librdf_internal_test_warning", _wrap_librdf_internal_test_warning}, {"RDF::Redland::COREc::librdf_perl_world_init", _wrap_librdf_perl_world_init}, {"RDF::Redland::COREc::librdf_perl_world_finish", _wrap_librdf_perl_world_finish}, {0,0} }; /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; clientdata = clientdata; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif #ifdef __cplusplus extern "C" #endif XS(SWIG_init) { dXSARGS; int i; SWIG_InitializeModule(0); /* Install commands */ for (i = 0; swig_commands[i].name; i++) { // Casts only needed for Perl < 5.10. #ifdef __cplusplus newXS(const_cast(swig_commands[i].name), swig_commands[i].wrapper, const_cast(__FILE__)); #else newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__); #endif } /* Install variables */ for (i = 0; swig_variables[i].name; i++) { SV *sv; sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); if (swig_variables[i].type) { SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); } else { sv_setiv(sv,(IV) 0); } swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); } /* Install constant */ for (i = 0; swig_constants[i].type; i++) { SV *sv; sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); switch(swig_constants[i].type) { case SWIG_INT: sv_setiv(sv, (IV) swig_constants[i].lvalue); break; case SWIG_FLOAT: sv_setnv(sv, (double) swig_constants[i].dvalue); break; case SWIG_STRING: sv_setpv(sv, (const char *) swig_constants[i].pvalue); break; case SWIG_POINTER: SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); break; case SWIG_BINARY: SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); break; default: break; } SvREADONLY_on(sv); } /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif ST(0) = &PL_sv_yes; XSRETURN(1); } redland-bindings-1.0.16.1/perl/redland-pre.i0000644000175000017500000000030610406177663015405 00000000000000/* for perl, these are passed in by MakeMaker derived makefile */ #undef PACKAGE #undef VERSION /* Delete one of many names polluted by Perl in embed.h via perl.h */ #ifdef list #undef list #endif redland-bindings-1.0.16.1/perl/MANIFEST.SKIP0000644000175000017500000000017710406177663014742 00000000000000.cvsignore \bCCS\b ChangeLog ^MANIFEST\. (?i)^makefile$ ~$ \.old$ ^blib/ ^ChangeLog \.tar\.gz$ CORE.bs \.o$ \.*db$ pm_to_blib redland-bindings-1.0.16.1/perl/example.pl0000755000175000017500000001340511522705745015033 00000000000000#!/usr/bin/perl # # example.pl - Redland eaxmple Perl program # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # use RDF::Redland; $test_file="../data/dc.rdf"; warn "Creating storage\n"; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='bdb',dir='.'"); die "Failed to create RDF::Redland::Storage\n" unless $storage; warn "\nCreating model\n"; my $model=new RDF::Redland::Model($storage, ""); die "Failed to create RDF::Redland::Model for storage\n" unless $model; my $creator_uri=new RDF::Redland::URI("http://purl.org/dc/elements/1.1/creator"); warn "\nCreating statement\n"; my $statement=new RDF::Redland::Statement(RDF::Redland::Node->new_from_uri("http://www.dajobe.org/"), $creator_uri, new RDF::Redland::Node("Dave Beckett")); die "Failed to create RDF::Redland::Statement\n" unless $statement; warn "\nAdding statement to model\n"; $model->add_statement($statement); $statement=undef; my $n=new RDF::Redland::URI('http://example.org/foo'); my $statementn=new RDF::Redland::Statement($n, $n, $n); warn "\nAdding statement (new Statement(n, n, n)) to model\n"; $model->add_statement($statementn); $statement=undef; warn "\nAdding statement (n,n,n) to model\n"; $model->add_statement($n, $n, $n); $statement=undef; die "Data file $test_file not found - cannot parse it.\n Try editing \$test_file variable to point to a file.\n" unless -r $test_file; warn "\nParsing URI (file) $test_file\n"; my $uri=new RDF::Redland::URI("file:$test_file"); # Use any rdf/xml parser that is available my $parser=new RDF::Redland::Parser("rdfxml", "application/rdf+xml"); die "Failed to find parser\n" if !$parser; $stream=$parser->parse_as_stream($uri,$uri); my $count=0; while(!$stream->end) { $model->add_statement($stream->current); $count++; $stream->next; } $stream=undef; warn "Parsing added $count statements\n"; warn "\nNamespace declarations seen during parsing:\n"; my(%namespaces)=$parser->namespaces_seen(); while(my($prefix,$uri)=each %namespaces) { warn " prefix '$prefix' URI ".$uri->as_string."\n"; } warn "\nPrinting all statements\n"; $stream=$model->as_stream; while(!$stream->end) { print "Statement: ",$stream->current->as_string,"\n"; $stream->next; } $stream=undef; warn "\nSearching model for statements matching predicate http://purl.org/dc/elements/1.1/creator\n"; $statement=new RDF::Redland::Statement(undef, $creator_uri, undef); my $stream=$model->find_statements($statement); while(!$stream->end) { my $statement2=$stream->current; print "Matching Statement: ",$statement2->as_string,"\n"; my $subject=$statement2->subject; print " Subject: ",$subject->as_string,"\n"; print " Predicate: ",$statement2->predicate->as_string,"\n"; print " Object: ",$statement2->object->as_string,"\n"; $stream->next; } $stream=undef; $statement=undef; my $home=RDF::Redland::Node->new_from_uri("http://www.dajobe.org/"); warn "\nSearching model for targets of subject ",$home->uri->as_string," predicate ", $creator_uri->as_string, "\n"; my(@nodes)=$model->targets($home, new RDF::Redland::Node($creator_uri)); die "Failed to find any targets matching\n" unless @nodes; for my $node (@nodes) { print "Matching Node: ",$node->as_string,"\n"; } $iterator=undef; my $q = new RDF::Redland::Query("PREFIX dc: \nSELECT ?a ?c WHERE { ?a dc:title ?c }", undef, undef, "sparql"); print "Querying for dc:titles:\n"; my $results=$model->query_execute($q); my $count=1; while(!$results->finished) { print "result $count: {\n"; for(my $i=0; $i < $results->bindings_count; $i++) { my $val=$results->binding_value($i); next unless defined $val; # optionals print " ",$results->binding_name($i),"=",$val->as_string,"\n"; } print "}\n"; $results->next_result; $count++; } $results=undef; warn "Returned $count results\n"; print "\nExecuting query again\n"; my $results=$model->query_execute($q); my $str=$results->to_string; print "Query results serialized to an XML string size ".length($str)." bytes\n"; print "\nExecuting SPARQL construct query\n"; my $q2 = new RDF::Redland::Query("CONSTRUCT { ?a ?b ?c } WHERE { ?a ?b ?c }", undef, undef, "sparql"); my $results=$model->query_execute($q2); $stream=$results->as_stream; $count=0; while(!$stream->end) { print "Statement: ",$stream->current->as_string,"\n"; $stream->next; $count++; } $stream=undef; warn "Returned $count triples\n"; warn "\nWriting model to test-out.rdf as rdf/xml\n"; # Use any rdf/xml parser that is available my $serializer=new RDF::Redland::Serializer("rdfxml"); die "Failed to find serializer\n" if !$serializer; $serializer->set_namespace("dc", new RDF::Redland::URI("http://purl.org/dc/elements/1.1/")); $serializer->serialize_model_to_file("test-out.rdf", $uri, $model); my $str1=$serializer->serialize_model_to_string($uri, $model); warn "\nSerialized to RDF/XML as a string size ",length($str1)," bytes\n"; $serializer=undef; my $str=$model->to_string(new RDF::Redland::URI("http://example.org/base#"), "ntriples"); warn "\nSerialized to ntriples as a string size ",length($str)," bytes\n"; warn "\nDone\n"; # Required in order to ensure storage is correctly flushed to disk $storage=undef; $model=undef; redland-bindings-1.0.16.1/perl/redland-decl.i0000644000175000017500000000012710406177663015527 00000000000000void librdf_perl_world_init(librdf_world *world); void librdf_perl_world_finish(void); redland-bindings-1.0.16.1/perl/Makefile.PL0000644000175000017500000000675011561664720015017 00000000000000#!/usr/local/bin/perl # # Makefile.PL - Makefile for Perl 5 interface to Redland # # Copyright (C) 2000-2011 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # use ExtUtils::MakeMaker; my $pkg_config=$ENV{PKG_CONFIG} || 'pkg-config'; my $redland_config = "$pkg_config redland"; die "Cannot find Redland via $pkg_config\n" unless !`$redland_config --exists 2>/dev/null`; $CORE_PACKAGE="CORE"; my $version=$ENV{VERSION}; if(!defined $version) { $version=`$redland_config --modversion`; chomp $version; die "Cannot find Redland version via $redland_config\n" unless $version; } my $redland_cflags=$ENV{CFLAGS}; if(!defined $redland_cflags) { $redland_cflags = `$redland_config --cflags`; chomp $redland_cflags; } my $redland_ldflags=$ENV{LDFLAGS}; if(!defined $redland_ldflags) { $redland_ldflags = `$redland_config --libs`; chomp $redland_ldflags; } my $swig=$ENV{SWIG}; if(!defined $swig) { $swig=`$redland_config --variable=swig`; chomp $swig; die "cannot find redland SWIG file via $redland_config\n" unless $swig; } my $objects="${CORE_PACKAGE}_wrap.o $redland_libs"; sub MY::postamble { return <<"EOT"; ${CORE_PACKAGE}_wrap.c: $swig \$(MAKE) ${CORE_PACKAGE}_wrap.c EOT } # I'm forced to do this since BASEEXT is defined in a non-overridable method. push(@ExtUtils::MakeMaker::Overridable, "init_main"); # Ensure that the dynamic module gets compiled as CORE not Redland sub MY::init_main { my($self)=@_; package MY; # so that "SUPER" works right $self->SUPER::init_main(); # Perl 5.8 just made this harder if ($] < 5.008) { # OSX too if ($^O eq 'darwin') { $self->{FULLEXT}.="/".$::CORE_PACKAGE; } } else { $self->{FULLEXT}.="/".$::CORE_PACKAGE; } $self->{BASEEXT}=$::CORE_PACKAGE; # Stop perl linking with anything in the destination dir, it might # be entirely the wrong library such as a previous version. $self->{LDFLAGS} =~ s/-L\S+//; $self->{LDDLFLAGS} =~ s/-L\S+//; } WriteMakefile( 'DISTNAME' => "Redland", 'NAME' => "RDF::Redland", 'AUTHOR' => 'Dave Beckett ', 'ABSTRACT' => "Redland RDF library", 'VERSION' => $version, 'MIN_PERL_VERSION' => '5.007003', 'DEFINE' => "-DHAVE_CONFIG_H $redland_cflags", 'OBJECT' => "$objects", 'dynamic_lib' => {'OTHERLDFLAGS' => "$redland_ldflags"}, 'PM' => { map { ("lib/RDF/$_", "\$(INST_LIBDIR)/$_") } qw(Redland.pm Redland/Model.pm Redland/RSS.pm Redland/URI.pm Redland/Iterator.pm Redland/Storage.pm Redland/Statement.pm Redland/Stream.pm Redland/Parser.pm Redland/Query.pm Redland/QueryResults.pm Redland/Serializer.pm Redland/CORE.pm Redland/Node.pm Redland/BlankNode.pm Redland/URINode.pm Redland/LiteralNode.pm Redland/XMLLiteralNode.pm ) }, 'MAKEFILE' => 'Makefile.perl', 'clean' => { FILES => "test*.db" }, 'realclean' => { FILES => "${CORE_PACKAGE}_wrap.c ${CORE_PACKAGE}_wrap.o lib/RDF/Redland/CORE.pm" }, ); redland-bindings-1.0.16.1/perl/Makefile.am0000644000175000017500000000607311523675544015103 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Perl 5 interface to Redland # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ AM_CFLAGS=@CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_STANDARD_CFLAGS=@STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS=@LIBRDF_LDFLAGS@ $(MEM_LIBS) REDLAND_SWIG=@REDLAND_SWIG@ PERL=@PERL@ PERL_REDLAND_PACKAGE=RDF::Redland PERL_CORE_PACKAGE=CORE PERL_FULL_CORE_PACKAGE="$(PERL_REDLAND_PACKAGE)::$(PERL_CORE_PACKAGE)" PERL_MAKEFILE=Makefile.perl SWIG_OUTPUTS=$(PERL_CORE_PACKAGE)_wrap.c \ lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm PERL_CRUFT=pm_to_blib \ $(PERL_CORE_PACKAGE).bs $(PERL_CORE_PACKAGE)_wrap.o \ $(PERL_MAKEFILE).old fakedir=$(prefix) fake_DATA=build-perl-stamp EXTRA_DIST= \ MANIFEST MANIFEST.SKIP Makefile.PL example.pl \ rss-dump.pl \ redland-pre.i redland-post.i redland-decl.i $(SWIG_OUTPUTS) SUBDIRS=lib t CLEANFILES=*.db test-out.rdf core* $(PERL_CRUFT) MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) MEM_LIBS=@MEM_LIBS@ $(perlshareRDFdir)/Redland.pm: build-perl RUN=@REDLAND_RUN@ SWIG_OPTS=-I$(srcdir) -DREDLAND_PRE_I -DREDLAND_POST_I -DREDLAND_DECL_I $(PERL_CORE_PACKAGE)_wrap.c lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm : @REDLAND_SWIG@ redland-pre.i redland-post.i redland-decl.i swig -v -perl5 $(SWIG_OPTS) -module $(PERL_FULL_CORE_PACKAGE) -o $(PERL_CORE_PACKAGE)_wrap.c $(REDLAND_SWIG) && mv $(PERL_CORE_PACKAGE).pm lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm $(PERL_MAKEFILE): $(srcdir)/Makefile.PL lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm VERSION=$(VERSION) LDFLAGS="$(AM_LDFLAGS)" CFLAGS="$(AM_CPPFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" SWIG="$(REDLAND_SWIG)" $(PERL) $(srcdir)/Makefile.PL $(PERL_MAKEMAKER_ARGS) -perl install-perl: $(PERL_MAKEFILE) @target=`echo $@ | sed -e 's/-perl//'`; \ echo $(MAKE) -f $(PERL_MAKEFILE) $$target; \ $(MAKE) -f $(PERL_MAKEFILE) $$target test-perl: $(PERL_MAKEFILE) $(RUN)$(MAKE) -f $(PERL_MAKEFILE) test clean-perl realclean-perl: @target=`echo $@ | sed -e 's/-perl//'`; \ if test -r $(PERL_MAKEFILE); then \ echo $(MAKE) -f $(PERL_MAKEFILE) $$target; \ $(MAKE) -f $(PERL_MAKEFILE) $$target; \ fi build-perl: -perl build-perl-stamp: @REDLAND_SWIG@ $(MAKE) build-perl && touch build-perl-stamp check-local: build-perl-stamp test-perl # Perl make clean leaves the old makefile around clean-local: rm -rf blib $(PERL_MAKEFILE) $(PERL_MAKEFILE).old build-perl-stamp # See this is the fake bit install-fakeDATA: install-perl redland-bindings-1.0.16.1/perl/Makefile.in0000644000175000017500000005627412063416534015114 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Perl 5 interface to Redland # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = perl DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(fakedir)" DATA = $(fake_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ AM_CFLAGS = @CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_STANDARD_CFLAGS = @STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS = @LIBRDF_LDFLAGS@ $(MEM_LIBS) PERL_REDLAND_PACKAGE = RDF::Redland PERL_CORE_PACKAGE = CORE PERL_FULL_CORE_PACKAGE = "$(PERL_REDLAND_PACKAGE)::$(PERL_CORE_PACKAGE)" PERL_MAKEFILE = Makefile.perl SWIG_OUTPUTS = $(PERL_CORE_PACKAGE)_wrap.c \ lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm PERL_CRUFT = pm_to_blib \ $(PERL_CORE_PACKAGE).bs $(PERL_CORE_PACKAGE)_wrap.o \ $(PERL_MAKEFILE).old fakedir = $(prefix) fake_DATA = build-perl-stamp EXTRA_DIST = \ MANIFEST MANIFEST.SKIP Makefile.PL example.pl \ rss-dump.pl \ redland-pre.i redland-post.i redland-decl.i $(SWIG_OUTPUTS) SUBDIRS = lib t CLEANFILES = *.db test-out.rdf core* $(PERL_CRUFT) MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) RUN = @REDLAND_RUN@ SWIG_OPTS = -I$(srcdir) -DREDLAND_PRE_I -DREDLAND_POST_I -DREDLAND_DECL_I all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu perl/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs uninstall-fakeDATA: @$(NORMAL_UNINSTALL) @list='$(fake_DATA)'; test -n "$(fakedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fakedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(fakedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-fakeDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-fakeDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am check-local clean clean-generic \ clean-libtool clean-local ctags ctags-recursive distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-fakeDATA install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-fakeDATA $(perlshareRDFdir)/Redland.pm: build-perl $(PERL_CORE_PACKAGE)_wrap.c lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm : @REDLAND_SWIG@ redland-pre.i redland-post.i redland-decl.i swig -v -perl5 $(SWIG_OPTS) -module $(PERL_FULL_CORE_PACKAGE) -o $(PERL_CORE_PACKAGE)_wrap.c $(REDLAND_SWIG) && mv $(PERL_CORE_PACKAGE).pm lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm $(PERL_MAKEFILE): $(srcdir)/Makefile.PL lib/RDF/Redland/$(PERL_CORE_PACKAGE).pm VERSION=$(VERSION) LDFLAGS="$(AM_LDFLAGS)" CFLAGS="$(AM_CPPFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" SWIG="$(REDLAND_SWIG)" $(PERL) $(srcdir)/Makefile.PL $(PERL_MAKEMAKER_ARGS) -perl install-perl: $(PERL_MAKEFILE) @target=`echo $@ | sed -e 's/-perl//'`; \ echo $(MAKE) -f $(PERL_MAKEFILE) $$target; \ $(MAKE) -f $(PERL_MAKEFILE) $$target test-perl: $(PERL_MAKEFILE) $(RUN)$(MAKE) -f $(PERL_MAKEFILE) test clean-perl realclean-perl: @target=`echo $@ | sed -e 's/-perl//'`; \ if test -r $(PERL_MAKEFILE); then \ echo $(MAKE) -f $(PERL_MAKEFILE) $$target; \ $(MAKE) -f $(PERL_MAKEFILE) $$target; \ fi build-perl: -perl build-perl-stamp: @REDLAND_SWIG@ $(MAKE) build-perl && touch build-perl-stamp check-local: build-perl-stamp test-perl # Perl make clean leaves the old makefile around clean-local: rm -rf blib $(PERL_MAKEFILE) $(PERL_MAKEFILE).old build-perl-stamp # See this is the fake bit install-fakeDATA: install-perl # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/perl/rss-dump.pl0000644000175000017500000001265611522705745015156 00000000000000#!/usr/bin/perl -w # # rss-view.pl - Redland RSS 1.0 test program # # Copyright (C) 2000-2003 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2003 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # use strict; use RDF::Redland; use RDF::Redland::RSS; my(%namespaces)=( # Built in modules 'Dublin Core' => 'http://purl.org/dc/elements/1.1/', 'Syndication' => 'http://purl.org/rss/1.0/modules/syndication/', # Proposed modules from http://purl.org/rss/1.0/modules/proposed/ 'Changed Page' => 'http://my.theinfo.org/changed/1.0/rss/', 'RSS 0.91' => 'http://purl.org/rss/1.0/modules/rss091#', 'Threading' => 'http://purl.org/rss/1.0/modules/threading/', 'Slash' => 'ttp://purl.org/rss/1.0/modules/slash/', ); die <<"EOT" if @ARGV < 1 || @ARGV > 2; Usage: $0 [BASE URI>] This program excecises the Redland Perl RDF:Redland::RSS module which supports the RSS 1.0 specification http://purl.org/rss/1.0/ Further information on this format can be found at the RSS-Dev list page at http://groups.yahoo.com/group/rss-dev/ EOT my $uri=$ARGV[0]; my $tmp_file=undef; my $source_uri=$uri; my $base_uri=(@ARGV ==2) ? $ARGV[1]: $uri; if(0) { # use this code if the parser does not do URIs if($uri !~ m%^file:%) { use URI::URL; use URI::file; use LWP::Simple; $tmp_file="/tmp/$0-$$.rss"; my $perl_uri; eval "\$perl_uri=new URI::URL('$uri')"; if($@) { die "$0: URI $uri is not supported by Perl\n"; } my $rc=getstore($perl_uri, $tmp_file); if(!is_success($rc)) { die "$0: Failed to fetch URI $uri - HTTP error $rc\n"; unlink $tmp_file; } $source_uri=URI::file->new($tmp_file)->as_string; } } print "Using source URI $source_uri and base URI $base_uri\n"; my $rss=new RDF::Redland::RSS($source_uri, $base_uri); die "Failed to create RDF::Redland::RSS for URI $uri\n" unless $rss; for my $channel ($rss->channels) { print "Found channel with URI ",$channel->uri->as_string,"\n"; print " title is ",($channel->title ? $channel->title->literal_value_as_latin1 : 'MISSING'),"\n"; print " link is ",($channel->link ? $channel->link->as_string : 'MISSING'),"\n"; print " desc is ",$channel->description->literal_value_as_latin1,"\n" if $channel->description; while(my($ns_label,$ns_prefix)=each %namespaces) { my(@props)=$channel->properties_with_ns_prefix($ns_prefix); if(@props) { print " $ns_label properties from $ns_prefix found:\n"; for my $property (@props) { my $value=$channel->property($property); if($value->is_resource) { print " ",$property->uri->as_string," : URI ",$value->uri->as_string,"\n"; } else { print " ",$property->uri->as_string," : ",$value->literal_value_as_latin1,"\n"; } } } } my(@items)=$channel->items; print " Found ",scalar(@items)," items in channel\n"; for my $item (@items) { print " Item with URI ",$item->uri->as_string,"\n"; print " title is ",($item->title ? $item->title->literal_value_as_latin1 : 'MISSING'),"\n"; print " link is ",($item->link ? $item->link->as_string : 'MISSING'),"\n"; # RSS 1.0 section 5.5 - description is optional print " desc is ",$item->description->literal_value_as_latin1,"\n" if $item->description; my(@props)=$item->properties; print " All properties: ",join(' ', map {$_->uri->as_string} @props),"\n"; while(my($ns_label,$ns_prefix)=each %namespaces) { my(@props)=$item->properties_with_ns_prefix($ns_prefix); if(@props) { print " $ns_label properties from $ns_prefix found:\n"; for my $property (@props) { my $value=$item->property($property); if($value->is_resource) { print " ",$property->uri->as_string," : URI ",$value->uri->as_string,"\n"; } else { print " ",$property->uri->as_string," : ",$value->literal_value_as_latin1,"\n"; } } } } } my $image=$channel->image; if($image) { print " Image with URI ",$image->uri->as_string,"\n"; # RSS 1.0 section 5.4 - If present, nothing optional print " title is ",($image->title ? $image->title->literal_value_as_latin1 : 'MISSING'),"\n"; print " link is ",($image->link ? $image->link->as_string : 'MISSING'),"\n"; print " url is ",$image->image_url->as_string,"\n" if $image->image_url; } my $textinput=$channel->textinput; if($textinput) { print " Textinput with URI ",$textinput->uri->as_string,"\n"; # RSS 1.0 section 5.6 - If present, nothing optional print " title is ",($textinput->title ? $textinput->title->literal_value_as_latin1 : 'MISSING'),"\n"; print " link is ",($textinput->link ? $textinput->link->as_string : 'MISSING'),"\n"; print " desc is ",($textinput->description ? $textinput->description->literal_value_as_latin1 : 'MISSING'),"\n"; print " name is ",($textinput->name ? $textinput->name->as_string : 'MISSING'),"\n"; } } unlink $tmp_file if $tmp_file; redland-bindings-1.0.16.1/perl/redland-post.i0000644000175000017500000000553111522705745015607 00000000000000/* -*- Mode: c; c-basic-offset: 2 -*- * * redland-post.i - Perl SWIG helper routines * * Copyright (C) 2000-2006, David Beckett http://www.dajobe.org/ * Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the following three licenses as alternatives: * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version * 3. Apache License, V2.0 or any newer version * * You may not use this file except in compliance with at least one of * the above three licenses. * * See LICENSE.html or LICENSE.txt at the top of this package for the * full license terms. * */ void librdf_perl_world_init(librdf_world *world); void librdf_perl_world_finish(void); /* * calls a perl subroutine defined as: * RDF::Redland::World::message($$) * where first argument is an integer, second is a (scalar) string */ static int librdf_call_perl_message(int code, int level, int facility, const char *message, int line, int column, int byte, const char *file, const char *uri) { dSP; int count; int rc=0; SAVETMPS; PUSHMARK(SP) ; XPUSHs(sv_2mortal(newSViv(code))); XPUSHs(sv_2mortal(newSViv(level))); XPUSHs(sv_2mortal(newSViv(facility))); if(message != NULL) XPUSHs(sv_2mortal(newSVpv(message, 0))); else XPUSHs((void*)0); XPUSHs(sv_2mortal(newSViv(line))); XPUSHs(sv_2mortal(newSViv(column))); XPUSHs(sv_2mortal(newSViv(byte))); if(file != NULL) XPUSHs(sv_2mortal(newSVpv(file, 0))); else XPUSHs((void*)0); if(uri != NULL) XPUSHs(sv_2mortal(newSVpv(uri, 0))); else XPUSHs((void*)0); PUTBACK; count=call_pv("RDF::Redland::World::message", G_SCALAR); SPAGAIN; if(count == 1) rc=POPi; PUTBACK; FREETMPS; return rc; } static int librdf_perl_logger_handler(void *user_data, librdf_log_message *log) { raptor_locator* locator = log->locator; int line= -1; int column= -1; int byte= -1; const char *uri=NULL; const char *file=NULL; if(locator) { line=raptor_locator_line(locator); column=raptor_locator_column(locator); byte=raptor_locator_byte(locator); file=raptor_locator_file(locator); uri=raptor_locator_uri(locator); } return librdf_call_perl_message(log->code, log->level, log->facility, log->message, line, column, byte, file, uri); } static librdf_world* librdf_perl_world=NULL; void librdf_perl_world_init(librdf_world *world) { librdf_world_set_logger(world, NULL, librdf_perl_logger_handler); librdf_perl_world=world; } void librdf_perl_world_finish(void) { librdf_free_world(librdf_perl_world); } redland-bindings-1.0.16.1/perl/MANIFEST0000644000175000017500000000247710406177663014202 00000000000000README.txt Perl API information MANIFEST This file Makefile.PL The Makefile generator (via MakeMaker) CORE_wrap.c Generated SWIG C file lib/RDF/Redland/CORE.pm Generated SWIG perl interface to librdf lib/RDF/Redland.pm RDF::Redland Module lib/RDF/Redland/Iterator.pm RDF::Redland::Iterator Module lib/RDF/Redland/Model.pm RDF::Redland::Model Module lib/RDF/Redland/Node.pm RDF::Redland::Node Module lib/RDF/Redland/Parser.pm RDF::Redland::Parser Module lib/RDF/Redland/RSS.pm RDF::Redland::RSS Module lib/RDF/Redland/Serializer.pm RDF::Redland::Serializer Module lib/RDF/Redland/Statement.pm RDF::Redland::Statement Module lib/RDF/Redland/Storage.pm RDF::Redland::Storage Module lib/RDF/Redland/Stream.pm RDF::Redland::Stream Module lib/RDF/Redland/URI.pm RDF::Redland::URI Module lib/RDF.pm RDF Module (OLD API) lib/RDF/Iterator.pm RDF::Iterator Module (OLD API) lib/RDF/Model.pm RDF::Model Module (OLD API) lib/RDF/Node.pm RDF::Node Module (OLD API) lib/RDF/Parser.pm RDF::Parser Module (OLD API) lib/RDF/RSS.pm RDF::RSS Module (OLD API) lib/RDF/Statement.pm RDF::Statement Module (OLD API) lib/RDF/Storage.pm RDF::Storage Module (OLD API) lib/RDF/Stream.pm RDF::Stream Module (OLD API) lib/RDF/URI.pm RDF::URI Module (OLD API) test.pl Test suite rss-dump.pl RSS 1.0 test program example.pl Example program redland-bindings-1.0.16.1/ruby/0000755000175000017500000000000012074650260013126 500000000000000redland-bindings-1.0.16.1/ruby/lib/0000755000175000017500000000000012074650260013674 500000000000000redland-bindings-1.0.16.1/ruby/lib/rdf/0000755000175000017500000000000012074650260014447 500000000000000redland-bindings-1.0.16.1/ruby/lib/rdf/redland/0000755000175000017500000000000012074650260016060 500000000000000redland-bindings-1.0.16.1/ruby/lib/rdf/redland/stream.rb0000644000175000017500000000616011776163726017641 00000000000000require 'rdf/redland' require 'rdf/redland/util' module Redland # This module provides a method to generate a stream of statements, # suitable for outputing from RDF/XML parsers, returning as the results # of queries and serialising models in order to manipulate them or # transform into another syntax. class Stream include Util attr_accessor :stream # Create a wrapper for a librdf_stream object (?? confirm) def initialize(object,model) @stream = object @model = model ObjectSpace.define_finalizer(self,Stream.create_finalizer(@stream)) end # You shouldn't use this. Used internally for cleanup. def Stream.create_finalizer(stream) proc {|id| # "Finalizer on #{id}" #puts "closing stream" Redland::librdf_free_stream(stream) } end # Test if the stream has ended def end? if not @stream return true else return (Redland.librdf_stream_end(self.stream) != 0) end end # Get the current Statement in the stram def current if not self.stream return nil end my_statement = Redland.librdf_stream_get_object(self.stream) unless my_statement return nil else return Statement.new(:from_object=>my_statement,:model=>@model) end end # Move to the next Statement in the stream def next() if not self.stream return true else return Redland.librdf_stream_next(self.stream) end end # Get the context of the current Statement in the stream def context() if not self.stream return true end my_node = Redland.librdf_stream_get_context(@stream) if not my_node return nil else return Node.new(:from_object=>my_node) end end end # The iterator provides a generic way to receive a sequence of values # (order may or may not be import) from objects, usually generated on demand. class NodeIterator include Util def initialize(object,model=nil,creator2=nil,creator3=nil) @iterator = object @model = model @creator2 = creator2 @creator3 = creator3 # Test if the iterator has finished def end?() return (Redland.librdf_iterator_end(@iterator) != 0) end # Get the current object from the iterator def current my_node = Redland.librdf_iterator_get_object(@iterator) if my_node == "NULL" or my_node == nil return nil elsif is_literal?(my_node) return Literal.from_node(my_node) else return Resource.new(my_node,@model) end end # Move to the next iterator element def next() my_node=Redland.librdf_iterator_next(@iterator) end ObjectSpace.define_finalizer(self,NodeIterator.create_finalizer(@iterator)) end # You shouldn't use this. Used internally for cleanup. def NodeIterator.create_finalizer(iterator) proc {|id| # "Finalizer on #{id}" #puts "closing iterator" Redland::librdf_free_iterator(iterator) } end end end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/parser.rb0000644000175000017500000001764311776163726017652 00000000000000require 'rdf/redland' require 'rdf/redland/uri' require 'rdf/redland/stream' module Redland # The Parser class for rdf. There are currently three types of parsers # *'rdfxml'- a rdf parser # *'ntriples' a An triples parser # *'turtle' - a parser for the turtle syntax as defined in # http://www.dajobe.org/2004/01/turtle/ # *'rss-tag-soup' - a parser for all RSS flavours and some atom # *'grddl' - GRDDL # # The last two may or may not be available depending on systems. # # model = Model.new() # parser = Parser.ntriples() # parser.parse_into_model(model,'file:./ical.rdf') class Parser attr_accessor :context # create a new Parser. if no name is given, it defaults to parsing RDF/XML syntax def initialize(name='rdfxml',mime_type="application/rdf+xml",uri=nil,context=nil) @context = nil @idents = [] uri=uri.uri if uri @parser = Redland.librdf_new_parser($world.world,name,mime_type,uri) raise RedlandError.new("Parser construction failed") if !@parser ObjectSpace.define_finalizer(self,Parser.create_finalizer(@parser)) end def Parser.create_finalizer(parser) proc {|id| # "Finalizer on #{id}" #$log_final.info "closing parser" Redland::librdf_free_parser(parser) } end # create a parser for the ntriples syntax def Parser.ntriples(uri=nil) return Parser.new('ntriples',"",uri) end # create a parser for the turtle syntax def Parser.turtle(uri=nil) return Parser.new('turtle',"",uri) end # create a parser for rdf syntax def Parser.raptor(uri=nil) return Parser.new('rdfxml','application/rdf+xml',uri) end # Parse the given uri with optional base_uri and return a # Stream. If block_given, yield the Statement instead # Returns nil on failure. def parse_as_stream(uri,base_uri=nil) if uri.class == String then uri = Uri.new(uri) end if base_uri.class == String then base_uri = Uri.new(base_uri) end unless base_uri my_stream = Redland::librdf_parser_parse_as_stream @parser, uri.uri, nil else my_stream = Redland::librdf_parser_parse_as_stream @parser, uri.uri ,base_uri.uri end return nil if !my_stream stream = Stream.new(my_stream,self) if !block_given? return stream else while not stream.end? yield stream.current stream.next end end end # Parse the syntax at the uri Uri with optional base # Uri base_uri into Model model. If the base_uri is # given then the content is parsed as if it was at the base_uri rather # than the uri. If the optional context is given, the statement is added to the context # # NOTE: The order of the arguments to this method is different from the C API and other language bindings. def parse_into_model(model,uri,base_uri=nil,context=@context) #puts "parse_into_model context is #{context}" if uri.class == String uri = Uri.new(uri) end if base_uri if base_uri.class == String base_uri = Uri.new(base_uri) end else base_uri=uri end if not context begin r = Redland.librdf_parser_parse_into_model(@parser,uri.uri,base_uri.uri,model.model) rescue RedlandError => err print "caught error"+ err end else #context raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context context = Node.ensure(context) my_stream = Redland::librdf_parser_parse_as_stream(@parser,uri.uri,base_uri.uri) Redland.librdf_model_context_add_statements(model.model,context,my_stream) #self.parse_as_stream(uri,base_uri){|s| model.add_statement(s,context)} end end # Parse the syntax in string with required base Uri # base_uri # # Returns a Stream or yields Statement # if block given. Returns nil on failure. def parse_string_as_stream(string,base_uri) if base_uri.class == String then base_uri = Uri.new(base_uri) end if not base_uri then raise RedlandError("A base URI is required when parsing a string") end my_stream = Redland::librdf_parser_parse_string_as_stream(@parser,string,base_uri.uri) return nil if !my_stream stream = Stream.new(my_stream,self) return stream if !block_given? while not stream.end? yield stream.current stream.next end end # Parse the syntax in String string with required Uri # base_uri into Model model. # if context is given then the context information is stored as well # # NOTE: The order of the arguments to this method is different from the C API and other language bindings. def parse_string_into_model(model,string,base_uri=nil,context=@context) if base_uri.class == String then base_uri = Uri.new(base_uri)end if not base_uri then raise RedlandError.new("A base URI is required when parsing a string") end if not context return (Redland::librdf_parser_parse_string_into_model(@parser,string,base_uri.uri,model.model)== 0) else self.parse_string_as_stream(string,base_uri.uri){|s| model.add_statement(s,context)} end end #Get a parser feature. The feature is a Uri def feature(uri) if uri.class == String then uri = Uri.new(uri) end value = Redland::librdf_parser_get_feature(@parser,uri.uri) if value == "NULL" or value == nil return nil else return Node.new(:from_object=>value) end end # Set a parser feature. The feature is named Uri # uri and the value is a Node. def setFeature(uri,value) if uri.class == String then uri = Uri.new(uri) end if value.class == String then value = Node.new(:literal=>value) end return (Redland::librdf_parser_set_feature(@parser,uri.uri,value.node) == 0) end def add_ident(node) @idents << node end def smush_string(string,model,idents=@idents) to_change = {} temp_model = Model.new() self.parse_string_into_model(temp_model,string,'http://xml.com') idents.each do |ident| temp_model.find(nil,ident,nil){|s,p,o| old_id = s new_id = model.subject(p,o) if new_id to_change[old_id.to_s]= new_id if !to_change.key?(old_id.to_s) end } end #puts to_change temp_model.triples do |s,p,o| s = to_change[s.to_s] if to_change.key?(s.to_s) model.add(s,p,o) end end def smush_file(model,uri,base_uri=nil,context=nil,idents=@idents) to_change = {} temp_model = Model.new() self.parse_into_model(temp_model,uri,base_uri,context) idents.each do |ident| temp_model.find(nil,ident,nil){|s,p,o| old_id = s new_id = model.subject(p,o) if new_id to_change[old_id.to_s]= new_id if !to_change.key?(old_id.to_s) end } end #puts to_change temp_model.triples do |s,p,o| s = to_change[s.to_s] if to_change.key?(s.to_s) model.add(s,p,o,context) end end end # Class for parsing a file class ContextParser require 'uri' # Create a new ContextParser for a file def initialize(file) case file when String file = file.expand_path(file) raise RedlandError("File doesn't exist") unless File.file?(file) @uri == Uri.new(file) when File end @parser = Redland.librdf_new_parser($world.world,name,mime_type,@uri.uri,@uri.uri) raise RedlandError.new("Parser construction failed") if !@parser ObjectSpace.define_finalizer(self,Parser.create_finalizer(@parser)) end # Parse a file into a model (?? confirm - why doesn't it use most of it's args) def parse_into_model(model,string,base_uri) super(model,@uri,nil,@uri) end end end #module Redland #end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/dc.rb0000644000175000017500000000031710406177662016723 00000000000000require 'rdf/redland' module DC NS = Redland::Namespace.new('http://purl.org/dc/elements/1.1/') TITLE = NS['title'] DATE = NS['date'] DESCRIPTION = NS['description'] CREATOR = NS['creator'] end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/statement.rb0000644000175000017500000001055510406177662020346 00000000000000require 'rdf/redland' module Redland # Redland Statement (triple class). The main means of manipulating # statements is by the subject,predicate,and object properties # # require 'rdf' # Statement creation from nodes # statement1 = Statement.new(node1,node2,node3) # statement2 = Statement.new(:statement=>statement) # # if statement2.resource? # puts "statement2.subject has uri #{statement2.subject.uri}" # class Statement include Util # the internal librdf statement attr_reader :statement # create a new Statement with subject,predicate,and object # the subject, predicate, and objects can be of class String or # Uri. def initialize(subject=nil,predicate=nil,object=nil,model=nil) @model = model if subject.class == Hash if subject.key?(:from_object) @statement = Redland.librdf_new_statement_from_statement(subject[:from_object]) @model = subject[:model] end else unless subject s = nil else if (subject.class == Uri)|| (subject.class == String) subject = Node.new(subject) end s = Redland.librdf_new_node_from_node(subject.node) end unless predicate p = nil else if (predicate.class == Uri) || (predicate.class == String) predicate = Node.new(predicate) end p = Redland.librdf_new_node_from_node(predicate.node) end unless object o = nil else if (object.class == Uri) || (object.class == String) object = Node.new(object) end o = Redland.librdf_new_node_from_node(object.node) end @statement = Redland.librdf_new_statement_from_nodes($world.world,s,p,o) end raise RedlandError.new("Statement construction failed") if !@statement ObjectSpace.define_finalizer(self,Statement.create_finalizer(@statement)) end # You shouldn't use this. Used internally for cleanup. def Statement.create_finalizer(statement) proc {|id| Redland::librdf_free_statement(statement) } end def wrap_node(rednode) return Node.new(:from_object=>rednode) end private :wrap_node # return the subject of the statement triple. The subject is of class # Resource def subject() return Resource.new(Redland.librdf_statement_get_subject(self.statement),@model) end # return the predicate of the statement triple. def predicate() return wrap_node(Redland.librdf_statement_get_predicate(self.statement)) end # return the object of the statement triple. The return value is either # a Literal or Resource depending if object returned from the store # is literal or not def object() object_node = Redland.librdf_statement_get_object(self.statement) return Literal.from_node(object_node) if is_literal?(object_node) return Resource.new(object_node,@model) end # set the subject of the statement def subject=(value) if value Redland.librdf_statement_set_subject(self.statement, Redland.librdf_new_node_from_node(value.node)) else Redland.librdf_statement_set_subject(self.statement, nil) end end # set the object of the statement def object=(value) if value Redland.librdf_statement_set_object(self.statement, Redland.librdf_new_node_from_node(value.node)) else Redland.librdf_statement_set_object(self.statement, nil) end end # set the predicate of the statement def predicate=(value) if value Redland.librdf_statement_set_predicate(self.statement, Redland.librdf_new_node_from_node(value.node)) else Redland.librdf_statement_set_predicate(self.statement, nil) end end # Convert this Statement to a string def to_s() unless self.statement raise RedlandError.new("Statement is invalid") else return Redland.librdf_statement_to_string(self.statement) end end # Equivalency. Only works for comparing two Statements def ==(other) return (Redland.librdf_statement_equals(self.statement,other.statement) != 0) end end end #module Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/0000755000175000017500000000000012074650260017503 500000000000000redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/rdfs.rb0000644000175000017500000000440410406177662020717 00000000000000require 'rdf/redland' require 'rdf/redland/constants' module Redland::RDFS include Redland RDFSNS = Namespace.new("http://www.w3.org/2000/01/rdf-schema#") RDFS_CLASS = RDFSNS["Class"] RDFS_RESOURCE = RDFSNS["Resource"] RDFS_SUBCLASSOF = RDFSNS["subClassOf"] RDFS_SUBPROPERTYOF = RDFSNS["subPropertyOf"] RDFS_ISDEFINEDBY = RDFSNS["isDefinedBy"] RDFS_LABEL = RDFSNS["label"] RDFS_COMMENT = RDFSNS["comment"] RDFS_RANGE = RDFSNS["range"] RDFS_DOMAIN = RDFSNS["domain"] RDFS_LITERAL = RDFSNS["Literal"] RDFS_CONTAINER = RDFSNS["Container"] RDFS_SEEALSO = RDFSNS["seeAlso"] # A subclass of Resource that adds convenience methods for # adding RDFS information # class RDFSResource < Resource # include Redland # get the object with the following predicate: # http://www.w3.org/2000/01/rdf-schema#comment' def comment() self.get_property(RDFS_COMMENT).to_s end # same as the following # model.add(this,Resource.new('http://www.w3.org/2000/01/rdf-schema#comment','comment') def comment=(a_comment) if a_comment.class == String self.delete_property(RDFS_COMMENT) self.add_property(RDFS_COMMENT,a_comment) end return self end # add a 'http://www.w3.org/2000/01/rdf-schema#label' to this resource. # a label is a literal that can have a language. If a label for # a given language is already defined, it replaces the label. # If a label is not defined for a language it adds the label # res.add_label('my label') # label created # res.add_label('change label') #label changed to 'change label' # res.add_label('change again','en') # label added with language English def add_label(a_label,lang=nil) label = Literal.new(a_label,lang) labels = self.get_properties(RDFS_LABEL) do |a_label| if a_label.language == lang self.model.delete(self,RDFS_LABEL,a_label) end end self.add_property(RDFS_LABEL,label) return self end # return the label for this resource # if the lang is defined, return the label for this language # if no label found return nil def label(lang=nil) self.get_properties(RDFS_LABEL) do |label| if label.language == lang return label end end return nil end # end #end class end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/foaf.rb0000644000175000017500000000156411776163726020707 00000000000000require 'rdf/redland' module FOAF NS = Redland::Namespace.new('http://xmlns.com/foaf/0.1/') FIRST = NS['first'] SURNAME = NS['surname'] PHONE = NS['phone'] TITLE = NS['title'] MBOX = NS['mbox'] MBOXSHAL1 = NS['mbox_shal1sum'] NAME = NS['name'] NICK = NS['nick'] IMAGE = NS['image'] DEPICTION = NS['depiction'] DEPICTS = NS['depicts'] PERSON = NS['Person'] KNOWS = NS['knows'] def foaf_first(node) @model.object(node,FOAF['firstName']).to_s end def foaf_name(node) @model.object(node,NAME).to_s end def foaf_title(node) @model.object(node,FOAF['title']).to_s end def foaf_surname(node) @model.object(node,FOAF['surname']).to_s end def foaf_phone(node) @model.object(node,FOAF['phone']).to_s end def foaf_namespace return FOAF end def foaf_mbox(node) @model.object(node,MBOX).to_s end end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/Makefile.am0000644000175000017500000000155311523675544021475 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # rubyinstalldir=@RUBY_INSTALLDIR@/rdf/redland/schemas rubyinstall_DATA=$(EXTRA_DIST) EXTRA_DIST=foaf.rb owl.rb rdfs.rb redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/Makefile.in0000644000175000017500000003504712063416535021504 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby/lib/rdf/redland/schemas DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(rubyinstalldir)" DATA = $(rubyinstall_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ rubyinstalldir = @RUBY_INSTALLDIR@/rdf/redland/schemas rubyinstall_DATA = $(EXTRA_DIST) EXTRA_DIST = foaf.rb owl.rb rdfs.rb all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/lib/rdf/redland/schemas/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/lib/rdf/redland/schemas/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-rubyinstallDATA: $(rubyinstall_DATA) @$(NORMAL_INSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rubyinstalldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rubyinstalldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rubyinstalldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(rubyinstalldir)" || exit $$?; \ done uninstall-rubyinstallDATA: @$(NORMAL_UNINSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rubyinstalldir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(rubyinstalldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-rubyinstallDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-rubyinstallDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am \ install-rubyinstallDATA install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-rubyinstallDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/ruby/lib/rdf/redland/schemas/owl.rb0000644000175000017500000000050210613023044020535 00000000000000require 'rdf/redland' module Redland::OWL #OWL OWLNS = Redland::Namespace.new("http://www.w3.org/2002/07/owl#") OWL_CLASS = OWLNS['Class'] OWL_OBJECT_PROPERTY = OWLNS['ObjectProperty'] OWL_DATATYPE_PROPERTY = OWLNS['DatatypeProperty'] OWL_THING = OWLNS['OwlThing'] def add_datatype(prop) end end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/resource.rb0000644000175000017500000001073311456054214020160 00000000000000require 'rdf/redland' module Redland #include Redland class Resource < Node # The internal librdf_node attr_reader :node # The internal model this Resource is connected to attr_reader :model # Create a Redland::Resource. Arg can be a String, or a Redland::Uri # def initialize(arg=nil,model=nil,new_node=true) @context = nil case arg when nil @node = Redland.librdf_new_node_from_blank_identifier($world.world,nil) when String @node = Redland.librdf_new_node_from_uri_string($world.world,arg) when Uri @node = Redland.librdf_new_node_from_uri($world.world,arg.uri) when Node @node = Redland.librdf_new_node_from_node(arg.node) when SWIG::TYPE_p_librdf_node_s @node = new_node ? Redland.librdf_new_node_from_node(arg): arg end raise RedlandError.new("Node construction failed") if not @node ObjectSpace.define_finalizer(self,Node.create_finalizer(@node)) model ||= Model.new @model = model end # Answer model.find(self,p,nil) in the associated model. If there are several # such statements, any one of them may be returned def get_property(p) @model.object(self,p) end # Answer model.find(self,pred,nil) in the associated model # If no predicate or block given, returns and array of # statements matching model.find(self,nil,nil) # If block_given? yields the predicate and the object # resource.get_properties() do |p,o| # puts "#{p}#{o}" # end # # If pred given, answers model.find(self,pred,nil) # if no block return an array of the object values # nicknames = resource.get_properties(FOAF::NICK) # # if block_given yields the objects which satisfy the predicate # puts "Nicknames are" # resource.get_properties(FOAF_NICK){|o| puts o} def get_properties(pred=nil) statements = @model.find(self,pred,nil) if pred if block_given? statements.each{|st| yield st.object} else statements.map{|st| st.object} end else return statements if not block_given? statements.each{ |st| yield st.predicate,st.object} end end # Finds all objects of a given predicate. Takes an optional block, # yielding each statement if given. def object_of_predicate(pred = nil) # statements = @model.find(nil,pred,self) if pred if block_given? @model.subjects(pred,self){|sub| yield sub} else return @model.subjects(pred,self) end else statements = @model.find(nil,nil,self) return statements if not block_given? statements.each { |st| yield st.subject,st.predicate} end end # Adds a statement to the model with the subject as the # resource and p as the predicate and o as the object # same as Model.add(this,p,o) def add_property(p,o,context=nil) @model.add(self,p,o,context) return self end # Removes the property from the model with the predicate # pred and optional context def delete_property(pred,context=nil) @model.delete(self,pred,self.get_property(pred),context) return self end # Removes all of the properties from the model with this # resource as the subject def delete_properties() self.get_properties().each{|st| @model.delete_statement(st)} end # Determine if this resource is of a given type def type?(type) self.model.find(self,TYPE,type).size != 0 end # Change the value of the given property def update_property(prop,value,context=nil) self.delete_property(prop) self.add_property(prop,value,context) return self end # Sets the RDF type of this Resource where RDF type is # def type=(type,context=@context) self.delete_property(TYPE) self.add_property(TYPE,type,context) return self end # returns the RDF type of this Resource where RDF type is # def type self.get_property(TYPE) end # Set the type of this Resource def set_type(type,context=@context) self.delete_property(TYPE) self.add_property(TYPE,type,context) return self end # Defines a context for this resource def set_context(context) @context = context end end end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/model.rb0000644000175000017500000004176411776163726017457 00000000000000#require 'rdf/redland' require 'rdf/redland/store' require 'rdf/redland/stream' require 'rdf/redland/statement' require 'rdf/redland/util' #module RDF module Redland class Model include Util attr_reader :model # Constructor - takes an optional argument store, which should # be one of the storage classes (all derived from TripleStore) def initialize(store=nil) @statements = [] store = MemoryStore.new() if not store @model = Redland.librdf_new_model($world.world,store.store,"") raise RedlandError.new("Creating new Model failed") if not @model @store = store ObjectSpace.define_finalizer(self,Model.create_finalizer(@model)) end # You shouldn't use this. Used internally for cleanup. def Model.create_finalizer(model) proc {|id| # "Finalizer on #{id}" #$log_final.info "closing model" Redland::librdf_free_model(model) } end # create a resource for this model. The str can be a String, or a # Redland::Uri def create_resource(str=nil,context=nil) resource = Resource.new(str,self,context) if context resource.set_context(Resource.new(context)) end return resource end # get a resource given by str. If arg is a string it will create a # Resource from it. def get_resource(arg) res = self.find(Resource.new(arg),nil,nil) return (res.nil? || res[0].nil?) ? nil : res[0].subject end # Return the size of the Storage Model. Raises a redland error if the model # has non countable storage def size() s = get_size() raise RedlandError.new("Attempt to get size when using non-countable storage") if s < 0 return s end # Add the Statement to the Model with optional context Node def add_statement(statement,context=nil) if context context = Node.ensure(context) raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context return Redland.librdf_model_context_add_statement(self.model,context,statement.statement) else return Redland.librdf_model_add_statement(self.model,statement.statement) end end # Add the triples (s,p,o) to the model with the optional context def add(subject,predicate,object,context=nil) my_statement = Statement.new(subject,predicate,object) self.add_statement(my_statement,context) end # Add the Stream of Statements to the Model with optional # context Node def add_statements(statement_stream,context=nil) if context context = Node.ensure(context) raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context Redland.librdf_model_context_add_statements(self.model,context,statement_stream.stream) else return Redland.librdf_model_add_statements(self.model,statement_stream.stream) end end # Effectively removes a Predicate from the Model by replacing all # occurrences with a blank node (?? confirm) def smush(pred) identifying_hash = {} canonical = {} mapme = [] transactions = [] self.find(nil,pred,nil){|sub,pred,obj| if not identifying_hash.has_key?(obj.to_s) identifying_hash[obj.to_s] = sub elsif identifying_hash[obj.to_s] != sub subject_string = sub.to_s if not canonical.has_key?(subject_string) # print "amodule Rdf dding mapping: ",subject_string,"--->",identifying_hash[obj.to_s] canonical[subject_string] = identifying_hash[obj.to_s] mapme << Node.new(sub) end end } self.triples(){ |sub,pred,obj| ss = sub.to_s os = obj.to_s new_statement = nil replace = false if canonical.has_key?(ss) if not replace new_statement = Statement.new(sub,pred,obj) replace = 1 end new_statement.subject = canonical[ss] end if canonical.has_key?(os) if not replace new_statement = Statement.new(sub,pred,obj) replace = 1 new_statement.object = canonical[os] end end if replace transactions << [Statement.new(sub,pred,obj),new_statement] end } transactions.each{ |pair| self.delete_statement(pair[0]) self.add_statement(pair[1]) } end # Remove the Statement from the Model with the optional context Node def delete_statement(statement,context=nil) if context context = Node.ensure(context) RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context return Redland.librdf_model_context_remove_statement(self.model,context,statement.statement) else return Redland.librdf_model_remove_statement(self.model,statement.statement) end end # Remove the statement made of the triples (s,p,o) with the optional context Node def delete(s,p,o,context=nil) if [s,p,o].all? { |e| e } statement = Statement.new(s,p,o) self.delete_statement(statement,context) else self.find(s,p,o,context) do |ds, dp, d_o| st = Statement.new(ds, dp, d_o) Kernel.p st self.delete_statement(st, context) end end end # Remove the Statements from the Model with the given context Node def delete_context(context) context = Node.ensure(context) raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context return Redland.librdf_model_context_remove_statements(self.model,context) end # Returns true if the Statement is in the Model def include_statement?(statement) return (Redland.librdf_model_contains_statement(self.model,statement.statement) != 0) end # Returns true if the given Triple is in the model def include?(s,p,o) statement = Statement.new(s,p,o) self.include_statement?(statement) end # list the model contents as a stream of statements def as_stream(context=nil) if context context = Node.ensure(context) raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context my_stream = Redland.librdf_model_context_as_stream(self.model,context) else my_stream = Redland.librdf_model_as_stream(self.model) end return Stream.new(my_stream,self) end # Yield the triples subject, predicate, and object if a block is given. # Otherwise return an array of the statements def triples(context=nil) stream = self.as_stream(context) return nil if not stream if block_given? while not stream.end? yield stream.current.subject ,stream.current.predicate,stream.current.object stream.next end else return get_statement_array(stream) end end # Yield the statements if a block is given. def statements(context = nil) stream = self.as_stream(context) while not stream.end? yield stream.current stream.next end end # Yield the triples as well as the context def triples_with_context(context=nil) stream = self.as_stream(context) while not stream.end? statement = stream.current yield statement.subject, statement.predicate, statement.object, stream.context stream.next end end # find the statements matching the given triple. The triples can be nil # # Find all triples with FOAF['firstName'] of Dominic # model.find(nil,FOAF['firstName'],'Dominic Sisneros'){|s,p,o ...} def find(s=nil,p=nil,o=nil,context=nil) statement = Statement.new(s,p,o,self) if context context = Node.ensure(context) raise RedlandError.new("Cannot make a Node from an object of #{context.class}") if not context my_stream = Redland.librdf_model_find_statements_in_context(self.model,statement.statement,context) else my_stream = Redland.librdf_model_find_statements(self.model,statement.statement) end return nil if not my_stream stream = Stream.new(my_stream,self) if block_given? while not stream.end? my_statement = stream.current yield my_statement.subject,my_statement.predicate,my_statement.object stream.next end else #block not given return get_statement_array(stream) end end def statement_array_or_yield(stream) end # Return one Node in the Model matching (source, predicate,?) # The source and predicate can be a Node or Uri def object(source,predicate) if source.class == Uri then source = Node.new(source) end if predicate.class == Uri then predicate = Node.new(predicate) end my_node = Redland.librdf_model_get_target(self.model,source.node,predicate.node) return nil if not my_node return Literal.from_node(my_node) if is_literal?(my_node) return Resource.new(my_node,self,false) end # Return an array of Subject Nodes in the Model matching (?,predicate,target) # The predicate and target can be a Node or Uri # If block_given? yields the Subject Node def subjects(predicate,target) if predicate.class == Uri predicate = Node.new(predicate) end if target.class == Uri or target.class == String target = Node.new(target) end my_iterator = Redland.librdf_model_get_sources(self.model,predicate.node,target.node) raise RedlandError.new("Unable to create iterator") if !my_iterator iterator = NodeIterator.new(my_iterator,self,predicate,target) if block_given? while not iterator.end? yield iterator.current iterator.next end else return get_node_array(iterator) end end # Return one Node in the Model matching (?,predicate,target) # The source and predicate can be a Node or Uri def subject(predicate,target) if predicate.class == Uri predicate = Node.new(predicate) end if target.class == Uri or target.class == String target = Node.new(target) end my_node = Redland.librdf_model_get_source(self.model,predicate.node,target.node) return nil if !my_node return Literal.from_node(my_node) if is_literal?(my_node) return Resource.new(my_node,self,false) end # Return an array of Predicate Nodes in the Model matching (subject,?,target) # The subject and target can be a Node or Uri # If block_given? yields the Subject Node def predicates(source,target) if source.class == Uri source = Node.new(source) end if target.class == Uri or target.class == String target =Node.new(target) end my_iterator = Redland.librdf_model_get_arcs(self.model,source.node,target.node) raise RedlandError.new("unable to create iterator") if !my_iterator iterator = NodeIterator.new(my_iterator,self,source,target) if block_given? while not iterator.end? yield iterator.current iterator.next end else return get_node_array(iterator) end end def yield_node_or_array(iterator) iterator = NodeIterator.new(my_iterator,self,source,target) if block_given? while not iterator.end? yield iterator.current iterator.next end else return get_node_array(iterator) end end # yield the contexts defined in the model. If the store wasn't set up for # contexts raises a RedlandError. If no block_given returns an array of the # contexts def contexts() my_iterator = Redland.librdf_model_get_contexts(@model) raise RedlandError.new("Unable to create iterator for contexts") if !my_iterator iterator= NodeIterator.new(my_iterator,self) if block_given? while not iterator.end? yield iterator.current iterator.next end else context_array = [] while not iterator.end? context_array << iterator.current iterator.next end return context_array end end # saves this model to the specified filename def save(filename) serializer = Serializer.new() serializer.to_file(filename,self) end # a screen dump of the triples, if context is included a screen dump # of the triples for the given context def dump_model(context=nil) self.triples(context){|s,p,o| puts "#{s}:#{p}:#{o}"} end # parser the file with the given parser and uri and smushes # the file with the model on the statements with the given # predlist def parse_and_merge(parser,uri,predlist,context=uri,st=nil) context = Uri.new(context) if context == uri temp_model = MergedModel.new(self) if st temp_model.add_statement(st) else parser.parse_as_stream(uri){|s|temp_model.add_statement(s)} end temp_model.find_canonical(predlist) temp_model.rewrite(context) if temp_model.global_rewrites.size > 0 print "***** GLOBAL REWRITES UNDERWAY ***" #self.rewrite(temp_model.global_rewrites) end end # clears the transactions (?? confirm) def rewrite(change_hash) transactions = [] end # Get the number of statements in the model def get_size() return Redland.librdf_model_size(@model) end private :get_size # execute a query def query_execute(query) results=Redland.librdf_model_query_execute(@model, query.query) if not results return nil else return QueryResults.new(results) end end # Serialize the Model to a syntax def to_string(name="", base_uri=nil, mime_type="", type_uri=nil) rbase_uri = base_uri.nil? ? nil : base_uri.uri rtype_uri = type_uri.nil? ? nil : type_uri.uri return Redland.librdf_model_to_string(@model, rbase_uri, name, mime_type, rtype_uri) end def load(uri, name="", mime_type="", type_uri=nil) ruri = uri.uri rtype_uri = type_uri.nil? ? nil : type_uri.uri return Redland.librdf_model_load(@model, ruri, name, mime_type, rtype_uri) end end # A non-context-aware model used for the purpose of merging class MergedModel < Model attr_reader :global_rewrites,:canonical # Constructor - needs a master model to use def initialize(master_model) @hooks = {} @count = {} @inverse_functional_properties = [] @identifiers = [] # list of inverse functional properties to smush @canonical = {} #rewrites to perform on local level @global_rewrites = {} #rewrites to apply globally @transactions = [] @master = master_model @pred_identifiers = {} super() end # Return one Node in the Model matching (?,predicate,target) # The source and predicate can be a Node or Uri def find_subject_in_master(pred,obj) return @master.subject(pred,obj) end # Effectively removes the listes Predicates from the Model by replacing all # occurrences with a blank node (?? confirm) def smush(predlist) self.find_canonical(predlist) self.rewrite() end # Locate predicates for smushing def find_canonical(predlist) predlist.each do |pred| identifier = {} self.find(nil,pred,nil) do |subj,pred,obj| master_id = self.find_subject_in_master(pred,obj) if not master_id if not identifier.has_key?(obj.to_s) identifier[obj.to_s] = subj elsif identifier[obj.to_s] != subj #already an identifying URI new_value = identifier[obj.to_s] if not @canonical.has_key?(subj.to_s) @canonical[subj.to_s] = new_value end end else # master_id if identifier.has_key?(obj.to_s) if identifier[obj.to_s] != master_id @canonical[subj.to_s] = master_id identifier[obj.to_s] = master_id end else # master_id not in identifier identifier[obj.to_s] = master_id if @canonical.has_key?(subj.to_s) if @canonical[subj.to_s] != master_id @global_rewrites[master_id] = @canonical[subj.to_s] end else if subj != master_id @canonical[subj.to_s] = master_id end end end end end # self.find @pred_identifiers[pred] = identifier end #predlist.each end # actually do the smush def rewrite(context=nil) self.triples() do |sub,pred,obj| sub = @canonical[sub.to_s] if @canonical.key?(sub.to_s) obj = @canonical[obj.to_s] if @canonical.key?(obj.to_s) @master.add(sub,pred,obj,context) end end end #class end #end RDF module redland-bindings-1.0.16.1/ruby/lib/rdf/redland/queryresults.rb0000644000175000017500000001004411776163726021131 00000000000000require 'rdf/redland' module Redland # This class provides query language results support class QueryResults attr_reader :results # this is not a public constructor def initialize(object) @results = object ObjectSpace.define_finalizer(self,QueryResults.create_finalizer(@results)) end # You shouldn't use this. Used internally for cleanup. def QueryResults.create_finalizer(results) proc{|id| # "Finalizer on #{id}" #$log_final.info "closing results" Redland::librdf_free_query_results(results) } end # Get the number of results so far def size return Redland.librdf_query_results_get_count(@results) end # Get the number of results so far def count return Redland.librdf_query_results_get_count(@results) end # Test if the results are finished def finished? return (Redland.librdf_query_results_finished(@results) != 0) end # Get number of binding variables def bindings_count return Redland.librdf_query_results_get_bindings_count(@results) end # Get binding name for the current result def binding_name(index) return Redland.librdf_query_results_get_binding_name(@results,index) end # Get the names all of the variable bindings as an array def binding_names count=Redland.librdf_query_results_get_bindings_count(@results) names=[] for i in 0..count-1 names << binding_name(i) end return names end # Get one binding value for the current result def binding_value(index) node = Redland.librdf_query_results_get_binding_value(@results,index) return node.nil? ? nil : Node.new(node) end # Get an array of all the values of all of the variable bindings in the current query result. def binding_values count=Redland.librdf_query_results_get_bindings_count(@results) values=[] for i in 0..count-1 values << binding_value(i) end return values end # Get the value of the variable binding name in the current query result. def binding_value_by_name(name) node=Redland.librdf_query_results_get_binding_value_by_name(@results,name) return node.nil? ? nil : Node.new(node) end # Get an array of binding values def bindings (0...self.size).each{|i| binding_value( i ) } end # Move to the next query result def next Redland.librdf_query_results_next(@results) end # Get a new Stream object representing the query results as an RDF Graph. def as_stream my_stream=Redland.librdf_query_results_as_stream(@results) return Stream.new(my_stream, self) end # Serialize to a string syntax in format_uri using the optional # base_uri. The default format when none is given is determined by # librdf_query_results_to_string def to_string(format_uri = nil, base_uri = nil) if self.is_graph?() tmpmodel=Model.new() tmpmodel.add_statements(self.as_stream()) serializer=Serializer.new() return serializer.model_to_string(base_uri, tmpmodel) end if not self.is_boolean?() and not self.is_bindings?() raise RedlandError.new("Unknown query result format cannot be written as a string") end if format_uri format_uri = format_uri.uri end if base_uri base_uri = base_uri.uri end return Redland.librdf_query_results_to_string(@results, format_uri, base_uri) end # Test if is variable bindings result def is_bindings?() return (Redland.librdf_query_results_is_bindings(@results) != 0) end # Test if is a boolean result def is_boolean?() return (Redland.librdf_query_results_is_boolean(@results) != 0) end # Test if is an RDF graph result def is_graph?() return (Redland.librdf_query_results_is_graph(@results) != 0) end # Get the boolean query result def get_boolean?() return (Redland.librdf_query_results_get_boolean(@results) != 0) end end end #Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/constants.rb0000644000175000017500000000236110406177662020352 00000000000000require 'rdf/redland' module Redland RDFNS = Redland::Namespace.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#") # Syntax names RDF = RDFNS["RDF"] DESCRIPTION = RDFNS["Description"] ID = RDFNS["ID"] ABOUT = RDFNS["about"] BAG_ID = RDFNS["bagID"] PARSE_TYPE = RDFNS["parseType"] RESOURCE = RDFNS["resource"] LI = RDFNS["li"] NODE_ID = RDFNS["nodeID"] DATATYPE = RDFNS["datatype"] # RDF Classes SEQ = RDFNS["Seq"] BAG = RDFNS["Bag"] ALT = RDFNS["Alt"] STATEMENT = RDFNS["Statement"] PROPERTY = RDFNS["Property"] XMLLiteral = RDFNS["XMLLiteral"] LIST = RDFNS["List"] # RDF Properties SUBJECT = RDFNS["subject"] PREDICATE = RDFNS["predicate"] OBJECT = RDFNS["object"] TYPE = RDFNS["type"] VALUE = RDFNS["value"] FIRST = RDFNS["first"] REST = RDFNS["rest"] # and _n where n is a non-negative integer # RDF Resources # http://www.w3.org/TR/rdf-syntax-grammar/#eventterm-attribute-URI # A mapping from unqualified terms to there qualified version. # http://www.w3.org/TR/rdf-syntax-grammar/#coreSyntaxTerms CORE_SYNTAX_TERMS = [RDF, ID, ABOUT, BAG_ID, PARSE_TYPE, RESOURCE, NODE_ID, DATATYPE] # http://www.w3.org/TR/rdf-syntax-grammar/#syntaxTerms SYNTAX_TERMS = CORE_SYNTAX_TERMS + [DESCRIPTION, LI] # http://www.w3.org/TR/rdf-syntax-grammar/#oldTerms end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/Makefile.am0000644000175000017500000000203111523675544020042 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # rubyinstalldir=@RUBY_INSTALLDIR@/rdf/redland rubyinstall_DATA=$(EXTRA_DIST) EXTRA_DIST=constants.rb convert_owl.rb convertfoaf.rb dc.rb model.rb \ node.rb parser.rb query.rb resource.rb serializer.rb statement.rb \ store.rb stream.rb uri.rb util.rb queryresults.rb SUBDIRS=schemas redland-bindings-1.0.16.1/ruby/lib/rdf/redland/Makefile.in0000644000175000017500000005327712063416535020066 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby/lib/rdf/redland DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(rubyinstalldir)" DATA = $(rubyinstall_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ rubyinstalldir = @RUBY_INSTALLDIR@/rdf/redland rubyinstall_DATA = $(EXTRA_DIST) EXTRA_DIST = constants.rb convert_owl.rb convertfoaf.rb dc.rb model.rb \ node.rb parser.rb query.rb resource.rb serializer.rb statement.rb \ store.rb stream.rb uri.rb util.rb queryresults.rb SUBDIRS = schemas all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/lib/rdf/redland/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/lib/rdf/redland/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-rubyinstallDATA: $(rubyinstall_DATA) @$(NORMAL_INSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rubyinstalldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rubyinstalldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rubyinstalldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(rubyinstalldir)" || exit $$?; \ done uninstall-rubyinstallDATA: @$(NORMAL_UNINSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rubyinstalldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(rubyinstalldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-rubyinstallDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-rubyinstallDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-rubyinstallDATA install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-rubyinstallDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/ruby/lib/rdf/redland/serializer.rb0000644000175000017500000000536611776163726020526 00000000000000require 'rdf/redland' module Redland # This module provides RDF graph to syntax serialization support via # factory classes providing one or more particular target syntaxes. class Serializer # Constructor - create a new Serializer object # name - the serializer factory name # mime_type - the MIME type of the syntax # uri - URI of syntax def initialize(name='rdfxml',mime_type="application/rdf+xml",uri=nil) uri = uri.uri if uri @serializer = Redland.librdf_new_serializer($world.world,name,mime_type,uri) raise RedlandError.new("Serializer construction failed") if !@serializer ObjectSpace.define_finalizer(self,Serializer.create_finalizer(@serializer)) end # Create a NTriples serializer # uri - URI of syntax def Serializer.ntriples(uri=nil) return Serializer.new('ntriples','text/plain',uri) end # You shouldn't use this. Used internally for cleanup. def Serializer.create_finalizer(serializer) proc {|id| # "Finalizer on #{id}" #log_final.info "closing serializer" Redland::librdf_free_serializer(serializer) } end # Serializes a model and stores it in a file # name - the serializer factory name # mime_type - the MIME type of the syntax # base_uri - URI of syntax def to_file(name,model,base_uri=nil) if base_uri base_uri = base_uri.uri end return Redland.librdf_serializer_serialize_model_to_file(@serializer,name,base_uri,model.model) end #Get a parser feature. The feature is named via RDF::Redland::URI #I def feature(uri) uri = Uri.new(uri) unless uri.class == Uri value = Redland::librdf_serializer_get_feature(@serializer,uri.uri) if value == "NULL" or value==nil return nil else return Node.new(:from_object=>value) end end #Set a serializer feature. The feature is named via RDF::Redland::URI #I and the value is a RDF::Redland::Node. def setFeature(uri,value) uri = Uri.new(uri) unless uri.class == Uri if value.class == String then value = Node.new(:literal=>value) end return (Redland::librdf_serializer_set_feature(@serializer,uri.uri,value.node) == 0) end #Set a serializer namepace to the desired prefix def set_namespace(prefix, uri) uri = Uri.new(uri) unless uri.class == Uri return (Redland::librdf_serializer_set_namespace(@serializer,uri.uri,prefix) == 0) end # Serialize the RDF graph in model to a string def model_to_string(base_uri, model) if base_uri base_uri = base_uri.uri end return Redland.librdf_serializer_serialize_model_to_string(@serializer, base_uri, model.model) end end end #module Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/node.rb0000644000175000017500000001721711456054214017262 00000000000000require 'rdf/redland' require 'rdf/redland/uri' module Redland class Node attr_reader :node @@node_types = {0 =>'NODE_TYPE_UNKNOWN', 1 =>'NODE_TYPE_RESOURCE', 2 =>'NODE_TYPE_LITERAL', 4 =>'NODE_TYPE_BLANK'} # Create an RDF Node # # Resource or property node creation # n1 = Node.new(Uri.new("http://example.com/foo")) # # String literal node creation # n2 = Node.new("foo") def initialize(arg=nil) if arg.class == String temp = arg arg = {} arg[:literal]= temp @node = self.node_from_hash(arg) elsif arg.class == Hash @node = node_from_hash(arg) else @node = Node.ensure(arg) end raise RedlandError.new("Node construction failed") if not @node ObjectSpace.define_finalizer(self,Node.create_finalizer(@node)) end # sets this node's value using a blank or URI extracted from a Hash # (?? confirm) def node_from_hash(hash) if hash.key?(:blank) node = Redland.librdf_new_node_from_blank_identifier($world.world,hash[:blank]) end if hash.key?(:from_object) if hash.key?(:do_not_copy) node = hash[:from_object] else node = Redland.librdf_new_node_from_node(hash[:from_object]) end end if hash.key?(:uri_string) node = Redland.librdf_new_node_from_uri_string($world.world,hash[:uri_string]) end if hash.key?(:literal) node = node_from_literal(hash) end return node end # sets this node's value using a literal value extracted from a Hash # (?? confirm) def node_from_literal(hash) xml_language = hash.key?(:xml_language) ? hash[:xml_language] : "" wf_xml = hash.key?(:wf_xml?) ? 1 : 0 if hash.key?(:datatype) datatype = hash[:datatype] node = Redland.librdf_new_node_from_typed_literal($world.world,hash[:literal],xml_language,datatype.uri) else node = Redland.librdf_new_node_from_literal($world.world,hash[:literal],xml_language,wf_xml) end return node end # Sets this node's value to a blank node with the specified ID (?? confirm) def bnode(id=nil) @node = Redland.librdf_new_node_from_blank_identifier($world.world,id) end # You shouldn't use this. Used internally for cleanup. def Node.create_finalizer(node) proc {|id| Redland::librdf_free_node(node) } end # Creates a new blank node with the specified ID (?? confirm) def Node.anon(id) n = Node.new('') n.bnode(id) n end # Return true if node is a literal def literal? return (Redland.librdf_node_is_literal(self.node) !=0) end # Return true if node is a resource with a URI def resource? return (Redland.librdf_node_is_resource(self.node) !=0) end # Return true if node is a blank node def blank? return (Redland.librdf_node_is_blank(self.node) !=0) end # Equivalency. Only works for comparing two Nodes def ==(other) return (Redland.librdf_node_equals(self.node,other.node) != 0) end # Convert this to a string def to_s if self.literal? Redland.librdf_node_get_literal_value(self.node) elsif self.blank? Redland.librdf_node_get_blank_identifier(self.node) elsif self.resource? uri = Redland.librdf_node_get_uri(self.node) Redland.librdf_uri_to_string(uri) unless uri.nil? else nil end end # Get the type of this node as a string (Node.node_types) def node_type() return @@node_types[Redland.librdf_node_get_type(self.node)] end # return a copy of the internal uri def uri if self.resource? return Uri.new(Redland.librdf_node_get_uri(self.node)) else raise NodeTypeError.new("Can't get URI for node type %s" % self.node_type() ) end end # returns a Literal if the node is a literal type def literal unless self.literal? raise NodeTypeError.new("Can't get literal value for node type %s" % self.node_type) end return Literal.from_node(self.node) end # returns the blank identifier for this node if the internal model is # a blank node def blank_identifier() unless self.blank? raise NodeTypeError.new("Can't get blank identifier for node type %s" % self.node_type) else return Redland.librdf_node_get_blank_identifier(self.node) end end # Ensures that the argument is a node by constructing one or returning nil # (?? confirm) def Node.ensure(node) case node when Node my_node = Redland.librdf_new_node_from_node(node.node) when SWIG::TYPE_p_librdf_node_s my_node = Redland.librdf_new_node_from_node(node) when Uri my_node = Redland.librdf_new_node_from_uri($world.world,node.uri) when URI my_node = Redland.librdf_new_node_from_uri_string($world.world,node.to_s) else my_node = nil end return my_node end end # A class to make Blank Node creation easier # model = Model.new # dom = BNode.new('dom') # create with optional id # # I will probably depreciate this and just use Resource.new() # to generate blank nodes. class BNode < Node def initialize(id=nil) @node = Redland.librdf_new_node_from_blank_identifier($world.world,id) if not @node then raise RedlandError.new("Node construction failed")end ObjectSpace.define_finalizer(self,Node.create_finalizer(@node)) end end # A helper class for namespace. Caches the nodes for a given namespaces # foaf = Namespace.new('http://xmlns.com/0.1/foaf/') # model.find(nil,foaf['name'],'Dominic') # puts foaf['name'] => http://xmlns.com/0.1/foaf/name class Namespace < Node def initialize(namespace) super(:uri_string=>namespace) @nodecache = {} end def [](item) return the_node(item) end def the_node(localName) if not @nodecache.member? localName @nodecache[localName] = Node.new(:uri_string=>self.uri.to_s + localName) end return @nodecache[localName] end private :the_node end # A literal node class Literal < Node include Redland # the string value of the literal attr_reader :value # the language of the literal attr_reader :language # create a new Literal node # literal = Literal.new('Dominic') # label = Literal.new('Name','en') def initialize(str,lang=nil,uri=nil,is_xml=false) @value = str @language = lang is_xml = is_xml==true ? 1 : 0 if uri @node = Redland.librdf_new_node_from_typed_literal($world.world,value,lang,uri.uri) else @node = Redland.librdf_new_node_from_literal($world.world,value,lang,is_xml) end raise RedlandError.new("Node construction failed") if not @node ObjectSpace.define_finalizer(self,Node.create_finalizer(@node)) end # create a literal from another Node def Literal.from_node(node) lang = Redland.librdf_node_get_literal_value_language(node) if Redland.librdf_node_get_literal_value_language(node) str = Redland.librdf_node_get_literal_value(node) hash_uri = Redland.librdf_node_get_literal_value_datatype_uri(node) hash_uri = Uri.new(Redland.librdf_uri_to_string(hash_uri)) if hash_uri return Literal.new(str,lang,hash_uri) end # create a literal from and xml string # literal = Literal.from_xml('This is emphasized') def Literal.from_xml(str,lang=nil) return Literal.new(str,lang,nil,true) end end end #Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/uri.rb0000644000175000017500000000237111776163726017145 00000000000000require 'rdf/redland' module Redland class Uri attr_accessor :uri # Initialize a Uri # # uri = RDF::Redland::Uri.new('kris') # uri2 = RDF::Redland::Uri.new(uri) # require 'uri' # uri = Uri.parse('http://www.xmlns.com') # uri_from_Uri = RDF::Redland::Uri.new(uri) def initialize(uri_string) case uri_string when String @uri = Redland.librdf_new_uri($world.world,uri_string) when Uri @uri = Redland.librdf_new_uri_from_uri(uri_string.uri) when SWIG::TYPE_p_librdf_uri_s @uri = Redland.librdf_new_uri_from_uri(uri_string) end if not @uri then raise RedlandError.new("Unable to create Uri") end ObjectSpace.define_finalizer(self,Uri.create_finalizer(@uri)) end # You shouldn't use this. Used internally for cleanup. def Uri.create_finalizer(uri) proc {|id| # "Finalizer on #{id}" #puts "closing uri" Redland::librdf_free_uri(uri) } end # Returns a string for this URI def to_s return Redland.librdf_uri_to_string(@uri) end # Equivalence. Only works with other URI objects def == (other) return (Redland.librdf_uri_equals(self.uri,other.uri) != 0) end end end #module Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/query.rb0000644000175000017500000000226111776163726017511 00000000000000require 'rdf/redland' require 'rdf/redland/stream' module Redland # This class provides query language support for RDF models either # via an adaptor class or direct by persistant storage. class Query attr_reader :query # Constructor - create a new Query object # query - the query string # language - the name of the query language # uri - the URI identifying the query language def initialize(query,language=nil,uri=nil,base_uri=nil) @language = language @uri = uri @query = Redland.librdf_new_query($world.world,language,uri,query,base_uri) return nil if not @query ObjectSpace.define_finalizer(self,Query.create_finalizer(@query)) end # Execute a query on a model def execute(model) results=Redland.librdf_query_execute(@query,model.model) if not results return nil else return QueryResults.new(results) end end # You shouldn't use this. Used internally for cleanup. def Query.create_finalizer(query) proc{|id| # "Finalizer on #{id}" #$log_final.info "closing query" Redland::librdf_free_query(query) } end end end #Redland redland-bindings-1.0.16.1/ruby/lib/rdf/redland/util.rb0000644000175000017500000000202510406177662017310 00000000000000module Redland module Util # Return true if node is a literal def is_literal?(node) return (Redland.librdf_node_is_literal(node) !=0) end # Return true if node is a resource with a URI def is_resource?(node) return (Redland.librdf_node_is_resource(node) !=0) end # Return true if node is a blank node def is_blank?(node) return (Redland.librdf_node_is_blank(node) !=0) end # Given an Iterator, returns an array of all Nodes beyond it # including this one def get_node_array(node_iterator) node_array = [] while not node_iterator.end? node_array << node_iterator.current node_iterator.next end return node_array end # Given an Stream, returns an array of all Statements beyond it # including this one def get_statement_array(stream) statement_array = [] while not stream.end? statement_array << stream.current stream.next end return statement_array end end end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/store.rb0000644000175000017500000000624611776163726017507 00000000000000require 'rdf/redland' module Redland # A class for storing RDF triples class TripleStore attr_accessor :store_type, :store # Creates a store with the given type, name, and options def initialize(store_type='memory',name='',options='') case store_type when "memory"; when "hashes"; when "file"; when "uri"; when "mysql"; when "sqlite"; when "postgresql"; else raise RedlandError.new("Failed to initialize storage, unknown storage type [#{store_type}]") end @name = name @store_type = store_type @store=Redland.librdf_new_storage($world.world,store_type,name,options) unless @store raise RedlandError.new("Creating Storage Failed") end ObjectSpace.define_finalizer(self,TripleStore.create_finalizer(@store)) end # You shouldn't use this. Used internally for cleanup. def TripleStore.create_finalizer(store) proc {|id| # "Finalizer on #{id}" #$log_final.info "closing store" Redland::librdf_free_storage(store) if store } end end # Store the triples in memory class MemoryStore < TripleStore def initialize(mem_name="",options_string="") super('memory',mem_name,options_string) end end # Store the triples in a hash. Can use memory or bdb class HashStore < TripleStore attr_accessor :hash_type # hash_type either memory or bdb. If it's bdb, you must specify a name def initialize(hash_type='memory',name='',dir='.', want_new=true,write=true,contexts=true) @hash_type = hash_type @dir = dir unless ( (hash_type == 'memory') || (hash_type == 'bdb')) raise RedlandError.new('Hash must be memory or bdb') end if hash_type=='bdb' then unless (name != '') raise RedlandError.new('bdb must have a filename') end end if (( want_new == true)|| (want_new == 'yes') || (want_new == 'Yes')) want_new = 'yes' elsif ( (want_new == false) || (want_new == 'no') || (want_new == 'No')) want_new = 'no' end if ((write == true) || (write == 'yes') || (write == 'Yes')) write = 'yes' elsif ( (write == false) || (write == 'no') || (write == 'No')) write = 'no' end if ((contexts == true) || (contexts == 'yes') || (contexts == 'Yes')) contexts = 'yes' elsif ((contexts == false) || (contexts == 'no') || (contexts == 'No')) contexts = 'no' end options = "hash-type='#{hash_type}',new='#{want_new}', dir='#{dir}', write='#{write}',contexts='#{contexts}'" super('hashes',name,options) end def HashStore.read_store(name,dir='.',write=true) return HashStore.new('bdb',name,dir,false,write) end end # Store the triples in a hash using bdb in the current directory class HashOpen < TripleStore def initialize(name) @store = Redland::librdf_new_storage $world.world, "hashes",name, "new='no',hash-type='bdb',dir='.'" end end # Store the triples in a file class FileStore < TripleStore def initialize(mem_name,options) super("file",mem_name,options) end end end #end redland-bindings-1.0.16.1/ruby/lib/rdf/redland/convertfoaf.rb0000644000175000017500000000047310406177662020654 00000000000000require 'rubyrdf' require 'convert_owl' model = Model.new() parser = Parser.new() parser.parse_into_model(model,"file:/home/dsisnero/programming/rdf-schemas/foaf.rdfs") convert = Rdf2Owl.new(model) serializer = Serializer.new() serializer.to_file('/home/dsisnero/programming/rdf-schemas/foaf.owl',convert.model) redland-bindings-1.0.16.1/ruby/lib/rdf/redland/convert_owl.rb0000644000175000017500000000367210406177662020705 00000000000000require 'rubyrdf' require 'constants' class Rdf2Owl attr_accessor :model def initialize(model) @model = model end def convert_classes() todelete = [] @model.find(nil,TYPE,RDFS_CLASS) {|s,p,o| #log("found class #{s}:#{p}:#{o}") @model.add(s,p,OWL_CLASS) todelete << Statement.new(s,p,o) log("Converted rdfs:Class #{s} into owl:Class") } todelete.each{|st| @model.delete_statement(st)} end def convert_properties() todelete = [] @model.find(nil,TYPE,PROPERTY) {|s,p,o| type = property_type(s) log("type is #{type}") @model.add(s,TYPE,type) todelete << Statement.new(s,p,o) log("Converted rdf:Property #{s} into #{type}") } todelete.each{|st| @model.delete_statement(st)} end def property_type(prop) owl_object = false @model.find(prop,RDFS_RANGE,nil){|s,p,o| if o.resource? return OWL_OBJECT_PROPERTY end } return OWL_DATATYPE_PROPERTY end def convert_RDFResource() todelete = [] @model.find(nil,nil,RDFS_RESOURCE){|s,p,o| @model.add(s,p,OWL_THING) todelete << Statement.new(s,p,o) log("Replaced triple #{s}:#{p}:#{o} with (x,x owl:Thing)") } todelete.each{|st| @model.delete_statement(st)} end def convert() self.convert_RDFResource() self.convert_properties() self.convert_classes() end def log(message) puts "[RDF2OWL]" + message end end if $0 == __FILE__ model = Model.new() parser = Parser.new() uri = Uri.new("http://www.faa.gov") #parser.parse_into_model(model,"file:/home/dsisnero/programming/rdf-files/ani_people.rdf","http://example.com/foo.rdf") parser.parse_into_model(model,"file:/home/dsisnero/programming/rdf-schemas/foaf.rdfs") convert = Rdf2Owl.new(model) convert.convert serializer = Serializer.new() serializer.to_file('/home/dsisnero/programming/rdf-schemas/foaf.owl',convert.model) end redland-bindings-1.0.16.1/ruby/lib/rdf/redland.rb0000644000175000017500000000435611456054214016335 00000000000000require 'rdf/redland/model' require 'rdf/redland/store' require 'rdf/redland/stream' require 'rdf/redland/statement' require 'rdf/redland/util' require 'rdf/redland/node' require 'rdf/redland/parser' require 'rdf/redland/queryresults' require 'rdf/redland/query' require 'rdf/redland/resource' require 'rdf/redland/serializer' require 'rdf/redland/uri' require 'rdf/redland/resource' require 'rdf/redland/util' # This module initialises the Redland library and references all # resources from it. module Redland # Load the interface to the C shared library require 'redland' #include Redland # Error class specific to this package class RedlandError < RuntimeError end # Incorrect node type class NodeTypeError < RedlandError end # The world object is the single global variable in Redland that # all the classes, their factories and implementations reference. # # In most programs there should be only one Redland world, using # multiple models although multiple worlds are possible. class World #include Singleton attr_accessor :world # Create new RDF World object (constructor) def initialize() @world = Redland::librdf_new_world() Redland::librdf_world_open(@world) ObjectSpace.define_finalizer(self,World.create_finalizer(@world)) end def World.create_finalizer(world) proc {|id| "Finalizer on #{id}" #log_final.info "closing world" # This is commented out because Ruby fails to guarantee this # is called after all other redland destructors #Redland::librdf_free_world world } end end # Initialize Globals $world = Redland::World.new() # $log_final = Log4r::Logger.new('log_final') # outfile = Log4r::FileOutputter.new('final.log',:filename=>"final.log") # $log_final.outputters = outfile # $log_final.level = Log4r::DEBUG end require 'rdf/redland/constants' if $0 == __FILE__ # world = Redland::World.new() # world = nil puts "listing instances of World: " ObjectSpace.each_object(Redland::World){|obj| p obj } puts "DONE" puts "Running the garbage collector" GC.start puts "Listing remaining instances of World:" ObjectSpace.each_object(Redland::World){|obj| p obj } puts "DONE" end redland-bindings-1.0.16.1/ruby/lib/rdf/Makefile.am0000644000175000017500000000153411523675544016440 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # rubyinstalldir=@RUBY_INSTALLDIR@/rdf rubyinstall_DATA=redland.rb EXTRA_DIST=redland.rb SUBDIRS=redland redland-bindings-1.0.16.1/ruby/lib/rdf/Makefile.in0000644000175000017500000005275212063416535016452 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF classes for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby/lib/rdf DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(rubyinstalldir)" DATA = $(rubyinstall_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ rubyinstalldir = @RUBY_INSTALLDIR@/rdf rubyinstall_DATA = redland.rb EXTRA_DIST = redland.rb SUBDIRS = redland all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/lib/rdf/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/lib/rdf/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-rubyinstallDATA: $(rubyinstall_DATA) @$(NORMAL_INSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rubyinstalldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rubyinstalldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rubyinstalldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(rubyinstalldir)" || exit $$?; \ done uninstall-rubyinstallDATA: @$(NORMAL_UNINSTALL) @list='$(rubyinstall_DATA)'; test -n "$(rubyinstalldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rubyinstalldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(rubyinstalldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-rubyinstallDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-rubyinstallDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-rubyinstallDATA install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-rubyinstallDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/ruby/lib/Makefile.am0000644000175000017500000000136611522705745015664 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # SUBDIRS=rdf redland-bindings-1.0.16.1/ruby/lib/Makefile.in0000644000175000017500000004614712063416535015700 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby RDF for Redland # # Copyright (C) 2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby/lib DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = rdf all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/lib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/ruby/test/0000755000175000017500000000000012074650260014105 500000000000000redland-bindings-1.0.16.1/ruby/test/test_parser.rb0000644000175000017500000001414711776152545016727 00000000000000require 'test/unit' require 'rdf/redland' class TestParser < Test::Unit::TestCase include Redland def setup world = $world @foaf = Namespace.new("http://xmlns.com/foaf/0.1/") @faa = Namespace.new("http://http://www.faa.gov/ontology/people#") @data_rdf_string =< Pat Richardson NISC Program Manager Pat Richardson 202-646-2352 Jack Nager Director of NAS Implementation Program Jack Nager Dominic Sisneros Electronic Engineer Dominic Sisneros EOF @data_triples_string=< . _:r1081452401r1 "Pat Richardson" . _:r1081452401r1 "NISC Program Manager" . _:r1081452401r1 "Pat" . _:r1081452401r1 "Richardson" . _:r1081452401r1 . _:r1081452401r1 "202-646-2352" . _:r1081452401r1 . _:r1081452401r2 . _:r1081452401r2 "Jack Nager" . _:r1081452401r2 "Director of NAS Implementation Program" . _:r1081452401r2 "Jack" . _:r1081452401r2 "Nager" . _:r1081452401r2 . _:r1081452401r3 . _:r1081452401r3 "Dominic Sisneros" . _:r1081452401r3 "Electronic Engineer" . _:r1081452401r3 "Dominic" . _:r1081452401r3 "Sisneros" . _:r1081452401r3 . TRIPLES end def test_parse model = Model.new() foaf = Namespace.new("http://xmlns.com/foaf/0.1/") faa = Namespace.new("http://http://www.faa.gov/ontology/people#") parser = Parser.new() parser.parse_into_model(model,"file:./ical.rdf") #model.triples(){|s,p,o| puts "#{s}:#{p}:#{o}"} end def test_stream parser = Parser.new() model = Model.new() parser.parse_as_stream("file:./ical.rdf"){|s| model.add_statement(s)} end def test_parser_with_contexts() store = HashStore.new('bdb','thestore') model = Model.new(store) context = Node.new(Uri.new('http://www.faa.gov')) parser = Parser.new() parser.parse_into_model(model,"file:./ical.rdf",nil,context) contexts = model.contexts assert_equal(1,contexts.size) assert_equal(contexts[0],Node.new(Uri.new('http://www.faa.gov'))) end def check_foaf_model(model) jack = model.subject(@foaf['mbox'],Node.new(:uri_string=>'mailto:jack.nager@bogus.com')) assert_equal('Jack',model.object(jack,@foaf['firstName']).to_s) assert_equal('Nager',model.object(jack,@foaf['surname']).to_s) assert_equal('Director of NAS Implementation Program', model.object(jack,@foaf['title']).to_s) end def test_parse_string_into_model model = Model.new() parser = Parser.new() parser.parse_string_into_model(model,@data_rdf_string,'http://xml.com') check_foaf_model(model) end def test_parse_string_into_model_from_triples model = Model.new() parser = Parser.ntriples() parser.parse_string_into_model(model,@data_triples_string,'http://xml.com') check_foaf_model(model) end def test_parse_string_as_stream model = Model.new() parser = Parser.new() parser.parse_string_as_stream(@data_rdf_string,'http://xml.com'){|s| model.add_statement(s)} check_foaf_model(model) end def smush_tester(model,dom) assert_equal('Electronic Engineer',model.object(dom,@foaf['title']).to_s) assert_equal('Sisneros',model.object(dom,@foaf['surname']).to_s) end def no_test_string_smush model = Model.new() dom = BNode.new('dom') model.add(dom,@foaf['mbox'],Node.new(:uri_string=>'mailto:dominic@bogus.com')) model.add(dom,@foaf['name'],'Dominic Sisneros') #puts "Dom title before = #{model.object(dom,@foaf['title'])}" assert_nil(model.object(dom,@foaf['title'])) parser = Parser.ntriples() parser.add_ident(@foaf['mbox']) parser.smush_string(@data_triples_string,model) smush_tester(model,dom) end def test_file_smush() #temp_model = Model.new() #parser = Parser.new() #parser.parse_string_into_model(temp_model,@data_rdf_string,"http://www.faa.gov") #serializer = Serializer.new() #serializer.to_file('triples.rdf',temp_model) model = Model.new() dom = BNode.new('dom') model.add(dom,@foaf['mbox'],Node.new(:uri_string=>'mailto:dominic@bogus.com')) model.add(dom,@foaf['name'],'Dominic Sisneros') parser = Parser.new() parser.add_ident(@foaf['mbox']) parser.smush_file(model,'file:./triples.rdf') smush_tester(model,dom) #model.statements{|s| puts s} end end redland-bindings-1.0.16.1/ruby/test/test_serializer.rb0000644000175000017500000000305011776152534017571 00000000000000require 'test/unit' require 'rdf/redland' class TestSerializer < Test::Unit::TestCase include Redland def test_serializer model = Model.new() foaf = Namespace.new('http://xmlns.com/foaf/0.1/') faa = Namespace.new('http://www.faa.gov/people#') model.add_statement(Statement.new(faa['dom@some.gov'],foaf['name'],"Dominic")) model.add_statement Statement.new(faa['kris'],foaf['firstName'],"Kris") model.add_statement Statement.new(faa['kris'],foaf['phone'],"333-123-2387") model.add(faa['kris'],foaf['name'],"Kris Frame") model.add(faa['dom'],faa['project'],'2334') domnode = model.subject(foaf['name'],"Dominic") assert_equal(faa['dom@some.gov'], domnode) assert_equal('333-123-2387',model.object(faa['kris'],foaf['phone']).to_s) #model.predicates(faa['kris'],"Kris"){|p| puts p } #model.triples{|s,p,o| puts "subject: #{s}, pred: #{p}, object: #{o}"} #model.find( nil,foaf['name'],nil){|s,p,o| puts o } model.save('out3.rdf') serializer = Serializer.new() #To Do This doesn't work. assert(serializer.set_namespace('foaf', 'http://xmlns.com/foaf/0.1/')) #returns true if succeeds assert(serializer.set_namespace('faa', Uri.new('http://www.faa.gov/people#'))) #returns true if succeeds serializer.to_file('out_namespace.rdf',model,Uri.new("http://www.faa.gov/people#")) # serializer.namespace(foaf,'foaf') string = serializer.model_to_string(Uri.new("http://www.faa.gov/people#"), model) fdata = IO::read('out_namespace.rdf') assert(fdata == string) end end redland-bindings-1.0.16.1/ruby/test/ical.rdf0000644000175000017500000003720610406177662015451 00000000000000 type forSome Vcalendar Vevent Vtimezone action attendee byday bymonth calAddress calscale categories class cn comment component cutype date dateTime daylight description dtend dtstamp dtstart duration freq interval language location organizer partstat prodid related role rrule rsvp sequence standard summary transp trigger tzid tzname tzoffsetfrom tzoffsetto uid valarm version wrTimezone evolutionAlarmUid licLocation redland-bindings-1.0.16.1/ruby/test/test_resource.rb0000644000175000017500000000754211776152534017261 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/constants' require 'rdf/redland/resource' class TestResource < Test::Unit::TestCase include Redland def setup @foaf = Namespace.new('http://xmlns.com/foaf/0.1/') @faa = Namespace.new("http://www.faa.gov/faa#") end def test_intitialize_from_model() model = Model.new() resource = model.create_resource("http://www.faa.gov/DominicSisneros") resource.add_property(@foaf['name'],'Dominic'). add_property(@foaf['phone'],'801-320-2377'). add_property(@foaf['surname'],'Sisneros') resource.add_property(@foaf['nick'],'Dom') resource.add_property(@foaf['nick'],'Domster') assert_equal(5,resource.get_properties.size) #puts resource.get_properties assert_equal('Dominic', resource.get_property(@foaf['name']).to_s) #resource.get_properties(@foaf['nick']){|nick| puts "#{nick}"} nicknames = [Node.new('Dom'),Node.new('Domster')] assert_equal(nicknames,resource.get_properties(@foaf['nick'])) #resource.get_properties(){|p,o| puts "#{p}:#{o}" } end def test_get_resource() model = Model.new() resource = model.create_resource("http://www.faa.gov/DominicSisneros") resource.add_property(@foaf['name'],'Dominic'). add_property(@foaf['phone'],'801-320-2377'). add_property(@foaf['surname'],'Sisneros') assert_equal(3,resource.get_properties.size) resource = model.get_resource("http://www.faa.gov/DominicSisneros") assert_instance_of(Resource,resource) assert_equal("Dominic" ,resource.get_property(@foaf['name']).to_s) assert_equal("801-320-2377",resource.get_property(@foaf['phone']).to_s) end def load_resource(model) resource = model.create_resource("http://www.faa.gov/DominicSisneros") resource.add_property(@foaf['name'],'Dominic'). add_property(@foaf['phone'],'801-320-2377'). add_property(@foaf['surname'],'Sisneros') resource.add_property(@foaf['nick'],'Dom') resource.add_property(@foaf['nick'],'Domster') return resource end def test_remove_predicate() model = Model.new resource = load_resource(model) assert_equal(5,resource.get_properties.size) assert_equal('Dominic',resource.get_property(@foaf['name']).to_s) resource.delete_property(@foaf['name']) assert_nil(resource.get_property(@foaf['name'])) assert_equal(4,resource.get_properties.size) resource.delete_properties() assert_equal(0,resource.get_properties.size) end def test_type() model = Model.new() resource = model.create_resource() resource.type = @foaf['Person'] assert_equal(Node.new(:uri_string=>'http://xmlns.com/foaf/0.1/Person'), resource.get_property(TYPE)) assert_equal(@foaf['Person'],resource.type) resource.type = @faa['Project'] assert_equal(Node.new(:uri_string=>'http://www.faa.gov/faa#Project'),resource.type) #puts resource.model.triples() end def test_object_of_predicate() model = Model.new dom = model.create_resource() dom.type = @foaf['Person'] dom.add_property(@foaf['name'],'Dominic Sisneros') proj = model.create_resource() proj.add_property(@faa['jcn'],'108269') proj.type = @faa['Project'] proj.add_property(@faa['electronic'],dom) proj2 = model.create_resource() proj2.add_property(@faa['jcn'],'10834') proj2.type = @faa['Project'] proj2.add_property(@faa['electronic'],dom) p = model.create_resource() p.add_property(@foaf['knows'],dom) assert_equal(3, dom.object_of_predicate().size) assert_equal(2,dom.object_of_predicate(@faa['electronic']).size) #puts proj.model.triples() #puts "dom is object of #{dom.object_of_predicate}" #assert_equal(proj,dom.object_of_predicate(@faa['electronic'])) #puts "dom.object_of_predicate=> #{dom.object_of_predicate(@faa['electronic'])}" end end redland-bindings-1.0.16.1/ruby/test/README0000644000175000017500000000031710406177662014715 00000000000000These tests need Ruby's Test::Unit http://raa.ruby-lang.org/list.rhtml?name=testunit which points to a download URL that doesn't work at 2004-11-03 So, the tests are run but the results ignored. -- Dave redland-bindings-1.0.16.1/ruby/test/test_model.rb0000644000175000017500000001157411776163726016537 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/constants' require 'rdf/redland/schemas/foaf' class TestModel < Test::Unit::TestCase include Redland def setup @foaf = Namespace.new('http://xmlns.com/foaf/0.1/') @faa = Namespace.new("http://www.faa.gov/faa#") end def test_initialize() model = Model.new() assert_equal(0,model.size) st = Statement.new(Uri.new("http://example.org/foo"),Uri.new("http://example.org/bar"),"baz") st2 = Statement.new(Uri.new("http://example.org/ns/"),Uri.new("http://example.org/name"),"bar") model.add_statement(st) model.add_statement(st2) assert_equal(2,model.size) end def test_api() model = Model.new() foaf = Namespace.new('http://xmlns.com/foaf/0.1/') faa = Namespace.new('http://www.faa.gov/people#') model.add_statement(Statement.new(@faa['dom@some.gov'],@foaf['name'],"Dominic")) model.add_statement Statement.new(@faa['kris'],@foaf['firstName'],"Kris") model.add_statement Statement.new(@faa['kris'],@foaf['phone'],"333-123-2387") model.add(@faa['kris'],@foaf['name'],"Kris Frame") model.add( Uri.new('http://example.org/dom'),Uri.new('http://example.org/project'),'2334') domnode = model.subject(@foaf['name'],"Dominic") assert_equal(@faa['dom@some.gov'], domnode) assert_equal('333-123-2387',model.object(@faa['kris'],@foaf['phone']).to_s) #model.predicates(@faa['kris'],"Kris"){|p| puts p } #model.triples{|s,p,o| puts "subject: #{s}, pred: #{p}, object: #{o}"} #model.find( nil,@foaf['name'],nil){|s,p,o| puts o } end def test_add_statements() model = Model.new dom = BNode.new('dom') kris = BNode.new('kris') model.add(dom,@foaf['firstName'],'Dominic') model.add(dom,@foaf['surname'],'Sisneros') model.add_statement Statement.new(kris,@foaf['firstName'],"Kris") model.add_statement Statement.new(kris,@foaf['phone'],"425-227-2387") end def test_delete() model = Model.new dom = BNode.new('dom') kris = BNode.new('kris') model.add(dom,@foaf['firstName'],'Dominic') model.add(dom,@foaf['surname'],'Sisneros') model.add_statement Statement.new(kris,@foaf['firstName'],"Kris") model.add_statement Statement.new(kris,@foaf['phone'],"192-192-192") assert_equal(4,model.size) to_delete =model.find(dom,nil,nil) # delete all dom nodes to_delete.each{|st| model.delete_statement(st)} assert_equal(2,model.size) assert_equal(0, model.find(dom,nil,nil).size) assert_equal(2, model.find(kris,nil,nil).size) end def testcontext() store = HashStore.new('bdb','thestore') model = Model.new(store) model.add_statement(Statement.new(Uri.new('http://example.org/dom'),Uri.new('http://example.org/project'),'10892'),Node.new(Uri.new('http://example.org/mycontext/dom'))) model.add(Uri.new('http://example.org/dom'),Uri.new('http://example.org/name'),'Dominic',Uri.new('http://example.org/mycontext/dom')) #model.statements(){|s| puts s} contexts = [] model.contexts{|c| contexts << c} assert_equal(1,contexts.size) #assert_equal(contexts[0],model.create_resource('http://mycontext/dom')) #model.add(Uri.new('http://example.org/dom'),Uri.new('http://example.org/surname'),'Sisneros',Uri.new('http://newcontext/dom')) #contexts = model.contexts() #puts "## CONTEXTS ARE #{contexts}" #assert_equal(2,contexts.size) end def test_smush() model = Model.new() foaf = Namespace.new("http://xmlns.com/foaf/0.1/") rdfs = Namespace.new("http://www.23.org/2000/01/rdf-schema#") dom = Node.new(:blank=>'dom') model.add(dom,rdfs['type'],foaf['Person']) model.add(dom,foaf['mbox'],Uri.new('mailto:dom@sisna.com')) model.add(dom,foaf['firstName'],'Dominic') dom2 = Node.new(:blank=>'dom2') model.add_statement(Statement.new(dom2,rdfs['type'],foaf['Person'])) model.add_statement(Statement.new(dom2,foaf['mbox'],Uri.new('mailto:dom@sisna.com'))) model.add_statement(Statement.new(dom2,foaf['surname'],'Sisneros')) assert_equal(6,model.size) subjects = [] model.subjects(foaf['mbox'],Uri.new('mailto:dom@sisna.com')){|s| subjects << s } assert_equal(2,subjects.size) model.smush(foaf['mbox']) assert_equal(1,model.subjects(foaf['mbox'],Uri.new('mailto:dom@sisna.com')).size) end def test_parse_and_merge() store = HashStore.new(hash_type='memory', options="contexts='yes'") model = Model.new(store) dom = BNode.new('dom') model.add(dom,FOAF::MBOX,Node.new(:uri_string=>'mailto:dominic@bogus.com')) model.add(dom,FOAF::NAME,'Dominic Sisneros') parser = Parser.new() model.parse_and_merge(parser,'file:triples.rdf',[FOAF::MBOX]) domnode = model.subject(FOAF::MBOX,Node.new(:uri_string=>'mailto:dominic@bogus.com')) assert_equal('Electronic Engineer',model.object(domnode,FOAF::TITLE).to_s) assert_equal('Sisneros',model.object(domnode,FOAF::SURNAME).to_s) end end redland-bindings-1.0.16.1/ruby/test/Makefile.am0000644000175000017500000000334411776151670016076 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby tests for Redland # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # RUBY_PACKAGE=@RUBY_PACKAGE@ RUBY_TEST_FILES=\ test_model.rb test_node.rb test_parser.rb test_rdf.rb \ test_rdfs_resource.rb test_resource.rb test_serializer.rb \ test_statement.rb test_store.rb test_uri.rb test_query.rb EXTRA_DIST=\ $(RUBY_TEST_FILES) README ical.rdf triples.rdf one.nt CLEANFILES=\ *.db out*.rdf check-local: check-ruby check-ruby: ../$(RUBY_PACKAGE)-stamp $(RUBY_TEST_FILES) @result=0; fails=; \ $(ECHO) "Testing Ruby"; \ for test in $(RUBY_TEST_FILES); do \ $(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \ arg="-I.. -I../lib"; \ $(RUBY) $$arg $(srcdir)/$$test; \ status=$$?; \ if test $$status != 0 -a $$status != 2 ; then \ $(ECHO) FAILED returned status $$status; result=1; \ echo $(RUBY) $$arg $(srcdir)/$$test; \ fails="$$fails $$test"; \ else \ $(ECHO) "ok"; \ fi; \ done; \ if test $$result = 1 ; then \ echo "FAILED tests:$$fails"; \ fi; \ exit $$result ../$(RUBY_PACKAGE)-stamp: cd .. && $(MAKE) $(RUBY_PACKAGE)-stamp redland-bindings-1.0.16.1/ruby/test/Makefile.in0000644000175000017500000003226112063416535016101 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby tests for Redland # # Copyright (C) 2004-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2004-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby/test DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ RUBY_TEST_FILES = \ test_model.rb test_node.rb test_parser.rb test_rdf.rb \ test_rdfs_resource.rb test_resource.rb test_serializer.rb \ test_statement.rb test_store.rb test_uri.rb test_query.rb EXTRA_DIST = \ $(RUBY_TEST_FILES) README ical.rdf triples.rdf one.nt CLEANFILES = \ *.db out*.rdf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: all all-am check check-am check-local clean clean-generic \ clean-libtool distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am check-local: check-ruby check-ruby: ../$(RUBY_PACKAGE)-stamp $(RUBY_TEST_FILES) @result=0; fails=; \ $(ECHO) "Testing Ruby"; \ for test in $(RUBY_TEST_FILES); do \ $(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \ arg="-I.. -I../lib"; \ $(RUBY) $$arg $(srcdir)/$$test; \ status=$$?; \ if test $$status != 0 -a $$status != 2 ; then \ $(ECHO) FAILED returned status $$status; result=1; \ echo $(RUBY) $$arg $(srcdir)/$$test; \ fails="$$fails $$test"; \ else \ $(ECHO) "ok"; \ fi; \ done; \ if test $$result = 1 ; then \ echo "FAILED tests:$$fails"; \ fi; \ exit $$result ../$(RUBY_PACKAGE)-stamp: cd .. && $(MAKE) $(RUBY_PACKAGE)-stamp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/ruby/test/triples.rdf0000644000175000017500000000227610406177662016222 00000000000000 Pat Richardson NISC Program Manager Pat Richardson 202-646-2352 Jack Nager Director of NAS Implementation Program Jack Nager Dominic Sisneros Electronic Engineer Dominic Sisneros redland-bindings-1.0.16.1/ruby/test/test_node.rb0000644000175000017500000000436611776152534016360 00000000000000require 'test/unit' require 'rdf/redland' class TestNode < Test::Unit::TestCase include Redland def test_initialize() node = Node.new("Dominic") assert(node.literal?) assert_equal('Dominic',node.literal.value) end def test_resource() node = Node.new(Uri.new("http://example.com/")) assert(node.resource?) assert_equal(node,Node.new(:uri_string=>"http://example.com/")) end def test_bnode() node = Node.new(:blank=>'dom') assert(node.blank?) assert_equal('dom',node.blank_identifier) assert_equal(node,BNode.new('dom')) node2 = BNode.new('dom2') assert_equal('dom2',node2.blank_identifier) assert(node2.blank?) node3 = BNode.new() node4 = BNode.new() assert(node3.blank?) assert(node4.blank?) assert_not_equal(node3,node4) end def test_equality() node = Node.new("Dominic") assert_equal(node,Node.new("Dominic")) assert_not_equal(node,Node.new("NotDominic")) assert_equal(node, Node.new(node)) end def test_namespace() foaf = Namespace.new("http://xmlns.com/foaf/0.1/") assert(foaf.resource?) assert_equal(foaf,Node.new(:uri_string=>"http://xmlns.com/foaf/0.1/")) nameinst = foaf['name'] assert_equal(nameinst,Node.new(:uri_string=>"http://xmlns.com/foaf/0.1/name")) assert_same(nameinst,foaf['name']) assert_equal(foaf['mbox'],Node.new(:uri_string=>"http://xmlns.com/foaf/0.1/mbox")) end def test_get_uri() node = Node.new("Dominic") assert_raises(NodeTypeError){uri = node.uri} # Can't get uri from a literal node node = Node.new(Uri.new("http://xmlns.com/")) assert_equal(Uri, node.uri.class) assert_equal('http://xmlns.com/',node.uri.to_s) assert_equal('http://xmlns.com/',node.to_s) end def test_get_literal() node = Node.new("Dominic") assert_equal("Dominic", node.literal.value) node = Node.new(Uri.new("http://xmlns.com/")) assert_raises(NodeTypeError){node.literal} end def test_literal() literal = Literal.new('this is a literal','en') assert_equal('this is a literal',literal.value) assert_equal('this is a literal',literal.to_s) assert_equal('en',literal.language) literal = Literal.from_xml('chat') assert_equal('chat',literal.value) end end redland-bindings-1.0.16.1/ruby/test/test_rdfs_resource.rb0000644000175000017500000000370611776152534020275 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/constants' require 'rdf/redland/schemas/rdfs' class TestRDFResource < Test::Unit::TestCase include Redland::RDFS def setup @rdfsns = Namespace.new("http://www.w3.org/2000/01/rdf-schema#") end def test_comment() model = Model.new() resource = model.create_resource("http://www.faa.gov/DominicSisneros") resource.extend RDFS resource.comment = "This is a new comment" assert_equal("This is a new comment",resource.get_property(RDFS_COMMENT).value) assert_equal("This is a new comment",resource.comment) resource.comment ="change comment" assert_equal("change comment",resource.model.object(resource,RDFS_COMMENT).value) end def test_label() model = Model.new() resource = model.create_resource("http://class") resource.extend RDFS resource.add_label('First label') assert_equal('First label',resource.label.value) resource.add_label('A new label') assert_equal('A new label', resource.label.value) assert_equal(1, resource.get_properties(RDFS_LABEL).size) resource.add_label('A new label','en') #should be different assert_equal(2, resource.get_properties(RDFS_LABEL).size) end def test_get_label_language() model = Model.new() resource = model.create_resource('http://class') resource.extend RDFS resource.add_label('Hello','en') resource.add_label('Hola','sp') assert_equal('Hello',resource.label('en').value) assert_equal('Hola',resource.label('sp').value) assert_nil(resource.label('fr')) end def test_type model = Model.new() resource = model.create_resource('http://class') resource.extend RDFS resource.type = Resource.new('http://faa.gov/#Project') assert(resource.type?( Resource.new('http://faa.gov/#Project') )) #assert_equal(Resource.new('http://faa.gov/#Project'),resource.type) #puts resource.type #puts resource.model.triples end end redland-bindings-1.0.16.1/ruby/test/one.nt0000644000175000017500000000007711456140765015164 00000000000000 "2334" . redland-bindings-1.0.16.1/ruby/test/test_rdf.rb0000644000175000017500000000152611776152534016201 00000000000000require 'test/unit' require 'rdf/redland' include Redland class TestStorage < Test::Unit::TestCase def test_initialize() store = TripleStore.new('memory','mystore') assert_instance_of(TripleStore,store) assert_raises(RedlandError,'Should raise exception'){ store2 = TripleStore.new('bogus','thestore') } assert_raises(RedlandError){ store3 = TripleStore.new('hash','thefile') } end end class TestHash < Test::Unit::TestCase def test_initialize store = HashStore.new() assert_instance_of(HashStore, store) assert_equal('hashes',store.store_type) assert_equal('memory',store.hash_type) assert_raises(RedlandError,'should raise exception'){ store = HashStore.new('bdb') } end def test_bdb_hash store = HashStore.new('bdb','thestore') end end redland-bindings-1.0.16.1/ruby/test/test_uri.rb0000644000175000017500000000132111776152534016216 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/uri' class TestUri < Test::Unit::TestCase include Redland def test_initialize() uri = Uri.new("http://www.rdf.com") assert_equal('http://www.rdf.com',uri.to_s) end def test_uri_from_uri() uri = Uri.new("http://www.rdf.com") uri2 = Uri.new(uri) assert_equal('http://www.rdf.com',uri2.to_s) end def test_equality() uri = Uri.new("http://www.rdf.com") uri2 = Uri.new("http://www.rdf.com") assert_equal(uri,uri2) uri = nil assert_not_equal(uri,uri2) uri2 = nil assert_equal(uri,uri2) uri = 'http://www.rdf.com' uri2 = Uri.new('http://www.rdf.com') assert_not_equal(uri,uri2) end end redland-bindings-1.0.16.1/ruby/test/test_query.rb0000644000175000017500000001334111776152534016571 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/constants' require 'rdf/redland/schemas/foaf' class TestQuery < Test::Unit::TestCase include Redland def setup @foaf = Namespace.new('http://xmlns.com/foaf/0.1/') @exns = Namespace.new('http://example.org/') end def test_model_query_api() model = Model.new() query = Query.new("SELECT ?a ?b ?c WHERE { ?a ?b ?c}", "sparql", nil, nil) results = query.execute(model) end def test_query_api() model = Model.new() query = Query.new("SELECT ?a ?b ?c WHERE { ?a ?b ?c} ", "sparql", nil, nil) results = model.query_execute(query) end def test_model_query_results() model = Model.new() lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("SELECT ?a ?b ?c WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) # Result should be a single variable binding result with three values assert(results.is_bindings?) assert_equal(3, results.bindings_count) assert_equal(results.binding_value(0), @exns['subject']) assert_equal(results.binding_value(1), @exns['pred']) assert_equal(results.binding_value(2), lit) values = [@exns['subject'], @exns['pred'], lit] assert_equal(results.binding_values(), values) assert_equal(results.binding_name(0), "a") assert_equal(results.binding_name(1), "b") assert_equal(results.binding_name(2), "c") assert_equal(results.binding_names(), ["a", "b", "c"]) results.next() assert(results.finished?) end def test_model_query_ask() model = Model.new() lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("ASK WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) # Result should be a true boolean assert(results.is_boolean?) assert(results.get_boolean?) end def test_model_query_construct() model = Model.new() @exns = Namespace.new('http://example.org/') lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("CONSTRUCT { ?a ?b ?c . ?b ?a ?c } WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) # Result should be a graph of two triples assert(results.is_graph?) stream = results.as_stream() assert(stream != nil) statement = stream.current() assert_equal(statement, st) stream.next() statement = stream.current() st2 = Statement.new(@exns['pred'], @exns['subject'], lit) assert_equal(statement, st2) stream.next() assert(stream.end?) end def test_model_query_serialize_bindings() model = Model.new() lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("SELECT ?s ?p ?o WHERE {?s ?p ?o}", "sparql", nil, nil) results = query.execute(model) assert(results != nil) string = results.to_string( Uri.new("http://www.w3.org/2005/sparql-results#"), Uri.new("http://example.org/") ) # length of a SPARQL results format string - might change assert(string.length() > 400) assert_match(%r|http://example.org/subject|, string) assert_match(%r|http://example.org/pred|, string) assert_match(%r|baz|, string) end def test_model_query_serialize_ask() model = Model.new() lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("ASK WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) string = results.to_string(Uri.new("http://www.w3.org/2001/sw/DataAccess/json-sparql/"), Uri.new("http://example.org/")) # length of a SPARQL results format string - might change assert(string.length() > 30) assert_match(%r|"boolean" : true|, string) end def test_model_query_serialize_construct() model = Model.new() @exns = Namespace.new('http://example.org/') lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("CONSTRUCT { ?a ?b ?c . ?b ?a ?c } WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) string = results.to_string() # length of an RDF/XML string - might change assert(string.length() > 300) assert_match(%r|baz|, string) assert_match(%r|baz|, string) end def test_model_query_serialize_bindings_json() model = Model.new() lit = Node.new("baz") st = Statement.new(@exns['subject'], @exns['pred'], lit) model.add_statement(st) query = Query.new("SELECT ?a ?b ?c WHERE { ?a ?b ?c }", "sparql", nil, nil) results = query.execute(model) assert(results != nil) string = results.to_string(Uri.new("http://www.w3.org/2001/sw/DataAccess/json-sparql/"), Uri.new("http://example.org/")) # length of a SPARQL results format string in JSON - might change assert(string.length() > 300) assert_match(%r|"vars": \[ "a", "b", "c" \]|, string) assert_match(%r|"a" : \{ "type": "uri", "value": "http://example.org/subject" \}|, string) assert_match(%r|"b" : \{ "type": "uri", "value": "http://example.org/pred" \}|, string) assert_match(%r|"c" : \{ "type": "literal", "value": "baz" \}|, string) end end redland-bindings-1.0.16.1/ruby/test/test_statement.rb0000644000175000017500000000116011776152534017424 00000000000000require 'test/unit' require 'rdf/redland' require 'rdf/redland/node' class TestStatement < Test::Unit::TestCase include Redland def test_initialize() st = Statement.new(Uri.new("http://foo"),Uri.new("http://bar"),"baz") assert_instance_of(Statement,st) #puts st.subject.class assert_equal(Node.new(Uri.new("http://foo")),st.subject) assert_equal(Node.new(Uri.new("http://bar")),st.predicate) assert_equal('baz',st.object.to_s) st.subject = Node.new(Uri.new("http://xmlns.com" )) st.predicate = Node.new( Uri.new("http://xmlns.com/#name")) st.object = Node.new("Dominic") end end redland-bindings-1.0.16.1/ruby/test/test_store.rb0000644000175000017500000000230311776152534016554 00000000000000require 'rdf/redland' require 'test/unit' class TestStore < Test::Unit::TestCase include Redland def test_hash_store() store = HashStore.new() assert_equal('memory',store.hash_type) model = Model.new(store) model = nil store = nil end def test_hash_bdb() store = HashStore.new('bdb','mystore') assert_equal('bdb',store.hash_type) model = Model.new(store) model.add( Uri.new("http://xmlns.com"), Uri.new("http://predicate"), "baz" ) st = Statement.new( Uri.new("http://xmlns.com"), Uri.new("http://predicate"), "baz" ) assert(model.include_statement?(st)) end def test_hash_raises() assert_raises(RedlandError){ store = HashStore.new('bdb') } # bdb needs a name end def test_read_store() store = HashStore.new('bdb','thestore') model = Model.new(store) parser = Parser.new(name="ntriples",mime_type=nil) parser.parse_into_model(model,"file:./one.nt") st = Statement.new( Uri.new("http://example.org/dom"), Uri.new("http://example.org/project"), "2334" ) assert(model.include_statement?(st)) #model.triples(){|s,p,o| puts "#{s}:#{p}:#{o}"} end end redland-bindings-1.0.16.1/ruby/redland_wrap.c0000644000175000017500000112416511776152551015676 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGRUBY /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { register size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #include /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which * breaks using rb_intern as an lvalue, as SWIG does. We work around this * issue for now by disabling this. * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645 */ #ifdef rb_intern # undef rb_intern #endif /* Remove global macros defined in Ruby's win32.h */ #ifdef write # undef write #endif #ifdef read # undef read #endif #ifdef bind # undef bind #endif #ifdef close # undef close #endif #ifdef connect # undef connect #endif /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) #endif #ifndef LL2NUM #define LL2NUM(x) INT2NUM((long) (x)) #endif #ifndef ULL2NUM #define ULL2NUM(x) UINT2NUM((unsigned long) (x)) #endif /* Ruby 1.7 doesn't (yet) define NUM2ULL() */ #ifndef NUM2ULL #ifdef HAVE_LONG_LONG #define NUM2ULL(x) rb_num2ull((x)) #else #define NUM2ULL(x) NUM2ULONG(x) #endif #endif /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ /* Define these for older versions so we can just write code the new way */ #ifndef RSTRING_LEN # define RSTRING_LEN(x) RSTRING(x)->len #endif #ifndef RSTRING_PTR # define RSTRING_PTR(x) RSTRING(x)->ptr #endif #ifndef RSTRING_END # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) #endif #ifndef RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif #ifndef RFLOAT_VALUE # define RFLOAT_VALUE(x) RFLOAT(x)->value #endif #ifndef DOUBLE2NUM # define DOUBLE2NUM(x) rb_float_new(x) #endif #ifndef RHASH_TBL # define RHASH_TBL(x) (RHASH(x)->tbl) #endif #ifndef RHASH_ITER_LEV # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) #endif #ifndef RHASH_IFNONE # define RHASH_IFNONE(x) (RHASH(x)->ifnone) #endif #ifndef RHASH_SIZE # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) #endif #ifndef RHASH_EMPTY_P # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) #endif #ifndef RSTRUCT_LEN # define RSTRUCT_LEN(x) RSTRUCT(x)->len #endif #ifndef RSTRUCT_PTR # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr #endif /* * Need to be very careful about how these macros are defined, especially * when compiling C++ code or C code with an ANSI C compiler. * * VALUEFUNC(f) is a macro used to typecast a C function that implements * a Ruby method so that it can be passed as an argument to API functions * like rb_define_method() and rb_define_singleton_method(). * * VOIDFUNC(f) is a macro used to typecast a C function that implements * either the "mark" or "free" stuff for a Ruby Data object, so that it * can be passed as an argument to API functions like Data_Wrap_Struct() * and Data_Make_Struct(). */ #ifdef __cplusplus # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((void (*)()) f) # else # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # else /* These definitions should work for Ruby 1.7+ */ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # endif # endif #else # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) #endif /* Don't use for expressions have side effect */ #ifndef RB_STRING_VALUE #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) #endif #ifndef StringValue #define StringValue(s) RB_STRING_VALUE(s) #endif #ifndef StringValuePtr #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) #endif #ifndef StringValueLen #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) #endif #ifndef SafeStringValue #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_str(v);\ } while (0) #endif #ifndef HAVE_RB_DEFINE_ALLOC_FUNC #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif static VALUE _mSWIG = Qnil; /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ /* Define some additional error types */ #define SWIG_ObjectPreviouslyDeletedError -100 /* Define custom exceptions for errors that do not map to existing Ruby exceptions. Note this only works for C++ since a global cannot be initialized by a function in C. For C, fallback to rb_eRuntimeError.*/ SWIGINTERN VALUE getNullReferenceError(void) { static int init = 0; static VALUE rb_eNullReferenceError ; if (!init) { init = 1; rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); } return rb_eNullReferenceError; } SWIGINTERN VALUE getObjectPreviouslyDeletedError(void) { static int init = 0; static VALUE rb_eObjectPreviouslyDeleted ; if (!init) { init = 1; rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); } return rb_eObjectPreviouslyDeleted; } SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code) { VALUE type; switch (SWIG_code) { case SWIG_MemoryError: type = rb_eNoMemError; break; case SWIG_IOError: type = rb_eIOError; break; case SWIG_RuntimeError: type = rb_eRuntimeError; break; case SWIG_IndexError: type = rb_eIndexError; break; case SWIG_TypeError: type = rb_eTypeError; break; case SWIG_DivisionByZero: type = rb_eZeroDivError; break; case SWIG_OverflowError: type = rb_eRangeError; break; case SWIG_SyntaxError: type = rb_eSyntaxError; break; case SWIG_ValueError: type = rb_eArgError; break; case SWIG_SystemError: type = rb_eFatal; break; case SWIG_AttributeError: type = rb_eRuntimeError; break; case SWIG_NullReferenceError: type = getNullReferenceError(); break; case SWIG_ObjectPreviouslyDeletedError: type = getObjectPreviouslyDeletedError(); break; case SWIG_UnknownError: type = rb_eRuntimeError; break; default: type = rb_eRuntimeError; } return type; } /* This function is called when a user inputs a wrong argument to a method. */ SWIGINTERN const char* Ruby_Format_TypeError( const char* msg, const char* type, const char* name, const int argn, VALUE input ) { char buf[128]; VALUE str; VALUE asStr; if ( msg && *msg ) { str = rb_str_new2(msg); } else { str = rb_str_new(NULL, 0); } str = rb_str_cat2( str, "Expected argument " ); sprintf( buf, "%d of type ", argn-1 ); str = rb_str_cat2( str, buf ); str = rb_str_cat2( str, type ); str = rb_str_cat2( str, ", but got " ); str = rb_str_cat2( str, rb_obj_classname(input) ); str = rb_str_cat2( str, " " ); asStr = rb_inspect(input); if ( RSTRING_LEN(asStr) > 30 ) { str = rb_str_cat( str, StringValuePtr(asStr), 30 ); str = rb_str_cat2( str, "..." ); } else { str = rb_str_append( str, asStr ); } if ( name ) { str = rb_str_cat2( str, "\n\tin SWIG method '" ); str = rb_str_cat2( str, name ); str = rb_str_cat2( str, "'" ); } return StringValuePtr( str ); } /* This function is called when an overloaded method fails */ SWIGINTERN void Ruby_Format_OverloadedError( const int argc, const int maxargs, const char* method, const char* prototypes ) { const char* msg = "Wrong # of arguments"; if ( argc <= maxargs ) msg = "Wrong arguments"; rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" "Possible C/C++ prototypes are:\n%s", msg, method, prototypes); } /* ----------------------------------------------------------------------------- * rubytracking.swg * * This file contains support for tracking mappings from * Ruby objects to C++ objects. This functionality is needed * to implement mark functions for Ruby's mark and sweep * garbage collector. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* Ruby 1.8 actually assumes the first case. */ #if SIZEOF_VOIDP == SIZEOF_LONG # define SWIG2NUM(v) LONG2NUM((unsigned long)v) # define NUM2SWIG(x) (unsigned long)NUM2LONG(x) #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG # define SWIG2NUM(v) LL2NUM((unsigned long long)v) # define NUM2SWIG(x) (unsigned long long)NUM2LL(x) #else # error sizeof(void*) is not the same as long or long long #endif /* Global Ruby hash table to store Trackings from C/C++ structs to Ruby Objects. */ static VALUE swig_ruby_trackings = Qnil; /* Global variable that stores a reference to the ruby hash table delete function. */ static ID swig_ruby_hash_delete; /* Setup a Ruby hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a ruby hash table to store Trackings from C++ objects to Ruby objects. */ /* Try to see if some other .so has already created a tracking hash table, which we keep hidden in an instance var in the SWIG module. This is done to allow multiple DSOs to share the same tracking table. */ ID trackings_id = rb_intern( "@__trackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* No, it hasn't. Create one ourselves */ if ( swig_ruby_trackings == Qnil ) { swig_ruby_trackings = rb_hash_new(); rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); } /* Now store a reference to the hash table delete function so that we only have to look it up once.*/ swig_ruby_hash_delete = rb_intern("delete"); } /* Get a Ruby number to reference a pointer */ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { /* We cast the pointer to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the pointer to a Ruby number */ return SWIG2NUM(ptr); } /* Get a Ruby number to reference an object */ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { /* We cast the object to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the Object to a Ruby number */ return SWIG2NUM(object); } /* Get a Ruby object from a previously stored reference */ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { /* The provided Ruby number object is a reference to the Ruby object we want.*/ /* Convert the Ruby number to a Ruby object */ return NUM2SWIG(reference); } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* In a Ruby hash table we store the pointer and the associated Ruby object. The trick here is that we cannot store the Ruby object directly - if we do then it cannot be garbage collected. So instead we typecast it as a unsigned long and convert it to a Ruby number object.*/ /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Get a reference to the Ruby object as a Ruby number */ VALUE value = SWIG_RubyObjectToReference(object); /* Store the mapping to the global hash table. */ rb_hash_aset(swig_ruby_trackings, key, value); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Now lookup the value stored in the global hash table */ VALUE value = rb_hash_aref(swig_ruby_trackings, key); if (value == Qnil) { /* No object exists - return nil. */ return Qnil; } else { /* Convert this value to Ruby object */ return SWIG_RubyReferenceToObject(value); } } /* Remove a Tracking from a C/C++ struct to a Ruby object. It is very important to remove objects once they are destroyed since the same memory address may be reused later to create a new object. */ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Delete the object from the hash table by calling Ruby's do this we need to call the Hash.delete method.*/ rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); } /* This is a helper method that unlinks a Ruby object from its underlying C++ object. This is needed if the lifetime of the Ruby object is longer than the C++ object */ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { VALUE object = SWIG_RubyInstanceFor(ptr); if (object != Qnil) { DATA_PTR(object) = 0; } } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Ruby API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { if (NIL_P(target)) { target = o; } else { if (TYPE(target) != T_ARRAY) { VALUE o2 = target; target = rb_ary_new(); rb_ary_push(target, o2); } rb_ary_push(target, o); } return target; } /* For ruby1.8.4 and earlier. */ #ifndef RUBY_INIT_STACK RUBY_EXTERN void Init_stack(VALUE* addr); # define RUBY_INIT_STACK \ VALUE variable_in_this_stack_frame; \ Init_stack(&variable_in_this_stack_frame); #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * rubyrun.swg * * This file contains the runtime support for Ruby modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 /* for raw pointers */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) #define swig_owntype ruby_owntype /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg) #define SWIG_fail goto fail /* Ruby-specific SWIG API */ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) #include "assert.h" /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; /* Global pointer used to keep some internal SWIG stuff */ static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; /* Global IDs used to keep some internal SWIG stuff */ static ID swig_arity_id = 0; static ID swig_call_id = 0; /* If your swig extension is to be run within an embedded ruby and has director callbacks, you should set -DRUBY_EMBEDDED during compilation. This will reset ruby's stack frame on each entry point from the main program the first time a virtual director function is invoked (in a non-recursive way). If this is not done, you run the risk of Ruby trashing the stack. */ #ifdef RUBY_EMBEDDED # define SWIG_INIT_STACK \ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ ++swig_virtual_calls; # define SWIG_RELEASE_STACK --swig_virtual_calls; # define Ruby_DirectorTypeMismatchException(x) \ rb_raise( rb_eTypeError, "%s", x ); return c_result; static unsigned int swig_virtual_calls = 0; #else /* normal non-embedded extension */ # define SWIG_INIT_STACK # define SWIG_RELEASE_STACK # define Ruby_DirectorTypeMismatchException(x) \ throw Swig::DirectorTypeMismatchException( x ); #endif /* RUBY_EMBEDDED */ SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; static VALUE rubyExceptionClass ; if (!init) { init = 1; rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); } return rubyExceptionClass; } /* This code checks to see if the Ruby object being raised as part of an exception inherits from the Ruby class Exception. If so, the object is simply returned. If not, then a new Ruby exception object is created and that will be returned to Ruby.*/ SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { VALUE exceptionClass = getExceptionClass(); if (rb_obj_is_kind_of(obj, exceptionClass)) { return obj; } else { return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); } } /* Initialize Ruby runtime support */ SWIGRUNTIME void SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); swig_call_id = rb_intern("call"); swig_arity_id = rb_intern("arity"); } } /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { VALUE klass; char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; int track; char *klass_name; swig_class *sklass; VALUE klass; VALUE obj; if (!ptr) return Qnil; if (type->clientdata) { sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ track = sklass->trackObjects; if (track) { obj = SWIG_RubyInstanceFor(ptr); /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { VALUE value = rb_iv_get(obj, "@__swigtype__"); const char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { return obj; } } } /* Create a new Ruby object */ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), ( own ? VOIDFUNC(sklass->destroy) : (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) ), ptr); /* If tracking is on for this class then track this object. */ if (track) { SWIG_RubyAddTracking(ptr, obj); } } else { klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(klass_name)); free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Create a new class instance (always owned) */ SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) { VALUE obj; swig_class *sklass = (swig_class *) type->clientdata; obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Get type mangle from class name */ SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { VALUE stype = rb_iv_get(obj, "@__swigtype__"); return StringValuePtr(stype); } /* Acquire a pointer value */ typedef void (*ruby_owntype)(void*); SWIGRUNTIME ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { if (obj) { ruby_owntype oldown = RDATA(obj)->dfree; RDATA(obj)->dfree = own; return oldown; } else { return 0; } } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) *own = RDATA(obj)->dfree; /* Check to see if the input object is giving up ownership of the underlying C struct or C++ object. If so then we need to reset the destructor since the Ruby object no longer owns the underlying C++ object.*/ if (flags & SWIG_POINTER_DISOWN) { /* Is tracking on for this class? */ int track = 0; if (ty && ty->clientdata) { swig_class *sklass = (swig_class *) ty->clientdata; track = sklass->trackObjects; } if (track) { /* We are tracking objects for this class. Thus we change the destructor * to SWIG_RubyRemoveTracking. This allows us to * remove the mapping from the C++ to Ruby object * when the Ruby object is garbage collected. If we don't * do this, then it is possible we will return a reference * to a Ruby object that no longer exists thereby crashing Ruby. */ RDATA(obj)->dfree = SWIG_RubyRemoveTracking; } else { RDATA(obj)->dfree = 0; } } /* Do type-checking if type info was provided */ if (ty) { if (ty->clientdata) { if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { if (vptr == 0) { /* The object has already been deleted */ return SWIG_ObjectPreviouslyDeletedError; } *ptr = vptr; return SWIG_OK; } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } } else { *ptr = vptr; } return SWIG_OK; } /* Check convert */ SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) { char *c = SWIG_MangleStr(obj); if (!c) return 0; return SWIG_TypeCheck(c,ty) != 0; } SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; *(r++) = '_'; r = SWIG_PackData(r, ptr, sz); strcpy(r, type->name); return rb_str_new2(result); } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c; if (TYPE(obj) != T_STRING) goto type_error; c = StringValuePtr(obj); /* Pointer values must start with leading underscore */ if (*c != '_') goto type_error; c++; c = SWIG_UnpackData(c, ptr, sz); if (ty) { tc = SWIG_TypeCheck(c, ty); if (!tc) goto type_error; } return SWIG_OK; type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ rb_gv_set("VERBOSE", Qfalse); /* first check if pointer already created */ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); if (pointer != Qnil) { Data_Get_Struct(pointer, swig_module_info, ret); } /* reinstate warnings */ rb_gv_set("VERBOSE", verbose); return ret; } SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer) { /* register a new class */ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); /* create and store the structure pointer to a global variable */ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } /* This function can be used to check whether a proc or method or similarly callable function has been passed. Usually used in a %typecheck, like: %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { $result = SWIG_Ruby_isCallable( $input ); } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) a proc or method can take. Usually used in a %typecheck. Valid arities will be that equal to minimal or those < 0 which indicate a variable number of parameters at the end. */ SWIGINTERN int SWIG_Ruby_arity( VALUE proc, int minimal ) { if ( rb_respond_to( proc, swig_arity_id ) == Qtrue ) { VALUE num = rb_funcall( proc, swig_arity_id, 0 ); int arity = NUM2INT(num); if ( arity < 0 && (arity+1) < -minimal ) return 1; if ( arity == minimal ) return 1; return 1; } return 0; } #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] #define SWIGTYPE_p_librdf_digest_s swig_types[1] #define SWIGTYPE_p_librdf_hash_s swig_types[2] #define SWIGTYPE_p_librdf_iterator_s swig_types[3] #define SWIGTYPE_p_librdf_log_func swig_types[4] #define SWIGTYPE_p_librdf_log_message swig_types[5] #define SWIGTYPE_p_librdf_model_s swig_types[6] #define SWIGTYPE_p_librdf_node_s swig_types[7] #define SWIGTYPE_p_librdf_parser_s swig_types[8] #define SWIGTYPE_p_librdf_query swig_types[9] #define SWIGTYPE_p_librdf_query_results swig_types[10] #define SWIGTYPE_p_librdf_serializer_s swig_types[11] #define SWIGTYPE_p_librdf_statement_s swig_types[12] #define SWIGTYPE_p_librdf_storage_s swig_types[13] #define SWIGTYPE_p_librdf_stream_s swig_types[14] #define SWIGTYPE_p_librdf_uri_s swig_types[15] #define SWIGTYPE_p_librdf_world_s swig_types[16] #define SWIGTYPE_p_p_char swig_types[17] #define SWIGTYPE_p_raptor_locator swig_types[18] static swig_type_info *swig_types[20]; static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init Init_redland #define SWIG_name "Redland" static VALUE mRedland; #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK #define SWIGVERSION 0x020007 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) #ifdef __cplusplus extern "C" { #endif // Ruby 1.9 changed the file name of this header #ifdef HAVE_RUBY_IO_H #include "ruby/io.h" #else #include "rubyio.h" #endif #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_SYS_TIME_H # include struct timeval rb_time_timeval(VALUE); #endif #ifdef __cplusplus } #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { #if defined(StringValuePtr) char *cstr = StringValuePtr(obj); #else char *cstr = STR2CSTR(obj); #endif size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *)vptr; if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:/usr/share/swig2.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t (VALUE obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); return res; } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } /*@SWIG:/usr/share/swig2.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long (VALUE obj, long* val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int (VALUE obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (int)(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > LONG_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil; } else { return rb_str_new(carray, (long)(size)); } } else { return Qnil; } } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN VALUE _wrap_librdf_new_digest(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_digest *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_digest", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","librdf_new_digest", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_digest *)librdf_new_digest(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_digest(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_free_digest", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); librdf_free_digest(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_digest_init(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_digest_init", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); librdf_digest_init(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_digest_update(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_digest_update", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_digest_update", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","librdf_digest_update", 3, argv[2] )); } arg3 = (size_t)(val3); librdf_digest_update(arg1,(char const *)arg2,arg3); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_digest_update_string(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_digest_update_string", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_digest_update_string", 2, argv[1] )); } arg2 = (char *)(buf2); librdf_digest_update_string(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_digest_final(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_digest_final", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); librdf_digest_final(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_digest_to_string(int argc, VALUE *argv, VALUE self) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_digest *","librdf_digest_to_string", 1, argv[0] )); } arg1 = (librdf_digest *)(argp1); result = (char *)librdf_digest_to_string(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_hash(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_hash *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_hash", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_hash", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_hash_from_string(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; librdf_hash *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_hash_from_string", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_hash_from_string", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_new_hash_from_string", 3, argv[2] )); } arg3 = (char *)(buf3); result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_hash_from_array_of_strings(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_hash *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_hash_from_array_of_strings", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_hash_from_array_of_strings", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const **","librdf_new_hash_from_array_of_strings", 3, argv[2] )); } arg3 = (char **)(argp3); result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_hash_to_string(int argc, VALUE *argv, VALUE self) { librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_hash *","librdf_hash_to_string", 1, argv[0] )); } arg1 = (librdf_hash *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *[]","librdf_hash_to_string", 2, argv[1] )); } arg2 = (char **)(argp2); result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_hash(int argc, VALUE *argv, VALUE self) { librdf_hash *arg1 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_hash *","librdf_free_hash", 1, argv[0] )); } arg1 = (librdf_hash *)(argp1); librdf_free_hash(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_world(int argc, VALUE *argv, VALUE self) { librdf_world *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (librdf_world *)librdf_new_world(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_world(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_free_world", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); librdf_free_world(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_world_open(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_world_open", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); librdf_world_open(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_world_get_feature(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_world_get_feature", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_world_get_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_world_get_feature(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_world_set_feature(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_world_set_feature", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_world_set_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_world_set_feature", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_world_set_feature(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_get_accept_header(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_get_accept_header", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); result = (char *)librdf_parser_get_accept_header(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_world_set_logger(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; void *argp3 ; int res3 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_world_set_logger", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","librdf_world_set_logger", 2, argv[1] )); } { res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_librdf_log_func, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_log_func","librdf_world_set_logger", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "librdf_log_func","librdf_world_set_logger", 3, argv[2])); } else { arg3 = *((librdf_log_func *)(argp3)); } } librdf_world_set_logger(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_iterator(int argc, VALUE *argv, VALUE self) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_iterator *","librdf_free_iterator", 1, argv[0] )); } arg1 = (librdf_iterator *)(argp1); librdf_free_iterator(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_iterator_end(int argc, VALUE *argv, VALUE self) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_iterator *","librdf_iterator_end", 1, argv[0] )); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_end(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_iterator_get_object(int argc, VALUE *argv, VALUE self) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_iterator *","librdf_iterator_get_object", 1, argv[0] )); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_object(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_iterator_get_context(int argc, VALUE *argv, VALUE self) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_iterator *","librdf_iterator_get_context", 1, argv[0] )); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_iterator_next(int argc, VALUE *argv, VALUE self) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_iterator *","librdf_iterator_next", 1, argv[0] )); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_next(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_uri(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_uri", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","librdf_new_uri", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_uri *)librdf_new_uri(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_uri_from_uri(int argc, VALUE *argv, VALUE self) { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_uri_from_uri", 1, argv[0] )); } arg1 = (librdf_uri *)(argp1); result = (librdf_uri *)librdf_new_uri_from_uri(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_uri_from_filename(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_uri_from_filename", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_uri_from_filename", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_uri(int argc, VALUE *argv, VALUE self) { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_uri *","librdf_free_uri", 1, argv[0] )); } arg1 = (librdf_uri *)(argp1); librdf_free_uri(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_uri_to_string(int argc, VALUE *argv, VALUE self) { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_uri *","librdf_uri_to_string", 1, argv[0] )); } arg1 = (librdf_uri *)(argp1); result = (char *)librdf_uri_to_string(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_uri_equals(int argc, VALUE *argv, VALUE self) { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_uri *","librdf_uri_equals", 1, argv[0] )); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_uri_equals", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_equals(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_uri_compare(int argc, VALUE *argv, VALUE self) { librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_uri *","librdf_uri_compare", 1, argv[0] )); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_uri_compare", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_compare(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); result = (librdf_node *)librdf_new_node(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_uri_string(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_uri_string", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_node_from_uri_string", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_uri(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_uri", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_node_from_uri", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_uri_local_name(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_uri_local_name", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_node_from_uri_local_name", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_new_node_from_uri_local_name", 3, argv[2] )); } arg3 = (char *)(buf3); result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_normalised_uri_string(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_normalised_uri_string", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_node_from_normalised_uri_string", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_node_from_normalised_uri_string", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_node_from_normalised_uri_string", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_literal(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val4 ; int ecode4 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_literal", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_node_from_literal", 2, argv[1] )); } arg2 = (char *)(buf2); if (argc > 2) { { arg3 = (argv[2] == Qnil) ? NULL : STR2CSTR(argv[2]); } } if (argc > 3) { ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","librdf_new_node_from_literal", 4, argv[3] )); } arg4 = (int)(val4); } result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_typed_literal(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_typed_literal", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_node_from_typed_literal", 2, argv[1] )); } arg2 = (char *)(buf2); if (argc > 2) { { arg3 = (argv[2] == Qnil) ? NULL : STR2CSTR(argv[2]); } } if (argc > 3) { res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_node_from_typed_literal", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); } result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_node(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_new_node_from_node", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (librdf_node *)librdf_new_node_from_node(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_node_from_blank_identifier(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_node_from_blank_identifier", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); if (argc > 1) { { arg2 = (argv[1] == Qnil) ? NULL : STR2CSTR(argv[1]); } } result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_node(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_free_node", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); librdf_free_node(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_uri(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_uri", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_uri(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_type(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_type", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_type(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_literal_value(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_literal_value", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_literal_value_as_latin1(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_literal_value_as_latin1", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_as_latin1(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_literal_value_language(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_literal_value_language", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_language(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_literal_value_datatype_uri(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_literal_value_datatype_uri", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_literal_value_is_wf_xml(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_literal_value_is_wf_xml", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_li_ordinal(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_li_ordinal", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_li_ordinal(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_to_string(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_to_string", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_to_string(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_get_blank_identifier(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_get_blank_identifier", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_blank_identifier(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_is_resource(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_is_resource", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_resource(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_is_literal(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_is_literal", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_literal(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_is_blank(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_is_blank", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_blank(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_node_equals(int argc, VALUE *argv, VALUE self) { librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_equals", 1, argv[0] )); } arg1 = (librdf_node *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_node_equals", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (int)librdf_node_equals(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_statement(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_statement *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_statement", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); result = (librdf_statement *)librdf_new_statement(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_statement_from_statement(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_statement *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_new_statement_from_statement", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (librdf_statement *)librdf_new_statement_from_statement(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_statement_from_nodes(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_statement *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_statement_from_nodes", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_new_statement_from_nodes", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_new_statement_from_nodes", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_node *","librdf_new_statement_from_nodes", 4, argv[3] )); } arg4 = (librdf_node *)(argp4); result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_statement(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_free_statement", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); librdf_free_statement(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_get_subject(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_get_subject", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_subject(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_set_subject(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_set_subject", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_statement_set_subject", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); librdf_statement_set_subject(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_get_predicate(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_get_predicate", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_predicate(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_set_predicate(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_set_predicate", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_statement_set_predicate", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); librdf_statement_set_predicate(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_get_object(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_get_object", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_object(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_set_object(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_set_object", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_statement_set_object", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); librdf_statement_set_object(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_equals(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_equals", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_equals", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_equals(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_match(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_match", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_match", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_match(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_to_string(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_to_string", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (char *)librdf_statement_to_string(arg1); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_statement_is_complete(int argc, VALUE *argv, VALUE self) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_statement *","librdf_statement_is_complete", 1, argv[0] )); } arg1 = (librdf_statement *)(argp1); result = (int)librdf_statement_is_complete(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_model(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; librdf_model *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_model", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_storage *","librdf_new_model", 2, argv[1] )); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","librdf_new_model", 3, argv[2] )); } arg3 = (char *)(buf3); result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_model_with_options(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_model *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_model_with_options", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_storage *","librdf_new_model_with_options", 2, argv[1] )); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_hash *","librdf_new_model_with_options", 3, argv[2] )); } arg3 = (librdf_hash *)(argp3); result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_model_from_model(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_model *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_new_model_from_model", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (librdf_model *)librdf_new_model_from_model(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_model(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_free_model", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); librdf_free_model(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_size(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_size", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_size(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_add(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_add", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add", 4, argv[3] )); } arg4 = (librdf_node *)(argp4); result = (int)librdf_model_add(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_add_string_literal_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int val6 ; int ecode6 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_add_string_literal_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add_string_literal_statement", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add_string_literal_statement", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","librdf_model_add_string_literal_statement", 4, argv[3] )); } arg4 = (char *)(buf4); if (argc > 4) { { arg5 = (argv[4] == Qnil) ? NULL : STR2CSTR(argv[4]); } } if (argc > 5) { ecode6 = SWIG_AsVal_int(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","librdf_model_add_string_literal_statement", 6, argv[5] )); } arg6 = (int)(val6); } result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); vresult = SWIG_From_int((int)(result)); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_add_typed_literal_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_add_typed_literal_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add_typed_literal_statement", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_add_typed_literal_statement", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char *","librdf_model_add_typed_literal_statement", 4, argv[3] )); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char *","librdf_model_add_typed_literal_statement", 5, argv[4] )); } arg5 = (char *)(buf5); if (argc > 5) { res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_add_typed_literal_statement", 6, argv[5] )); } arg6 = (librdf_uri *)(argp6); } result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_int((int)(result)); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return vresult; fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_add_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_add_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_add_statement", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_add_statement(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_add_statements(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_add_statements", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_stream *","librdf_model_add_statements", 2, argv[1] )); } arg2 = (librdf_stream *)(argp2); result = (int)librdf_model_add_statements(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_remove_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_remove_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_remove_statement", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_remove_statement(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_contains_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_contains_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_contains_statement", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_contains_statement(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_as_stream(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_as_stream", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (librdf_stream *)librdf_model_as_stream(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_find_statements(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_find_statements", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_find_statements", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_find_statements_in_context(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_find_statements_in_context", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_find_statements_in_context", 2, argv[1] )); } arg2 = (librdf_statement *)(argp2); if (argc > 2) { res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_find_statements_in_context", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); } result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_sources(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_sources", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_sources", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_sources", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_arcs(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_arcs", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arcs", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arcs", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_targets(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_targets", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_targets", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_targets", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_source(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_source", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_source", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_source", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_arc(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_arc", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arc", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arc", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_arcs_out(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_arcs_out", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arcs_out", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_arcs_in(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_arcs_in", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_arcs_in", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_has_arc_in(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_has_arc_in", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_has_arc_in", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_has_arc_in", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_has_arc_out(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_has_arc_out", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_has_arc_out", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_has_arc_out", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_target(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_target", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_target", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_get_target", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_context_add_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_context_add_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_context_add_statement", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_context_add_statement", 3, argv[2] )); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_context_add_statements(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_context_add_statements", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_context_add_statements", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_stream *","librdf_model_context_add_statements", 3, argv[2] )); } arg3 = (librdf_stream *)(argp3); result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_context_remove_statement(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_context_remove_statement", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_context_remove_statement", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_statement *","librdf_model_context_remove_statement", 3, argv[2] )); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_context_remove_statements(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_context_remove_statements", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_context_remove_statements", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_context_remove_statements(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_context_as_stream(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_context_as_stream", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_context_as_stream", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_sync(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_sync", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); librdf_model_sync(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_contexts(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_iterator *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_contexts", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (librdf_iterator *)librdf_model_get_contexts(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_contains_context(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_contains_context", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_contains_context", 2, argv[1] )); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_contains_context(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_get_feature(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_get_feature", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_get_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_model_get_feature(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_set_feature(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_set_feature", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_set_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_model_set_feature", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_set_feature(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_load(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_load", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_load", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); if (argc > 2) { { arg3 = (argv[2] == Qnil) ? NULL : STR2CSTR(argv[2]); } } if (argc > 3) { { arg4 = (argv[3] == Qnil) ? NULL : STR2CSTR(argv[3]); } } if (argc > 4) { res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_load", 5, argv[4] )); } arg5 = (librdf_uri *)(argp5); } result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_query_execute(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_query_results *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_query_execute", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_query *","librdf_model_query_execute", 2, argv[1] )); } arg2 = (librdf_query *)(argp2); result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_to_string(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp5 = 0 ; int res5 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_to_string", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_to_string", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); if (argc > 2) { { arg3 = (argv[2] == Qnil) ? NULL : STR2CSTR(argv[2]); } } if (argc > 3) { { arg4 = (argv[3] == Qnil) ? NULL : STR2CSTR(argv[3]); } } if (argc > 4) { res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_uri *","librdf_model_to_string", 5, argv[4] )); } arg5 = (librdf_uri *)(argp5); } result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_transaction_start(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_transaction_start", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_start(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_transaction_commit(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_transaction_commit", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_commit(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_model_transaction_rollback(int argc, VALUE *argv, VALUE self) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_model *","librdf_model_transaction_rollback", 1, argv[0] )); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_rollback(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_storage(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; librdf_storage *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_storage", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","librdf_new_storage", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","librdf_new_storage", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char *","librdf_new_storage", 4, argv[3] )); } arg4 = (char *)(buf4); result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_storage_from_storage(int argc, VALUE *argv, VALUE self) { librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_storage *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_storage *","librdf_new_storage_from_storage", 1, argv[0] )); } arg1 = (librdf_storage *)(argp1); result = (librdf_storage *)librdf_new_storage_from_storage(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_storage(int argc, VALUE *argv, VALUE self) { librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_storage *","librdf_free_storage", 1, argv[0] )); } arg1 = (librdf_storage *)(argp1); librdf_free_storage(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_check_name(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_parser_check_name", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_check_name", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)librdf_parser_check_name(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_parser(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_parser *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_parser", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_parser", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_new_parser", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_parser", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_parser(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_free_parser", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); librdf_free_parser(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_as_stream(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_as_stream", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_as_stream", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); if (argc > 2) { res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_as_stream", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); } result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_into_model(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_into_model", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_into_model", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_into_model", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_model *","librdf_parser_parse_into_model", 4, argv[3] )); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_string_as_stream(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_string_as_stream", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_parse_string_as_stream", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_string_as_stream", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_string_into_model(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_string_into_model", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_parse_string_into_model", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_string_into_model", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_model *","librdf_parser_parse_string_into_model", 4, argv[3] )); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_counted_string_as_stream(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_counted_string_as_stream", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_parse_counted_string_as_stream", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","librdf_parser_parse_counted_string_as_stream", 3, argv[2] )); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_counted_string_as_stream", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_parse_counted_string_into_model(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_parse_counted_string_into_model", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_parse_counted_string_into_model", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","librdf_parser_parse_counted_string_into_model", 3, argv[2] )); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_parse_counted_string_into_model", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_model *","librdf_parser_parse_counted_string_into_model", 5, argv[4] )); } arg5 = (librdf_model *)(argp5); result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_get_feature(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_get_feature", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_get_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_set_feature(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_set_feature", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_parser_set_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_parser_set_feature", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_parser_set_feature(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_guess_name(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name", 1, argv[0] )); } arg1 = (char *)(buf1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name", 3, argv[2] )); } arg3 = (char *)(buf3); result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_FromCharPtr((const char *)result); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_guess_name2(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_parser_guess_name2", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name2", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name2", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","librdf_parser_guess_name2", 4, argv[3] )); } arg4 = (char *)(buf4); result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); vresult = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_get_namespaces_seen_prefix(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_get_namespaces_seen_prefix", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_parser_get_namespaces_seen_prefix", 2, argv[1] )); } arg2 = (int)(val2); result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_get_namespaces_seen_uri(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; librdf_uri *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_get_namespaces_seen_uri", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_parser_get_namespaces_seen_uri", 2, argv[1] )); } arg2 = (int)(val2); result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_parser_get_namespaces_seen_count(int argc, VALUE *argv, VALUE self) { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_parser *","librdf_parser_get_namespaces_seen_count", 1, argv[0] )); } arg1 = (librdf_parser *)(argp1); result = (int)librdf_parser_get_namespaces_seen_count(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_query(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; librdf_query *result = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_query", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_query", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_query", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","librdf_new_query", 4, argv[3] )); } arg4 = (char *)(buf4); res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_query", 5, argv[4] )); } arg5 = (librdf_uri *)(argp5); result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_query_from_query(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_query *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_new_query_from_query", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); result = (librdf_query *)librdf_new_query_from_query(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_query(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_free_query", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); librdf_free_query(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_execute(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_query_results *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_query_execute", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_model *","librdf_query_execute", 2, argv[1] )); } arg2 = (librdf_model *)(argp2); result = (librdf_query_results *)librdf_query_execute(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_get_limit(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_query_get_limit", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_limit(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_set_limit(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_query_set_limit", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_query_set_limit", 2, argv[1] )); } arg2 = (int)(val2); result = (int)librdf_query_set_limit(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_get_offset(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_query_get_offset", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_offset(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_set_offset(int argc, VALUE *argv, VALUE self) { librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query *","librdf_query_set_offset", 1, argv[0] )); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_query_set_offset", 2, argv[1] )); } arg2 = (int)(val2); result = (int)librdf_query_set_offset(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_as_stream(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_stream *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_as_stream", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (librdf_stream *)librdf_query_results_as_stream(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_count(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_count", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_count(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_next(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_next", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_next(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_finished(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_finished", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_finished(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_binding_value(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_binding_value", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_query_results_get_binding_value", 2, argv[1] )); } arg2 = (int)(val2); result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_binding_name(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_binding_name", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","librdf_query_results_get_binding_name", 2, argv[1] )); } arg2 = (int)(val2); result = (char *)librdf_query_results_get_binding_name(arg1,arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_binding_value_by_name(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_binding_value_by_name", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_query_results_get_binding_value_by_name", 2, argv[1] )); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_bindings_count(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_bindings_count", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_bindings_count(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_to_file(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_to_file", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_query_results_to_file", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_file", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_file", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_to_file2(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_to_file2", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_query_results_to_file2", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_query_results_to_file2", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_file2", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_file2", 5, argv[4] )); } arg5 = (librdf_uri *)(argp5); result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_to_string(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_to_string", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_string", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_string", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_to_string2(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_to_string2", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_query_results_to_string2", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_query_results_to_string2", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_string2", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "librdf_uri *","librdf_query_results_to_string2", 5, argv[4] )); } arg5 = (librdf_uri *)(argp5); result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); free((char*)result); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_query_results(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_free_query_results", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); librdf_free_query_results(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_is_bindings(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_is_bindings", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_bindings(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_is_boolean(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_is_boolean", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_boolean(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_is_graph(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_is_graph", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_graph(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_is_syntax(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_is_syntax", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_syntax(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_query_results_get_boolean(int argc, VALUE *argv, VALUE self) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_query_results *","librdf_query_results_get_boolean", 1, argv[0] )); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_boolean(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_check_name(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_serializer_check_name", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_serializer_check_name", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_new_serializer(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; librdf_serializer *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_new_serializer", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_new_serializer", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_new_serializer", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_uri *","librdf_new_serializer", 4, argv[3] )); } arg4 = (librdf_uri *)(argp4); result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_serializer(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_free_serializer", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); librdf_free_serializer(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_serialize_stream_to_file(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_serialize_stream_to_file", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_serializer_serialize_stream_to_file", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_serialize_stream_to_file", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_stream *","librdf_serializer_serialize_stream_to_file", 4, argv[3] )); } arg4 = (librdf_stream *)(argp4); result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_serialize_model_to_file(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_serialize_model_to_file", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","librdf_serializer_serialize_model_to_file", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_serialize_model_to_file", 3, argv[2] )); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "librdf_model *","librdf_serializer_serialize_model_to_file", 4, argv[3] )); } arg4 = (librdf_model *)(argp4); result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_serialize_stream_to_string(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_serialize_stream_to_string", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_serialize_stream_to_string", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_stream *","librdf_serializer_serialize_stream_to_string", 3, argv[2] )); } arg3 = (librdf_stream *)(argp3); result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_serialize_model_to_string(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_serialize_model_to_string", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_serialize_model_to_string", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_model *","librdf_serializer_serialize_model_to_string", 3, argv[2] )); } arg3 = (librdf_model *)(argp3); result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); { vresult = (result == NULL) ? Qnil : rb_str_new2(result); } free((char*)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_get_feature(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_get_feature", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_get_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_set_feature(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_set_feature", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_set_feature", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "librdf_node *","librdf_serializer_set_feature", 3, argv[2] )); } arg3 = (librdf_node *)(argp3); result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_serializer_set_namespace(int argc, VALUE *argv, VALUE self) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_serializer *","librdf_serializer_set_namespace", 1, argv[0] )); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "librdf_uri *","librdf_serializer_set_namespace", 2, argv[1] )); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","librdf_serializer_set_namespace", 3, argv[2] )); } arg3 = (char *)(buf3); result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_librdf_free_stream(int argc, VALUE *argv, VALUE self) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_stream *","librdf_free_stream", 1, argv[0] )); } arg1 = (librdf_stream *)(argp1); librdf_free_stream(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_stream_end(int argc, VALUE *argv, VALUE self) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_stream *","librdf_stream_end", 1, argv[0] )); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_end(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_stream_next(int argc, VALUE *argv, VALUE self) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_stream *","librdf_stream_next", 1, argv[0] )); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_next(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_stream_get_object(int argc, VALUE *argv, VALUE self) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_statement *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_stream *","librdf_stream_get_object", 1, argv[0] )); } arg1 = (librdf_stream *)(argp1); result = (librdf_statement *)librdf_stream_get_object(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_stream_get_context(int argc, VALUE *argv, VALUE self) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_node *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_stream *","librdf_stream_get_context", 1, argv[0] )); } arg1 = (librdf_stream *)(argp1); result = (librdf_node *)librdf_stream_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_log_message_code(int argc, VALUE *argv, VALUE self) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_log_message *","librdf_log_message_code", 1, argv[0] )); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_code(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_log_message_level(int argc, VALUE *argv, VALUE self) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_log_message *","librdf_log_message_level", 1, argv[0] )); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_level(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_log_message_facility(int argc, VALUE *argv, VALUE self) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_log_message *","librdf_log_message_facility", 1, argv[0] )); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_facility(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_log_message_message(int argc, VALUE *argv, VALUE self) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_log_message *","librdf_log_message_message", 1, argv[0] )); } arg1 = (librdf_log_message *)(argp1); result = (char *)librdf_log_message_message(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_log_message_locator(int argc, VALUE *argv, VALUE self) { librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; raptor_locator *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_log_message *","librdf_log_message_locator", 1, argv[0] )); } arg1 = (librdf_log_message *)(argp1); result = (raptor_locator *)librdf_log_message_locator(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_raptor_locator_line(int argc, VALUE *argv, VALUE self) { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "raptor_locator *","raptor_locator_line", 1, argv[0] )); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_line(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_raptor_locator_column(int argc, VALUE *argv, VALUE self) { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "raptor_locator *","raptor_locator_column", 1, argv[0] )); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_column(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_raptor_locator_byte(int argc, VALUE *argv, VALUE self) { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "raptor_locator *","raptor_locator_byte", 1, argv[0] )); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_byte(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_raptor_locator_file(int argc, VALUE *argv, VALUE self) { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "raptor_locator *","raptor_locator_file", 1, argv[0] )); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_file(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_raptor_locator_uri(int argc, VALUE *argv, VALUE self) { raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "raptor_locator *","raptor_locator_uri", 1, argv[0] )); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_uri(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_internal_test_error(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_internal_test_error", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); librdf_internal_test_error(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_internal_test_warning(int argc, VALUE *argv, VALUE self) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "librdf_world *","librdf_internal_test_warning", 1, argv[0] )); } arg1 = (librdf_world *)(argp1); librdf_internal_test_warning(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_librdf_short_copyright_string_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(librdf_short_copyright_string); return _val; } SWIGINTERN VALUE _wrap_librdf_copyright_string_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(librdf_copyright_string); return _val; } SWIGINTERN VALUE _wrap_librdf_version_string_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(librdf_version_string); return _val; } SWIGINTERN VALUE _wrap_librdf_version_major_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_major)); return _val; } SWIGINTERN VALUE _wrap_librdf_version_minor_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_minor)); return _val; } SWIGINTERN VALUE _wrap_librdf_version_release_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_release)); return _val; } SWIGINTERN VALUE _wrap_librdf_version_decimal_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_decimal)); return _val; } SWIGINTERN VALUE _wrap_raptor_version_string_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(raptor_version_string); return _val; } SWIGINTERN VALUE _wrap_raptor_version_major_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_major)); return _val; } SWIGINTERN VALUE _wrap_raptor_version_minor_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_minor)); return _val; } SWIGINTERN VALUE _wrap_raptor_version_release_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_release)); return _val; } SWIGINTERN VALUE _wrap_raptor_version_decimal_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_decimal)); return _val; } SWIGINTERN VALUE _wrap_rasqal_version_string_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(rasqal_version_string); return _val; } SWIGINTERN VALUE _wrap_rasqal_version_major_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_major)); return _val; } SWIGINTERN VALUE _wrap_rasqal_version_minor_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_minor)); return _val; } SWIGINTERN VALUE _wrap_rasqal_version_release_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_release)); return _val; } SWIGINTERN VALUE _wrap_rasqal_version_decimal_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_decimal)); return _val; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_char, &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_char, _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; clientdata = clientdata; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif /* */ #ifdef __cplusplus extern "C" #endif SWIGEXPORT void Init_redland(void) { size_t i; SWIG_InitRuntime(); mRedland = rb_define_module("Redland"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif rb_define_module_function(mRedland, "librdf_new_digest", _wrap_librdf_new_digest, -1); rb_define_module_function(mRedland, "librdf_free_digest", _wrap_librdf_free_digest, -1); rb_define_module_function(mRedland, "librdf_digest_init", _wrap_librdf_digest_init, -1); rb_define_module_function(mRedland, "librdf_digest_update", _wrap_librdf_digest_update, -1); rb_define_module_function(mRedland, "librdf_digest_update_string", _wrap_librdf_digest_update_string, -1); rb_define_module_function(mRedland, "librdf_digest_final", _wrap_librdf_digest_final, -1); rb_define_module_function(mRedland, "librdf_digest_to_string", _wrap_librdf_digest_to_string, -1); rb_define_module_function(mRedland, "librdf_new_hash", _wrap_librdf_new_hash, -1); rb_define_module_function(mRedland, "librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string, -1); rb_define_module_function(mRedland, "librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings, -1); rb_define_module_function(mRedland, "librdf_hash_to_string", _wrap_librdf_hash_to_string, -1); rb_define_module_function(mRedland, "librdf_free_hash", _wrap_librdf_free_hash, -1); rb_define_module_function(mRedland, "librdf_new_world", _wrap_librdf_new_world, -1); rb_define_module_function(mRedland, "librdf_free_world", _wrap_librdf_free_world, -1); rb_define_module_function(mRedland, "librdf_world_open", _wrap_librdf_world_open, -1); rb_define_module_function(mRedland, "librdf_world_get_feature", _wrap_librdf_world_get_feature, -1); rb_define_module_function(mRedland, "librdf_world_set_feature", _wrap_librdf_world_set_feature, -1); rb_define_module_function(mRedland, "librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header, -1); rb_define_module_function(mRedland, "librdf_world_set_logger", _wrap_librdf_world_set_logger, -1); rb_define_module_function(mRedland, "librdf_free_iterator", _wrap_librdf_free_iterator, -1); rb_define_module_function(mRedland, "librdf_iterator_end", _wrap_librdf_iterator_end, -1); rb_define_module_function(mRedland, "librdf_iterator_get_object", _wrap_librdf_iterator_get_object, -1); rb_define_module_function(mRedland, "librdf_iterator_get_context", _wrap_librdf_iterator_get_context, -1); rb_define_module_function(mRedland, "librdf_iterator_next", _wrap_librdf_iterator_next, -1); rb_define_module_function(mRedland, "librdf_new_uri", _wrap_librdf_new_uri, -1); rb_define_module_function(mRedland, "librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri, -1); rb_define_module_function(mRedland, "librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename, -1); rb_define_module_function(mRedland, "librdf_free_uri", _wrap_librdf_free_uri, -1); rb_define_module_function(mRedland, "librdf_uri_to_string", _wrap_librdf_uri_to_string, -1); rb_define_module_function(mRedland, "librdf_uri_equals", _wrap_librdf_uri_equals, -1); rb_define_module_function(mRedland, "librdf_uri_compare", _wrap_librdf_uri_compare, -1); rb_define_module_function(mRedland, "librdf_new_node", _wrap_librdf_new_node, -1); rb_define_module_function(mRedland, "librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string, -1); rb_define_module_function(mRedland, "librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri, -1); rb_define_module_function(mRedland, "librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name, -1); rb_define_module_function(mRedland, "librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string, -1); rb_define_module_function(mRedland, "librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal, -1); rb_define_module_function(mRedland, "librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal, -1); rb_define_module_function(mRedland, "librdf_new_node_from_node", _wrap_librdf_new_node_from_node, -1); rb_define_module_function(mRedland, "librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier, -1); rb_define_module_function(mRedland, "librdf_free_node", _wrap_librdf_free_node, -1); rb_define_module_function(mRedland, "librdf_node_get_uri", _wrap_librdf_node_get_uri, -1); rb_define_module_function(mRedland, "librdf_node_get_type", _wrap_librdf_node_get_type, -1); rb_define_module_function(mRedland, "librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value, -1); rb_define_module_function(mRedland, "librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1, -1); rb_define_module_function(mRedland, "librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language, -1); rb_define_module_function(mRedland, "librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri, -1); rb_define_module_function(mRedland, "librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml, -1); rb_define_module_function(mRedland, "librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal, -1); rb_define_module_function(mRedland, "librdf_node_to_string", _wrap_librdf_node_to_string, -1); rb_define_module_function(mRedland, "librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier, -1); rb_define_module_function(mRedland, "librdf_node_is_resource", _wrap_librdf_node_is_resource, -1); rb_define_module_function(mRedland, "librdf_node_is_literal", _wrap_librdf_node_is_literal, -1); rb_define_module_function(mRedland, "librdf_node_is_blank", _wrap_librdf_node_is_blank, -1); rb_define_module_function(mRedland, "librdf_node_equals", _wrap_librdf_node_equals, -1); rb_define_module_function(mRedland, "librdf_new_statement", _wrap_librdf_new_statement, -1); rb_define_module_function(mRedland, "librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement, -1); rb_define_module_function(mRedland, "librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes, -1); rb_define_module_function(mRedland, "librdf_free_statement", _wrap_librdf_free_statement, -1); rb_define_module_function(mRedland, "librdf_statement_get_subject", _wrap_librdf_statement_get_subject, -1); rb_define_module_function(mRedland, "librdf_statement_set_subject", _wrap_librdf_statement_set_subject, -1); rb_define_module_function(mRedland, "librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate, -1); rb_define_module_function(mRedland, "librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate, -1); rb_define_module_function(mRedland, "librdf_statement_get_object", _wrap_librdf_statement_get_object, -1); rb_define_module_function(mRedland, "librdf_statement_set_object", _wrap_librdf_statement_set_object, -1); rb_define_module_function(mRedland, "librdf_statement_equals", _wrap_librdf_statement_equals, -1); rb_define_module_function(mRedland, "librdf_statement_match", _wrap_librdf_statement_match, -1); rb_define_module_function(mRedland, "librdf_statement_to_string", _wrap_librdf_statement_to_string, -1); rb_define_module_function(mRedland, "librdf_statement_is_complete", _wrap_librdf_statement_is_complete, -1); rb_define_module_function(mRedland, "librdf_new_model", _wrap_librdf_new_model, -1); rb_define_module_function(mRedland, "librdf_new_model_with_options", _wrap_librdf_new_model_with_options, -1); rb_define_module_function(mRedland, "librdf_new_model_from_model", _wrap_librdf_new_model_from_model, -1); rb_define_module_function(mRedland, "librdf_free_model", _wrap_librdf_free_model, -1); rb_define_module_function(mRedland, "librdf_model_size", _wrap_librdf_model_size, -1); rb_define_module_function(mRedland, "librdf_model_add", _wrap_librdf_model_add, -1); rb_define_module_function(mRedland, "librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement, -1); rb_define_module_function(mRedland, "librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement, -1); rb_define_module_function(mRedland, "librdf_model_add_statement", _wrap_librdf_model_add_statement, -1); rb_define_module_function(mRedland, "librdf_model_add_statements", _wrap_librdf_model_add_statements, -1); rb_define_module_function(mRedland, "librdf_model_remove_statement", _wrap_librdf_model_remove_statement, -1); rb_define_module_function(mRedland, "librdf_model_contains_statement", _wrap_librdf_model_contains_statement, -1); rb_define_module_function(mRedland, "librdf_model_as_stream", _wrap_librdf_model_as_stream, -1); rb_define_module_function(mRedland, "librdf_model_find_statements", _wrap_librdf_model_find_statements, -1); rb_define_module_function(mRedland, "librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context, -1); rb_define_module_function(mRedland, "librdf_model_get_sources", _wrap_librdf_model_get_sources, -1); rb_define_module_function(mRedland, "librdf_model_get_arcs", _wrap_librdf_model_get_arcs, -1); rb_define_module_function(mRedland, "librdf_model_get_targets", _wrap_librdf_model_get_targets, -1); rb_define_module_function(mRedland, "librdf_model_get_source", _wrap_librdf_model_get_source, -1); rb_define_module_function(mRedland, "librdf_model_get_arc", _wrap_librdf_model_get_arc, -1); rb_define_module_function(mRedland, "librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out, -1); rb_define_module_function(mRedland, "librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in, -1); rb_define_module_function(mRedland, "librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in, -1); rb_define_module_function(mRedland, "librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out, -1); rb_define_module_function(mRedland, "librdf_model_get_target", _wrap_librdf_model_get_target, -1); rb_define_module_function(mRedland, "librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement, -1); rb_define_module_function(mRedland, "librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements, -1); rb_define_module_function(mRedland, "librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement, -1); rb_define_module_function(mRedland, "librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements, -1); rb_define_module_function(mRedland, "librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream, -1); rb_define_module_function(mRedland, "librdf_model_sync", _wrap_librdf_model_sync, -1); rb_define_module_function(mRedland, "librdf_model_get_contexts", _wrap_librdf_model_get_contexts, -1); rb_define_module_function(mRedland, "librdf_model_contains_context", _wrap_librdf_model_contains_context, -1); rb_define_module_function(mRedland, "librdf_model_get_feature", _wrap_librdf_model_get_feature, -1); rb_define_module_function(mRedland, "librdf_model_set_feature", _wrap_librdf_model_set_feature, -1); rb_define_module_function(mRedland, "librdf_model_load", _wrap_librdf_model_load, -1); rb_define_module_function(mRedland, "librdf_model_query_execute", _wrap_librdf_model_query_execute, -1); rb_define_module_function(mRedland, "librdf_model_to_string", _wrap_librdf_model_to_string, -1); rb_define_module_function(mRedland, "librdf_model_transaction_start", _wrap_librdf_model_transaction_start, -1); rb_define_module_function(mRedland, "librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit, -1); rb_define_module_function(mRedland, "librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback, -1); rb_define_module_function(mRedland, "librdf_new_storage", _wrap_librdf_new_storage, -1); rb_define_module_function(mRedland, "librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage, -1); rb_define_module_function(mRedland, "librdf_free_storage", _wrap_librdf_free_storage, -1); rb_define_module_function(mRedland, "librdf_parser_check_name", _wrap_librdf_parser_check_name, -1); rb_define_module_function(mRedland, "librdf_new_parser", _wrap_librdf_new_parser, -1); rb_define_module_function(mRedland, "librdf_free_parser", _wrap_librdf_free_parser, -1); rb_define_module_function(mRedland, "librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream, -1); rb_define_module_function(mRedland, "librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model, -1); rb_define_module_function(mRedland, "librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream, -1); rb_define_module_function(mRedland, "librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model, -1); rb_define_module_function(mRedland, "librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream, -1); rb_define_module_function(mRedland, "librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model, -1); rb_define_module_function(mRedland, "librdf_parser_get_feature", _wrap_librdf_parser_get_feature, -1); rb_define_module_function(mRedland, "librdf_parser_set_feature", _wrap_librdf_parser_set_feature, -1); rb_define_module_function(mRedland, "librdf_parser_guess_name", _wrap_librdf_parser_guess_name, -1); rb_define_module_function(mRedland, "librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2, -1); rb_define_module_function(mRedland, "librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix, -1); rb_define_module_function(mRedland, "librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri, -1); rb_define_module_function(mRedland, "librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count, -1); rb_define_module_function(mRedland, "librdf_new_query", _wrap_librdf_new_query, -1); rb_define_module_function(mRedland, "librdf_new_query_from_query", _wrap_librdf_new_query_from_query, -1); rb_define_module_function(mRedland, "librdf_free_query", _wrap_librdf_free_query, -1); rb_define_module_function(mRedland, "librdf_query_execute", _wrap_librdf_query_execute, -1); rb_define_module_function(mRedland, "librdf_query_get_limit", _wrap_librdf_query_get_limit, -1); rb_define_module_function(mRedland, "librdf_query_set_limit", _wrap_librdf_query_set_limit, -1); rb_define_module_function(mRedland, "librdf_query_get_offset", _wrap_librdf_query_get_offset, -1); rb_define_module_function(mRedland, "librdf_query_set_offset", _wrap_librdf_query_set_offset, -1); rb_define_module_function(mRedland, "librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream, -1); rb_define_module_function(mRedland, "librdf_query_results_get_count", _wrap_librdf_query_results_get_count, -1); rb_define_module_function(mRedland, "librdf_query_results_next", _wrap_librdf_query_results_next, -1); rb_define_module_function(mRedland, "librdf_query_results_finished", _wrap_librdf_query_results_finished, -1); rb_define_module_function(mRedland, "librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value, -1); rb_define_module_function(mRedland, "librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name, -1); rb_define_module_function(mRedland, "librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name, -1); rb_define_module_function(mRedland, "librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count, -1); rb_define_module_function(mRedland, "librdf_query_results_to_file", _wrap_librdf_query_results_to_file, -1); rb_define_module_function(mRedland, "librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2, -1); rb_define_module_function(mRedland, "librdf_query_results_to_string", _wrap_librdf_query_results_to_string, -1); rb_define_module_function(mRedland, "librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2, -1); rb_define_module_function(mRedland, "librdf_free_query_results", _wrap_librdf_free_query_results, -1); rb_define_module_function(mRedland, "librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings, -1); rb_define_module_function(mRedland, "librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean, -1); rb_define_module_function(mRedland, "librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph, -1); rb_define_module_function(mRedland, "librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax, -1); rb_define_module_function(mRedland, "librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean, -1); rb_define_module_function(mRedland, "librdf_serializer_check_name", _wrap_librdf_serializer_check_name, -1); rb_define_module_function(mRedland, "librdf_new_serializer", _wrap_librdf_new_serializer, -1); rb_define_module_function(mRedland, "librdf_free_serializer", _wrap_librdf_free_serializer, -1); rb_define_module_function(mRedland, "librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file, -1); rb_define_module_function(mRedland, "librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file, -1); rb_define_module_function(mRedland, "librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string, -1); rb_define_module_function(mRedland, "librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string, -1); rb_define_module_function(mRedland, "librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature, -1); rb_define_module_function(mRedland, "librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature, -1); rb_define_module_function(mRedland, "librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace, -1); rb_define_module_function(mRedland, "librdf_free_stream", _wrap_librdf_free_stream, -1); rb_define_module_function(mRedland, "librdf_stream_end", _wrap_librdf_stream_end, -1); rb_define_module_function(mRedland, "librdf_stream_next", _wrap_librdf_stream_next, -1); rb_define_module_function(mRedland, "librdf_stream_get_object", _wrap_librdf_stream_get_object, -1); rb_define_module_function(mRedland, "librdf_stream_get_context", _wrap_librdf_stream_get_context, -1); rb_define_module_function(mRedland, "librdf_log_message_code", _wrap_librdf_log_message_code, -1); rb_define_module_function(mRedland, "librdf_log_message_level", _wrap_librdf_log_message_level, -1); rb_define_module_function(mRedland, "librdf_log_message_facility", _wrap_librdf_log_message_facility, -1); rb_define_module_function(mRedland, "librdf_log_message_message", _wrap_librdf_log_message_message, -1); rb_define_module_function(mRedland, "librdf_log_message_locator", _wrap_librdf_log_message_locator, -1); rb_define_module_function(mRedland, "raptor_locator_line", _wrap_raptor_locator_line, -1); rb_define_module_function(mRedland, "raptor_locator_column", _wrap_raptor_locator_column, -1); rb_define_module_function(mRedland, "raptor_locator_byte", _wrap_raptor_locator_byte, -1); rb_define_module_function(mRedland, "raptor_locator_file", _wrap_raptor_locator_file, -1); rb_define_module_function(mRedland, "raptor_locator_uri", _wrap_raptor_locator_uri, -1); rb_define_module_function(mRedland, "librdf_internal_test_error", _wrap_librdf_internal_test_error, -1); rb_define_module_function(mRedland, "librdf_internal_test_warning", _wrap_librdf_internal_test_warning, -1); rb_define_singleton_method(mRedland, "librdf_short_copyright_string", _wrap_librdf_short_copyright_string_get, 0); rb_define_singleton_method(mRedland, "librdf_copyright_string", _wrap_librdf_copyright_string_get, 0); rb_define_singleton_method(mRedland, "librdf_version_string", _wrap_librdf_version_string_get, 0); rb_define_singleton_method(mRedland, "librdf_version_major", _wrap_librdf_version_major_get, 0); rb_define_singleton_method(mRedland, "librdf_version_minor", _wrap_librdf_version_minor_get, 0); rb_define_singleton_method(mRedland, "librdf_version_release", _wrap_librdf_version_release_get, 0); rb_define_singleton_method(mRedland, "librdf_version_decimal", _wrap_librdf_version_decimal_get, 0); rb_define_singleton_method(mRedland, "raptor_version_string", _wrap_raptor_version_string_get, 0); rb_define_singleton_method(mRedland, "raptor_version_major", _wrap_raptor_version_major_get, 0); rb_define_singleton_method(mRedland, "raptor_version_minor", _wrap_raptor_version_minor_get, 0); rb_define_singleton_method(mRedland, "raptor_version_release", _wrap_raptor_version_release_get, 0); rb_define_singleton_method(mRedland, "raptor_version_decimal", _wrap_raptor_version_decimal_get, 0); rb_define_singleton_method(mRedland, "rasqal_version_string", _wrap_rasqal_version_string_get, 0); rb_define_singleton_method(mRedland, "rasqal_version_major", _wrap_rasqal_version_major_get, 0); rb_define_singleton_method(mRedland, "rasqal_version_minor", _wrap_rasqal_version_minor_get, 0); rb_define_singleton_method(mRedland, "rasqal_version_release", _wrap_rasqal_version_release_get, 0); rb_define_singleton_method(mRedland, "rasqal_version_decimal", _wrap_rasqal_version_decimal_get, 0); } redland-bindings-1.0.16.1/ruby/redland-types.i0000644000175000017500000000044410426042474015776 00000000000000/* optional input strings - can be NULL, need special conversions */ %typemap(in) const char *inStrOrNull { $1 = ($input == Qnil) ? NULL : STR2CSTR($input); } /* returning char* or NULL, need special conversions */ %typemap(out) char *{ $result = ($1 == NULL) ? Qnil : rb_str_new2($1); } redland-bindings-1.0.16.1/ruby/redland-pre.i0000644000175000017500000000044411776144507015431 00000000000000/* Ruby pollutes the #define space with these names */ #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #undef PACKAGE_BUGREPORT /* STR2CSTR was deprecated in Ruby 1.8 and removed in 1.9 */ #ifndef STR2CSTR #define STR2CSTR(x) StringValuePtr(x) #endif redland-bindings-1.0.16.1/ruby/test.rb0000644000175000017500000000450011522705745014357 00000000000000#!/usr/bin/env ruby # # test.rb - Redland low-level test Ruby program # # Copyright (C) 2002-2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2002-2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # USAGE: ruby example.rb file:../data/dc.rdf raptor # # require 'redland' uri_string=ARGV[0] parser_name=ARGV[1] world=Redland::librdf_new_world Redland::librdf_world_open world storage=Redland::librdf_new_storage world, "hashes", "test", "new='yes',hash-type='bdb',dir='.'" raise "Failed to create RDF storage" if !storage model=Redland::librdf_new_model world, storage, "" if !model then Redland::librdf_free_storage storage raise "Failed to create RDF model" end parser=Redland::librdf_new_parser world, parser_name, "", nil if !parser then Redland::librdf_free_model model Redland::librdf_free_storage storage raise "Failed to create RDF parser" end uri=Redland::librdf_new_uri world, uri_string stream=Redland::librdf_parser_parse_as_stream parser, uri, uri count=0 while Redland::librdf_stream_end(stream) == 0 statement=Redland::librdf_stream_get_object stream Redland::librdf_model_add_statement model, statement puts "found statement: #{Redland::librdf_statement_to_string statement}" count=count+1 Redland::librdf_stream_next stream end Redland::librdf_free_stream stream puts "Parsing added #{count} statements" Redland::librdf_free_parser parser puts "Printing all statements" stream=Redland::librdf_model_as_stream model while Redland::librdf_stream_end(stream) == 0 statement=Redland::librdf_stream_get_object stream puts "Statement: #{Redland::librdf_statement_to_string statement}" Redland::librdf_stream_next stream end Redland::librdf_free_stream stream Redland::librdf_free_model model Redland::librdf_free_storage storage Redland::librdf_free_world world redland-bindings-1.0.16.1/ruby/example.rb0000644000175000017500000000522311522705745015036 00000000000000#!/usr/bin/env ruby # # example.rb - Redland example Ruby program # # Copyright (C) 2002-2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2002-2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # USAGE: ruby example.rb file:../data/dc.rdf raptor # # require 'rdf/redland' uri_string=ARGV[0] parser_name=ARGV[1] storage=Redland::TripleStore.new("hashes", "test", "new='yes',hash-type='bdb',dir='.'") raise "Failed to create RDF storage" if !storage model=Redland::Model.new(storage) if !model then raise "Failed to create RDF model" end parser=Redland::Parser.new(parser_name, "", nil) if !parser then raise "Failed to create RDF parser" end uri=Redland::Uri.new(uri_string) stream=parser.parse_as_stream(uri, uri) count=0 while !stream.end?() statement=stream.current() model.add_statement(statement) puts "found statement: #{statement}" count=count+1 stream.next() end puts "Parsing added #{count} statements" puts "Printing all statements" stream=model.as_stream() while !stream.end?() statement=stream.current() puts "Statement: #{statement}" stream.next() end q = Redland::Query.new(" PREFIX dc: SELECT ?a ?c WHERE { ?a dc:title ?c } ") puts "Querying for dc:titles:" results=q.execute(model) while !results.finished?() puts "{" for k in 0..results.bindings_count()-1 puts " #{k}= #{results.binding_value(k)}" end puts "}" results.next() end results=q.execute(model) size=results.to_string(Redland::Uri.new("http://www.w3.org/2001/sw/DataAccess/json-sparql/")).length() puts "Serialized query results to JSON as a string size #{size} bytes" puts "Writing model to test-out.rdf as rdf/xml" # Use any rdf/xml parser that is available serializer=Redland::Serializer.new() serializer.set_namespace("dc", Redland::Uri.new("http://purl.org/dc/elements/1.1/")) serializer.set_namespace("rdf", Redland::Uri.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#")) serializer.to_file("test-out.rdf", model) size=model.to_string(name="ntriples", base_uri=Redland::Uri.new("http://example.org/base#")).length() puts "Serialized to ntriples as a string size #{size} bytes" puts "Done" redland-bindings-1.0.16.1/ruby/Makefile.am0000644000175000017500000000607211776163726015125 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby interface to Redland # # Copyright (C) 2000-2012 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # RELEASE=@VERSION_RELEASE@ AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ @RUBY_INCLUDES@ AM_CFLAGS=@CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS=@LIBRDF_LDFLAGS@ $(MEM_LIBS) RUBY=@RUBY@ RUBY_PACKAGE=@RUBY_PACKAGE@ RUBY_CFLAGS=@RUBY_CFLAGS@ RUBY_LDFLAGS=@RUBY_LDFLAGS@ RUBY_SO_SUFFIX=@RUBY_SO_SUFFIX@ SWIG_OUTPUTS=$(RUBY_PACKAGE)_wrap.c SWIG_CRUFT= RDOC_DIR=rdoc RDOC_STAMP=rdoc-stamp rubyarchinstalldir=@RUBY_ARCH_INSTALLDIR@ rubyarchinstall_DATA=$(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) EXTRA_DIST=\ example.rb test.rb \ redland-pre.i redland-types.i \ $(SWIG_OUTPUTS) SUBDIRS=lib test CLEANFILES=\ *.db test-out.rdf \ $(RUBY_PACKAGE)_wrap.o $(RUBY_PACKAGE)-stamp \ $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(RUBY_PACKAGE).bundle MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) $(SWIG_CRUFT) $(RDOC_DIR) $(RDOC_STAMP) RUN=@REDLAND_RUN@ SWIG_OPTS=-I$(srcdir) -DREDLAND_PRE_I -DREDLAND_TYPES_I $(srcdir)/$(RUBY_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-pre.i redland-types.i swig -v -ruby $(SWIG_OPTS) -module $(RUBY_PACKAGE) -o $@ @REDLAND_SWIG@ # -UHAVE_CONFIG_H to stop ruby trying to include config.h which won't exist $(RUBY_PACKAGE)_wrap.o: $(srcdir)/$(RUBY_PACKAGE)_wrap.c $(CC) $(DEFS) $(SWIG_OPTS) -UHAVE_CONFIG_H $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(RUBY_PACKAGE)_wrap.c -c -o $@ $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX): $(RUBY_PACKAGE)-stamp $(RUBY_PACKAGE)-stamp: $(RUBY_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(RUBY_PACKAGE)_wrap.o $(AM_LDFLAGS) $(LDFLAGS) $(RUBY_LDFLAGS) -o $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) touch $(RUBY_PACKAGE)-stamp check-local: test-ruby test-ruby: test-simple test-example test-simple: $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(srcdir)/example.rb $(RUN)$(RUBY) -I. -Ilib \ $(srcdir)/test.rb file:$(srcdir)/../data/dc.rdf raptor test-example: $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(srcdir)/example.rb $(RUN)$(RUBY) -I. -Ilib \ $(srcdir)/example.rb file:$(srcdir)/../data/dc.rdf raptor docs: $(RDOC_STAMP) $(RDOC_STAMP): mkdir -p $(RDOC_DIR); \ outdir=`cd $(RDOC_DIR); pwd`; \ rm -rf $$outdir; \ here=`pwd`; \ cd $(srcdir)/lib; \ rdoc --quiet --fmt html --charset 'utf-8' --inline-source --op $$outdir --title "Redland Ruby API RDoc" --exclude convert_owl.rb --exclude constants.rb --exclude convertfoaf.rb && touch $$here/$@ clean-local: rm -rf $(RDOC_DIR) $(RDOC_STAMP) redland-bindings-1.0.16.1/ruby/Makefile.in0000644000175000017500000005752512063416535015134 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Ruby interface to Redland # # Copyright (C) 2000-2012 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ruby DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(rubyarchinstalldir)" DATA = $(rubyarchinstall_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ RELEASE = @VERSION_RELEASE@ AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ @RUBY_INCLUDES@ AM_CFLAGS = @CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) AM_LDFLAGS = @LIBRDF_LDFLAGS@ $(MEM_LIBS) SWIG_OUTPUTS = $(RUBY_PACKAGE)_wrap.c SWIG_CRUFT = RDOC_DIR = rdoc RDOC_STAMP = rdoc-stamp rubyarchinstalldir = @RUBY_ARCH_INSTALLDIR@ rubyarchinstall_DATA = $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) EXTRA_DIST = \ example.rb test.rb \ redland-pre.i redland-types.i \ $(SWIG_OUTPUTS) SUBDIRS = lib test CLEANFILES = \ *.db test-out.rdf \ $(RUBY_PACKAGE)_wrap.o $(RUBY_PACKAGE)-stamp \ $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(RUBY_PACKAGE).bundle MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT) $(RDOC_DIR) $(RDOC_STAMP) RUN = @REDLAND_RUN@ SWIG_OPTS = -I$(srcdir) -DREDLAND_PRE_I -DREDLAND_TYPES_I all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ruby/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-rubyarchinstallDATA: $(rubyarchinstall_DATA) @$(NORMAL_INSTALL) @list='$(rubyarchinstall_DATA)'; test -n "$(rubyarchinstalldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rubyarchinstalldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rubyarchinstalldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rubyarchinstalldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(rubyarchinstalldir)" || exit $$?; \ done uninstall-rubyarchinstallDATA: @$(NORMAL_UNINSTALL) @list='$(rubyarchinstall_DATA)'; test -n "$(rubyarchinstalldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rubyarchinstalldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(rubyarchinstalldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-rubyarchinstallDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-rubyarchinstallDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am check-local clean clean-generic \ clean-libtool clean-local ctags ctags-recursive distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am \ install-rubyarchinstallDATA install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-rubyarchinstallDATA $(srcdir)/$(RUBY_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-pre.i redland-types.i swig -v -ruby $(SWIG_OPTS) -module $(RUBY_PACKAGE) -o $@ @REDLAND_SWIG@ # -UHAVE_CONFIG_H to stop ruby trying to include config.h which won't exist $(RUBY_PACKAGE)_wrap.o: $(srcdir)/$(RUBY_PACKAGE)_wrap.c $(CC) $(DEFS) $(SWIG_OPTS) -UHAVE_CONFIG_H $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(RUBY_PACKAGE)_wrap.c -c -o $@ $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX): $(RUBY_PACKAGE)-stamp $(RUBY_PACKAGE)-stamp: $(RUBY_PACKAGE)_wrap.o $(CC) $(STANDARD_CFLAGS) $(RUBY_PACKAGE)_wrap.o $(AM_LDFLAGS) $(LDFLAGS) $(RUBY_LDFLAGS) -o $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) touch $(RUBY_PACKAGE)-stamp check-local: test-ruby test-ruby: test-simple test-example test-simple: $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(srcdir)/example.rb $(RUN)$(RUBY) -I. -Ilib \ $(srcdir)/test.rb file:$(srcdir)/../data/dc.rdf raptor test-example: $(RUBY_PACKAGE).$(RUBY_SO_SUFFIX) $(srcdir)/example.rb $(RUN)$(RUBY) -I. -Ilib \ $(srcdir)/example.rb file:$(srcdir)/../data/dc.rdf raptor docs: $(RDOC_STAMP) $(RDOC_STAMP): mkdir -p $(RDOC_DIR); \ outdir=`cd $(RDOC_DIR); pwd`; \ rm -rf $$outdir; \ here=`pwd`; \ cd $(srcdir)/lib; \ rdoc --quiet --fmt html --charset 'utf-8' --inline-source --op $$outdir --title "Redland Ruby API RDoc" --exclude convert_owl.rb --exclude constants.rb --exclude convertfoaf.rb && touch $$here/$@ clean-local: rm -rf $(RDOC_DIR) $(RDOC_STAMP) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/build/0000755000175000017500000000000012074650257013252 500000000000000redland-bindings-1.0.16.1/build/compile0000755000175000017500000001615212020200161014525 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-03-05.13; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free # Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: redland-bindings-1.0.16.1/build/ltmain.sh0000644000175000017500000105202612020200155014773 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.1 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.2 Debian-2.4.2-1.1" TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 redland-bindings-1.0.16.1/build/config.guess0000755000175000017500000012743212020200161015473 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: redland-bindings-1.0.16.1/build/install-sh0000755000175000017500000003325612020200161015157 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: redland-bindings-1.0.16.1/build/config.sub0000755000175000017500000010532712020200161015135 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-04-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | open8 \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: redland-bindings-1.0.16.1/build/missing0000755000175000017500000002415212020200161014545 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: redland-bindings-1.0.16.1/redland-bindings.spec.in0000644000175000017500000001553011524276113016556 00000000000000# -*- RPM-SPEC -*- # Note that this is NOT a relocatable package %define name @PACKAGE@ %define version @VERSION@ %define release SNAP %define prefix /usr %define redland_version @REDLAND_VERSION@ # Installation directories for perl, python and ruby are host-specific %define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch) # Not %{_libdir} as on FC4 x86_64 it is the wrong place %define python_libdir %{_prefix}/lib %define ruby_dir %(ruby -rrbconfig -e "puts Config::CONFIG['archdir']") %define ruby_libdir %(ruby -rrbconfig -e "puts Config::CONFIG['rubylibdir']") Summary: Redland librdf Language Bindings Name: %{name} Version: %{version} Release: %{release} Prefix: %{_prefix} License: LGPL/Apache 2 Group: Development/Libraries Source: http://download.librdf.org/source/%{name}-%{version}.tar.gz URL: http://librdf.org/ BuildRoot: /tmp/%{name}-%{version} BuildRequires: redland-devel >= %{redland_version} BuildRequires: perl >= 5.8.0 BuildRequires: python-devel >= 2.3.0 BuildRequires: ruby >= 1.8.0 BuildRequires: ruby-devel >= 1.8.0 Packager: Dave Beckett Docdir: %{prefix}/doc Requires: redland >= %{redland_version} Requires: ruby >= 1.8.0 %description Redland librdf Language bindings provide high-level interfaces for RDF (Resource Description Framework) implemented on top of the Redland librdf library which provides an object-based RDF API, supports for syntaxes and triple stores. %package -n redland-perl Summary: Perl modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-perl The redland-perl package contains the parts of Redland librdf that provide an interface to Perl. %package -n redland-python Summary: Python modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-python The redland-python package contains the parts of Redland librdf that provide an interface to Python. %package -n redland-ruby Summary: Ruby modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-ruby The redland-ruby package contains the parts of Redland librdf that provide an interface to Ruby. %prep %setup %build # Force use of default python PYTHON=python export PYTHON %configure --enable-release cd perl %{__make} Makefile.perl PERL_MAKEMAKER_ARGS="PREFIX=$RPM_BUILD_ROOT/%{_prefix} SYSCONFDIR=$RPM_BUILD_ROOT/%{_sysconfdir} INST_PREFIX=%{_prefix} INST_SYSCONFDIR=%{_sysconfdir}" %{__make} cd .. cd python %{__make} cd .. cd ruby %{__make} cd .. %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd perl %{__make} prefix=$RPM_BUILD_ROOT%{prefix} exec_prefix=$RPM_BUILD_ROOT%{prefix} bindir=$RPM_BUILD_ROOT%{prefix}/bin sbindir=$RPM_BUILD_ROOT%{prefix}/sbin sysconfdir=$RPM_BUILD_ROOT/etc datadir=$RPM_BUILD_ROOT%{prefix}/share includedir=$RPM_BUILD_ROOT%{prefix}/include libdir=$RPM_BUILD_ROOT%{_libdir} libexecdir=$RPM_BUILD_ROOT%{prefix}/libexec localstatedir=$RPM_BUILD_ROOT/var sharedstatedir=$RPM_BUILD_ROOT%{prefix}/com mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{prefix}/share/info install find $RPM_BUILD_ROOT -name perllocal.pod -exec rm -v {} \; find $RPM_BUILD_ROOT%{perl_sitearch} -name \*.so -exec chmod 755 {} \; cd .. cd python %{__make} install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT%{prefix} -name "*.py[co]" -exec rm -f {} \; cd .. cd ruby mkdir -p $RPM_BUILD_ROOT%{ruby_dir} mkdir -p $RPM_BUILD_ROOT%{ruby_libdir} %{__make} install DESTDIR=$RPM_BUILD_ROOT cd .. %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files -n redland-perl %defattr(-, bin, bin) %{perl_sitearch}/auto %{perl_sitearch}/RDF/Redland %{perl_sitearch}/RDF/Redland.pm %doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README %doc LICENSE-2.0.txt NOTICE %doc %{_mandir}/man3/RDF::Redland*.3pm* %doc perl/example.pl %files -n redland-python %defattr(-, bin, bin) %{python_libdir}/python*/site-packages/RDF.py %{python_libdir}/python*/site-packages/Redland.so* %doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt %doc README NEWS LICENSE.txt NOTICE %doc docs/pydoc/RDF.html python/example.py %files -n redland-ruby %defattr(-, bin, bin) %{ruby_dir}/redland.so %{ruby_libdir}/rdf/*.rb %{ruby_libdir}/rdf/redland/*.rb %{ruby_libdir}/rdf/redland/schemas/*.rb %doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt %doc README NEWS LICENSE.txt NOTICE %doc ruby/example.rb %post %postun %changelog * Sat Apr 29 2006 Dave Beckett - Require ruby since the rpm file needs it * Thu Aug 11 2005 Dave Beckett - Define perl_sitearch, python_libdir, ruby_dir and ruby_libdir at rpm build time. - Split build requirements out and declare minimum versions - Use %configure and %{__make} * Wed Nov 3 2004 Dave Beckett - Added redland-ruby include wrapper classes - BuildRequires: perl, python-devel, ruby-devel * Mon Nov 2 2004 Dave Beckett - License now LGPL/Apache 2 - Added LICENSE-2.0.txt and NOTICE * Mon Jul 19 2004 Dave Beckett - split redland to give redland-bindings - requires redland 0.9.17 * Mon Jul 12 2004 Dave Beckett - put /usr/share/redland/Redland.i in redland-devel * Wed May 5 2004 Dave Beckett - require raptor 1.3.0 - require rasqal 0.2.0 * Fri Jan 30 2004 Dave Beckett - require raptor 1.2.0 - update for removal of python distutils - require python 2.2.0+ - require perl 5.8.0+ - build and require mysql - do not build and require threestore * Sun Jan 4 2004 Dave Beckett - added redland-python package - export some more docs * Mon Dec 15 2003 Dave Beckett - require raptor 1.1.0 - require libxml 2.4.0 or newer - added pkgconfig redland.pc - split redland/devel package shared libs correctly * Mon Sep 8 2003 Dave Beckett - require raptor 1.0.0 * Thu Sep 4 2003 Dave Beckett - added rdfproc * Thu Aug 28 2003 Dave Beckett - patches added post 0.9.13 to fix broken perl UNIVERSAL::isa * Thu Aug 21 2003 Dave Beckett - Add redland-db-upgrade.1 - Removed duplicate perl CORE shared objects * Sun Aug 17 2003 Dave Beckett - Updates for new perl module names. * Tue Apr 22 2003 Dave Beckett - Updated for Redhat 9, RPM 4 * Fri Feb 12 2003 Dave Beckett - Updated for redland 0.9.12 * Fri Jan 4 2002 Dave Beckett - Updated for new Perl module names * Fri Sep 14 2001 Dave Beckett - Added shared libraries redland-bindings-1.0.16.1/aclocal.m40000644000175000017500000124554212063416533013743 00000000000000# generated automatically by aclocal 1.11.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, # Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 3337 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2]) m4_define([LT_PACKAGE_REVISION], [1.3337]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' macro_revision='1.3337' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.6], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, # 2010, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, # 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless `enable' is passed literally. # For symmetry, `disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful (and sometimes confusing) to the casual installer], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi dnl Make sure AC_PROG_CC is never called again, or it will override our dnl setting of CC. m4_define([AC_PROG_CC], [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR redland-bindings-1.0.16.1/NOTICE0000644000175000017500000000026410406177664013004 00000000000000This product includes Redland software (http://librdf.org/) developed at the Institute for Learning and Research Technology, University of Bristol, UK (http://www.bristol.ac.uk/). redland-bindings-1.0.16.1/NEWS.html0000644000175000017500000002621712074646572013552 00000000000000 Redland librdf Language Bindings - News

Redland librdf Language Bindings - News

2013-01-13 Redland-bindings Version 1.0.16.1 Released

Synchronise with Redland 1.0.16 (release notes).
Multiple Ruby bindings fixes for Ruby 1.9
SWIG 2.0.0 or newer required from next release. Not tested with SWIG 1.x
A few other minor fixes.
Fixed Issues 0000243, 0000444, 0000480 and 0000498.

See the 1.0.16.1 Release Notes for the full details of the changes.

Redland-bindings Version 1.0.15.1 never released

2011-11-13 Redland-bindings Version 1.0.14.1 Released

Synchronise with Redland 1.0.14 (release notes).
Requires Redland 1.0.14, Rasqal 0.9.25 and Raptor 2.0.0 or newer.
SWIG 2.0.0 or newer is now recommended. Not tested with SWIG 1.x
Perl unicode fixes
PHP logging and error handling enhancements
Python fixes to allow subclassing
Fixed Issues: 0000473.

2011-02-08 Redland librdf Bindings Version 1.0.13.1 Released

Synchronise with Redland 1.0.13 (release notes).
Requires Redland 1.0.13, Rasqal 0.9.25 and Raptor 2.0.0 or newer.
Improved configuration of installing Perl, Python and Ruby for packagers
Several Python binding fixes and changes to make the API more Pythonic
Several Ruby binding fixes
Fixed Issues Issue #0000390, Issue #0000398, Issue #0000401, Issue #0000403, Issue #0000411, Issue #0000412 and Issue #0000413.

2010-XX-XX Redland Bindings Version 1.0.12.1

Never released. 1.0.11.1 works with Redland 1.0.12.

2010-09-27 Redland librdf Bindings Version 1.0.11.1 Released

Synchronise with Redland 1.0.11 (release notes) Python: minor bug fixes
Lua: Added experimental binding

2009-12-16 Redland Bindings Version 1.0.10.1 Released

Synchronise with Redland 1.0.10 (release notes)
PHP: Make the bindings link again
Python: Improvements to configuring
Ruby: Several minor fixes

See the 1.0.10.1 Release Notes for the full details of the changes.

2009-XX-XX Redland Bindings Version 1.0.9.1

Never released.

2008-07-05 Redland Bindings Version 1.0.8.1 Released

Synchronise with Redland 1.0.8 (release notes)
Configuration now prefers pkg-config which helps OSX linking
Minor fixes to perl, python and ruby bindings.

See the 1.0.8.1 Release Notes for the full details of the changes.

2007-12-28 Redland Bindings Version 1.0.7.1 Released

Synchronise with Redland 1.0.7 (release notes)
Removed Tcl, Java and C# bindings as promised
Added exception throwing to PHP binding
Add URI filtering to Python parser API
Fix Issues #0000212 and #0000247.

See the 1.0.7.1 Release Notes for the full details of the changes.

2007-05-06 Redland Bindings Version 1.0.6.1 Released

Synchronise with Redland 1.0.6 (release notes)
Many updates to the Python and Ruby bindings
Many other bug fixes addressing Issues #0000121, #0000140, #0000147, #0000166, #0000170, #0000171 and #0000172.

See the 1.0.6.1 Release Notes for the full details of the changes.

2006-11-19 Redland Bindings Version 1.0.5.1 Released

Synchronise with Redland 1.0.5 (release notes)
Many updates to the Ruby binding
Minor updates to the C#, Java and Python bindings
Several other fixes and improvements
Many other bug fixes addressing Issues #0000109, #0000120, #0000121, #0000122 and #0000126.

See the 1.0.5.1 Release Notes for the full details of the changes.

2006-05-05 Redland Bindings Version 1.0.4.1 Released

Synchronise with Redland 1.0.4
Some minor fixes in several bindings.

See the 1.0.4.1 Release Notes for the full details of the changes.

2006-03-14 Redland Bindings Version 1.0.3.1 Released

Synchronise with Redland 1.0.3
Several updates for handling optional query result values
Multiple fixes for Python and Ruby bindings issues
Several other fixes and changes for other binding languages.

NOTE: Redland Bindings will be switching to use Subversion for version control after the 1.0.3.1 release. See the Redland Subversion site or the online Redland Bindings installation notes for the latest information.

See the 1.0.3.1 Release Notes for the full details of the changes.

2005-06-10 Redland Bindings Version 1.0.2.1 Released

Synchronise with Redland 1.0.2
Some minor fixes in the Perl, Python and Ruby bindings.

See the 1.0.2.1 Release Notes for the full details of the changes.

2005-05-29 Redland Bindings Version 1.0.1.1 Released

Synchronise with Redland 1.0.1 (release notes)
Updated examples and tests to use latest SPARQL syntax
Perl binding addeded several helper methods for nodes
PHP binding returns a PHP null instead of a NULL node pointer
Python binding gets various fixes (Daniel Larsson)
Ruby binding generates html documentation using rdoc (Nikolas Coukouma)

See the 1.0.1.1 Release Notes for the full details of the changes.

2005-02-27 Redland Bindings Version 1.0.0.2 Released

Added Perl bindings to returning RDF graph and boolean query results (aka SPARQL CONSTRUCT and ASK
Added Perl bindings to returning a query result as a syntax format
PHP binding compile fix and now registers module versions (Dave Viner)
Perl and Python bindings error handling changed to return the structured messages fields
Python error handling now by default throws exceptions on C function return

See the 1.0.0.2 Release Notes for the full details of the changes.

2005-02-06 Redland Bindings Version 1.0.0.1 Released

Synchronise with Redland 1.0.0
Python API gains returning RDF graph and boolean results
Updated the ruby API to rdf-redland 0.5.3.1, fixed installation and test cases
Other minor binding changes

See the 1.0.0.1 Release Notes for the full details of the changes.

2004-11-02 Redland Bindings Version 0.9.19.1 Released

License changed to LGPL 2.1/Apache 2
Rebuild for Redland 0.9.19
Model to_string support added to perl and python bindings
Several other minor binding changes

See the 0.9.19.1 Release Notes for the full details of the changes.

2004-08-03 Redland Bindings Version 0.9.18.1 Released

(A rebuild for Redland 0.9.18 with no API changes)

The first release of Redland Bindings separate from Redland.
New C# API by Cesar Lopez Nataren and Edd Dumbill
Perl and Python APIs updated to have Redland Query and QueryResults
Ruby API replaced with rdf-redland written by by Dominic Sisneros

See the 0.9.18.1 Release Notes for the full details of the changes.

2004-07-19 Redland Bindings Version 0.9.17.1 Released

Initial packaging snapshot, never announced.


Copyright (C) 2004-2013 Dave Beckett
Copyright (C) 2004-2005 University of Bristol

redland-bindings-1.0.16.1/COPYING.LIB0000644000175000017500000006363710254306540013541 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! redland-bindings-1.0.16.1/bindings_config.h.in0000644000175000017500000000337512074643537016006 00000000000000/* bindings_config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Redland uses Raptor2 API */ #undef REDLAND_HAVE_RAPTOR2_API /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION redland-bindings-1.0.16.1/README0000644000175000017500000000444712074643543012764 00000000000000 Redland librdf Language Bindings [1]Dave Beckett Overview [2]Redland librdf is a library that provides a high-level interface for the Resource Description Framework (RDF) allowing the RDF graph to be parsed from XML, stored, queried and manipulated. Redland implements each of the RDF concepts in its own class via an object based API, reflected into the language APIs, currently Perl, PHP, Python and Ruby. Several classes providing functionality such as for parsers, storage are built as modules that can be loaded at compile or run-time as required. The Redland librdf language bindings provides the higher level language APIs to Redland in the following languages. * Lua (experimental) * [3]Perl * [4]PHP * [5]Python * [6]Ruby Sources and Binaries The packaged sources are available from [7]http://download.librdf.org/source/ (master site) and also from the [8]SourceForge site. The development GIT sources can also be [9]browsed on GitHub License This library is free software / open source software released under the LGPL 2.1 (GPL) or Apache 2.0 licenses. See [10]LICENSE.html for full details. Installation and Documentation See [11]INSTALL.html for general installation and configuration information and the language specific documents for installing the interfaces in the current available APIs: [12]Perl, [13]PHP, [14]Python or [15]Ruby . There are no LUA docs at this time. Mailing Lists The [16]Redland mailing lists discuss the development and use of Redland and Raptor as well as future plans and announcement of releases. __________________________________________________________________ Copyright (C) 2004-2013 [17]Dave Beckett Copyright (C) 2004-2005 [18]University of Bristol References 1. http://www.dajobe.org/ 2. http://librdf.org/ 3. docs/perl.html 4. docs/php.html 5. docs/python.html 6. docs/ruby.html 7. http://download.librdf.org/source/ 8. http://sourceforge.net/projects/librdf/ 9. http://github.com/dajobe/redland-bindings 10. LICENSE.html 11. INSTALL.html 12. docs/perl.html 13. docs/php.html 14. docs/python.html 15. docs/ruby.html 16. http://librdf.org/lists/ 17. http://www.dajobe.org/ 18. http://www.bristol.ac.uk/ redland-bindings-1.0.16.1/configure0000755000175000017500000155275512063416536014024 00000000000000#! /bin/sh # From configure.ac Revision. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for Redland librdf Language bindings 1.0.16.1. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: http://bugs.librdf.org/ about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script $0: under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Redland librdf Language bindings' PACKAGE_TARNAME='redland-bindings' PACKAGE_VERSION='1.0.16.1' PACKAGE_STRING='Redland librdf Language bindings 1.0.16.1' PACKAGE_BUGREPORT='http://bugs.librdf.org/' PACKAGE_URL='' ac_unique_file="perl/example.pl" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS abs_top_builddir abs_top_srcdir STANDARD_CFLAGS ECHO MEM_LIBS MEM RASQAL_LDFLAGS RAPTOR_LDFLAGS LIBRDF_LDFLAGS LIBRDF_CPPFLAGS SD REDLAND_HAVE_RAPTOR2_API REDLAND_SWIG REDLAND_RUN REDLAND_VERSION REDLAND_CONFIG RUBY_VERSION PHP_VERSION RUBY_ARCH_INSTALLDIR RUBY_INSTALLDIR RUBY_SO_SUFFIX RUBY_INCLUDES RUBY_LDFLAGS RUBY_CFLAGS RUBY_PACKAGE PYTHON_VERSION PYTHON_LIB PYTHON_INCLUDES PYTHON_LIBEXT PYTHON_LDFLAGS PERL_MAKEMAKER_ARGS PERL_VERSION PHP_SWIG PHP_SO_SUFFIX PHP_LDFLAGS PHP_CFLAGS PHP_EXTENSION_DIR PHP_INCLUDES PHP_CONFIG LUA_LDFLAGS LUA_CFLAGS SWIG_PYTHON_ARGS PERLMAN3DIR PERLINSTALLSITEARCH PKG_CONFIG SWIG RUBY PHP PERL PYTHON LUA TAR CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL LN_S am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_lua with_php_linking with_perl with_perl_makemaker_args with_python with_python_ldflags with_python_libext with_python_get_python_lib_args with_ruby_arch_install_dir_variable with_ruby_arch_install_dir with_ruby_install_dir_variable with_ruby_install_dir with_ruby_linking with_php with_ruby enable_release ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PYTHON_LDFLAGS PYTHON_LIBEXT PYTHON_INCLUDES PYTHON_LIB' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures Redland librdf Language bindings 1.0.16.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/redland-bindings] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of Redland librdf Language bindings 1.0.16.1:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-release Turn on optimizations (for maintainer). Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-lua(=LUA) Enable the Lua interface --with-php-linking=TYPE Set PHP module linking type (so, dylib, bundle) --with-perl(=PERL) Enable the Perl interface --with-perl-makemaker-options=ARGS Set args for Perl Makefile.PL invocation (default '') --with-python(=PYTHON) Enable the Python interface --with-python-ldflags(=FLAGS) Set the Python linker flags --with-python-libext(=EXT) Python shared library file extension (default .so) --with-python-get-python-lib-args=ARGS Set args for Python distutils.sysconfig.get_python_lib() function (default '') --with-ruby-arch-install-dir-variable=NAME Set Ruby arch install directory config variable (default 'archdir') --with-ruby-arch-install-dir=NAME Set Ruby install directory (default 'auto') --with-ruby-install-dir-variable=NAME Set Ruby install directory config variable (default 'rubylibdir') --with-ruby-install-dir=NAME Set Ruby install directory (default 'auto') --with-ruby-linking=TYPE Set Ruby module linking type (so, dylib, bundle) --with-php(=PHP) Enable the PHP interface --with-ruby(=RUBY) Enable the Ruby interface Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PYTHON_LDFLAGS Python shared library link lines PYTHON_LIBEXT Python shared library file extension PYTHON_INCLUDES Install location of python includes PYTHON_LIB Install location of python libraries Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Redland librdf Language bindings configure 1.0.16.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Redland librdf Language bindings $as_me 1.0.16.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers bindings_config.h" ac_aux_dir= for ac_dir in build "$srcdir"/build; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='redland-bindings' VERSION='1.0.16.1' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE MIN_REDLAND_VERSION=1.0.15 # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi if test "x$CC" != xcc; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } fi set dummy $CC; ac_cc=`$as_echo "$2" | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -f conftest2.$ac_objext && { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.$ac_ext >&5' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -f conftest2.$ac_objext && { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f core conftest* fi if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h fi # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: # Find a tar command for 'make dist' for ac_prog in gnutar gtar tar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_TAR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TAR"; then ac_cv_prog_TAR="$TAR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_TAR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi TAR=$ac_cv_prog_TAR if test -n "$TAR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 $as_echo "$TAR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$TAR" && break done for ac_prog in lua do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LUA+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LUA"; then ac_cv_prog_LUA="$LUA" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LUA="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LUA=$ac_cv_prog_LUA if test -n "$LUA"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5 $as_echo "$LUA" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LUA" && break done for ac_prog in python do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON"; then ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON=$ac_cv_prog_PYTHON if test -n "$PYTHON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 $as_echo "$PYTHON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON" && break done for ac_prog in perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PERL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PERL"; then ac_cv_prog_PERL="$PERL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PERL="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PERL=$ac_cv_prog_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PERL" && break done for ac_prog in php do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PHP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PHP"; then ac_cv_prog_PHP="$PHP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PHP="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PHP=$ac_cv_prog_PHP if test -n "$PHP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 $as_echo "$PHP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PHP" && break done for ac_prog in ruby do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RUBY+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RUBY"; then ac_cv_prog_RUBY="$RUBY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RUBY="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RUBY=$ac_cv_prog_RUBY if test -n "$RUBY"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 $as_echo "$RUBY" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$RUBY" && break done for ac_prog in swig do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SWIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SWIG"; then ac_cv_prog_SWIG="$SWIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SWIG="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SWIG=$ac_cv_prog_SWIG if test -n "$SWIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 $as_echo "$SWIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$SWIG" && break done # Gnome for ac_prog in pkg-config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PKG_CONFIG"; then ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PKG_CONFIG="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PKG_CONFIG=$ac_cv_prog_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PKG_CONFIG" && break done if test "X$PERL" != "X"; then PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'` PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'` else PERLINSTALLSITEARCH=none PERLMAN3DIR=none fi SWIG_MIN_VERSION=1.3.26 SWIG_RECOMMENDED_VERSION=2.0.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG support" >&5 $as_echo_n "checking SWIG support... " >&6; } if test "X$SWIG" != "X"; then SWIG_VERSION=`$SWIG -version 2>&1 |sed -ne 's/^SWIG Version //p'` SWIG_VERSION_DEC=`echo $SWIG_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` if test $SWIG_VERSION_DEC -ge 010326; then SWIG_PYTHON_ARGS=-noproxy fi SWIG_MIN_VERSION_DEC=`echo $SWIG_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` SWIG_REC_VERSION_DEC=`echo $SWIG_RECOMMENDED_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` if test $SWIG_VERSION_DEC -ge $SWIG_MIN_VERSION_DEC; then if test $SWIG_VERSION_DEC -ge $SWIG_REC_VERSION_DEC; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK" >&5 $as_echo "$SWIG_VERSION - OK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&5 $as_echo "$SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&5 $as_echo "$as_me: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&2;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - too old to generate language interfaces" >&5 $as_echo "$SWIG_VERSION - too old to generate language interfaces" >&6; } if test -r $srcdir/perl/CORE_wrap.c ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pre-generated language interface files are present" >&5 $as_echo "$as_me: WARNING: Pre-generated language interface files are present" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to change the interfaces you will need" >&5 $as_echo "$as_me: WARNING: If you want to change the interfaces you will need" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5 $as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;} else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There are no pre-generated language interface files" >&5 $as_echo "$as_me: WARNING: There are no pre-generated language interface files" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Redland language interfaces will NOT build." >&5 $as_echo "$as_me: WARNING: Redland language interfaces will NOT build." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to build them you will need" >&5 $as_echo "$as_me: WARNING: If you want to build them you will need" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5 $as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively copy the pre-generated interface" >&5 $as_echo "$as_me: WARNING: Alternatively copy the pre-generated interface" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: files from a released version" >&5 $as_echo "$as_me: WARNING: files from a released version" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present - using pre-generated interface files" >&5 $as_echo "not present - using pre-generated interface files" >&6; } fi languages= languages_available= # Check whether --with-lua was given. if test "${with_lua+set}" = set; then : withval=$with_lua; with_lua="$withval" else with_lua="no" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable LUA API" >&5 $as_echo_n "checking Enable LUA API... " >&6; } if test "X$with_lua" != Xno ; then if test "X$with_lua" != Xyes; then LUA=$with_lua fi with_lua=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5 $as_echo "$with_lua" >&6; } LUA_VERSION= LUA_CFLAGS= LUA_LDFLAGS= if test "X$with_lua" = Xyes -a -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA Version" >&5 $as_echo_n "checking LUA Version... " >&6; } LUA_PKGCONFIG=$LUA LUA_VERSION=`$PKG_CONFIG $LUA_PKGCONFIG --modversion` LUA_CFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --cflags` LUA_LDFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --libs` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_VERSION" >&5 $as_echo "$LUA_VERSION" >&6; } fi if test "X$LUA_VERSION" != X; then languages_available="$languages_available lua($LUA_VERSION)" if test $with_lua = yes; then languages="$languages lua" fi fi # Extract the first word of "php-config", so it can be a program name with args. set dummy php-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PHP_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PHP_CONFIG"; then ac_cv_prog_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PHP_CONFIG="php-config" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PHP_CONFIG=$ac_cv_prog_PHP_CONFIG if test -n "$PHP_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5 $as_echo "$PHP_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "X$PHP_CONFIG" != X ; then PHP_VERSION=`$PHP_CONFIG --version` PHP_INCLUDES=`$PHP_CONFIG --includes` PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir` if test $PHP_VERSION '>' 5.0.0; then PHP_SWIG="-php5" else PHP_SWIG="-php4" fi # Configure these if PHP_SO_SUFFIX is missing if test "X$PHP_SO_SUFFIX" = "X"; then # OSX/Darwin default is bundle if test `uname` = Darwin; then # FIXME - how to decide between bundle and dylib? php_linking=bundle else php_linking=so fi # Check whether --with-php-linking was given. if test "${with_php_linking+set}" = set; then : withval=$with_php_linking; php_linking="$withval" fi case $php_linking in so) PHP_LDFLAGS="-shared" PHP_CFLAGS= ;; dylib) PHP_LDFLAGS="-flat_namespace -undefined suppress" PHP_CFLAGS="-fno-common" ;; bundle) PHP_LDFLAGS="-bundle -flat_namespace -undefined suppress" PHP_CFLAGS="-fno-common" ;; *) as_fn_error $? "No such PHP linking type $php_linking" "$LINENO" 5 ;; esac PHP_SO_SUFFIX=$php_linking fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP Linking" >&5 $as_echo_n "checking PHP Linking... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&5 $as_echo "compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&6; } else # This allows 'make clean' in the php directory to work when # php isn't available PHP=: PHP_SWIG= PHP_INCLUDES= PHP_EXTENSION_DIR= PHP_CFLAGS= PHP_LDFLAGS= PHP_SO_SUFFIX= fi # Check whether --with-perl was given. if test "${with_perl+set}" = set; then : withval=$with_perl; with_perl="$withval" else with_perl="no" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Perl API" >&5 $as_echo_n "checking Enable Perl API... " >&6; } if test "X$with_perl" != Xno ; then if test "X$with_perl" != Xyes; then PERL=$with_perl fi with_perl=yes fi PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}' 2>/dev/null` if test "X$PERL_VERSION" != X; then languages_available="$languages_available perl($PERL_VERSION)" if test $with_perl = yes; then languages="$languages perl" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5 $as_echo "$with_perl" >&6; } # Check whether --with-perl-makemaker-args was given. if test "${with_perl_makemaker_args+set}" = set; then : withval=$with_perl_makemaker_args; perl_makemaker_args="$withval" else perl_makemaker_args="" fi PERL_MAKEMAKER_ARGS="$perl_makemaker_args" # Check whether --with-python was given. if test "${with_python+set}" = set; then : withval=$with_python; with_python="$withval" else with_python="no" fi # envariable override --with-python-ldflags and --with-libext { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Python API" >&5 $as_echo_n "checking Enable Python API... " >&6; } if test "X$with_python" != Xno; then if test "X$with_python" != Xyes; then PYTHON=$with_python fi with_python=yes fi PYTHON_VERSION=`$PYTHON -c 'import sys; print sys.version[:3]' 2>/dev/null` if test "X$PYTHON_VERSION" != X; then languages_available="$languages_available python($PYTHON_VERSION)" if test $with_python = yes; then languages="$languages python" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python $PYTHON_VERSION" >&5 $as_echo "$with_python $PYTHON_VERSION" >&6; } if test "X$PYTHON" != X; then if test "X$PYTHON_LDFLAGS" = X; then # Check whether --with-python_ldflags was given. if test "${with_python_ldflags+set}" = set; then : withval=$with_python_ldflags; with_python_ldflags="$withval" else with_python_ldflags="" fi if test "X$with_python_ldflags" != X; then PYTHON_LDFLAGS=$with_python_ldflags fi fi if test "X$PYTHON_LIBEXT" = X; then # Check whether --with-python-libext was given. if test "${with_python_libext+set}" = set; then : withval=$with_python_libext; with_python_libext="$withval" else with_python_libext=".so" fi if test "X$with_python_libext" != X; then PYTHON_LIBEXT=$with_python_libext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python includes" >&5 $as_echo_n "checking Python includes... " >&6; } python_prefix=`$PYTHON -c 'import sys; print sys.prefix' 2>/dev/null` python_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` if test "X$PYTHON_INCLUDES" != X; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user includes: $PYTHON_INCLUDES" >&5 $as_echo "using user includes: $PYTHON_INCLUDES" >&6; } else PYTHON_INCLUDES="-I${python_prefix}/include/python${PYTHON_VERSION}" if test "$python_prefix" != "$python_exec_prefix"; then PYTHON_INCLUDES="$PYTHON_INCLUDES -I${python_exec_prefix}/include/python${PYTHON_VERSION}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5 $as_echo "$PYTHON_INCLUDES" >&6; } fi # Check whether --with-python-get-python-lib-args was given. if test "${with_python_get_python_lib_args+set}" = set; then : withval=$with_python_get_python_lib_args; get_python_lib_args="$withval" else get_python_lib_args="" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python libs" >&5 $as_echo_n "checking Python libs... " >&6; } if test "X$PYTHON_LIB" != X; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user lib: $PYTHON_LIB" >&5 $as_echo "using user lib: $PYTHON_LIB" >&6; } else PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib($get_python_lib_args)"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIB" >&5 $as_echo "$PYTHON_LIB" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python LDFLAGS" >&5 $as_echo_n "checking Python LDFLAGS... " >&6; } if test "X$PYTHON_LDFLAGS" != X; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user ldflags: $PYTHON_LDFLAGS" >&5 $as_echo "using user ldflags: $PYTHON_LDFLAGS" >&6; } else # Guess PYTHON_LDFLAGS if not passed in if test `uname` = Darwin; then PYTHON_LDFLAGS="-Wl,-F. -Wl,-F. -bundle" if echo $python_prefix | grep Frameworks >/dev/null; then fpath=`echo $python_prefix | sed -e 's,Frameworks/.*$,Frameworks,'` PYTHON_LDFLAGS="$PYTHON_LDFLAGS -F$fpath -framework Python" fi else PYTHON_LDFLAGS="-shared" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessed flags: $PYTHON_LDFLAGS" >&5 $as_echo "guessed flags: $PYTHON_LDFLAGS" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python shared library file extension" >&5 $as_echo_n "checking Python shared library file extension... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBEXT" >&5 $as_echo "$PYTHON_LIBEXT" >&6; } else # This allows 'make clean' in the python directory to work when # python isn't available PYTHON=: fi # Check whether --with-ruby-arch-install-dir-variable was given. if test "${with_ruby_arch_install_dir_variable+set}" = set; then : withval=$with_ruby_arch_install_dir_variable; ruby_arch_install_dir_variable="$withval" else ruby_arch_install_dir_variable="archdir" fi # Check whether --with-ruby-arch-install-dir was given. if test "${with_ruby_arch_install_dir+set}" = set; then : withval=$with_ruby_arch_install_dir; ruby_arch_install_dir="$withval" else ruby_arch_install_dir="auto" fi # Check whether --with-ruby-install-dir-variable was given. if test "${with_ruby_install_dir_variable+set}" = set; then : withval=$with_ruby_install_dir_variable; ruby_install_dir_variable="$withval" else ruby_install_dir_variable="rubylibdir" fi # Check whether --with-ruby-install-dir was given. if test "${with_ruby_install_dir+set}" = set; then : withval=$with_ruby_install_dir; ruby_install_dir="$withval" else ruby_install_dir="auto" fi RUBY_PACKAGE=redland RUBY_CFLAGS= RUBY_LDFLAGS= RUBY_INCLUDES= RUBY_SO_SUFFIX= RUBY_INSTALLDIR= RUBY_ARCH_INSTALLDIR= if test "X$RUBY" != X; then RUBY_ARCHDIR=`$RUBY -rrbconfig -e "print RbConfig::CONFIG['archdir']"` ruby_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_install_dir_variable']"` ruby_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyhdrdir']"` ruby_arch_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['arch']"` ruby_arch_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_arch_install_dir_variable']"` librubyarg_shared=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['LIBRUBYARG_SHARED']"` { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby installation dir" >&5 $as_echo_n "checking Ruby installation dir... " >&6; } if test "X$ruby_install_dir" != "Xauto"; then RUBY_INSTALLDIR=$ruby_install_dir { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from user" >&5 $as_echo "$RUBY_INSTALLDIR from user" >&6; } else RUBY_INSTALLDIR=$ruby_install_dir_config { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&5 $as_echo "$RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby arch installation dir" >&5 $as_echo_n "checking Ruby arch installation dir... " >&6; } if test "X$ruby_arch_install_dir" != "Xauto"; then RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from user" >&5 $as_echo "$RUBY_ARCH_INSTALLDIR from user" >&6; } else RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir_config { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&5 $as_echo "$RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby headers dir" >&5 $as_echo_n "checking Ruby headers dir... " >&6; } if test "X$ruby_header_dir_config" != "Xnil" -a "X$ruby_header_dir_config" != "X"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_header_dir_config" if test "X$ruby_arch_config" != "Xnil" -a "X$ruby_arch_config" != "X"; then ruby_arch_hdrdir="$ruby_header_dir_config/$ruby_arch_config" if test -d "$ruby_arch_hdrdir"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_arch_hdrdir" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir" >&5 $as_echo "$RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir" >&6; } else if test -r "$RUBY_ARCHDIR/ruby.h"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$RUBY_ARCHDIR" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from arch dir" >&5 $as_echo "$RUBY_INCLUDES from arch dir" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ruby.h not found - unable to compile Redland ruby bindings" >&5 $as_echo "ruby.h not found - unable to compile Redland ruby bindings" >&6; } fi fi # OSX/Darwin default is bundle if test `uname` = Darwin; then # FIXME - how to decide between bundle and dylib? ruby_linking=bundle else ruby_linking=so fi # Check whether --with-ruby-linking was given. if test "${with_ruby_linking+set}" = set; then : withval=$with_ruby_linking; ruby_linking="$withval" fi case $ruby_linking in so) RUBY_LDFLAGS="$RUBY_LDFLAGS -shared $librubyarg_shared" ;; dylib) RUBY_LDFLAGS="$RUBY_LDFLAGS -flat_namespace -undefined suppress $librubyarg_shared" RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" ;; bundle) RUBY_LDFLAGS="$RUBY_LDFLAGS -bundle -flat_namespace -undefined suppress $librubyarg_shared" RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" ;; *) as_fn_error $? "No such RUBY linking type $ruby_linking" "$LINENO" 5 ;; esac RUBY_SO_SUFFIX=$php_linking { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby Linking" >&5 $as_echo_n "checking Ruby Linking... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&5 $as_echo "compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&6; } else # This allows 'make clean' in the ruby directory to work when # ruby isn't available RUBY=: fi # Check whether --with-php was given. if test "${with_php+set}" = set; then : withval=$with_php; with_php="$withval" else with_php="no" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable PHP API" >&5 $as_echo_n "checking Enable PHP API... " >&6; } if test "X$with_php" != Xno ; then if test "X$with_php" != Xyes; then PHP=$with_php fi with_php=yes fi PHP_VERSION=`php-config --version 2>/dev/null` if test "X$PHP_VERSION" != X; then languages_available="$languages_available php($PHP_VERSION)" if test $with_php = yes; then languages="$languages php" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_php" >&5 $as_echo "$with_php" >&6; } # Check whether --with-ruby was given. if test "${with_ruby+set}" = set; then : withval=$with_ruby; with_ruby="$withval" else with_ruby="no" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Ruby API" >&5 $as_echo_n "checking Enable Ruby API... " >&6; } if test "X$with_ruby" != Xno ; then if test "X$with_ruby" != Xyes; then RUBY=$with_ruby fi with_ruby=yes fi RUBY_VERSION=`$RUBY --version 2>/dev/null | $AWK '{print $2}'` if test "X$RUBY_VERSION" != X; then languages_available="$languages_available ruby($RUBY_VERSION)" if test $with_ruby = yes; then languages="$languages ruby" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ruby" >&5 $as_echo "$with_ruby" >&6; } ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} release_version=no # Check whether --enable-release was given. if test "${enable_release+set}" = set; then : enableval=$enable_release; \ if test "$enableval" = "yes"; then \ release_version=yes fi; fi if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then CFLAGS=`echo $CFLAGS | sed s/-O2//` CXXFLAGS=`echo $CXXFLAGS | sed s/-O2//` CPPFLAGS=`echo $CPPFLAGS | sed s/-O2//` fi # if using gcc... if test "$ac_cv_c_compiler_gnu" = yes; then STANDARD_CFLAGS= MAINTAINER_CFLAGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" else STANDARD_CFLAGS= MAINTAINER_CFLAGS= fi # Externally linked libraries - appear in redland-config # -Dfoo -Idir LIBRDF_CPPFLAGS=$CPPFLAGS # -Ldir -llib LIBRDF_LDFLAGS="$LDFLAGS $LIBS" # redland is REQUIRED OUR_REDLAND_VERSION=`echo $PACKAGE_VERSION | sed -e 's,\.[0-9]$,,'` OUR_REDLAND_VERSION_DEC=`echo $OUR_REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` REDLAND_VERSION= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redland" >&5 $as_echo_n "checking for redland... " >&6; } if $PKG_CONFIG --exists redland; then REDLAND_CONFIG="$PKG_CONFIG redland" REDLAND_VERSION=`$PKG_CONFIG redland --modversion` REDLAND_VERSION_DEC=`echo $REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDLAND_VERSION" >&5 $as_echo "$REDLAND_VERSION" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } as_fn_error $? "Redland is not installed - see http://librdf.org/ to get a version $OUR_REDLAND_VERSION or newer" "$LINENO" 5 fi if $PKG_CONFIG --atleast-version=$MIN_REDLAND_VERSION redland; then : else as_fn_error $? "Redland version $REDLAND_VERSION found. $MIN_REDLAND_VERSION or newer is required - see http://librdf.org/" "$LINENO" 5 fi REDLAND_RUN= REDLAND_SWIG=`$PKG_CONFIG redland --variable=swig` { $as_echo "$as_me:${as_lineno-$LINENO}: checking if redland was built with raptor2" >&5 $as_echo_n "checking if redland was built with raptor2... " >&6; } REDLAND_HAVE_RAPTOR2_API=`$PKG_CONFIG redland --variable=have_raptor2_api 2>/dev/null` if test "X$REDLAND_HAVE_RAPTOR2_API" = X1; then $as_echo "#define REDLAND_HAVE_RAPTOR2_API 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } REDLAND_HAVE_RAPTOR2_API=0 as_fn_error $? "Redland bindings requires a Redland built with Raptor 2 APIs. see http://librdf.org/" "$LINENO" 5 fi LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG redland --cflags`" LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS `$PKG_CONFIG redland --libs`" RAPTOR_LDFLAGS=`$PKG_CONFIG raptor2 --libs` RASQAL_LDFLAGS=`$PKG_CONFIG rasqal --libs` if test $REDLAND_VERSION_DEC -lt 10014; then # These should have been added to redland.pc in 1.0.13 LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG rasqal --cflags`" LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS $RASQAL_LDFLAGS" fi SD="$languages" # Make final changes to cflags MEM= MEM_LIBS= STANDARD_CFLAGS="$STANDARD_CFLAGS $CFLAGS" if test "$USE_MAINTAINER_MODE" = yes; then CFLAGS="$MAINTAINER_CFLAGS $CFLAGS" fi LIBS= CPPFLAGS= LDFLAGS= abs_top_srcdir=`cd $srcdir; pwd` abs_top_builddir=`pwd` ac_config_files="$ac_config_files Makefile bindings.rdf docs/Makefile perl/Makefile perl/t/Makefile perl/lib/Makefile perl/lib/RDF/Makefile perl/lib/RDF/Redland/Makefile lua/Makefile php/Makefile python/Makefile python/test/Makefile ruby/Makefile ruby/test/Makefile ruby/lib/Makefile ruby/lib/rdf/Makefile ruby/lib/rdf/redland/Makefile ruby/lib/rdf/redland/schemas/Makefile data/Makefile" ac_config_files="$ac_config_files redland-bindings.spec" ac_config_files="$ac_config_files perl/lib/RDF/Redland.pm" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by Redland librdf Language bindings $as_me 1.0.16.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Redland librdf Language bindings config.status 1.0.16.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "bindings_config.h") CONFIG_HEADERS="$CONFIG_HEADERS bindings_config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "bindings.rdf") CONFIG_FILES="$CONFIG_FILES bindings.rdf" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;; "perl/t/Makefile") CONFIG_FILES="$CONFIG_FILES perl/t/Makefile" ;; "perl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/Makefile" ;; "perl/lib/RDF/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Makefile" ;; "perl/lib/RDF/Redland/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland/Makefile" ;; "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;; "php/Makefile") CONFIG_FILES="$CONFIG_FILES php/Makefile" ;; "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; "python/test/Makefile") CONFIG_FILES="$CONFIG_FILES python/test/Makefile" ;; "ruby/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/Makefile" ;; "ruby/test/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/test/Makefile" ;; "ruby/lib/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/Makefile" ;; "ruby/lib/rdf/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/Makefile" ;; "ruby/lib/rdf/redland/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/Makefile" ;; "ruby/lib/rdf/redland/schemas/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/schemas/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "redland-bindings.spec") CONFIG_FILES="$CONFIG_FILES redland-bindings.spec" ;; "perl/lib/RDF/Redland.pm") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland.pm" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: Redland build summary: Redland: $REDLAND_VERSION Language APIs built: $languages " >&5 $as_echo " Redland build summary: Redland: $REDLAND_VERSION Language APIs built: $languages " >&6; } redland-bindings-1.0.16.1/configure.ac0000644000175000017500000005015212062370621014353 00000000000000dnl -*- Mode: autoconf -*- dnl dnl configure.ac - top level autoconf file for Redland API bindings dnl (Process this file with autoconf to produce a configure script.) dnl dnl Copyright (C) 2000-2011, David Beckett http://www.dajobe.org/ dnl Copyright (C) 2000-2005 Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ dnl dnl This package is Free Software and part of Redland http://librdf.org/ dnl dnl It is licensed under the following three licenses as alternatives: dnl 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version dnl 2. GNU General Public License (GPL) V2 or any newer version dnl 3. Apache License, V2.0 or any newer version dnl dnl You may not use this file except in compliance with at least one of dnl the above three licenses. dnl dnl See LICENSE.html or LICENSE.txt at the top of this package for the dnl complete terms and further detail along with the license texts for dnl the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. dnl dnl AC_INIT([Redland librdf Language bindings],[1.0.16.1],[http://bugs.librdf.org/],[redland-bindings]) AC_PREREQ([2.62]) AC_CONFIG_SRCDIR(perl/example.pl) AC_REVISION($Revision$)dnl AC_CONFIG_HEADERS([bindings_config.h]) AC_CONFIG_AUX_DIR(build) AC_CONFIG_MACRO_DIR(build) AM_INIT_AUTOMAKE([1.11 check-news std-options -Wobsolete -Wportability -Wsyntax -Wunsupported]) AM_MAINTAINER_MODE dnl 1.0.14 probably also works (Raptor and Rasqal dependencies the same) MIN_REDLAND_VERSION=1.0.15 AC_CANONICAL_HOST dnl Checks for programs. AM_SANITY_CHECK AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET m4_undefine([AC_PROG_CXX]) m4_defun([AC_PROG_CXX],[]) m4_undefine([AC_PROG_F77]) m4_defun([AC_PROG_F77],[]) LT_INIT # Find a tar command for 'make dist' AC_CHECK_PROGS(TAR, gnutar gtar tar) AC_CHECK_PROGS(LUA, lua) AC_CHECK_PROGS(PYTHON, python) AC_CHECK_PROGS(PERL, perl) AC_CHECK_PROGS(PHP, php) AC_CHECK_PROGS(RUBY, ruby) AC_CHECK_PROGS(SWIG, swig) # Gnome AC_CHECK_PROGS(PKG_CONFIG, pkg-config) if test "X$PERL" != "X"; then PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'` PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'` else PERLINSTALLSITEARCH=none PERLMAN3DIR=none fi AC_SUBST(PERLINSTALLSITEARCH) AC_SUBST(PERLMAN3DIR) dnl FIXME - require SWIG 2+ from next release SWIG_MIN_VERSION=1.3.26 SWIG_RECOMMENDED_VERSION=2.0.0 AC_MSG_CHECKING(SWIG support) if test "X$SWIG" != "X"; then SWIG_VERSION=`$SWIG -version 2>&1 |sed -ne 's/^SWIG Version //p'` SWIG_VERSION_DEC=`echo $SWIG_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` if test $SWIG_VERSION_DEC -ge 010326; then SWIG_PYTHON_ARGS=-noproxy fi SWIG_MIN_VERSION_DEC=`echo $SWIG_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` SWIG_REC_VERSION_DEC=`echo $SWIG_RECOMMENDED_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` if test $SWIG_VERSION_DEC -ge $SWIG_MIN_VERSION_DEC; then if test $SWIG_VERSION_DEC -ge $SWIG_REC_VERSION_DEC; then AC_MSG_RESULT($SWIG_VERSION - OK) else AC_MSG_RESULT($SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended) dnl FIXME AC_MSG_WARN(SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release) fi else AC_MSG_RESULT($SWIG_VERSION - too old to generate language interfaces) if test -r $srcdir/perl/CORE_wrap.c ; then AC_MSG_WARN(Pre-generated language interface files are present) AC_MSG_WARN(If you want to change the interfaces you will need) AC_MSG_WARN(SWIG version $SWIG_MIN_VERSION from http://www.swig.org/) else AC_MSG_WARN(There are no pre-generated language interface files) AC_MSG_WARN(Redland language interfaces will NOT build.) AC_MSG_WARN(If you want to build them you will need) AC_MSG_WARN(SWIG version $SWIG_MIN_VERSION from http://www.swig.org/) AC_MSG_WARN(Alternatively copy the pre-generated interface) AC_MSG_WARN(files from a released version) fi fi else AC_MSG_RESULT(not present - using pre-generated interface files) fi AC_SUBST(SWIG_PYTHON_ARGS) languages= languages_available= dnl Checks for languages AC_ARG_WITH(lua, [ --with-lua(=LUA) Enable the Lua interface], with_lua="$withval", with_lua="no") AC_MSG_CHECKING(Enable LUA API) if test "X$with_lua" != Xno ; then if test "X$with_lua" != Xyes; then LUA=$with_lua fi with_lua=yes fi AC_MSG_RESULT($with_lua) LUA_VERSION= LUA_CFLAGS= LUA_LDFLAGS= if test "X$with_lua" = Xyes -a -n "$PKG_CONFIG"; then AC_MSG_CHECKING(LUA Version) LUA_PKGCONFIG=$LUA LUA_VERSION=`$PKG_CONFIG $LUA_PKGCONFIG --modversion` LUA_CFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --cflags` LUA_LDFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --libs` AC_MSG_RESULT($LUA_VERSION) fi AC_SUBST(LUA_CFLAGS) AC_SUBST(LUA_LDFLAGS) if test "X$LUA_VERSION" != X; then languages_available="$languages_available lua($LUA_VERSION)" if test $with_lua = yes; then languages="$languages lua" fi fi AC_CHECK_PROG(PHP_CONFIG, php-config, php-config) if test "X$PHP_CONFIG" != X ; then PHP_VERSION=`$PHP_CONFIG --version` PHP_INCLUDES=`$PHP_CONFIG --includes` PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir` if test $PHP_VERSION '>' 5.0.0; then PHP_SWIG="-php5" else PHP_SWIG="-php4" fi # Configure these if PHP_SO_SUFFIX is missing if test "X$PHP_SO_SUFFIX" = "X"; then # OSX/Darwin default is bundle if test `uname` = Darwin; then # FIXME - how to decide between bundle and dylib? php_linking=bundle else php_linking=so fi AC_ARG_WITH(php-linking, [ --with-php-linking=TYPE Set PHP module linking type (so, dylib, bundle)], php_linking="$withval") case $php_linking in so) PHP_LDFLAGS="-shared" PHP_CFLAGS= ;; dylib) PHP_LDFLAGS="-flat_namespace -undefined suppress" PHP_CFLAGS="-fno-common" ;; bundle) PHP_LDFLAGS="-bundle -flat_namespace -undefined suppress" PHP_CFLAGS="-fno-common" ;; *) AC_MSG_ERROR(No such PHP linking type $php_linking) ;; esac PHP_SO_SUFFIX=$php_linking fi AC_MSG_CHECKING(PHP Linking) AC_MSG_RESULT(compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX) else # This allows 'make clean' in the php directory to work when # php isn't available PHP=: PHP_SWIG= PHP_INCLUDES= PHP_EXTENSION_DIR= PHP_CFLAGS= PHP_LDFLAGS= PHP_SO_SUFFIX= fi AC_SUBST(PHP_INCLUDES) AC_SUBST(PHP_EXTENSION_DIR) AC_SUBST(PHP_CFLAGS) AC_SUBST(PHP_LDFLAGS) AC_SUBST(PHP_SO_SUFFIX) AC_SUBST(PHP_SWIG) AC_ARG_WITH(perl, [ --with-perl(=PERL) Enable the Perl interface], with_perl="$withval", with_perl="no") AC_MSG_CHECKING(Enable Perl API) if test "X$with_perl" != Xno ; then if test "X$with_perl" != Xyes; then PERL=$with_perl fi with_perl=yes fi PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}' 2>/dev/null` if test "X$PERL_VERSION" != X; then languages_available="$languages_available perl($PERL_VERSION)" if test $with_perl = yes; then languages="$languages perl" fi fi AC_MSG_RESULT($with_perl) AC_SUBST(PERL_VERSION) AC_ARG_WITH(perl-makemaker-args, [ --with-perl-makemaker-options=ARGS Set args for Perl Makefile.PL invocation (default '')], perl_makemaker_args="$withval", perl_makemaker_args="") PERL_MAKEMAKER_ARGS="$perl_makemaker_args" AC_SUBST(PERL_MAKEMAKER_ARGS) AC_ARG_WITH(python, [ --with-python(=PYTHON) Enable the Python interface], with_python="$withval", with_python="no") # envariable override --with-python-ldflags and --with-libext AC_ARG_VAR(PYTHON_LDFLAGS, [Python shared library link lines]) AC_ARG_VAR(PYTHON_LIBEXT, [Python shared library file extension]) AC_ARG_VAR(PYTHON_INCLUDES, [Install location of python includes]) AC_ARG_VAR(PYTHON_LIB, [Install location of python libraries]) AC_MSG_CHECKING(Enable Python API) if test "X$with_python" != Xno; then if test "X$with_python" != Xyes; then PYTHON=$with_python fi with_python=yes fi dnl need to change quotes to allow square brackets changequote(<<, >>)dnl PYTHON_VERSION=`$PYTHON -c 'import sys; print sys.version[:3]' 2>/dev/null` changequote([, ])dnl if test "X$PYTHON_VERSION" != X; then languages_available="$languages_available python($PYTHON_VERSION)" if test $with_python = yes; then languages="$languages python" fi fi AC_MSG_RESULT($with_python $PYTHON_VERSION) AC_SUBST(PYTHON_VERSION) if test "X$PYTHON" != X; then if test "X$PYTHON_LDFLAGS" = X; then AC_ARG_WITH(python_ldflags, [ --with-python-ldflags(=FLAGS) Set the Python linker flags], with_python_ldflags="$withval", with_python_ldflags="") if test "X$with_python_ldflags" != X; then PYTHON_LDFLAGS=$with_python_ldflags fi fi if test "X$PYTHON_LIBEXT" = X; then AC_ARG_WITH(python-libext, [ --with-python-libext(=EXT) Python shared library file extension (default .so)], with_python_libext="$withval", with_python_libext=".so") if test "X$with_python_libext" != X; then PYTHON_LIBEXT=$with_python_libext fi fi AC_MSG_CHECKING(Python includes) python_prefix=`$PYTHON -c 'import sys; print sys.prefix' 2>/dev/null` python_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` if test "X$PYTHON_INCLUDES" != X; then AC_MSG_RESULT(using user includes: $PYTHON_INCLUDES) else PYTHON_INCLUDES="-I${python_prefix}/include/python${PYTHON_VERSION}" if test "$python_prefix" != "$python_exec_prefix"; then PYTHON_INCLUDES="$PYTHON_INCLUDES -I${python_exec_prefix}/include/python${PYTHON_VERSION}" fi AC_MSG_RESULT($PYTHON_INCLUDES) fi AC_ARG_WITH(python-get-python-lib-args, [ --with-python-get-python-lib-args=ARGS Set args for Python distutils.sysconfig.get_python_lib() function (default '')], get_python_lib_args="$withval", get_python_lib_args="") AC_MSG_CHECKING(Python libs) if test "X$PYTHON_LIB" != X; then AC_MSG_RESULT(using user lib: $PYTHON_LIB) else PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib($get_python_lib_args)"` AC_MSG_RESULT($PYTHON_LIB) fi AC_MSG_CHECKING(Python LDFLAGS) if test "X$PYTHON_LDFLAGS" != X; then AC_MSG_RESULT(using user ldflags: $PYTHON_LDFLAGS) else # Guess PYTHON_LDFLAGS if not passed in if test `uname` = Darwin; then PYTHON_LDFLAGS="-Wl,-F. -Wl,-F. -bundle" if echo $python_prefix | grep Frameworks >/dev/null; then fpath=`echo $python_prefix | sed -e 's,Frameworks/.*$,Frameworks,'` PYTHON_LDFLAGS="$PYTHON_LDFLAGS -F$fpath -framework Python" fi else PYTHON_LDFLAGS="-shared" fi AC_MSG_RESULT(guessed flags: $PYTHON_LDFLAGS) fi AC_MSG_CHECKING(Python shared library file extension) AC_MSG_RESULT($PYTHON_LIBEXT) else # This allows 'make clean' in the python directory to work when # python isn't available PYTHON=: fi AC_ARG_WITH(ruby-arch-install-dir-variable, [ --with-ruby-arch-install-dir-variable=NAME Set Ruby arch install directory config variable (default 'archdir')], ruby_arch_install_dir_variable="$withval", ruby_arch_install_dir_variable="archdir") dnl Setting this overrides ruby-arch-install-dir-variable above AC_ARG_WITH(ruby-arch-install-dir, [ --with-ruby-arch-install-dir=NAME Set Ruby install directory (default 'auto')], ruby_arch_install_dir="$withval", ruby_arch_install_dir="auto") AC_ARG_WITH(ruby-install-dir-variable, [ --with-ruby-install-dir-variable=NAME Set Ruby install directory config variable (default 'rubylibdir')], ruby_install_dir_variable="$withval", ruby_install_dir_variable="rubylibdir") dnl Setting this overrides ruby-install-dir-variable above AC_ARG_WITH(ruby-install-dir, [ --with-ruby-install-dir=NAME Set Ruby install directory (default 'auto')], ruby_install_dir="$withval", ruby_install_dir="auto") RUBY_PACKAGE=redland RUBY_CFLAGS= RUBY_LDFLAGS= RUBY_INCLUDES= RUBY_SO_SUFFIX= RUBY_INSTALLDIR= RUBY_ARCH_INSTALLDIR= if test "X$RUBY" != X; then dnl need to change quotes to allow square brackets changequote(<<, >>)dnl RUBY_ARCHDIR=`$RUBY -rrbconfig -e "print RbConfig::CONFIG['archdir']"` ruby_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_install_dir_variable']"` ruby_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyhdrdir']"` ruby_arch_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['arch']"` ruby_arch_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_arch_install_dir_variable']"` librubyarg_shared=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['LIBRUBYARG_SHARED']"` changequote([, ])dnl AC_MSG_CHECKING(Ruby installation dir) if test "X$ruby_install_dir" != "Xauto"; then RUBY_INSTALLDIR=$ruby_install_dir AC_MSG_RESULT($RUBY_INSTALLDIR from user) else RUBY_INSTALLDIR=$ruby_install_dir_config AC_MSG_RESULT($RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable) fi AC_MSG_CHECKING(Ruby arch installation dir) if test "X$ruby_arch_install_dir" != "Xauto"; then RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir AC_MSG_RESULT($RUBY_ARCH_INSTALLDIR from user) else RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir_config AC_MSG_RESULT($RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable) fi AC_MSG_CHECKING(Ruby headers dir) if test "X$ruby_header_dir_config" != "Xnil" -a "X$ruby_header_dir_config" != "X"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_header_dir_config" if test "X$ruby_arch_config" != "Xnil" -a "X$ruby_arch_config" != "X"; then ruby_arch_hdrdir="$ruby_header_dir_config/$ruby_arch_config" if test -d "$ruby_arch_hdrdir"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_arch_hdrdir" fi fi AC_MSG_RESULT($RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir) else if test -r "$RUBY_ARCHDIR/ruby.h"; then RUBY_INCLUDES="$RUBY_INCLUDES -I$RUBY_ARCHDIR" AC_MSG_RESULT($RUBY_INCLUDES from arch dir) else AC_MSG_RESULT(ruby.h not found - unable to compile Redland ruby bindings) fi fi # OSX/Darwin default is bundle if test `uname` = Darwin; then # FIXME - how to decide between bundle and dylib? ruby_linking=bundle else ruby_linking=so fi AC_ARG_WITH(ruby-linking, [ --with-ruby-linking=TYPE Set Ruby module linking type (so, dylib, bundle)], ruby_linking="$withval") case $ruby_linking in so) RUBY_LDFLAGS="$RUBY_LDFLAGS -shared $librubyarg_shared" ;; dylib) RUBY_LDFLAGS="$RUBY_LDFLAGS -flat_namespace -undefined suppress $librubyarg_shared" RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" ;; bundle) RUBY_LDFLAGS="$RUBY_LDFLAGS -bundle -flat_namespace -undefined suppress $librubyarg_shared" RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" ;; *) AC_MSG_ERROR(No such RUBY linking type $ruby_linking) ;; esac RUBY_SO_SUFFIX=$php_linking AC_MSG_CHECKING(Ruby Linking) AC_MSG_RESULT(compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX) else # This allows 'make clean' in the ruby directory to work when # ruby isn't available RUBY=: fi AC_SUBST(RUBY_PACKAGE) AC_SUBST(RUBY_CFLAGS) AC_SUBST(RUBY_LDFLAGS) AC_SUBST(RUBY_INCLUDES) AC_SUBST(RUBY_SO_SUFFIX) AC_SUBST(RUBY_INSTALLDIR) AC_SUBST(RUBY_ARCH_INSTALLDIR) AC_ARG_WITH(php, [ --with-php(=PHP) Enable the PHP interface], with_php="$withval", with_php="no") AC_MSG_CHECKING(Enable PHP API) if test "X$with_php" != Xno ; then if test "X$with_php" != Xyes; then PHP=$with_php fi with_php=yes fi PHP_VERSION=`php-config --version 2>/dev/null` if test "X$PHP_VERSION" != X; then languages_available="$languages_available php($PHP_VERSION)" if test $with_php = yes; then languages="$languages php" fi fi AC_MSG_RESULT($with_php) AC_SUBST(PHP_VERSION) AC_ARG_WITH(ruby, [ --with-ruby(=RUBY) Enable the Ruby interface], with_ruby="$withval", with_ruby="no") AC_MSG_CHECKING(Enable Ruby API) if test "X$with_ruby" != Xno ; then if test "X$with_ruby" != Xyes; then RUBY=$with_ruby fi with_ruby=yes fi RUBY_VERSION=`$RUBY --version 2>/dev/null | $AWK '{print $2}'` if test "X$RUBY_VERSION" != X; then languages_available="$languages_available ruby($RUBY_VERSION)" if test $with_ruby = yes; then languages="$languages ruby" fi fi AC_MSG_RESULT($with_ruby) AC_SUBST(RUBY_VERSION) AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) release_version=no AC_ARG_ENABLE(release, [ --enable-release Turn on optimizations (for maintainer). ], \ if test "$enableval" = "yes"; then \ release_version=yes fi;) if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then CFLAGS=`echo $CFLAGS | sed s/-O2//` CXXFLAGS=`echo $CXXFLAGS | sed s/-O2//` CPPFLAGS=`echo $CPPFLAGS | sed s/-O2//` fi dnl compiler checks # if using gcc... if test "$ac_cv_c_compiler_gnu" = yes; then STANDARD_CFLAGS= MAINTAINER_CFLAGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" else STANDARD_CFLAGS= MAINTAINER_CFLAGS= fi # Externally linked libraries - appear in redland-config # -Dfoo -Idir LIBRDF_CPPFLAGS=$CPPFLAGS # -Ldir -llib LIBRDF_LDFLAGS="$LDFLAGS $LIBS" # redland is REQUIRED changequote(<<, >>)dnl OUR_REDLAND_VERSION=`echo $PACKAGE_VERSION | sed -e 's,\.[0-9]$,,'` changequote([, ])dnl OUR_REDLAND_VERSION_DEC=`echo $OUR_REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` REDLAND_VERSION= AC_MSG_CHECKING(for redland) if $PKG_CONFIG --exists redland; then REDLAND_CONFIG="$PKG_CONFIG redland" REDLAND_VERSION=`$PKG_CONFIG redland --modversion` REDLAND_VERSION_DEC=`echo $REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` AC_MSG_RESULT($REDLAND_VERSION) else AC_MSG_RESULT(not found) AC_MSG_ERROR(Redland is not installed - see http://librdf.org/ to get a version $OUR_REDLAND_VERSION or newer) fi if $PKG_CONFIG --atleast-version=$MIN_REDLAND_VERSION redland; then : else AC_MSG_ERROR(Redland version $REDLAND_VERSION found. $MIN_REDLAND_VERSION or newer is required - see http://librdf.org/) fi REDLAND_RUN= AC_SUBST(REDLAND_CONFIG) AC_SUBST(REDLAND_VERSION) AC_SUBST(REDLAND_RUN) REDLAND_SWIG=`$PKG_CONFIG redland --variable=swig` AC_SUBST(REDLAND_SWIG) AC_MSG_CHECKING(if redland was built with raptor2) REDLAND_HAVE_RAPTOR2_API=`$PKG_CONFIG redland --variable=have_raptor2_api 2>/dev/null` if test "X$REDLAND_HAVE_RAPTOR2_API" = X1; then AC_DEFINE(REDLAND_HAVE_RAPTOR2_API, 1, [Redland uses Raptor2 API]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) REDLAND_HAVE_RAPTOR2_API=0 AC_MSG_ERROR(Redland bindings requires a Redland built with Raptor 2 APIs. see http://librdf.org/) fi AC_SUBST(REDLAND_HAVE_RAPTOR2_API) LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG redland --cflags`" LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS `$PKG_CONFIG redland --libs`" dnl needed for some bindings such as python to link raptor locator functions RAPTOR_LDFLAGS=`$PKG_CONFIG raptor2 --libs` RASQAL_LDFLAGS=`$PKG_CONFIG rasqal --libs` if test $REDLAND_VERSION_DEC -lt 10014; then # These should have been added to redland.pc in 1.0.13 LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG rasqal --cflags`" LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS $RASQAL_LDFLAGS" fi dnl Checks for building sub-packages in sub directories SD="$languages" AC_SUBST(SD) # Make final changes to cflags MEM= MEM_LIBS= STANDARD_CFLAGS="$STANDARD_CFLAGS $CFLAGS" if test "$USE_MAINTAINER_MODE" = yes; then CFLAGS="$MAINTAINER_CFLAGS $CFLAGS" fi LIBS= CPPFLAGS= LDFLAGS= AC_SUBST(LIBRDF_CPPFLAGS) AC_SUBST(LIBRDF_LDFLAGS) AC_SUBST(RAPTOR_LDFLAGS) AC_SUBST(RASQAL_LDFLAGS) AC_SUBST(MEM) AC_SUBST(MEM_LIBS) AC_SUBST(ECHO) AC_SUBST(STANDARD_CFLAGS) abs_top_srcdir=`cd $srcdir; pwd` AC_SUBST(abs_top_srcdir) abs_top_builddir=`pwd` AC_SUBST(abs_top_builddir) AC_CONFIG_FILES([Makefile bindings.rdf docs/Makefile perl/Makefile perl/t/Makefile perl/lib/Makefile perl/lib/RDF/Makefile perl/lib/RDF/Redland/Makefile lua/Makefile php/Makefile python/Makefile python/test/Makefile ruby/Makefile ruby/test/Makefile ruby/lib/Makefile ruby/lib/rdf/Makefile ruby/lib/rdf/redland/Makefile ruby/lib/rdf/redland/schemas/Makefile data/Makefile ]) AC_CONFIG_FILES([redland-bindings.spec]) AC_CONFIG_FILES([perl/lib/RDF/Redland.pm]) AC_OUTPUT AC_MSG_RESULT([ Redland build summary: Redland: $REDLAND_VERSION Language APIs built: $languages ]) redland-bindings-1.0.16.1/LICENSE.html0000644000175000017500000001246312074643533014050 00000000000000 Redland librdf Language Bindings - License

Redland librdf Language Bindings - License

This package is Free Software available under any one of the specified licenses below except for the contents of python/RDF.py which is also licensed under the BSD License without advertising.

All the licenses below are alternatives and if you select one license, that one alone applies.

1. The GNU Lesser General Public License (LGPL) Version 2.1 or any newer version

See http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html or COPYING.LIB for the full license text.


Copyright (C) 2000-2013 David Beckett
Copyright (C) 2000-2005 University of Bristol. All Rights Reserved.

This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License Version 2.1 as published by the Free Software Foundation or any newer version.

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License Version 2.1 for more details.

You should have reaceived a copy of the GNU Lesser General Public License Version 2.1 along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


2. GNU General Public License (GPL) V2 or any newer version

Under Term 3 of the LGPL Version 2.1, you may choose to license the entire package under the GPL. If that option is chosen, then this package is licensed under the terms of the GPL Version 2 or alternatively, any newer version of the GPL. See COPYING for the full GPL license text.

3. The Apache License V2.0 or any newer version

See http://www.apache.org/licenses/LICENSE-2.0 or LICENSE-2.0.txt for the full ASL 2.0 license text.

Copyright (C) 2000-2013 David Beckett
Copyright (C) 2000-2005 University of Bristol.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

The NOTICE file contains the notices that must be applied according to section 4(d) of the Apache License, Version 2.0.

4. BSD License without advertising (aka MIT license)

This license alternative applies to the file python/RDF.py only.

See http://www.opensource.org/licenses/mit-license.html.

Copyright (C) 2000-2013 David Beckett
Copyright (C) 2000-2005 University of Bristol.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Copyright (C) 2000-2013 Dave Beckett
Copyright (C) 2000-2005 University of Bristol

redland-bindings-1.0.16.1/autogen.sh0000755000175000017500000002441112020200114014044 00000000000000#!/bin/sh # # autogen.sh - Generates initial makefiles from a pristine source tree # # USAGE: # autogen.sh [configure options] # # Configuration is affected by environment variables as follows: # # DRYRUN # If set to any value it will do no configuring but will emit the # programs that would be run. # e.g. DRYRUN=1 ./autogen.sh # # NOCONFIGURE # If set to any value it will generate all files but not invoke the # generated configure script. # e.g. NOCONFIGURE=1 ./autogen.sh # # AUTOMAKE ACLOCAL AUTOCONF AUTOHEADER LIBTOOLIZE GTKDOCIZE # If set (named after program) then this overrides any searching for # the programs on the current PATH. # e.g. AUTOMAKE=automake-1.7 ACLOCAL=aclocal-1.7 ./autogen.sh # # CONFIG_DIR (default ../config) # The directory where fresh GNU config.guess and config.sub can be # found for automatic copying in-place. # # PATH # Where the programs are searched for # # SRCDIR (default .) # Source directory # # This script is based on similar scripts used in various tools # commonly made available via CVS and used with GNU automake. # Try 'locate autogen.sh' on your system and see what you get. # # This script is in the public domain # # Directory for the sources SRCDIR=${SRCDIR-.} # Where the GNU config.sub, config.guess might be found CONFIG_DIR=${CONFIG_DIR-../config} # GIT sub modules file GITMODULES='.gitmodules' # The programs required for configuring which will be searched for # in the current PATH. # Set an envariable of the same name in uppercase, to override scan # programs="automake aclocal autoconf autoheader libtoolize" confs=`find . -name configure.ac -print | grep -v /releases/` gtkdoc_args= if grep "^GTK_DOC_CHECK" $confs >/dev/null; then programs="$programs gtkdocize" gtkdoc_args="--enable-gtk-doc" fi if grep "^AC_CHECK_PROGS.SWIG" $confs >/dev/null; then programs="$programs swig" fi ltdl_args= if grep "^AC_LIBLTDL_" $confs >/dev/null; then ltdl_args="--ltdl" fi silent_args= if grep "^AM_SILENT_RULES" $confs >/dev/null; then silent_args="--enable-silent-rules" fi # Some dependencies for autotools: # automake 1.13 requires autoconf 2.65 # automake 1.12 requires autoconf 2.62 # automake 1.11 requires autoconf 2.62 (needed for AM_SILENT_RULES) automake_min_vers=011102 aclocal_min_vers=$automake_min_vers autoconf_min_vers=026200 autoheader_min_vers=$autoconf_min_vers libtoolize_min_vers=020200 gtkdocize_min_vers=010300 swig_min_vers=010324 # Default program arguments automake_args="--gnu --add-missing --force --copy -Wall" aclocal_args="-Wall" autoconf_args="-Wall" libtoolize_args="--force --copy --automake $ltdl_args" gtkdocize_args="--copy" # --enable-gtk-doc does no harm if it's not available configure_args="--enable-maintainer-mode $gtkdoc_args $silent_args" # You should not need to edit below here ###################################################################### # number comparisons may need a C locale LANG=C LC_NUMERIC=C program=`basename $0` if test "X$DRYRUN" != X; then DRYRUN=echo fi cat > autogen-get-version.pl <&1 |") || next; while() { chomp; next if @vnums; # drain pipe if we got a vnums next unless /^\$mname/i; my(\$v)=/(\S+)\$/i; \$v =~ s/-.*\$//; @vnums=grep { defined \$_ && !/^\s*\$/} map { s/\D//g; \$_; } split(/\./, \$v); } close(PIPE); last if @vnums; } @vnums=(@vnums, 0, 0, 0)[0..2]; \$vn=join('', map { sprintf('%02d', \$_) } @vnums); print "\$vn\n"; exit 0; EOF autogen_get_version="`pwd`/autogen-get-version.pl" trap "rm -f $autogen_get_version" 0 1 9 15 update_prog_version() { dir=$1 prog=$2 # If there exists an envariable PROG in uppercase, use that and do not scan ucprog=`echo $prog | tr 'a-z' 'A-Z' ` eval env=\$${ucprog} if test X$env != X; then prog_name=$env prog_vers=`perl $autogen_get_version $prog_name $prog` if test X$prog_vers = X; then prog_vers=0 fi eval ${prog}_name=${prog_name} eval ${prog}_vers=${prog_vers} eval ${prog}_dir=environment return fi eval prog_name=\$${prog}_name eval prog_vers=\$${prog}_vers eval prog_dir=\$${prog}_dir if test X$prog_vers = X; then prog_vers=0 fi save_PATH="$PATH" cd "$dir" PATH=".:$PATH" nameglob="$prog*" if [ -x /usr/bin/uname ]; then if [ `/usr/bin/uname` = 'Darwin' -a $prog = 'libtoolize' ] ; then nameglob="g$nameglob" fi fi names=`ls $nameglob 2>/dev/null` if [ "X$names" != "X" ]; then for name in $names; do vers=`perl $autogen_get_version $dir/$name $prog` if [ "X$vers" = "X" ]; then continue fi if expr $vers '>' $prog_vers >/dev/null; then prog_name=$name prog_vers=$vers prog_dir="$dir" fi done fi eval ${prog}_name=${prog_name} eval ${prog}_vers=${prog_vers} eval ${prog}_dir=${prog_dir} PATH="$save_PATH" } check_prog_version() { prog=$1 eval min=\$${prog}_min_vers eval prog_name=\$${prog}_name eval prog_vers=\$${prog}_vers eval prog_dir=\$${prog}_dir echo "$program: $prog program '$prog_name' V $prog_vers (min $min) in $prog_dir" 1>&2 rc=1 if test $prog_vers != 0; then if expr $prog_vers '<' $min >/dev/null; then echo "$program: ERROR: \`$prog' version $prog_vers in $prog_dir is too old." echo " (version $min or newer is required)" rc=0 else # Things are ok, so set the ${prog} name eval ${prog}=${prog_name} fi else echo "$program: ERROR: You must have \`$prog' installed to compile this package." echo " (version $min or newer is required)" rc=0 fi return $rc } # Find newest version of programs in the current PATH save_args=${1+"$*"} save_ifs="$IFS" IFS=":" set - $PATH IFS="$save_ifs" echo "$program: Looking for programs: $programs" here=`pwd` while [ $# -ne 0 ] ; do dir=$1 shift if [ ! -d "$dir" ]; then continue fi for prog in $programs; do update_prog_version "$dir" $prog done done cd $here set - $save_args # END Find programs # Check the versions meet the requirements for prog in $programs; do if check_prog_version $prog; then exit 1 fi done echo "$program: Dependencies satisfied" if test -d $SRCDIR/libltdl; then touch $SRCDIR/libltdl/NO-AUTO-GEN fi config_dir= if test -d $CONFIG_DIR; then config_dir=`cd $CONFIG_DIR; pwd` fi # Initialise and/or update GIT submodules if test -f $GITMODULES ; then echo " " modules=`sed -n -e 's/^.*path = \(.*\)/\1/p' $GITMODULES` for module in $modules; do if test `ls -1 $module | wc -l` -eq 0; then echo "$program: Initializing git submodule in $module" $DRYRUN git submodule init $module fi done echo "$program: Updating git submodules: $modules" $DRYRUN git submodule update fi for coin in `find $SRCDIR -name configure.ac -print | grep -v /releases/` do status=0 dir=`dirname $coin` if test -f "$dir/NO-AUTO-GEN"; then echo "$program: Skipping $dir -- flagged as no auto-generation" else echo " " echo $program: Processing directory $dir ( cd "$dir" # Ensure that these are created by the versions on this system # (indirectly via automake) $DRYRUN rm -f ltconfig ltmain.sh libtool stamp-h* # Made by automake $DRYRUN rm -f missing depcomp # automake junk $DRYRUN rm -rf autom4te*.cache config_macro_dir=`sed -ne 's/^AC_CONFIG_MACRO_DIR(\([^)]*\).*/\1/p' configure.ac` if test "X$config_macro_dir" = X; then config_macro_dir=. else aclocal_args="$aclocal_args -I $config_macro_dir " fi config_aux_dir=`sed -ne 's/^AC_CONFIG_AUX_DIR(\([^)]*\).*/\1/p' configure.ac` if test "X$config_aux_dir" = X; then config_aux_dir=. fi if test "X$config_dir" != X; then echo "$program: Updating config.guess and config.sub" for file in config.guess config.sub; do cfile=$config_dir/$file xfile=$config_aux_dir/$file if test -f $cfile; then $DRYRUN rm -f $xfile $DRYRUN cp -p $cfile $xfile fi done fi echo "$program: Running $libtoolize $libtoolize_args" $DRYRUN rm -f ltmain.sh libtool eval $DRYRUN $libtoolize $libtoolize_args status=$? if test $status != 0; then break fi if grep "^GTK_DOC_CHECK" configure.ac >/dev/null; then # gtkdocize junk $DRYRUN rm -rf gtk-doc.make echo "$program: Running $gtkdocize $gtkdocize_args" $DRYRUN $gtkdocize $gtkdocize_args status=$? if test $status != 0; then break fi fi if test ! -f NEWS; then echo "$program: Creating empty NEWS file to allow configure to work" $DRYRUN touch -t 200001010000 NEWS fi echo "$program: Running $aclocal $aclocal_args" $DRYRUN $aclocal $aclocal_args if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then echo "$program: Running $autoheader" $DRYRUN $autoheader status=$? if test $status != 0; then break fi fi echo "$program: Running $automake $automake_args" $DRYRUN $automake $automake_args status=$? if test $status != 0; then break fi echo "$program: Running $autoconf $autoconf_args" $DRYRUN $autoconf $autoconf_args status=$? if test $status != 0; then break fi ) fi if test $status != 0; then echo "$program: FAILED to configure $dir" exit $status fi done rm -f config.cache AUTOMAKE=$automake AUTOCONF=$autoconf ACLOCAL=$aclocal export AUTOMAKE AUTOCONF ACLOCAL if test "X$NOCONFIGURE" = X; then echo " " if test -z "$*"; then echo "$program: WARNING: Running \`configure' with no arguments." echo "If you wish to pass any to it, please specify them on the" echo "\`$program' command line." fi echo "$program: Running ./configure $configure_args $@" if test "X$DRYRUN" = X; then $DRYRUN ./configure $configure_args "$@" \ && echo "$program: Now type \`make' to compile this package" || exit 1 else $DRYRUN ./configure $configure_args "$@" fi fi exit $status redland-bindings-1.0.16.1/Makefile.PL0000644000175000017500000001411611317772156014052 00000000000000# # Fake MakeMaker Makefile.PL - top level Makefile.PL for Redland # # $Id$ # # Copyright (C) 2001-2005 David Beckett http://www.dajobe.org/ # Copyright (C) 2001-2005 University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # require 5.6.0; use File::Basename; use Config; my $program=basename $0; # Inspired by the way that ePerl does its configuration of perl. # See http://www.engelschall.com/sw/eperl/ # # There are many makefiles :) and this is their story # Makefile.am Makefile.in - GNU automake, autoconf source files # which generate Makefile after ./configure is run # Makefile.PL - this file runs ./configure and renames # the autoconfigure-made top level makefile Makefile to # Makefile.stand and then uses it to do the top level build of # Redland. # Makefile.stand - autoconfigure-made makefile, renamed as described above # Makefile - created by this script. A skeleton makefile that # calls either the GNU autoconfigure-made top-level # Makefile.stand or one of the makefiles in the perl directory. # OR if this perl script isn't run, remains the top-level # autoconfigure-made generated makefile built from # Makefile.am/Makefile.in after substitution. # perl/Makefile - autoconfigure made makefile for building the Redland # perl interface inside Redland. Calls perl/Makefile.PL to create # perl/Makefile.perl via the usual perl MakeMaker. # perl/Makefile.perl - makefile built by perl/Makefile.PL using MakeMaker # perl/Makefile.PL - MakeMaker source file for Redland perl interface # # All clear now? # $TOP_SRCDIR=$ENV{TOP_SRCDIR} || '.'; $PACKAGE=$ENV{PACKAGE} || "Redland"; my $version=$ENV{VERSION}; if(!$version) { my $conf_in_file="$TOP_SRCDIR/configure.ac"; open(CONF, $conf_in_file) or die "Cannot open $conf_in_file for version - $!\n"; while() { if(/^AC_INIT\(\[[^]]+\],\s*([^,]+)/) { $version=$1; } } close(CONF); die "Cannot find AC_INIT in $conf_in_file for version\n" unless $version; } my $perl_makefile="Makefile"; my $standalone_makefile="Makefile.stand"; unlink "$TOP_SRCDIR/$perl_makefile"; unlink "$TOP_SRCDIR/$standalone_makefile"; my $perl = $Config{perlpath}; my $prefix = $Config{prefix}; my $cc = $Config{cc}; my $ccarg = ""; if ($args =~ m|CC=(\S+)|) { $cc = $1; $ccarg = "CC=$1 "; } open(MK, ">$TOP_SRCDIR/$perl_makefile") or die "Cannot create $TOP_SRCDIR/$perl_makefile - $!"; print MK <<"EOM"; # Fake MakeMaker-compatible generated Makefile # Generated automatically by $program # DO NOT EDIT THIS FILE - changes will be lost # To rebuild this makefile, run $perl $program with no arguments # DISTNAME = $PACKAGE VERSION = $version SHELL = /bin/sh NOOP = \$(SHELL) -c true RM_RF = rm -rf DISTVNAME = \$(DISTNAME)-\$(VERSION) TAR = tar TARFLAGS = cvf ZIP = zip ZIPFLAGS = -r COMPRESS = gzip --best SUFFIX = .gz SHAR = shar PREOP = @\$(NOOP) POSTOP = @\$(NOOP) TO_UNIX = @\$(NOOP) CI = ci -u DIST_CP = best DIST_DEFAULT = tardist # MakeMaker target all: config # MakeMaker target config: \@if [ ! -f ${standalone_makefile} ]; then \\ cp ${perl_makefile} Makefile.perl; \\ echo "${ccarg}PERL=$perl ./configure --prefix=$prefix"; \\ ${ccarg}PERL=$perl ./configure --prefix=$prefix; \\ cp Makefile ${standalone_makefile}; \\ cp Makefile.perl ${perl_makefile}; \\ rm Makefile.perl; \\ echo \$(MAKE) -f ${standalone_makefile}; \\ \$(MAKE) -f ${standalone_makefile}; \\ fi \@if [ ! -f perl/Makefile.perl ]; then \\ echo "cd perl"; \\ cd perl; \\ echo "\$(MAKE) \$(MFLAGS) Makefile.perl"; \\ \$(MAKE) \$(MFLAGS) Makefile.perl; \\ echo "\$(MAKE) \$(MFLAGS) -f Makefile.perl all"; \\ \$(MAKE) \$(MFLAGS) -f Makefile.perl all; \\ fi # MakeMaker targets test: config cd perl && \$(MAKE) \$(MFLAGS) -f Makefile.perl \$@ install: config cd perl && \$(MAKE) \$(MFLAGS) -f Makefile.perl \$@ # MakeMaker target clean: \@if [ -f ${standalone_makefile} ]; then \\ echo \$(MAKE) -k \$(MFLAGS) -f ${standalone_makefile} \$@; \\ (\$(MAKE) -k \$(MFLAGS) -f ${standalone_makefile} \$@; exit 0; ); \\ fi \@if [ -f perl/Makefile.perl ]; then \\ echo "cd perl"; \\ cd perl; \\ echo "\$(MAKE) \$(MFLAGS) \$@\-perl"; \\ \$(MAKE) \$(MFLAGS) \$\@-perl; \\ fi # MakeMaker/GNU target distclean: \$(MAKE) \$(MFLAGS) -f ${standalone_makefile} distclean cd perl && \$(MAKE) \$(MFLAGS) realclean-perl -rm -f ${standalone_makefile} -rm -f ${perl_makefile} # Rebuild this generated makefile when the source file changes Makefile: Makefile.PL ${perl} Makefile.PL # MakeMaker[dist]/GNU targets # Pass on some targets to GNU autoconfigured makefile in order # so that 'make [all]' and 'make dist' work all-recursive all-am dist dist-hook: config \$(MAKE) \$(MFLAGS) -f ${standalone_makefile} \$@ # MakeMaker targets distcheck: ${perl} -MExtUtils::Manifest=fullcheck -e fullcheck skipcheck: ${perl} -MExtUtils::Manifest=skipcheck -e skipcheck manifest: MANIFEST # MakeMaker dist_dir section: perl-distdir: MANIFEST rm -rf \$(DISTVNAME) $perl -MExtUtils::Manifest=manicopy,maniread \\ -e "manicopy(maniread(),'\$(DISTVNAME)', '\$(DIST_CP)');" tardist : \$(DISTVNAME).tar\$(SUFFIX) zipdist : \$(DISTVNAME).zip \$(DISTVNAME).tar\$(SUFFIX) : perl-distdir \$(PREOP) \$(TO_UNIX) \$(TAR) \$(TARFLAGS) \$(DISTVNAME).tar \$(DISTVNAME) \$(RM_RF) \$(DISTVNAME) \$(COMPRESS) \$(DISTVNAME).tar \$(POSTOP) \$(DISTVNAME).zip : perl-distdir \$(PREOP) \$(ZIP) \$(ZIPFLAGS) \$(DISTVNAME).zip \$(DISTVNAME) \$(RM_RF) \$(DISTVNAME) \$(POSTOP) EOM close(MK) redland-bindings-1.0.16.1/Makefile.am0000644000175000017500000000334412074643533014132 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - top level automake file for Redland Bindings # # Copyright (C) 2000-2007, David Beckett http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # # Subdirectories to build/install etc. SUBDIRS=@SD@ data # Subdirectories to use for distribution DIST_SUBDIRS=data docs \ lua perl php python ruby EXTRA_DIST=\ ChangeLog.1 ChangeLog.2 \ ChangeLog.3 ChangeLog.4 ChangeLog.5 ChangeLog.6 ChangeLog.7 \ ChangeLog.8 ChangeLog.9 ChangeLog.10 ChangeLog.11 \ README LICENSE.txt TODO \ README.html NEWS.html LICENSE.html TODO.html \ RELEASE.html INSTALL.html \ LICENSE-2.0.txt NOTICE \ bindings.rdf.in \ autogen.sh \ Makefile.PL \ redland-bindings.spec redland-bindings.spec.in if MAINTAINER_MODE # Create some text files from HTML sources LYNX=lynx HTML_TO_TEXT=TERM=vt100 $(LYNX) -dump $< | sed -e 's,file://localhost.*bindings/,,' > $@ SUFFIXES = .html .txt .html.txt: $(HTML_TO_TEXT) README: README.html $(HTML_TO_TEXT) NEWS: NEWS.html $(HTML_TO_TEXT) TODO: TODO.html $(HTML_TO_TEXT) endif @SET_MAKE@ redland-bindings-1.0.16.1/Makefile.in0000644000175000017500000006635012074643537014155 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - top level automake file for Redland Bindings # # Copyright (C) 2000-2007, David Beckett http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol, UK http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/bindings.rdf.in \ $(srcdir)/bindings_config.h.in \ $(srcdir)/redland-bindings.spec.in $(top_srcdir)/configure \ AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS TODO \ build/compile build/config.guess build/config.sub \ build/install-sh build/ltmain.sh build/missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = bindings_config.h CONFIG_CLEAN_FILES = bindings.rdf redland-bindings.spec CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Subdirectories to build/install etc. SUBDIRS = @SD@ data # Subdirectories to use for distribution DIST_SUBDIRS = data docs \ lua perl php python ruby EXTRA_DIST = \ ChangeLog.1 ChangeLog.2 \ ChangeLog.3 ChangeLog.4 ChangeLog.5 ChangeLog.6 ChangeLog.7 \ ChangeLog.8 ChangeLog.9 ChangeLog.10 ChangeLog.11 \ README LICENSE.txt TODO \ README.html NEWS.html LICENSE.html TODO.html \ RELEASE.html INSTALL.html \ LICENSE-2.0.txt NOTICE \ bindings.rdf.in \ autogen.sh \ Makefile.PL \ redland-bindings.spec redland-bindings.spec.in # Create some text files from HTML sources @MAINTAINER_MODE_TRUE@LYNX = lynx @MAINTAINER_MODE_TRUE@HTML_TO_TEXT = TERM=vt100 $(LYNX) -dump $< | sed -e 's,file://localhost.*bindings/,,' > $@ @MAINTAINER_MODE_TRUE@SUFFIXES = .html .txt all: bindings_config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .html .txt am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): bindings_config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/bindings_config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status bindings_config.h $(srcdir)/bindings_config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f bindings_config.h stamp-h1 bindings.rdf: $(top_builddir)/config.status $(srcdir)/bindings.rdf.in cd $(top_builddir) && $(SHELL) ./config.status $@ redland-bindings.spec: $(top_builddir)/config.status $(srcdir)/redland-bindings.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) bindings_config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) bindings_config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) bindings_config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) bindings_config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @case `sed 15q $(srcdir)/NEWS` in \ *"$(VERSION)"*) : ;; \ *) \ echo "NEWS not updated; not releasing" 1>&2; \ exit 1;; \ esac $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod u+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile bindings_config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am @MAINTAINER_MODE_TRUE@.html.txt: @MAINTAINER_MODE_TRUE@ $(HTML_TO_TEXT) @MAINTAINER_MODE_TRUE@README: README.html @MAINTAINER_MODE_TRUE@ $(HTML_TO_TEXT) @MAINTAINER_MODE_TRUE@NEWS: NEWS.html @MAINTAINER_MODE_TRUE@ $(HTML_TO_TEXT) @MAINTAINER_MODE_TRUE@TODO: TODO.html @MAINTAINER_MODE_TRUE@ $(HTML_TO_TEXT) @SET_MAKE@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/LICENSE.txt0000644000175000017500000001163212074643543013721 00000000000000 Redland librdf Language Bindings - License This package is Free Software available under any one of the specified licenses below except for the contents of python/RDF.py which is also licensed under the BSD License without advertising. All the licenses below are alternatives and if you select one license, that one alone applies. 1. The GNU Lesser General Public License (LGPL) Version 2.1 or any newer version See [1]http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html or [2]COPYING.LIB for the full license text. __________________________________________________________________ Copyright (C) 2000-2013 [3]David Beckett Copyright (C) 2000-2005 [4]University of Bristol. All Rights Reserved. This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License Version 2.1 as published by the Free Software Foundation or any newer version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License Version 2.1 for more details. You should have reaceived a copy of the GNU Lesser General Public License Version 2.1 along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA __________________________________________________________________ 2. GNU General Public License (GPL) V2 or any newer version Under Term 3 of the LGPL Version 2.1, you may choose to license the entire package under the GPL. If that option is chosen, then this package is licensed under the terms of the GPL Version 2 or alternatively, any newer version of the GPL. See [5]COPYING for the full GPL license text. 3. The Apache License V2.0 or any newer version See [6]http://www.apache.org/licenses/LICENSE-2.0 or [7]LICENSE-2.0.txt for the full ASL 2.0 license text. Copyright (C) 2000-2013 [8]David Beckett Copyright (C) 2000-2005 [9]University of Bristol. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: [10]http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. The [11]NOTICE file contains the notices that must be applied according to section 4(d) of the Apache License, Version 2.0. 4. BSD License without advertising (aka MIT license) This license alternative applies to the file python/RDF.py only. See [12]http://www.opensource.org/licenses/mit-license.html. Copyright (C) 2000-2013 [13]David Beckett Copyright (C) 2000-2005 [14]University of Bristol. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. __________________________________________________________________ Copyright (C) 2000-2013 [15]Dave Beckett Copyright (C) 2000-2005 [16]University of Bristol References 1. http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html 2. COPYING.LIB 3. http://www.dajobe.org/ 4. http://www.bristol.ac.uk/ 5. COPYING 6. http://www.apache.org/licenses/LICENSE-2.0 7. LICENSE-2.0.txt 8. http://www.dajobe.org/ 9. http://www.bristol.ac.uk/ 10. http://www.apache.org/licenses/LICENSE-2.0 11. NOTICE 12. http://www.opensource.org/licenses/mit-license.html 13. http://www.dajobe.org/ 14. http://www.bristol.ac.uk/ 15. http://www.dajobe.org/ 16. http://www.bristol.ac.uk/ redland-bindings-1.0.16.1/ChangeLog.10000644000175000017500000003335410406201312013771 000000000000002000-12-29 Dave Beckett * docs/Makefile.am: Extra 'a' in api-big.html rule 2000-12-01 Dave Beckett * perl/Makefile.am: Added dc.rdf test file to dist 2000-11-30 Dave Beckett * perl/Makefile.am: Added example.pl to the release 2000-11-27 Dave Beckett * Makefile.am: Added rdf_utf8.c, rdf_utf8.h 2000-11-21 Dave Beckett * perl/rss-dump.pl: Show namespaced-properties off channel. * perl/lib/RDF/Redland/RSS.pm (items): Return channel items in correct order (from rdf:_ properties) 2000-11-17 Dave Beckett * perl/rss-dump.pl: Updated to dump all & particular namespaced properties off nodes. * perl/lib/RDF/Redland/Node.pm: Defined node type constants for use with type method. * perl/lib/RDF/Redland/RSS.pm (property): Added, returns value of a property off a node. (properties): Added, returns all properties off a node. (properties_with_ns_prefix): Added, returns NS-prefixed properties off a node. 2000-11-15 Dave Beckett * perl/lib/RDF/Redland/RSS.pm: Removed accessors since RDF::RSS is a RDF::Model and can use methods from there. Renamed method RDF::RSS::Node method url to image_url to less confusion with uri method on RDF::Node 2000-11-14 Dave Beckett * perl/lib/RDF/Redland/RSS.pm: RDF::RSS ISA RDF::Model now - makes code tidied too. 2000-11-12 Dave Beckett * perl/Makefile.am: How did python references get in here? 2000-11-08 Dave Beckett * perl/MANIFEST: Added RDF::RSS and rss-dump.pl * perl/rss-dump.pl: RSS 1.0 test program for RDF::RSS * perl/lib/RDF/Redland/URI.pm (_new_from_object): Created. * perl/lib/RDF/Redland/Node.pm (new_from_uri_string): Die if no URI is given. (uri): Return an RDF::URI object * perl/lib/RDF/Redland/Model.pm (find_statements,get_arcs,get_sources,get_targets): Retrieve all results if evaluated in a Perl list context. Makes this common thing easy to do. In scalar context return a Rdf::Stream of RDF::Statement-s or RDF::Iterator of RDF::Node-s as before. * perl/lib/RDF/Redland/Makefile.am: Added RSS.pm * perl/lib/RDF/Redland/Iterator.pm (new): Take a list of creators for the nodes that were used to create the iteration. * perl/lib/RDF/Redland/RSS.pm: Redland Perl RSS 1.0 module 2000-11-05 Dave Beckett * docs/Makefile.am: Worked out a way to make 1 big HTML API document 2000-11-04 Dave Beckett * docs/Makefile.am: Reordered doc sections Added documentation for perl, python interfaces. * Makefile.am: Added SWIG 1.3a5 common perl/python interface file * python/RDF.py: Updates for SWIG 1.3a5 * python/Makefile.am, perl/MANIFEST, perl/Makefile.PL, perl/Makefile.am: Updates for SWIG 1.3a5 and common perl/python interface file * perl/lib/RDF/Redland/Statement.pm (new,new_from_statement,_new_from_object,new_from_nodes): Return undef on failure to create an librdf_statement * perl/lib/RDF/Redland/Node.pm (new,new_from_uri_string,new_from_uri,new_from_literal,new_from_node,_new_from_object): Return undef on failure to create an librdf_node * perl/lib/RDF/Redland/URI.pm (new,new_from_uri): Return undef on failure to create an librdf_uri * perl/lib/RDF/Redland/Parser.pm (feature): Use $uri consistently. * perl/example.pl: Use repat as test parser since it's always included. 2000-11-03 Dave Beckett * Makefile.am: Don't compile java classes here for the moment 2000-11-02 Dave Beckett * python/Makefile.am: Remove obsolete fake lib stuff - not compiling separate C module * python/Makefile.am: Need to use includes in top srcdir * python/test/Makefile.am: Added to make autoconf-able * perl/example.pl: Updated for new parser constructor api * perl/Makefile.am: Pass installation prefix on to perl commands * perl/lib/RDF/Redland/Parser.pm (new): Updated for parser constructor args (feature): Added to get/set parser features * python/test/test.py, python/Makefile.am, python/RDF.py, python/README: Python interface 2000-10-26 Dave Beckett * perl/example.pl: Updated to have parsing too. Tidied message output * perl/Makefile.PL, perl/Makefile.am: Zap redland_perl.c - can do in perl land. * perl/lib/RDF/Redland/Iterator.pm (next): Document why the returned librdf_node-s are wrapped this way. * perl/lib/RDF/Redland/Model.pm (serialise): Return stream of librdf_statement-s that should freed (find_statements): Return stream of librdf_statement-s that should NOT be freed * perl/lib/RDF/Redland/Parser.pm (parse_as_stream,parse_into_model): Update for base uris * perl/lib/RDF/Redland/Statement.pm (new_from_nodes): Use undef for C-land NULLs. (_new_from_object): Allow control over freedom of wrapped librdf_statement object. (subject,predicate,object): Fixed using these to set a statment part which didn't work at all. * perl/lib/RDF/Redland/Stream.pm (new,next): Track if streamed librdf_statement objects should be freed as you go or left (shared, handled by librdf_stream destruction) * perl/lib/RDF/Redland/Node.pm (new_from_node): Use internal object reference not RDF:::Node one to get copy of node (_new_from_object): Don't free librdf_nodes attached this way, at present they are shared. (DESTROY): Support for freeing protection 2000-10-24 Dave Beckett * perl/lib/RDF/Redland.pm: Call librdf_init_world with "" for empty char* field, swig is happier that way. * perl/lib/RDF/Redland/Parser.pm (new): Return undef when object creation fails (parse_into_model): Use correct internal reference * perl/lib/RDF/Redland/Stream.pm (end, next): Return empty stream when stream object undef 2000-10-20 Dave Beckett * Makefile.am: Added rdf_parser_repat.c to distribution 2000-10-13 Dave Beckett * Makefile.am: Added concepts, removed contexts 2000-10-10 Dave Beckett * perl/example.pl: Exercise the methods for retrieving statement parts and the as_string methods * perl/lib/RDF/Redland/Statement.pm (object): Extra return removed, oops. 2000-10-06 Dave Beckett * perl/lib/RDF/Redland/Statement.pm (subject,predicate,object): Return new RDF::Node objects 2000-10-02 Dave Beckett * perl/Makefile.am: make clean now tidies everything generated except for swig-derived output 2000-10-01 Dave Beckett * perl/Makefile.PL: Add all remaining libs to linkin from output of redland --libs * perl/lib/RDF/Redland/Statement.pm: Add flag to avoid freeing a 'wrapped' object created and owned by librdf * perl/lib/RDF/Redland/Model.pm: When creating streams or iterators, return a reference to this model so that the objects can keep a reference to this object preventing premature destruction before this object. * perl/lib/RDF/Redland/URI.pm (as_string): Use librdf_uri_to_string to prevent sharing a char* pointer. * perl/lib/RDF/Redland/Stream.pm: Track the object that created the RDF::Stream object so we don't get freed before it does. * perl/lib/RDF/Redland/Iterator.pm: Track the object that created the RDF::Iterator object so we don't get freed before it does. 2000-09-29 Dave Beckett * perl/example.pl: Redland eaxmple Perl program * perl/Makefile.PL: Convert output of redland-config --libs into absolute dirs - hack. * perl/Makefile.am: Added redland_perl.c * perl/lib/RDF/Redland/URI.pm: Use $RDF::Debug * perl/lib/RDF/Redland/Stream.pm: Use $RDF::Debug (next) Fixed to return RDF::Statement objects * perl/lib/RDF/Redland/Storage.pm: Use $RDF::Debug Make constructors return undef on failure * perl/lib/RDF/Redland/Statement.pm: Use $RDF::Debug (new_from_nodes) Replace undef node references with NULL librdf_node pointers and tidy up more carefully. (_new_from_object): Created to make perl objects from librdf_statement objects created by librdf * perl/lib/RDF/Redland/Parser.pm: Use $RDF::Debug * perl/lib/RDF/Redland/Node.pm: Use $RDF::Debug (_new_from_object): Created to make perl objects from librdf_node objects created by librdf * perl/lib/RDF/Redland/Model.pm: Use $RDF::Debug Make constructors return undef on failure (add_statement): Don't zap things that don't exist. * perl/lib/RDF/Redland/Iterator.pm: Use $RDF::Debug (next) Renamed from get_next, fixed to return RDF::Node objects * perl/lib/RDF/Redland.pm: Added $RDF::Debug variable. 2000-09-28 Dave Beckett * Makefile.am: Added rdf_parser_redland.c * Makefile.am: Added XML_OBJS to allow XML parser objects to be in librdf.a when necessary * perl/Makefile.PL: Receive configuration values (package, version, top src dir) from environment * perl/Makefile.am: Added perl build, check, install, clean etc support * perl/lib/RDF/Redland/Makefile.am, perl/Makefile.am, perl/lib/Makefile.am: Added automake for perl * perl/Makefile.PL: Output to Makefile.perl Ensure only .pm files are installed * perl/MANIFEST, perl/MANIFEST.SKIP, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Iterator.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Statement.pm, perl/Makefile.PL, perl/lib/RDF/Redland.pm: Added perl interface 2000-09-27 Dave Beckett * Makefile.am: Reorganised header macros Added LICENSE.txt to dist 2000-08-30 Dave Beckett * docs/Makefile.am: Tidy order of junk * Makefile.am: Added autogen.sh to distribution. * autogen.sh: Generates the initial makefiles from a pristine CVS tree * Makefile.am: Maintainer - compile the java classes Add the sources and classes to the release 2000-08-28 Dave Beckett * Makefile.am: clean test databases * docs/Makefile.am: Added hash cursor, storage hashes, heuristics sections Amended rules to build HTML api automatically when SGML changes 2000-08-27 Dave Beckett * Makefile.am: Added examples target 2000-08-26 Dave Beckett * Makefile.am: Added example4 2000-08-25 Dave Beckett * Makefile.am: rdf_heuristics_test test added 2000-08-22 Dave Beckett * Makefile.am: Added example3, renamed example to example1 2000-08-21 Dave Beckett * docs/Makefile.am: Add api directory to distribution, remove it when really cleaning * docs/Makefile.am: Tidy up before building SGML file * docs/Makefile.am: Added overview.pdf, some make targets for overview.* 2000-08-18 Dave Beckett * docs/Makefile.am: Added API overview files * Makefile.am: Make 'make test' work * Makefile.am: Moved headers around, tried to put correct ones installed. No promises. * Makefile.am: libredland -> librdf 2000-08-17 Dave Beckett * Makefile.am: librdf.h->redland.h * Makefile.am: librdf->redland * Makefile.am: Put MPL.html in distribution. * docs/Makefile.am: Added README, README.html and build it * Makefile.am: librdf->redland 2000-08-16 Dave Beckett * Makefile.am: Added rdf_storage_hashes.[ch] 2000-08-14 Dave Beckett * Makefile.am: Added MEM, MEM_LIBS defines for memory debugging 2000-08-12 Dave Beckett * Makefile.am: Added rdf_hash_cursor.c 2000-08-11 Dave Beckett * docs/Makefile.am: Remove hash_gdbm, since not possible to use at present Invoke perl on build-docs so doesn't matter where perl is * Makefile.am: Clean example2 * Makefile.am: Compile rdf_parser_test Added rdf_heuristics.c module 2000-08-09 Dave Beckett * Makefile.am: Merge BUGS.html into TODO.html * Makefile.am: Send BUGS.html * docs/Makefile.am: Create docbook SGML and HTML * Makefile.am: Removed rdf_config.h from dist * Makefile.am: Renamed md5.c to rdf_digest_md5.c 2000-08-03 Dave Beckett * Makefile.am: Use new in memory hash code * Makefile.am: Added rdf_uri_test * Makefile.am: Added example2 2000-08-02 Dave Beckett * Makefile.am: example.c is not part of the library! * Makefile.am: Put rdf parser sources in dist * Makefile.am: Added full header Added STANDARD_CFLAGS for compiling (external) code that won't work with loads of gcc warning options. 2000-07-31 Dave Beckett * Makefile.am: example is not a test * Makefile.am: Update tests * Makefile.am: install a binary - librdf-config, and a header file - librdf.h 2000-07-28 Dave Beckett * Makefile.am: Added configurable rdf_parser_sirpac * Makefile.am: Added rdf_storage_list and rdf_stream bits Added example.c - sirpac output filter 2000-07-17 Dave Beckett * Makefile.am: Added rdf_storage.[ch] 2000-07-15 Dave Beckett * Makefile.am: Added TODO.html, TODO and renamed context 2000-07-12 Dave Beckett * Makefile.am: Added CC line * Makefile.am: Added rdf_memory.c Define -DLIBRDF_DEBUG for maintainer CFLAGS 2000-07-11 Dave Beckett * Makefile.am: Don't need LICENSE.h rule 2000-07-06 Dave Beckett * Makefile.am: Added memcmp.c to dist, not library sources * Makefile.am: Define SUBDIRS from configured content Added (optional) memcmp.c for systems with broken libc 2000-07-05 Dave Beckett * Makefile.am: Added librdf-config.in * Makefile.am: Added rdf_hash_bdb.[ch] to distribution 2000-07-04 Dave Beckett * Makefile.am: Rule to create LICENSE.h for including in sources. * Makefile.am: Use -DSTANDALONE to trigger tests 2000-07-03 Dave Beckett * Makefile.am: Added rdf_list and rdf_iterator implementations * Makefile.am: Added docs subdir * COPYING.LIB: GNU LESSER GENERAL PUBLIC LICENSE * docs/Makefile.am: Added comment header * docs/Makefile.am: Documentation * Makefile.am: Added maintainer rules for setting extra CFLAGS * Makefile.am: Added rules to build text files from HTML sources 2000-06-30 Dave Beckett * acinclude.m4: Restored * Makefile.am: Fix \ing problem * acinclude.m4: No longer needed * Makefile.am: Removed GPLed sources * Makefile.am: Added rdf_assertion_context.h Added ChangeLog to dist 2000-06-29 Dave Beckett * Makefile.am: Renamed rmd* to ripemd160* Added $(LIBS) to link lines Added rdf_digest_openssl.c (optional) Boosed gcc -W options 2000-06-28 Dave Beckett * Makefile.am: Added proto-model code, rdf_model_storage.h and rdf_iterator.h * Makefile.am: CVS IDs * COPYING, Makefile.am, acinclude.m4: Created directory structure * COPYING, Makefile.am, acinclude.m4: New file. redland-bindings-1.0.16.1/ChangeLog.20000644000175000017500000003336210406201327013777 000000000000002001-12-09 Dave Beckett * perl/Makefile.am: Fix failure to build the Perl RPMs by passing Perl's installsitearch and man3dir configuration paths down to the SPEC file 2001-11-26 Dave Beckett * python/Makefile.am: Added example.py to release * python/test/test.py: Update to new python interface style. * python/example.py: Update to new python interface style. Added parsing test Carefully delete objects in right order before world is destroyed * python/RDF.py: Changed to more Python-ic interface using **kw args - thanks to Mark Nottingham (class uri, constructor): Use new args properly. (class parser): Mime type takes an optional string not object. (class parser, method feature): update comment, still needs fixing to allow python URI objects 2001-10-13 Dave Beckett * java/redland-fragment.java: Correct comment 2001-09-25 Dave Beckett * Makefile.am: More updates for libtool Just use librdf.la (no librdf.a) Change all librdf_a to librdf_la Move example programs to automake style Fix test programs to work with libtool $(LINK) and -static librdf.la 2001-09-17 Dave Beckett * Makefile.am: Added ex1.rdf, ex2.rdf to dist - for tests 2001-09-16 Dave Beckett * Makefile.am: Added libtool versioning directed from configure.in 2001-09-14 Dave Beckett * Makefile.am: Build librdf as shared library as well as static one 2001-09-03 Dave Beckett * java/org/librdf/redland/World.java, java/org/librdf/redland/URI.java, java/org/librdf/redland/Stream.java, java/org/librdf/redland/Storage.java, java/org/librdf/redland/Statement.java, java/org/librdf/redland/Parser.java, java/org/librdf/redland/Node.java, java/org/librdf/redland/Model.java, java/org/librdf/redland/Iterator.java: Use finalize() with correct signature. * java/test2.java: Redland Java test code using classes * java/org/librdf/redland/Storage.java (Storage): Store new Redland object, don't loose it * java/org/librdf/redland/World.java, java/org/librdf/redland/URI.java, java/org/librdf/redland/Stream.java, java/org/librdf/redland/Storage.java, java/org/librdf/redland/Statement.java, java/org/librdf/redland/Parser.java, java/org/librdf/redland/Node.java, java/org/librdf/redland/Model.java, java/org/librdf/redland/Iterator.java, java/org/librdf/redland/Hash.java: Styled API with Java BiCapitalisation for classes, lowerThenUpper for methods Made Iterator and Stream implement java.lang.Iterator API. * java/test1.java, java/example.java: Updated for new java package, classes * java/Makefile.am: Added java files, class files Added classpath, use env to run java, javac Added test2.java and run it with test-java target. * java/test1.java, java/skeleton.java: Updates for Java package and class name changes * java/Makefile.am: Changed class path to org.librdf.redland and C interface class to core * java/org/librdf/redland/Makefile.am: Changed class names to Java style * java/org/librdf/Makefile.am: Makefile.am * java/org/librdf/redland/Model.java: Remove model_ from some method names 2001-08-28 Dave Beckett * perl/Makefile.am: Tidy perl macros * perl/lib/RDF/Redland/Model.pm (serialise): Use RDF::Stream constructor correctly 2001-08-22 Dave Beckett * java/test1.java, java/Makefile.am: Updated for first version of SWIG Java interface * java/org/librdf/redland/World.java, java/org/librdf/redland/URI.java, java/org/librdf/redland/Stream.java, java/org/librdf/redland/Storage.java, java/org/librdf/redland/Statement.java, java/org/librdf/redland/Parser.java, java/org/librdf/redland/Node.java, java/org/librdf/redland/Model.java, java/org/librdf/redland/Iterator.java, java/org/librdf/redland/Hash.java, java/org/librdf/redland/Makefile.am, java/org/Makefile.am, java/skeleton.java, java/redland-fragment.java, java/example.java: First version of SWIG Java interface * Makefile.am: Added java dir 2001-08-14 Dave Beckett * python/test/test.py: Use memory storage not bdb - BDB may not be available or required. * perl/lib/RDF/Redland/RSS.pm: Use raptor as parser. (format_literal): Fix quoting. Allow description content through raw, including any HTML formattign. 2001-07-23 Dave Beckett * python/RDF.py: (RDF.parser constructor) Allow pass through of null mime_type (None in python) * perl/lib/RDF/Redland/Parser.pm: (RDF::Parser::new) Allow pass through of null mime_type (undef in perl) * docs/Makefile.am: Moved SGML docs to MAINTAINERCLEAN again 2001-07-12 Dave Beckett * docs/Makefile.am: Raptor now rapier 2001-07-10 Dave Beckett * Makefile.am: tinkered with HTML to text rule 2001-07-09 Dave Beckett * perl/lib/RDF/Redland/Statement.pm (new_from_nodes): Added documentation about copying nodes. 2001-07-04 Dave Beckett * java/Makefile.am, java/test1.java: Imported java test code 2001-07-02 Dave Beckett * Makefile.am: Rapier now raptor 2001-06-06 Dave Beckett * Makefile.am: Pick a local tar and set TAR variable * Makefile.am: Changed rapier macro names to work better with automake/autoconf. 2001-06-01 Dave Beckett * Makefile.am: More fixes to make rapier sources optional. * Makefile.am: Add rapier sources to dist only when present 2001-05-30 Dave Beckett * perl/example.pl: Close down storage explicitly to ensure data is flushed ok. 2001-05-16 Dave Beckett * Makefile.am: Added rpm/redland.spec to dist 2001-05-10 Dave Beckett * perl/lib/RDF/Redland/Storage.pm: Document more storage options. 2001-05-08 Dave Beckett * perl/lib/RDF/Redland/Node.pm (type): Added an example. * perl/lib/RDF/Redland/Storage.pm: Docs: added more details and examples 2001-04-26 Dave Beckett * docs/Makefile.am: Added java.html placeholder 2001-04-19 Dave Beckett * perl/lib/RDF/Redland/Model.pm (sources,arcs): Fix prototypes. * perl/lib/RDF/Redland/Iterator.pm (end): Call Redland::librdf_iterator_end not old function 2001-04-12 Dave Beckett * perl/Makefile.PL: Get version numbers from ../configure.in using changed style. 2001-03-29 Dave Beckett * Makefile.am: Added debian dir * perl/lib/RDF/Redland/RSS.pm: (as_xhtml) format_literal - Changed encoding to UTF-8 and don't quote >255 char entities. 2001-03-27 Dave Beckett * python/RDF.py, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm: Updated Perl/Python interfaces for changed iterator interface, added deprecated warnings. 2001-03-20 Dave Beckett * perl/lib/RDF/Redland/RSS.pm (description): Take DC description first if there is one * perl/lib/RDF/Redland/RSS.pm: (as_xhtml) Handle undef arg in sub format_literal 2001-02-21 Dave Beckett * python/RDF.py: Provide Python interfaces to librdf_node_equals and librdf_uri_equals. * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Node.pm: Provide Perl interfaces to librdf_node_equals and librdf_uri_equals. * perl/lib/RDF/Redland/Statement.pm (new): Add missing reference to world in constructor. 2001-02-20 Dave Beckett * tcl/test.tcl, tcl/example.tcl: Update tcl interface for librdf_world changes * tcl/Makefile.am: Clean generated pkgIndex.tcl * python/RDF.py: Update python interface for librdf_world changes * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland.pm: Update perl interface for librdf_world changes 2001-02-13 Dave Beckett * perl/rss-dump.pl: Updated out-of-date RSS 1.0 URIs * perl/Makefile.am: Add rss-dump.pl RSS 1.0 example to distribution 2001-02-11 Dave Beckett * perl/lib/RDF/Redland/RSS.pm (as_xhtml): Quote time keyword in associate array arg. * perl/Makefile.PL: Strip -L.. -lrdf when line has no end space 2001-02-07 Dave Beckett * tcl/example.tcl: Remove old meaningless comment * tcl/Makefile.am: clean-local: remove junk 2001-02-04 Dave Beckett * docs/Makefile.am, python/Makefile.am, python/RDF.py, python/test/test.py, Makefile.am, perl/lib/RDF/Redland.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/URI.pm, perl/Makefile.PL, perl/Makefile.am, perl/example.pl, perl/lib/RDF/Redland/Iterator.pm, perl/rss-dump.pl, tcl/Makefile.am, tcl/example.tcl, tcl/test.tcl: Make new boilerplate point to LICENSE not INSTALL - Doh! * docs/Makefile.am, python/Makefile.am, python/RDF.py, python/test/test.py, Makefile.am, perl/lib/RDF/Redland.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/URI.pm, perl/Makefile.PL, perl/Makefile.am, perl/example.pl, perl/lib/RDF/Redland/Iterator.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/Storage.pm, perl/rss-dump.pl, tcl/example.tcl, tcl/Makefile.am, tcl/test.tcl: Pruned license boilerplate * python/example.py: Python 2.0 example * docs/Makefile.am: Added tcl.html * tcl/test.tcl: Tidied code * tcl/example.tcl: Tcl interface example code * tcl/Makefile.am: Added example.tcl * Makefile.am: Added Tcl interface * tcl/test.tcl, tcl/Makefile.am: Tcl API * python/test/test.py: Updated for changed model add_statment api 2001-01-29 Dave Beckett * perl/lib/RDF/Redland.pm (DESTROY): Add () to librdf_destroy_world call to make perl 5.6 happy. 2001-01-26 Dave Beckett * Makefile.am: Added dist-hook rule to allow symlinks to rapier sources and make dist building continue to work. 2001-01-25 Dave Beckett * perl/lib/RDF/Redland/RSS.pm (as_xhtml): Don't output : after item link/title if there is no description 2001-01-24 Dave Beckett * Makefile.am: s/rapier_parser.c/rapier_parse.c/ * docs/Makefile.am, Makefile.am: Add rapier 2001-01-23 Dave Beckett * perl/lib/RDF/Redland/RSS.pm: (as_xhtml) Handle dc:subject being a URI 2001-01-22 Dave Beckett * Makefile.am: Add redland.spec.in to dist 2001-01-19 Dave Beckett * perl/lib/RDF/Redland/Storage.pm: Removed use Redland Futile attempt to get proper destruction before perl global destruction phase. * perl/lib/RDF/Redland/Model.pm: Moved use Redland Improved code comments. Futile attempt to get proper destruction before perl global destruction phase. Removed several node copies no longer needed. * perl/lib/RDF/Redland.pm: Moved use Redland * perl/rss-dump.pl: Added configuration to show properties in proposed modules. 2001-01-18 Dave Beckett * perl/lib/RDF/Redland/Stream.pm: Removed use Redland (new): No need for free statements arg, they are never freed now. (DESTROY): Empty references asap. (next): Update to return a new statement always or undef * perl/lib/RDF/Redland/Parser.pm: Removed use Redland (parse_as_stream): Fix new RDF::Stream args * perl/lib/RDF/Redland/Statement.pm: Removed use Redland Tweak debugging message. * perl/lib/RDF/Redland/URI.pm: Removed use Redland * perl/lib/RDF/Redland/RSS.pm (as_xhtml): Fix search form output. Updated various methods to use get_targets/get_target etc. as needed. Remove most RDF::Node copying, no longer needed since above methods return new nodes each time. (RDF::RSS::Node new): Remove RDF::Node copy. 2001-01-17 Dave Beckett * perl/lib/RDF/Redland/Node.pm: Zap 'use Redland' Tidy debug message. * perl/lib/RDF/Redland/Iterator.pm: Zap 'use Redland' Tidy comments. (DESTROY) Remove creator reference after tidy 2001-01-16 Dave Beckett * perl/rss-dump.pl: Emit literals as latin1, not UTF8 * perl/example.pl: Change wording; add_statement does not take ownership of adding statement * Makefile.am: Added rdf_concepts_test to TESTS 2001-01-08 Dave Beckett * perl/lib/RDF/Redland/RSS.pm: Fixed imageAlign doc * perl/lib/RDF/Redland/RSS.pm: Tidied as_xhtml documentation. * perl/lib/RDF/Redland/RSS.pm (as_xhtml): Moved to METHODS section. * perl/lib/RDF/Redland/RSS.pm (as_xhtml): Added. 2001-01-05 Dave Beckett * Makefile.am: Add rdf_utf8.h to installed includes 2001-01-04 Dave Beckett * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Iterator.pm: Added SYNOPSIS pod section. Made module be 'strict' - fix some things for that. * perl/lib/RDF/Redland/Model.pm: Added SYNOPSIS pod section. Made module be 'strict' - fix some things for that. Added warning about deprecated get_sources,get_arcs,get_targets * Makefile.am: Added DIST_SUBDIRS so distribution contains even conditionally-included sub directories Fixed wrong -D defines in MEM debugging macros 2001-01-03 Dave Beckett * docs/fix-pod-xhtml: Be transitional xhtml * docs/Makefile.am: Remvoe pod2html rubbish * docs/fix-pod-xhtml: More terrible URL hacks * docs/fix-pod-xhtml: Tidy title * docs/fix-pod-xhtml: Fix HTML generated by pod2html * python/RDF.py: Updated for changes to Model API * perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/Node.pm: Tidy debugging messages. * perl/lib/RDF/Redland/Model.pm: Tidy debugging messages. Remove reference to storage from iterator constructors * perl/lib/RDF/Redland.pm: Added RDF::World class (hidden) to do global destruction - librdf_destroy_world * perl/Makefile.am: Pass in MEM_LIBS * perl/Makefile.PL: Simplified use of linking libs; maybe. Pull in memory debugging libs * perl/lib/RDF/Redland.pm, perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm: Added plain old documentation (POD) redland-bindings-1.0.16.1/ChangeLog.30000644000175000017500000004001310406201342013764 000000000000002002-12-28 Dave Beckett * python/RDF.py, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Iterator.pm, java/org/librdf/redland/Stream.java, java/org/librdf/redland/Iterator.java: Updated Stream, Iterator classes with context methods returning a Node 2002-12-22 Dave Beckett * Makefile.am: Added acconfig.h to dist - some automake versions don't do this automatically such as 1.4-p5 which comes with Redhat 7.3 * java/org/librdf/redland/Makefile.am, java/Makefile.am: coreJNI.java is not for dist * perl/Makefile.am: Fix for 5.8 install 2002-12-12 Dave Beckett * java/Makefile.am: die, extra ; * php/Makefile.am: _ not - * perl/lib/RDF/Redland.pm (DESTROY): call librdf_perl_world_finish at exit. * php/Makefile.am: Tidy clean * php/test.php, php/Makefile.am: PHP updates. Still not working yet. * php/php.ini: testing php.ini config * tcl/example.tcl: fix stream typo * tcl/test.tcl: comment out non-working serializer test * python/example.py: fix arg * python/example.py: Added serializer code * tcl/Makefile.am: tidy clean * python/RDF.py: consistency things * python/RDF.py: Added yet more pydoc * python/RDF.py: Added more pydoc * docs/fix-python-xhtml: Fix exceptions.html * docs/Makefile.am: Added pydoc and pydoc/RDF.html * docs/fix-python-xhtml: Fix pydoc output to be xhtml * docs/fix-pod-xhtml: minor changes * python/example.py: Fixed for stream updates * docs/Makefile.am: Added perl POD Serializer * perl/example.pl: Tidy, add serializer example. * perl/Makefile.am: clean test-out.rdf * java/Makefile.am: More javac fixes * java/example.java: Tidy up * java/Makefile.am: Build redland-java.jar for tests and -classpath to use it. * java/test2.java: Replaced finalize() method with finished() that apps should call to release resources since Java never guarantees it is. * java/skeleton.java: Added Serializer * java/org/librdf/redland/World.java, java/org/librdf/redland/URI.java, java/org/librdf/redland/Stream.java, java/org/librdf/redland/Storage.java, java/org/librdf/redland/Statement.java, java/org/librdf/redland/Serializer.java, java/org/librdf/redland/Parser.java, java/org/librdf/redland/Node.java, java/org/librdf/redland/Model.java, java/org/librdf/redland/Iterator.java: Replaced finalize() method with finished() that apps should call to release resources since Java never guarantees it is. * java/test1.java: free uri after finishing with it * java/Makefile.am: Added lots of bodges to get around SWIG 1.3.15+ broken Java API. sed editing of the generated files to remove the stupid coreJNI class. * java/org/librdf/redland/Model.java (add - literal): Use librdf_model_add_typed_literal_statement * java/org/librdf/redland/Stream.java: Updated for stream changes * java/org/librdf/redland/Iterator.java: Updated for iterator changes 2002-12-11 Dave Beckett * python/RDF.py: More docs. * python/RDF.py: More docs * python/RDF.py: Big update, lots of new docucomments, encouraged by pydoc. * python/Makefile.am: Added build target for RDF.html; should work if pydoc is around. * perl/lib/RDF/Redland/Model.pm (add_typed_literal_statement): Replacing add_string_literal_statement. * perl/Makefile.am: test.pl now in t/* tests dir. * perl/lib/RDF/Redland/Node.pm: Updated node types * python/test/test.py: add some more output messages * python/Makefile.am: tidy cleanfiles * perl/t/test1.t: Test updates, fixes. * perl/t/Makefile.am, perl/t/test1.t, perl/t/test2.t, perl/t/test3.t: perl test ftest.pl split into t/test1-3.t 2002-12-10 Dave Beckett * python/test/test.py: test Serializer class * python/Makefile.am: Add clean for serializer output * python/RDF.py: Serializer class fix * java/org/librdf/redland/Makefile.am: Added Serializer.java * java/org/librdf/redland/Serializer.java: Java Serializer class * python/RDF.py: Added Serializer class (not tested) * perl/lib/RDF/Redland/Serializer.pm: call librdf_serializer_serialize_model_to_file properly * python/RDF.py: When building sequences from iterated nodes, copy them. * perl/lib/RDF/Redland/Serializer.pm: method serialize_model now serialize_model_to_file * docs/Makefile.am: Deleted old parsers: libwww, java sirpac-stanford, java sirpac-w3c 2002-12-09 Dave Beckett * perl/lib/RDF/Redland/RSS.pm (properties_with_ns_prefix): Updated pod * perl/serialize.pl: More playing, still incomplete. 2002-11-24 Dave Beckett * perl/lib/Makefile.am, perl/lib/RDF.pm: RDF.pm removed as promised 2002-11-21 Dave Beckett * ruby/example.rb, tcl/test.tcl, tcl/example.tcl, python/test/test.py, python/example.py, python/RDF.py, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm: Updated for stream and iterator method changes. * perl/serialize.pl, perl/example.pl: Updated for stream method changes. 2002-11-20 Dave Beckett * php/test.php, php/example.php: Do nothing * php/Makefile.am: Run test (does nothing so far apart from import Redland) * docs/Makefile.am: Added php.html (no API in release though) 2002-11-12 Dave Beckett * perl/lib/RDF/Redland/RSS.pm (inchannel): Delete; never part of RSS 1.0 2002-11-11 Dave Beckett * perl/lib/RDF/Makefile.am, perl/lib/RDF/Stream.pm, perl/lib/RDF/URI.pm, perl/lib/RDF/Model.pm, perl/lib/RDF/Node.pm, perl/lib/RDF/Parser.pm, perl/lib/RDF/RSS.pm, perl/lib/RDF/Statement.pm, perl/lib/RDF/Storage.pm, perl/lib/RDF/Iterator.pm: Removed old perl namespaced modules 2002-09-30 Dave Beckett * php/Makefile.am: PHP interface * Makefile.am: Added php interface 2002-09-27 Dave Beckett * perl/Makefile.am: Updates to make swig re-run and build lib/RDF/Redland/CORE.pm when it is needed. * python/RDF.py: Check for == None as well as == "NULL" as return from SWIG methods. (Change to the SWIG calling convention in newer version) 2002-09-05 Dave Beckett * python/Makefile.am: Use SWIG_PYTHON_ARGS * autogen.sh: Remove config.cache before running new configure 2002-09-04 Dave Beckett * python/RDF.py: Add some defensive checks for __str__ calls on null nodes/statements 2002-09-03 Dave Beckett * autogen.sh: Fix swig check * python/test/test.py: test with raptor parser * autogen.sh: Require swig, min 1.3.10 * autogen.sh: Move copying of local copies of config.guess, config.sub to after automake, libtool to ensure it overwrides. 2002-08-19 Dave Beckett * python/RDF.py: Added Python message callback support - generate raise on error or warnings. * perl/lib/RDF/Redland.pm: fix docs * perl/lib/RDF/Redland.pm: Move subroutines to documented package * docs/fix-pod-xhtml: Fix relative URIs * perl/lib/RDF/Redland.pm: Call new librdf_perl_world_init method to init perl callbacks. (message): Added, to dispatch callbacks. (set_error_handler,set_warning_handler): Allow users to change handlers 2002-08-16 Dave Beckett * perl/lib/RDF/Redland/Model.pm (sources,arcs,targets): Use new Iterator methods. 2002-08-13 Dave Beckett * perl/lib/RDF/Redland/Node.pm (blank_identifier): Added to get/set blank node ids * perl/serialize.pl: More stuff 2002-08-11 Dave Beckett * perl/lib/RDF/Redland/Iterator.pm (next): Replaced with get, next methods * python/RDF.py: Change iterator methods from get to get/next 2002-08-01 Dave Beckett * docs/Makefile.am: added kernel-doc to the dist 2002-07-29 Dave Beckett * ruby/Makefile.am: s/repat/raptor/ * ruby/example.rb: s/repat/raptor/ in instructions * ruby/Makefile.am: use mkdir -p for installdir 2002-07-28 Dave Beckett * docs/Makefile.am: Fix #comment in rule (portability) * autogen.sh: Fix use of srcdir/find 2002-07-26 Dave Beckett * perl/serialize.pl: test pretty xml serializing code 2002-07-23 Dave Beckett * Makefile.am: Added aux dir * perl/example.pl: Update perl literal calls * perl/lib/RDF/Redland/Node.pm: Fix docs * ruby/Makefile.am: Fix cflags * java/Makefile.am: Append to (Linux? only) dynamic lib search path var LD_LIBRARY_PATH * tcl/Makefile.am: Fix cflags * tcl/test.tcl, python/RDF.py: Update librdf_node_set_literal_value calls * java/org/librdf/redland/Model.java, java/org/librdf/redland/Node.java, python/RDF.py, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm: zap former xml_space args entirely * python/RDF.py: Zap xml_space 2002-07-22 Dave Beckett * autogen.sh: zap ltconfig too - generated if needed. 2002-07-20 Dave Beckett * python/Makefile.am: clean-python isn't good enough * perl/Makefile.PL: Use redland-src-config --static-libs * tcl/Makefile.am, ruby/Makefile.am, perl/Makefile.PL, java/Makefile.am: Update for using ../redland-src-config * Makefile.am: zap 'finish' stuff 2002-07-16 Dave Beckett * Makefile.am: Moved redland-config to top dir 2002-07-14 Dave Beckett * Makefile.am: Added redland-src-config.in More rules to build various things in subdirs, not really working yet. * python/RDF.py: Updates from Edd Dumbill: (class RedlandError): Added, an Exception class (class NodeTypeError): Added, an RedlandError exception class (node_type): Added package function to turn a node name to a Redland (node_type_name): Added package function to get the node name for a Redland node type (_get_uri): Now throw an NodeTypeError exception if node has no URI (is_resource): Added, returns true if node is a resource (is_literal): Added, returns true if node is a literal (class Storage, __init__): Raise exception if a null URI given to constructor. 2002-07-05 Dave Beckett * Makefile.am: Update CPPFLAGS, LDFLAGS, LIBS to have external, internal versions and ones just for xml parsers (expat, libxml) used by internal RDF/XML parsers * Makefile.am: Add more subdirs, tidy 2002-06-26 Dave Beckett * Makefile.am, docs/Makefile.am: Updated for moved sources * autogen.sh: Remove raptor source hunting * perl/MANIFEST: Added RDF::Redland::Serializer * perl/example.pl: Added (comment out) serializer test * perl/lib/RDF/Redland/Makefile.am: Added Serializer i/f * perl/lib/RDF/Redland/Serializer.pm: RDF::Redland::Serializer class * perl/lib/RDF/Redland.pm: Added RDF::Redland::Serializer 2002-06-19 Dave Beckett * autogen.sh: Import nearby fresh autoconf config.* files 2002-06-10 Dave Beckett * perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm: Remove deprecated methods * docs/Makefile.am: For maintainer, don't clean generated sgml, do that on distclean 2002-06-08 Dave Beckett * perl/lib/RDF/Redland/Node.pm: Updated node types; restrict public ones to resource, literal, blank * perl/lib/RDF/Node.pm: Define some node type vars for legacy 2002-06-06 Dave Beckett * perl/README.txt: Tidied. link to update script * perl/lib/RDF/Redland/Model.pm: (serialize) Added, synonym for serialise method * perl/MANIFEST: Added README.txt Removed duplicate * perl/Makefile.am: Added README.txt notes and update-perl-api.pl to dist * perl/README.txt: Perl API notes 2002-06-04 Dave Beckett * Makefile.am: remove rdf_serializer_raptor.h * autogen.sh: Add raptor_uri.c to symlink mess 2002-06-03 Dave Beckett * python/RDF.py: (Node) __hash__ - return hash based on string representation (Uri) __hash__ - return hash based on redland object (which is same for same URI) 2002-06-01 Dave Beckett * python/test/test.py, python/example.py: Changes for updated python 2.2+ API * python/RDF.py: Improved python API by Edd Dumbill. Requires python 2.2 Classes renamed e.g. RDF.node to RDF.Node (some) set/get methods use python __getattr__ and __setattr__ Remove all user reference to world object (RDF.Parser): parse_into_model method now has model as first argument 2002-05-29 Dave Beckett * java/test1.java, java/test2.java: Add node constructor test * java/org/librdf/redland/Node.java: Added some javadoc Amend constructor taking a string to also build blank nodes; added extra parameter. * perl/lib/RDF/Redland/Node.pm: Added constructor new_from_blank_identifier * docs/Makefile.am: Added serializer to api docs 2002-05-28 Dave Beckett * Makefile.am: Added rdf_serializer_test to TESTS * Makefile.am: Added rdf_serializer_test * Makefile.am: Added serializer modules * perl/lib/RDF/Redland/Parser.pm (new): Note that name is also optional and if all fields blank, gives an application/rdf+xml parser 2002-05-23 Dave Beckett * docs/Makefile.am: Add query, query_triples modules to the api docs * Makefile.am: Added query module - sources, headers and test 2002-04-27 Dave Beckett * python/test/test.py, perl/example.pl: Use any available rdf/xml parser * python/RDF.py: Update API to get add more python standard bits such as __eq__ and __ne__ and generating python sequences (node): Remove equals method, added __eq__, __ne__ (model) Added sources, targets, arcs methods returning python sequences (iterator) Various changes to get it working (uri) Remove equals method, added __eq__, __ne__ Made method feature handle string uris * python/test/test.py: Expanded to print out model, parse into it, query model by statements and nodes and generally exercise most of the API techniques 2002-04-26 Dave Beckett * docs/Makefile.am: Added ruby.html * ruby/example.rb: Use ARGV * ruby/Makefile.am: Call test/example program with args * ruby/example.rb: Added header. Fixed typo * ruby/example.rb: Filled in the example and it now works (had to hard code some arguments) * ruby/Makefile.am: install-ruby copies the Redland.so into probably the right place 2002-04-25 Dave Beckett * perl/lib/RDF/URI.pm, perl/lib/RDF/Stream.pm, perl/lib/RDF/Storage.pm, perl/lib/RDF/Statement.pm, perl/lib/RDF/RSS.pm, perl/lib/RDF/Parser.pm, perl/lib/RDF/Node.pm, perl/lib/RDF/Model.pm, perl/lib/RDF/Iterator.pm: End modules with 1; 2002-04-24 Dave Beckett * autogen.sh: really get ln -s right * autogen.sh: get ln -s right * autogen.sh: for syntax * autogen.sh: sh syntax * autogen.sh: Find and link in raptor sources when nearby * docs/Makefile.am: Try to fix missing redland.3 problem for non-maintainer 2002-04-23 Dave Beckett * ruby/Makefile.am: No README yet 2002-04-22 Dave Beckett * python/README: Point to skeleton docs * python/RDF.py: Fixes for Python 2.2 due to change in __ meaning (not tested much) 2002-04-03 Dave Beckett * ruby/Makefile.am, ruby/example.rb: Initial ruby stuff from danbri (not complete) * Makefile.am: Updates for ruby (not working) 2002-03-07 Dave Beckett * docs/fix-pod-xhtml: Updates for pod2html changing Handle perl module names changing, new POD dirs * docs/Makefile.am: Added redland.3 (made from redland.pod via pod2man) manual page Added redland.pod; mostly generated from source files. Add manual pages to distribution. 2002-02-12 Dave Beckett * perl/MANIFEST.SKIP, perl/MANIFEST: Updated for new files (old api and new) * perl/Makefile.PL: Updates for new perl module names Ghastly hacks to get ExtUtils::MakeMaker to use RDF::Redland::CORE * perl/Makefile.am: Updates for new perl module names Change to build SWIG outputs here and move the generated perl to the right place lower down the tree. * perl/rss-dump.pl, perl/example.pl: Updates for new perl module names * perl/lib/RDF/Redland/Makefile.am: Added CORE.pm (from SWIG) to distribution; clean it too. * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm, perl/lib/RDF/Redland.pm: Updates for new perl module names * perl/lib/RDF/URI.pm, perl/lib/RDF/Stream.pm, perl/lib/RDF/Storage.pm, perl/lib/RDF/Statement.pm, perl/lib/RDF/RSS.pm, perl/lib/RDF/Parser.pm, perl/lib/RDF/Node.pm, perl/lib/RDF/Model.pm, perl/lib/RDF/Makefile.am, perl/lib/RDF/Iterator.pm, perl/lib/RDF.pm: Trampoline modules for old->new perl APIs Contains warning with a promise that these files go away next version 2002-01-02 Dave Beckett * perl/Makefile.PL: Pass -I and -L,-l flags to right config * Makefile.am: Added Makefile.PL to distribution * Makefile.PL: Fake MakeMaker Makefile.PL - top level Makefile.PL for Redland redland-bindings-1.0.16.1/ChangeLog.40000644000175000017500000010120410406201354013770 000000000000002003-12-29 Dave Beckett * configure.ac: Add AC_DEFINE for local MD5, SHA1, RIPEMD160 * docs/Makefile.am: Added storage_mysql storage_tstore 2003-12-18 Dave Beckett * perl/Makefile.PL: OSX old perl before 5.8 * perl/Makefile.PL: Another attempt to handle MakeMaker changes since perl5.8 * perl/Makefile.am: Compile perl without the -W flags; it's just too noisy. 2003-12-16 Dave Beckett * perl/t/test1.t: Don't use last when not in a loop * configure.ac: Added LIBRDF_EXTERNAL_CPPFLAGS, LIBRDF_EXTERNAL_LIBS used for system raptor * perl/Makefile.PL: Don't need MEM_LIBS in OBJECT * demos/rss-show.pl: Add secret rss tag soup 2003-12-15 Dave Beckett * php/test.php: tidy prints * php/test.php: Better test code. Serializing crashes it - to fix later. * php/Makefile.am: Reorder compile args so PHP libs are first and overridden if need be. * configure.ac: AC_SUBST with_raptor * php/Makefile.am: Apply redland_wrap.c.patch when building redland_wrap.c Use -d extension_dir=. for test-php * php/redland_wrap.c.patch: Patch to PHP wrapper to return empty string not C NULL * configure.ac: Added librdf/redland.pc * configure.ac, Makefile.am: Split SD subdirs into SD_PRE (must be made before librdf) and SD_POST (after). raptor goes into PRE so that it is both compiled and installed before librdf. 2003-12-14 Dave Beckett * perl/Makefile.am: Remove use of prefix; install where perl wants it * perl/Makefile.PL: Try again with the MakeMaker PM hash. Remove double RDF/RDF * perl/Makefile.am: Remove old API updater 2003-12-08 Dave Beckett * configure.ac: mysql version reporting * configure.ac: make --with-threestore, --with-mysql take CONFIG|yes|no * configure.ac: Add BDB 4.2 to the list. Fixes for 3store (--with-threestore) else search for 3store-config; add glib to cflags/libs using pkg-config. Report raptor version. Report triple stores found. 2003-11-26 Dave Beckett * perl/Makefile.PL: List the .pm files explicitly since perl 5.8.1 broke scanning 2003-11-19 Dave Beckett * demos/ntriples.pl: Style, HTML fixes. Counting wasn't right. 2003-11-03 Dave Beckett * configure.ac: Added --with-mysql-config and automatic search for mysql_config program. Added STORAGE_OBJS * autogen.sh: remove ltmain.sh libtool before libtoolize * python/redlandtest.py (class RedlandGetsCase): Add test for making a new anon (no arg) blank node 2003-09-25 Dave Beckett * configure.ac: word * configure.ac: 3store linking fixes. * configure.ac: Bumped raptor min to 1.1.0 Added --with-threestore. 2003-09-19 Dave Beckett * configure.ac: Check for BDB DB->set_flags 2003-09-11 Dave Beckett * python/RDF.py (Model): Added sync() calling librdf_model_sync * python/redlandtest.py (RedlandModelGeneral): Test model.sync() 2003-09-08 Dave Beckett * python/RDF.py: (Node:_get_literal_value) Use dt_uri=Uri(string=... not (uri_string=... * configure.ac: Bumped version to 0.9.15 * configure.ac: Min raptor version is now 1.0.0 * configure.ac: With only --with-bdb=PREFIX given, set the lib & include from that value. Use 'unknown' rather than none when some BDB bits given and no guessing. 2003-09-04 Dave Beckett * java/org/librdf/redland/World.java: Use librdf_version/copyright* * tcl/Makefile.am: clean more * configure.ac: Remove a bunch of unused LIBRDF_VERSION_ AC_SUBST. Remove LIBRDF_VERSION_INFO - not used Define LIBRDF_VERSION_DECIMAL here and make it an AC_SUBST. * configure.ac: Enable public domain getopt in getopt.c & rdfproc_getopt.h for rdfproc if there is no getopt or getopt_long * configure.ac: Look for getopt.h 2003-09-03 Dave Beckett * Makefile.PL: Updated for 0.9.13 Uses configure.ac Pick the perl prefix to pass to configure. make clean needs a little help else it just returns 'exit 2'. install: Installs just the shared libraries for raptor and redland, then pelr. Have a hand-crafted MANIFEST and MANIFEST.SKIP now. 2003-09-01 Dave Beckett * Makefile.am: raptor subdirectory is now not always built * configure.ac: TIdy some configure --with/--enable messages Added RAPTOR_CONFIG program (default raptor-config) Added --with-raptor=system or internal. By default will pick the best. Checks for minmum versions and warns if too old, but proceeds. raptor subdirectory is now not always built. * configure.ac: Added LIBRDF_LIBTOOLLIBS for compiling with librdf using libtool. 2003-08-31 Dave Beckett * configure.ac: dmalloc enabled only if dmalloc.h is present 2003-08-30 Dave Beckett * configure.ac: Added --with-dmalloc option default auto for maintainer, no otherwise. 2003-08-29 Dave Beckett * perl/lib/RDF/Redland/Parser.pm: Use raptor in the example. Add a mime type example. * demos/demo.pl: s/statement/triple/ in html * demos/demo.pl: Update parser labels. Add owl namespace. Trim rdf content whitespace. Become read only if db is not writable to this user. * docs/Makefile.am: Added .pod.html rule 2003-08-28 Dave Beckett * docs/fix-python-xhtml: Remove remaining broken fragments, example urls * docs/fix-python-xhtml: Exclude __builtin__ class from links * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Node.pm: Use URI::URL in the isa * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Node.pm: Fix totally broken use of UNIVERSAL::isa * perl/lib/RDF/Redland/URI.pm (new): Fix arg promotion from URI objects. * perl/lib/RDF/Redland/URI.pm (new): Fix cloning. * configure.ac: Bumped version to 0.9.14 * tcl/example.tcl, ruby/example.rb: Use librdf_model_as_stream * java/org/librdf/redland/Model.java (as_stream): Added - use Use librdf_model_as_stream or with a context node, use librdf_model_context_as_stream * python/RDF.py (Model.as_stream): Use librdf_model_context_as_stream * perl/lib/RDF/Redland/Model.pm: Fix uses of RDF::Redland::Node::_ensure($node) to use it as a redland node. (as_stream): Take optional context node, promote as necessary, using librdf_model_context_as_stream. Add documentation. * perl/serialize.pl, demos/demo.pl, perl/example.pl: Use as_stream * perl/lib/RDF/Redland/Model.pm (as_stream): Added, deprecating serialise and serialise. * tcl/Makefile.am: TCL_INCLUDES * php/php.ini: load shared library from . * php/Makefile.am: Remove libtool again. Try "if OSX, else rest of world" approach. * configure.ac: TCL_INCLUDE now TCL_INCLUDES and blank if not found, otherwise -Idir * tcl/Makefile.am: Remove libtool again. Try "if OSX, else rest of world" approach. * configure.ac: default TCL_INCLUDE to /usr/include * ruby/Makefile.am: minor depends * ruby/Makefile.am: Remove libtool again. Try "if OSX, else rest of world" approach. Package now 'redland' to match ruby convention. * ruby/example.rb: Now redland * tcl/Makefile.am: Don't -I-I@TCL_INCLUDE@ * configure.ac: tcl version tweak -nonewline since OSX does silly things * tcl/Makefile.am: Removed README * tcl/Makefile.am: Use @TCL_VERSION@ for the library name and -I@TCL_INCLUDE@ * configure.ac: --with-perl/python/java/tcl/php/ruby now either enable the language or enable and set the binary. Always try to find the version of the language before building the API automatically. Hunt for Tcl tcl.h and Java JDK JNI headers in various places. Report the languages available and language APIs built. * php/Makefile.am: comments. testing is optional, php program might not exist * php/Makefile.am: Very complex build and install using a libfake.la so I don't have to care about details of building shared object and dynamically loaded libraries. No OSX specific fixes here since I can't see what the convention is. * tcl/Makefile.am: Be verbose in pkgIndex.tcl * ruby/Makefile.am: docs * tcl/Makefile.am: No -module here 2003-08-27 Dave Beckett * tcl/Makefile.am: Very complex build and install using a libfake.la so I don't have to care about details of building shared object and dynamically loaded libraries (such as on OSX). The OSX specific naming is burnt in here since the dynamically loaded library must be called Redland.dylib * ruby/Makefile.am: Very complex build and install using a libfake.la so I don't have to care about details of building shared object and modules (such as on OSX). OSX specific naming have to be burnt in here since shared modules must be called Redland.bundle * ruby/Makefile.am, tcl/Makefile.am: Make build and installing work again, without libtool. * tcl/test.tcl: Back to auto_path . * configure.ac: BDB check update again. Report discovered BDB version in summary * configure.ac: Use bdbc_ for temporary variables in BDB checking code. * perl/Makefile.PL: Revert to working version. No need for builddir/srcdir things. * perl/Makefile.am: Revert: Remove inplace editing of PERL_MAKEFILE * configure.ac: Another major BDB hunt and validate. This time check for db.h with version numbers. * perl/Makefile.PL: Set FULLEXT to RDF/Redland * perl/Makefile.am: Make sure PERL really uses the right FULLEXT, BASEEXT and BOOTSTRAP values * configure.ac: bdb_dbname test was inverted * configure.ac: use "if test ...; then", not "if [ ... ]; then" * configure.ac: I give up. Put OSX fink hints here - look for /sw/bin. Add more Sleepycat/Berkeley DB checks, more guesswork and hunting for BDB headers in /usr/include/db* subdirectories. * perl/Makefile.am: Use CFLAGS, not MEM. * perl/Makefile.PL: Use CFLAGS, not MEM. Use redland-src-config --libs not --static-libs 2003-08-26 Dave Beckett * configure.ac: Added AC_HEADER_TIME and checks for time.h, sys/time.h for gettimeofday * docs/fix-python-xhtml: +email * docs/fix-python-xhtml: -email * docs/fix-python-xhtml: words * docs/fix-python-xhtml: New pydoc, new bad use of ID. Skip the huge #commented heading in the source. * python/redlandtest.py (testIterateModel, testContains): Added. * python/RDF.py (Model.__iter__): Fix to return an iter * python/Makefile.am: Pass on CFLAGS and LDFLAGS to python setup.py * python/example.py: empty statement * python/RDF.py: words in copyright * python/test/test.py, python/example.py: Updated to use 0.9 api features * ruby/Makefile.am: test-ruby fix shared dir * ruby/Makefile.am: LIBRUBYARG works 1.6-1.8 * python/redlandtest.py: Update by Edd Dumbill to test the 0.9 RDF.py changes. * python/RDF.py: Major update to use Python 2.2+ idioms and features by Edd Dumbill. General remarks * Removed string exceptions and replaced with RedlandError ones * Where underlying Redland C objects were unexpectedly null, raise exceptions rather than returning None, "" or [] as appropriate. * Raise exceptions if Redland C constructors fail in Python constructors. * Did quite a lot of documentation updating, where possible demonstrating preferred Pythonic usages. * Added more unit tests to test changed functionality. RDF.Node * Constructor now accepts Uri to make a resource/property node, or a string to make a string literal * Removed usage of node_type() in favour of is_resource(), is_blank() etc methods. * DEPRECATED get_blank_identifier() etc methods in favour of node.blank_identifier etc properties. Raise exception if properties inconsistent with the node type are requested. RDF.Statement * No need to name subject, predicate, object in constructor any more. Uris or string literals accepted in place of nodes in constructor argument. * __getattr__ method deleted, using new-style property() for subject, predicate, object RDF.Model * Deleted get_*_iterator methods * Renamed sources() to get_sources(), targets() to get_targets(), arcs() to get_predicates(). Retained old method names as aliases. * Added get_sources_context(), get_targets_context(), get_predicates_context() which return (node, context) tuples. * Amended get_source(), get_sources() etc methods so that Uri and string literals were acceptable as shortcut types for nodes. * Added find_statements_context() which returns (statement, context) tuples. * Renamed context_remove_statements() to remove_statements_with_context(). Retained old method name as an alias. * Added __delitem__ method so del[statement] and del[statement, context] work. * Added append() method so append(statement) and append(statement, context) work. Suggest that append() is used in preference to add_statement() for Python idiomatic usage. * DEPRECATED serialise() in favour of as_stream(). * Added as_stream_context() to serialise (statement, context) tuples. * Exception raised if len() is attempted on model with a non-countable storage. * DEPRECATED Model.add(), Model.add_typed_literal_statement() usages: now that constructing Statements is easier, it's incongruous to have these in the model. Additionally it saves reproducing various bits of error checking that properly belong in the Node() constructor. * Implemented __contains__() so "if statement in model" and "if (statement, context) in model" work as expected using the more efficient Redland C methods where possible. RDF.Stream * DEPRECATED Stream.context_iter(). Use in preference the _context variants of the appropriate Model methods. This leads to fewer lines of code. RDF.Uri * Amended constructor so strings or Uri instances can be passed as the first argument, without named parameters being required, and the right thing still happen. ---- I did some indenting and white space editing for consistency with the existing code. * java/Makefile.am: Use check-local again, since we don't actually make programs called test1 and test2. * python/Makefile.am: Pass in CFLAGS to python * ruby/Makefile.am: Made an rubylib make definition * tcl/Makefile.am: Made an tcllib make definition * tcl/Makefile.am: Interrogate tclsh for versions, and then guess include paths and library name. * tcl/test.tcl, tcl/example.tcl: Back to redland * tcl/test.tcl, tcl/example.tcl: Tcl package now Redland * configure.ac: Look for tclsh for TCL * ruby/Makefile.am: More libtool flags * ruby/Makefile.am: Build shared objects again. * ruby/Makefile.am: Don't depend on build-ruby 2003-08-25 Dave Beckett * java/Makefile.am: Added test-java again * tcl/Makefile.am: Added test-tcl again * ruby/Makefile.am: Added test-ruby again * python/example.py: Modernise the python to 2.2+ * python/RDF.py: Throughout: Updated to use new Python classes (2.2+) Replace __getattr__/__setattr__ with property() method. * python/Makefile.am: check-local now also does unittest-python * python/RDF.py (Statement._get_subject): Missed accidently when updating to do more copies. * configure.ac: No languages by default. 2003-08-24 Dave Beckett * perl/Makefile.PL: Include -I builddir librdf dir to get rdf_config.h * Makefile.am: make languages after core libs * perl/Makefile.PL: More attempts at src/builddir fix. * perl/Makefile.am: Fix src/builddir for output of MakeMaker * tcl/Makefile.am: again * tcl/Makefile.am: oops, -c to compile * ruby/Makefile.am: This dir is now compiled and installed conditional on ruby being enabled with --with-ruby (off by default). Move -local targets into standard 'make' and 'make install' ones. Try to compile with the right Ruby shared library and install in the Ruby libs dir. * tcl/Makefile.am: Use @TCL@ * tcl/Makefile.am: This dir is now compiled and installed conditional on tcl being enabled with --with-tcl (off by default). Move -local targets into standard 'make' and 'make install' ones. Try to compile the Tcl shared library and install in the Tcl libs dir. Finding the tcl.h includes is impossible, so note that in the README. * php/Makefile.am: php installs now * configure.ac: In checking for progs, hunt for perl, python etc. rather than names. Added --with-perl/python/java/php/tcl/ruby with optional argument =PATH to set the script. This enables the particular language to be built. Present defaults are perl and python are enabled. Move --with-ecma-cli to be nearby and accept 'no' also. Moved --with-jdk to be nearby. The subdirectories called with standard 'make' and 'make install' now are based on languages. Report the languages configured in the build summary. * python/Makefile.am: This dir is now compiled and installed conditional on python being enabled with --with-python (by default). Move -local targets into standard 'make' and 'make install' ones and create a fake build and install to keep automake happy, since we are using python's Distutils to do the real work. * perl/Makefile.am: This dir is now compiled and installed conditional on perl being enabled with --with-perl (by default). Move -local targets into standard 'make' and 'make install' ones and create a fake build and install to keep automake happy, since we are using perl's MakeMaker to do the real work. * java/Makefile.am: This dir is now compiled and installed conditional on java being enabled with --with-java, so move -local targets into standard 'make' and 'make install' ones. Install both the shared library and jar. * java/Makefile.am: core_wrap.c without makefile variables * java/Makefile.am: EXTRA_LTLIBRARIES is broke - it won't build shared libraries. So fake it using lib_LTLIBRARIES and then override the installation for install-javalibLTLIBRARIES: to do nothing. * java/Makefile.am: Shared library now librdf-java and built using libtool. * java/org/librdf/redland/World.java, java/redland-fragment.java: Now rdf-java (aka librdf-java under unixen) 2003-08-23 Dave Beckett * java/org/librdf/redland/Node.java: (constructors) Update to always copy rather than deal with shared nodes. (isResource, isLiteral, isBlank): Added. * java/org/librdf/redland/Statement.java: (constructors, getSubject, getPredicate, getObject) Update node and statements to always copy rather than deal with shared. * java/org/librdf/redland/Stream.java: Returning copied statements is default. * java/org/librdf/redland/Iterator.java: Returning copied nodes is default. * configure.ac: For --with-jdk, hunt for the machine-dependent subdir * java/Makefile.am: Use JDK_INCLUDES * java/org/librdf/redland/Parser.java: (parse) Added methods parsing content ina string into a model or as a stream of statements. * java/org/librdf/redland/Model.java: sync has no return * configure.ac: Added --with-jdk to specify where Java lives * java/org/librdf/redland/Model.java, perl/lib/RDF/Redland/Model.pm (sync): Added calling librdf_model_sync * python/Makefile.am, perl/Makefile.am: clean more * perl/serialize.pl: Updated API tweaks * perl/lib/RDF/Redland/Node.pm (new_from_literal): Ensure is_wf_xml is an integer. * perl/lib/RDF/Redland/Model.pm (remote_statement): Allow NODE NODE NODE [CONTEXT] args * perl/lib/RDF/Redland/Statement.pm (new): Promote node arguments to redland nodes using RDF::Redland::Node::_ensure. * perl/lib/RDF/Redland/Node.pm (_ensure): Added, to promote other objects to redland nodes * perl/lib/RDF/Redland/Model.pm (add): Now call add_statements. (add_statements,remove_statement,add_statements,remove_statements, remove_context_statements): Promote node arguments to redland nodes using RDF::Redland::Node::_ensure. * perl/lib/RDF/Redland/Statement.pm (new_from_nodes): Fix call to constructor * perl/example.pl: Test add_statement(NODE, NODE, NODE) form - with same NODE * perl/lib/RDF/Redland/Model.pm (add_statement): Accept NODE NODE NODE [CONTEXT] as arguments too. 2003-08-22 Dave Beckett * perl/lib/RDF/Redland/Parser.pm: (parse_string_as_stream, parse_string_into_model): Added for parsing strings. Note that the base_uri is required. * python/RDF.py: (Parser.parse_string_as_stream, Parser.parse_string_into_model): Note base_uri is required in docs, raise an error if it isn't there. * python/RDF.py: (Parser.parse_string_as_stream, Parser.parse_string_into_model): Added. * python/test/test.py: Added test with parser.parse_string_as_stream 2003-08-20 Dave Beckett * perl/Makefile.PL: Use .. for redland-src-config and add check it is there. * python/redlandtest.py, python/example.py: Set #! to /usr/bin/python * python/RDF.py: Update classes to always return copies of Nodes, Statements from streams, iterators such as model.find_statements. The user should now not need care about shared versus copying of returned values but just use them. * python/Makefile.am: Pass MEM, MEM_LIBS to python compiling C * perl/lib/RDF/Redland/Statement.pm: (subject,predicate,object) Copy redland node for librdf set methods. * perl/lib/RDF/Redland/Node.pm: POD fixes * perl/example.pl: Minor updates to use newer API calls. * perl/lib/RDF/Redland/Statement.pm: (subject,predicate,object) Docs - note no copying neeeded. (predicate): Minor typo * perl/lib/RDF/Redland/RSS.pm (Model.DESTROY): Call super to tidy up (Node.new): Debugging (Node.DESTROY): Call super to tidy up (properties): Do less work, no need to copy. * perl/lib/RDF/Redland/Node.pm (new): Invoke clone properly. * perl/lib/RDF/Redland/URI.pm (new): Constructor now copies as well as building URIs. Takes string literals or URIs by sniffing for classes. (new_from_uri): Replaced by new (clone): Another way to copy a URI. Document these changes * perl/lib/RDF/Redland/Iterator.pm: Update for Node API change and no need to copy here (current, context): Do not copy returned node. * perl/lib/RDF/Redland/Stream.pm: Update for Statement API change and no need to copy here (current, context): Do not copy returned statement. * perl/lib/RDF/Redland/Model.pm: Update for Node, Statement API changes and no need to copy here (sources,targets,arcs): Don't copy statements to new lists. * perl/lib/RDF/Redland/Statement.pm (new): Constructor now copies as well as building statements. Takes string literals, URIs by sniffing for classes. (new_from_statement,new_from_nodes): Replaced by new. (clone): Another way to do new_from_statement (subject,predicate,object): Do less work, always return a copy. Document these changes * perl/lib/RDF/Redland/Node.pm (new): Constructor now builds resources, literals, URIs by sniffing for classes. (new_from_literal,new_from_typed_literal): Replaced with new_literal (new_xml_litearl): Added (new_from_node): Replaced with clone Document these changes * perl/rss-dump.pl: Comment out (working) code that lets perl do the URI retrieval, assume raptor has that. Slight updates for changed perl API. * perl/Makefile.am, perl/Makefile.PL: Pass on MEM to CFLAGS when building perl. 2003-08-19 Dave Beckett * java/org/librdf/redland/Node.java: Make nodes immutable - remove set methods setURI, setType, setLiteralValue. * perl/lib/RDF/Redland/Node.pm: Make nodes immutable. Remove set parts of methods uri, blank_identifier and type. Remove method set_literal_value. * python/RDF.py (Class Node): Make nodes immutable - remove set methods. 2003-08-17 Dave Beckett * configure.ac: Remove MEM=-DLIBRDF_MEMORY_DEBUG if no dmalloc present. * configure.ac: Added BDB 4.0 and 4.1 open interface support - 6 or 7 arguments. 2003-08-07 Dave Beckett * python/RDF.py (Model.serialise): Add optional contexts arg, to serialise contexts as stream of statements. (NS): New class to cache handy nodes from a namespace URI 2003-08-03 Dave Beckett * perl/Makefile.PL: Remove -Dbool=int - this can only cause trouble * perl/lib/RDF/Redland/Node.pm: Added methods is_resource, is_literal, is_blank using librdf_node_is_resource, librdf_node_is_literal, librdf_node_is_blank * python/RDF.py: Removed NODE_TYPE_LI (Node) is_resource, is_literal, is_blank now use librdf_node_is_resource, librdf_node_is_literal, librdf_node_is_blank 2003-07-30 Dave Beckett * csharp/test.cs: works somewhat - look, it makes a node * csharp/Makefile.am, configure.ac: ECMA CLR=>ECMI CLI since it's not just the runtime. ECMA CLI= ECMA Common Language Infrastructure. * csharp/test.cs: Initial version * csharp/Makefile.am: Run test.exe not test.cs * csharp/Makefile.am: Fix clean * csharp/Makefile.am: Remove extra ''s * csharp/Makefile.am: Move CSHARP_COMPILE and CSHARP_LINK here. Add .cs.exe rule Make test.exe (or try) * configure.ac: No need for CSHARP_COMPILE, dotGNU compiler accepts same args as mcs. * csharp/Makefile.am: No example.cs yet * csharp/README: Initial version 2003-07-29 Dave Beckett * csharp/Makefile.am: fix run * csharp/Makefile.am: fix install * csharp/Makefile.am: Use CSHARP_COMPILE Build shared lib * configure.ac: Also substitute CSHARP_COMPILE for csharp * csharp/Makefile.am: csharp stuff * configure.ac: Added --with-ecma-clr for mono or dotgnu versions of toolchain. Sets CLRRUN and CSHARPCC for use in csharp dir * Makefile.am: Added csharp dir 2003-06-24 Dave Beckett * configure.ac: Pick up any external CPPFLAGS, LDFLAGS, LIBS to start with. 2003-06-23 Dave Beckett * python/RDF.py: Statements, Model: more docs, usage. * python/Makefile.am: Added redlandtest.py * python/redlandtest.py: Redland Python unit tests * python/RDF.py: v0.8 Updates from Matt Biddulph. (class Model) Now takes optional storage, if omitted, a memory storage model is created (class StreamWithContextIter, class IteratorWithContextIter, class IteratorIter, class StreamIter): Internal classes to create python iterators out of redland stream/iterators. (class Stream): New method context_iter that returns a python iterator returning (stream, context node) tuple on each iteration. (class HashStorage): Simple class to simplify creating hashed storage. (class MemoryStorage): Simple class to simplify creating in-memory storage. (class Parser): Name is now optional, defaults to raptor and RDF/XML. (class Parser): Methods parse_as_stream, parse_into_model will autoconvert uri arguments that are strings into redland URIs. * python/test/test.py: s/if not thing/if thing is None/ 2003-06-04 Dave Beckett * autogen.sh: Report min SWIG version 2003-05-26 Dave Beckett * demos/rss-show.pl: words 2003-04-30 Dave Beckett * perl/lib/RDF/Redland/Model.pm: Same as before but with right package names (find_statements): Return copies of shared statements (sources,arcs,targets): Return copies of shared nodes * perl/lib/RDF/Redland/Model.pm (find_statements): Return copies of shared statemetns (sources,arcs,targets): Return copies of shared nodes 2003-04-22 Dave Beckett * python/RDF.py: Added blank node is_blank() method example (Node.__set_attr): Fix set_type (Node.get_blank_identiifer, Node.set_blank_identiifer): Added * python/RDF.py: some perlisms in the docs/comments * python/RDF.py: this one file is now also under BSD without advertising/MIT license 2003-04-15 Dave Beckett * docs/fix-pod-xhtml: and a newline * docs/fix-pod-xhtml: added xml decl * docs/fix-pod-xhtml: More fixing * docs/fix-pod-xhtml: New style POD to html cleanup * perl/lib/RDF/Redland/Storage.pm: add rest of storage options to docs 2003-04-02 Dave Beckett * Makefile.am, configure.ac: debian dir elsewhere 2003-03-29 Dave Beckett * python/RDF.py, docs/Makefile.am, demos/parser-tests.pl, demos/demo.pl, configure.ac, Makefile.am: Removed repat 2003-03-28 Dave Beckett * configure.ac: Initial locking for threads from Seth Ladd Added --with-threads for POSIX threads 2003-03-27 Dave Beckett * demos/demo.pl: utf-8 output * python/RDF.py (Stream.context): Use self.stream 2003-03-25 Dave Beckett * demos/rss-show.pl, demos/parser-tests.pl, demos/ntriples.pl, demos/demo.pl: Updated to 0.9.12 API 2003-03-20 Dave Beckett * demos/rss-show.pl: sort feeds case insensitively * demos/rss-show.pl: Added Annotate module 2003-03-13 Dave Beckett * python/RDF.py (Node.__init__): Add world arg to librdf_new_node_from_blank_identifier 2003-03-09 Dave Beckett * Makefile.am: added demos dir * demos/rss-show.pl, demos/ntriples.pl: absolutize some doc urls * configure.ac, Makefile.am: added demos dir * demos/rss-show.pl, demos/parser-tests.pl, demos/ntriples.pl, demos/demo.pl: point to source code * demos/rss-show.pl, demos/parser-tests.pl, demos/ntriples.pl, demos/demo.pl: add source code * demos/Makefile.am, demos/demo.pl, demos/ntriples.pl, demos/parser-tests.pl, demos/rss-show.pl: Redland CGI demos 2003-03-06 Dave Beckett * perl/serialize.pl (format_element_content,format_attribute): Added to escape &, <, > things etc. 2003-03-05 Dave Beckett * perl/serialize.pl: Whitespace tidying. (emit_literal_element): Added, for doing 1-line literals Fix datatypes. Emit multiple rdf:type properties too. * python/RDF.py: (Node.get_literal_value) Correct datatype URI method call to only operate if there is a datatype URI. (Stream._del_): Work when there is no redland Stream. (Parse.parse_as_stream): Return None if parsing fails, not an empty Stream. * perl/lib/RDF/Redland/Node.pm (literal_datatype): Added, return the URI of the literal datatype or undef if not one. * perl/lib/RDF/Redland/Parser.pm (parse_as_stream): Return undef if parsing fails, don't return a stream * perl/lib/RDF/Redland/Stream.pm (DESTROY): Handle wrapping an empty stream - might happen when a search fails straight away. * perl/serialize.pl (predicate_split): Fix (emit_empty_element) Pull out some more element building stuff - for now. main - declare an OWL namespace just for testing * perl/serialize.pl: added emit_start_element, emit_end_element now rdf:RDF declares its namespaces * perl/serialize.pl: Make blank node subject and objects work. 2003-03-04 Dave Beckett * Makefile.am: expat sources not included * configure.ac: expat sources not included building against expat / libxml sources no longer supported. * python/RDF.py: Bogus quotes * java/org/librdf/redland/Model.java: (add) (nodes, typed nodes versions) Copy redland nodes before adding. * perl/t/test2.t: Added test of Model method add_typed_literal_statement Added test of Serializer method serialize_model_to_file * python/test/test.py: Added test of model.add_typed_literal_statement * python/RDF.py (Model.add_typed_literal_statement): Copy redland nodes before adding. 2003-03-03 Dave Beckett * perl/Makefile.am: make clean targets run when perl isn't enabled. * perl/Makefile.PL: Grab version from redland-src-config * perl/Makefile.am: Use $(srcdir)/Makefile.PL * python/Makefile.am: Use $(srcdir)/setup.py * java/Makefile.am: clean-java - don't leap down subdirs to clean stuff too early - confuses autoconf. * configure.ac: More AC_CONFIG_FILES tidying * perl/lib/RDF/Redland/Node.pm (new_from_typed_literal): Added, creating a datatyped literal. * perl/lib/RDF/Redland/Model.pm (add, add_typed_literal_statement): Copy the nodes before passing on - more natural for perl. * autogen.sh: Require autoconf 2.53+ * configure.ac: Require autoconf 2.53+ Update AC_OUTPUT to new form 2003-02-26 Dave Beckett * python/RDF.py (RDF.set_message_handler): Added. Make a class method (message_handler): Moved out of RDF.World class. (RDF.World): Use RDF.message_handler (RDF.Stream): Docs. 2003-02-25 Dave Beckett * Makefile.am: Add man pages to dist 2003-02-20 Dave Beckett * autogen.sh: export autotools to configure * autogen.sh: Tidying * autogen.sh: run libtoolize in each configure.ac dir * Makefile.am: acconfig.h not needed * autogen.sh: Update to use automake 1.6, autoconf 2.52 min * configure.ac: configure.ac replacing configure.in 2003-02-15 Dave Beckett * docs/fix-python-xhtml: Emit XML declaration * python/RDF.py: typo 2003-02-14 Dave Beckett * Makefile.am: added redland-config.1 2003-02-12 Dave Beckett * Makefile.am: No RELEASE, TODO * java/org/librdf/redland/Makefile.am: Add Hash.ajva to dist 2003-01-31 Dave Beckett * Makefile.am: utils now has buildable stuff * Makefile.am: scripts now utils 2003-01-29 Dave Beckett * tcl/Makefile.am: Fix so it doesn't compile over the input file. Bad $? / $< again * java/org/librdf/redland/Model.java: (add/remove) Added contexts version of methods (context_remove): Added, remove all statements with given context. * java/Makefile.am: $< wrong for build jars, add all files * python/RDF.py: (Model) Added contexts methods, as optional args to add/remove statements methods. New method: context_remove_statements * perl/lib/RDF/Redland/Model.pm (add_statement,add_statements,remove_statement): Add optional context arg. (remove_context_statements): Added. * php/php.ini: added safe_mode = Off, says Ron * autogen.sh: require swig 1.3.14 min * docs/fix-python-xhtml, docs/fix-pod-xhtml: dates * Makefile.am: Renamed aux dir to scripts 2003-01-27 Dave Beckett * tcl/Makefile.am, ruby/Makefile.am, python/Makefile.am, perl/Makefile.am, java/Makefile.am, docs/Makefile.am, php/Makefile.am: Remove $? and replace with $< or full dependencies 2003-01-03 Dave Beckett * Makefile.am: Added RELEASE.html RELEASE redland-bindings-1.0.16.1/ChangeLog.50000644000175000017500000012227610406201370014003 000000000000002004-12-31 Dave Beckett * ruby/README.txt: 1.8.2 tested * ruby/test/test_node.rb: require 'rdf/redland' * ruby/test/test_model.rb (test_parse_and_merge): Require memory HashStore to get contexts. * ruby/test/test_model.rb (test_parse_and_merge): Requires store with contexts. * ruby/lib/rdf/redland.rb: require log4r require more load shared lib * ruby/test/Makefile.am, ruby/Makefile.am: Less -I * ruby/lib/rdf/redland/uri.rb: don't require 'uri' * ruby/lib/rdf/redland/stream.rb: re-add util * ruby/lib/rdf/redland/stream.rb: require less * ruby/lib/rdf/redland/store.rb: require 'rdf/redland' * ruby/lib/rdf/redland/statement.rb: no need for util * ruby/lib/rdf/redland/resource.rb: include Redland * ruby/test/Makefile.am: tidy args * ruby/lib/rdf/redland/serializer.rb: require 'rdf/redland' * ruby/lib/rdf/redland/resource.rb (Resource.add_property): default to nil context. * ruby/lib/rdf/redland/constants.rb: Use Redland:: for Namespace * ruby/lib/rdf/redland/model.rb (Model.create_resource): default to nil context. 2004-12-30 Edd Dumbill * csharp/Util.cs: (StringToHGlobalUTF8 ()): marshal .NET string to UTF-8 (UTF8PtrToString ()): marshal unmanaged UTF-8 to .NET string * csharp/Model.cs, csharp/Node.cs, csharp/Parser.cs, csharp/Query.cs, csharp/QueryResults.cs, csharp/Serializer.cs, csharp/Storage.cs, csharp/Uri.cs: replace calls to StringToHGlobalAuto with StringToHGlobalUTF8 * csharp/Errors.cs, csharp/Node.cs, csharp/QueryResults.cs, csharp/Statement.cs, csharp/Uri.cs: replace calls to PtrToStringAuto with UTF8PtrToString * csharp/examples/EncodingTest.cs: unit test for round tripped encoding methods 2004-12-30 Dave Beckett * ruby/test/Makefile.am: Note test/unit.rb is in 1.8.0+ * ruby/lib/rdf/redland/parser.rb: tidy * ruby/Makefile.am: fix RUBYLIB * ruby/lib/rdf/redland/schemas/foaf.rb, ruby/lib/rdf/redland/dc.rb: require 'rdf/redland' * ruby/lib/rdf/redland.rb: require resource Delete uri_hash - not needed at this level. * ruby/lib/rdf/redland/statement.rb: fix requires * ruby/lib/rdf/redland/query.rb: Tried to fix syntax errors, failed. * ruby/lib/rdf/redland/schemas/foaf.rb: Update from http://lists.w3.org/Archives/Public/www-archive/2004Dec/att-0053/foaf.rb by Dan Brickley 2004-12-22 Dave Beckett * python/test/test.py: Use RDFXMLSerializer explicitly * python/RDF.py (class Serializer): Added more docs. (Serializer.__init__): More docs. (class NTriplesSerializer): Added (class RDFXMLSerializer): Added * python/RDF.py (Parser.parse_into_model, Parser.parse_string_into_model, Serializer.serialize_model_to_file): Try to promote base_uri strings to RDF.Uri 2004-12-20 Dave Beckett * perl/lib/RDF/Redland/Query.pm: doc fix 2004-12-12 Dave Beckett * configure.ac: Added REDLAND_VERSION_VERBOSE separate from REDLAND_VERSION, the former for printing 2004-11-26 Dave Beckett * configure.ac: AC_SUBST(REDLAND_VERSION) 2004-11-25 Dave Beckett * redland-bindings.spec.in: Substitute @REDLAND_VERSION@ 2004-11-09 Dave Beckett * python/RDF.py: Use Redland_python.librdf_python_unicode_to_bytes to turn any passed-in Python Unicode into UTF-8 strings for Redland API calls. (Node.__unicode__, Statement.__unicode__, Model.__unicode__, URI.__unicode__): Added to return Unicode representations, * python/redland-post.i: Added a copyright header. (librdf_python_unicode_to_bytes): Added, to turn a Python Unicode string like u"foo" into the UTF-8 string equivalent. Uses raptor's raptor_unicode_char_to_utf8. * perl/lib/RDF/Redland/Query.pm (new): better docs * csharp/Query.cs: Query (World world, string s, Uri uri, string query_language): Gains another argument, query_uri and the first uri becomes base_uri as originally defined. * python/RDF.py (Query.__init__): Added query_uri argumetn and use base_uri correctly. * perl/lib/RDF/Redland/Query.pm (new): Add base_uri argumemt * configure.ac, RELEASE.html, NEWS.html: 0.9.20.1 2004-11-04 Dave Beckett * ruby/test.rb, ruby/example.rb: swap example.rb/test.rb so that example.rb uses the rich interface * docs/objc.html: Objective-C/Cocoa for OSX (shipped externally) 2004-11-03 Dave Beckett * ruby/lib/rdf/redland.rb: remove log4r, not part of standard ruby distribution. * ruby/README.txt: updated * ruby/Makefile.am, ruby/test.rb: Added test.rb * configure.ac: Check redland version matches this package version. * redland-bindings.spec.in: more ruby fixes * ruby/lib/rdf/Makefile.am, ruby/lib/rdf/redland/Makefile.am, ruby/lib/rdf/redland/schemas/Makefile.am: update rubydir * configure.ac: Get RUBY_LIBDIR * ruby/test/README, ruby/test/triples.rdf, ruby/test/Makefile.am: Ignore test failures since Test::Unit seems old * configure.ac: Fixes for updated Ruby rdf-redland 0.5.3.1 * ruby dir updated to rdf-redland 0.5.3.1 * redland-bindings.spec.in: Added redland-ruby * configure.ac: Bumped version to 0.9.18.2 2004-11-02 Dave Beckett * Snapshotted redland-bindings_0_9_19_1 for 0.9.19.1 release * perl/example.pl: Added to_string tests * perl/lib/RDF/Redland/Serializer.pm (serialize_model_to_string): Added. * perl/example.pl: Added model->to_string check * perl/lib/RDF/Redland/Model.pm (to_string): Added to serialize to a string. * Makefile.am, LICENSE.html, NOTICE, README.html, redland-bindings.spec.in, LICENSE-2.0.txt, MPL.html: LGPL / Apache 2.0 license - remove MPL MPL.html add Apache2 LICENSE-2.0.txt NOTICE * Switched to LGPL / Apache 2.0 license in the sources CVS tags before: redland_bindings_license_lgpl_mpl, and after: redland_bindings_license_lgpl_apache2 * php/redland_wrap.c.patch: update patch * perl/lib/RDF/Redland/Query.pm: docs * csharp/AssemblyInfo.cs: Less boilerplate 2004-10-26 Dave Beckett * perl/lib/RDF/Redland/Query.pm, perl/lib/RDF/Redland/Parser.pm: Don't do $uri=$uri->{URI} to ensure object ref lives. 2004-10-22 Dave Beckett * redland-bindings.spec.in: based on redland 0.9.19 2004-10-21 Dave Beckett * python/RDF.py: General python fix. Do not do uri = uri._reduri where uri is an RDF.Uri() since that causes Python to delete the RDF.Uri object, making the redland uri object useless. * python/example.py: Added serialize example * configure.ac: 0.9.19.1 2004-10-20 Dave Beckett * python/RDF.py (Model.to_string): Added. (Model.__str__): Added. 2004-10-09 Dave Beckett * ruby/Makefile.am, python/Makefile.am, php/Makefile.am, perl/Makefile.am, java/Makefile.am: Remove use of $< with @REDLAND_SWIG@ since BSD make sucks^w doesn't support it. 2004-10-01 Dave Beckett * perl/lib/RDF/Redland/Model.pm: (load) Added using librdf_model_load 2004-10-01 Edd Dumbill * csharp/World.cs: (World ()): assign logging delegate to private member to stop it being prematurely GC'd 2004-09-29 Dave Beckett * php/redland_wrap.c.patch: updated * php/redland-typemap.i: typemaps for php * php/Makefile.am: Added redland-typemap.i Use REDLAND_TYPEMAP_I * php/test.php: url typo 2004-09-24 Dave Beckett * python/Makefile.am: Use PYTHON_LDFLAGS for OSX/rest of world shared library flags * configure.ac: Make PYTHON_LDFLAGS * python/RDF.py (Node.__init__): document 'language' for literal language, while allowing xml_language to continue working. (Node.literal_value): document keys of the dictionary. 2004-08-25 Dave Beckett * demos/rss-show.pl: Made 'box' param a checkbox. Added 'hide' into a checkbox param to not print out the content. Tidy messages to be more strident. 2004-08-13 Dave Beckett * perl/lib/RDF/Redland/Query.pm (execute): Wrap any return object as a perl QueryResults * perl/README.txt: Removed. Described 2 year old API update * perl/Makefile.am: Remove README.txt for old api update * perl/lib/RDF/Redland/Query.pm: doc typo * docs/perl.html: link to POD QueryResults.html correctly. * perl/lib/RDF/Redland/QueryResults.pm: Update documentation. * perl/lib/RDF/Redland/Query.pm: Fix example, use $results->bindings_count 2004-08-12 Dave Beckett * python/example.py: update to final 0.9.18 redland query api 2004-08-11 Dave Beckett * configure.ac: Look in $JAVA_HOME for the JDK. Duh! * configure.ac: Don't muck about with the PATH (for OSX fink in this case). This might make things fail to build later when programs found on the customised path aren't available. Users should edit the PATH before calling configure. 2004-08-10 Dave Beckett * configure.ac: --with-jdk with an ARG now looks for the includes/headers subdir using the existing search code. Use head -n 1 2004-08-05 Edd Dumbill * csharp/TODO: * TODO: remove completed tasks. 2004-08-03 Dave Beckett * configure.ac: Bumped version to 0.9.18.2 * Snapshotted redland-bindings_0_9_18_1 for 0.9.18.1 release * configure.ac: Bumped version to 0.9.18.1 * Snapshotted redland-bindings_0_9_17_1 for 0.9.17.1 release * java/Makefile.am: Add run-java to dist 2004-07-28 Dave Beckett * autogen.sh: move 'rm's inside configure.ac loop * autogen.sh: Ensure subdirs get config.guess, config.sub * php/Makefile.am: maint clean the orig file * perl/lib/RDF/Redland.pm: Added links to Query and QueryResults 2004-07-27 Dave Beckett * php/Makefile.am: Oops, use -DREDLAND_INIT_I to get init of redland world by PHP * php/redland-post.i: declare static function prototypes * php/Makefile.am: Added redland_wrap.c.patch to dist 2004-07-26 Dave Beckett * Makefile.am: bindings in html * ruby/README.txt: grammar 2004-07-23 Dave Beckett * AUTHORS: Dominic Sisneros email * configure.ac: 0.9.17.1 * python/test/test.py, python/RDF.py, perl/lib/RDF/Redland/Parser.pm, perl/serialize.pl, perl/example.pl, java/test2.java, java/test1.java, java/skeleton.java, csharp/examples/example4.cs, csharp/examples/example2.cs, csharp/examples/example1.cs, csharp/test.cs, csharp/Parser.cs: Replace parser name "raptor" with "rdfxml" 2004-07-20 Edd Dumbill * csharp/Node.cs: Added my name to header. 2004-07-20 Dave Beckett * php/Makefile.am: redland-pre.i wasn't helping remove multiple defines warnings * php/redland-pre.i: undef things via command line * tcl/Makefile.am: Use TCL_DIR to remove use of backticks * configure.ac: Added TCL_DIR to remove use of backticks in a makefile * ruby/Makefile.am: Use RUBY_LIB, RUBY_DIR to remove use of backticks * configure.ac: Added RUBY_LIB, RUBY_DIR to remove use of backticks in a makefile Tidy * php/Makefile.am: Use PHP_EXTENSION_DIR to remove use of backticks in a makefile * configure.ac: Added PHP_EXTENSION_DIR to remove use of backticks in a makefile Tidy * ruby/Makefile.am, python/Makefile.am, php/Makefile.am, perl/Makefile.am, java/Makefile.am, csharp/examples/Makefile.am, csharp/Makefile.am: Re-added REDLAND_RUN for running tests when compiling against librdf in source (not installed) form. * configure.ac: Added REDLAND_RUN with a space * configure.ac: convert an internal REDLAND_CONFIG into an absolute path 2004-07-20 Edd Dumbill * examples/StreamTest.cs: (ParseAsStream ()): fix for streams. (IterateModel ()): fix for iterators. (FindStatements1 ()): fix for iterators. (FindStatementsWithContext ()): fix for iterators. * Iterator.cs: (MoveNext ()): handle case where iterator is empty. * Stream.cs: (MoveNext ()): handle case where stream is empty. * Uri.cs: (Uri (IntPtr)): add internal constructor to build Uri from a Redland URI. * Node.cs: (Uri): add property to get underlying Redland URI. * Errors.cs: (RedlandError): new constructor with no log messages. * Node.cs: Add NodeType enumeration. (Type): add new property to get type (IsResource ()): return true if resource. (IsLiteral ()): return true if literal. (IsBlank ()): return true if blank. 2004-07-20 Edd Dumbill * Stream.cs: (GetEnumerator ()): Implement IEnumerable. (MoveNext ()): Properly implement: at start, position should be before the first element, not on it. * Iterator.cs: (GetEnumerator ()): Implement IEnumerable. (MoveNext ()): Properly implement: at start, position should be before the first element, not on it. * test.cs: Fix to work with iterator fixes. 2004-07-19 Dave Beckett * redland-bindings.spec.in: core docs in all packages * redland-bindings.spec.in: no need to configure loads of redland things no need to make install librdf * configure.ac, Makefile.am: remove redland-bindings.pc.in * redland-bindings.spec.in: full package names * configure.ac: 0.9.17.0.1 * redland-bindings.spec.in: fix package names * redland-bindings.spec.in: redland-bindings spec * Makefile.am, configure.ac: added redland-bindings.spec * Makefile.am: zap man_MANS * php/Makefile.am, python/Makefile.am: backticks * python/Makefile.am, ruby/Makefile.am, ruby/test/Makefile.am, tcl/Makefile.am, csharp/Makefile.am, csharp/examples/Makefile.am, docs/Makefile.am, java/Makefile.am, perl/Makefile.PL, perl/Makefile.am, php/Makefile.am, ChangeLog, Makefile.am, configure.ac: redland-bindings fixes * AUTHORS, autogen.sh: redland-bindings * java/run-java: run java test programs in source tree * ruby/README.txt: Point to rdf-redland at RubyForge 2004-07-14 Dave Beckett * csharp/Serializer.cs: (Serializer (World world, string name, string mime_type, Uri type_uri)): Replace cast to Object with use of Uri.operator== * csharp/Uri.cs (Equals, operator ==, operator !=, GetHashCode): Added. * csharp/Statement.cs: (Statement (World world, Node subject, Node predicate, Node obj)): Removed casts to Object and allow calls to Node.operator!= * csharp/Node.cs (operator ==, operator !=): Added tests for null using Object.Equals written by Edd Dumbill. * csharp/Redland.cs, csharp/MemoryStorage.cs, csharp/Iterator.cs, csharp/IWrapper.cs, csharp/HashStorage.cs, csharp/URI.cs: Added CVS IDs to the header. 2004-07-14 Edd Dumbill * csharp/examples/example2.cs: write to console when Exiting: helpswith debugging GC snafus. * csharp/Makefile.am: ensure MONO_PATH=. for running the test prog * csharp/Uri.cs: general indenting fixes. uri: initialise to IntPtr.Zero (Dispose): added, implemented IDisposable. * csharp/Stream.cs: general indenting fixes. Implement IDisposable. stream: init to IntPtr.Zero. (Current): remove tmp var, add FIXME note. (MoveNext): remove tmp var dance. (End): remove tmp var. (CurrentStatement): Added, which is (Statement) Current. * csharp/Storage.cs: general indenting fixes. Implement IDisposable. storage: init to IntPtr.Zero * csharp/Statement.cs: general indenting fixes. stm: intialise to IntPtr.Zero (Subject, Predicate, Object properties): added get accessors. (Statement (IntPtr)): copy underlying statement with librdf_statement_new_from_statement (~Statement): test for IntPtr.Zero (Dispose): Renamed from ~Statement(). Implement IDisposable. * csharp/Serializer.cs: Implement IDisposable. serializer: init to IntPtr.Zero. * csharp/QueryResults.cs: general indenting fixes. query_results: init to IntPtr.Zero; Implement IDisposable. (MoveNext): remove tmp var. (End): remove tmp var. (AsStream): remove tmp var, add FIXME note. (BindingValue): remove tmp var. (BindingValueByName): remove tmp var. Implement IEnumerable. (QueryResults): remove need to pass original query, make constructor internal. * csharp/Query.cs: general indenting fixes. Implement IDisposable. query: init to IntPtr.Zero. (Query (Word, string, Object, string)): init iuri to IntPtr.Zero, not null. Change third parameter to Uri type, not Object. (Query (string)): use constified name for RDQL. (Execute): adjust to new form of QueryResults ctor. * csharp/Parser.cs: general indenting fixes. Implement IDisposable. parser: init to IntPtr.Zero (Parser (World, string, string, Uri)): remove ability to construct with null World. (ParseIntoModel): add FIXME note. (ParseAsStream): add FIXME note. (ParseStringAsStream): add FIXME note. * csharp/Model.cs: general indenting fixes. model: initialize to IntPtr.Zero. (Dispose). Renamed from ~Model. Implement IDisposable, test for IntPtr.Zero. (FindStatements): remove unneeded temp var. (GetSources): add FIXME item. (GetTarget): drop exception and make look like GetPredicate, GetSource. (GetTargets): make look like GetSources, GetPredicates. Add FIXME. (ToStream): add FIXME note. (GetFeature): return null on failure, like GetSource and friends. (QueryResults): add FIXME note. (Model (World, Storage, string)): keep a reference around to the storage, as we must not be GC'd before it is. Future thought: do we really need Model and Storage to be separate classes? (Execute): adjust to new form of QueryResults ctor (see ChangeLog) * csharp/Node.cs: general indenting fixes. node: initialise to IntPtr.Zero (~Node): test for IntPtr.Zero, not == null (Node (IntPtr)): use librdf_new_node_from_node to copy underlying node. (Dispose): Renamed from Move ~Node. Implement IDisposable. * csharp/Iterator.cs: general indenting fixes. Implement IDisposable. iterator: init to IntPtr.Zero. (Current): remove tmp var, add FIXME note. (MoveNext()): remove tmp var, add explanatory comment. (End): remove tmp var. Remove unused field pos. (CurrentNode): Added, which is (Node) Current. 2004-07-13 Dave Beckett * perl/Makefile.am: Added MAKE_PL_OPTS for "perl Makefile.PL" target * docs/Makefile.am: Added RDF::Redland::Query and QueryResults perl docs 2004-07-12 Dave Beckett * Makefile.am: Install Redland.i in $(pkgdata) * python/Makefile.am, ruby/Makefile.am, ruby/redland-pre.i, ruby/redland-types.i, tcl/Makefile.am, tcl/redland-init.i, tcl/redland-pre.i, php/Makefile.am, php/redland-decl.i, php/redland-init.i, php/redland-post.i, php/redland-pre.i, php/redland_wrap.c.patch, python/redland-decl.i, python/redland-post.i, perl/Makefile.am, perl/redland-decl.i, perl/redland-post.i, perl/redland-pre.i: Split SWIG bits into general and language-specific parts 2004-07-09 Dave Beckett * docs/Makefile.am: Dont ship old pictures overview.png overview.ps overview.pdf * csharp/ChangeLog: ChangeLog in CVS now 2004-07-09 Edd Dumbill * csharp/World.cs: Move logging to use the new librdf logging API. (Messages property): Added, an array of LogMessages accumulated since the last ClearLog call. (LogLevel method): Added, for getting and setting the logging level. * csharp/Parser.cs: Use World.Messages as the basis of exceptions. * csharp/Errors.cs: Added enums LogLevel and Facility. Added class Locator to encapsulate locator part of a log message. Added class LogMessage to encapsulate a returned log message from librdf. Changed RedlandFault and RedlandError to store an array of LogMessages instead of strings. (Edd Dumbill) 2004-07-08 Dave Beckett * csharp/Parser.cs: Added ParseError, a RedlandError subclass. (ParseStringIntoModel, ParseIntoModel, ParseStringAsStream): Check for errors during parsing. * csharp/World.cs: Added Errors, Warnings support (ClearLog): Added to empty the errors and warnings lists. (Enter): To lock world for gathering errors (Exit): To unlock world after gathering errors (setupHandlers): Use a delegate intErrorHandler (function pointer in C) to register callbacks for errors and warnings. (dispatchError, dispatchWarning): Added the error, warning gatherers. * csharp/Errors.cs, csharp/Makefile.am: Added Errors.cs * docs/Makefile.am: Re-add query_results to DOC_CLASSES * docs/Makefile.am: remove query_results * docs/Makefile.am: added query_results to DOC_CLASSES 2004-07-07 Dave Beckett * perl/lib/RDF/Redland.pm: Added QueryResults.pm * perl/example.pl: Added Query and QueryResults test * perl/lib/RDF/Redland/QueryResults.pm: working * perl/lib/RDF/Redland/Query.pm: Split into query and results classes. * perl/lib/RDF/Redland/Model.pm (query_execute): Added. * perl/Makefile.PL: Added QueryResults.pm * perl/lib/RDF/Redland/QueryResults.pm: QueryResults class * perl/lib/RDF/Redland/Makefile.am: Added QueryResults.pm 2004-07-06 Dave Beckett * csharp/QueryResults.cs: no need for first * csharp/QueryResults.cs: Handle first result special, always store current result. * csharp/test.cs: print query results * csharp/Node.cs: Destructor object checking works now, dunno why. * csharp/test.cs: C# query test * csharp/QueryResults.cs (Current): Return null when exhausted. * csharp/Node.cs: Added destructor object checking. Comment it out since it hangs mono and mono-debugger unless run mono -v. * csharp/Iterator.cs, csharp/Statement.cs, csharp/Parser.cs: Added destructor object checking * csharp/Model.cs: Added destructor object checking (Execute): Call librdf_model_query_execute * csharp/Query.cs: Deleted no-args constructor - does not exist. Fixed main constructor. Added destructor. * csharp/World.cs, csharp/Stream.cs, csharp/Storage.cs, csharp/Statement.cs, csharp/Serializer.cs, csharp/Parser.cs, csharp/Node.cs, csharp/Model.cs, csharp/Iterator.cs: Added destructors for all classes * configure.ac: formatting * configure.ac: Added GACUTIL, SN, ILGAC and report ECMA CLI in languages available * csharp/Makefile.am: Typo * python/Makefile.am: Use mkinstalldirs to make python install dest * configure.ac: Added ilgac, gacutil, sn * python/Makefile.am: Remove mkdir_p - automake 1.8 only. Packaging can fix 2004-07-05 Dave Beckett * csharp/QueryResults.cs: pos * csharp/Model.cs: Added Execute method * csharp/Makefile.am: Added Query.cs QueryResults.cs * csharp/Query.cs, csharp/QueryResults.cs: redland csharp Query classes * csharp/Model.cs: Added methods: GetContexts, GetFeature, SetFeature, Load * csharp/Makefile.am: typo 2004-06-30 Dave Beckett * docs/Makefile.am: Added csharp.html 2004-06-29 Dave Beckett * python/RDF.py: debug msgs * python/RDF.py (NS.node): Mint a new node each time, don't try to share. 2004-06-28 Dave Beckett * python/RDF.py (message_handler): Invoke warnings.warn to try to get a warning that doesn't disturb the program and shows something like the right stack level. 2004-06-23 Dave Beckett * python/Makefile.am: Remove MANIFEST.in 2004-06-22 Dave Beckett * configure.ac: removed --with-libwww - has not been used for anything for a long while. * python/Makefile.am: Add AM_LDFLAGS to get MEM_LIBS 2004-06-17 Dave Beckett * csharp/Makefile.am: added DESTDIR to install target * csharp/test.cs: Redland namespace * python/test/test.py: test model.matches * python/RDF.py (Node.__eq__, Node.__ne__, Statement.__eq__, Statement.__ne__, Model.matches, Uri.__eq__, Uri.__ne__): Simpler boolean return. * csharp/Redland.cs, csharp/Serializer.cs, csharp/Statement.cs, csharp/Storage.cs, csharp/Stream.cs, csharp/Uri.cs, csharp/Util.cs, csharp/World.cs, csharp/examples/GetsTest.cs, csharp/examples/ModelGeneralTest.cs, csharp/examples/ModelTest.cs, csharp/examples/SimpleGetsTest.cs, csharp/examples/StreamTest.cs, csharp/examples/example1.cs, csharp/examples/example2.cs, csharp/examples/example3.cs, csharp/examples/example4.cs, csharp/test.cs, csharp/HashStorage.cs, csharp/IWrapper.cs, csharp/Iterator.cs, csharp/MemoryStorage.cs, csharp/Model.cs, csharp/Node.cs, csharp/Parser.cs: namespace from Rdf to Redland * csharp/examples/example3.cs, csharp/examples/example2.cs, csharp/examples/example1.cs: Use new Rdf.Uri to make Uris for nodes * csharp/examples/StreamTest.cs (Contains): Make sure a Uri or literal is used correctly. * csharp/Node.cs: Added Node constructors with just a System.Uri - making a URI node just a string - making a literal node Modified is_wf_xml arg to be bool. * csharp/Model.cs: (Contains) opt bool * csharp/examples/example3.cs: don't use token as a name * csharp/examples/example4.cs, csharp/examples/example3.cs, csharp/examples/example2.cs: tidy test filenames * csharp/examples/example1.cs: Use serializer.SerializeModel direct to a file. * csharp/examples/Makefile.am: tidy test filenames * csharp/Util.cs: added fclose * csharp/Serializer.cs (SerializeModel): Added overloaded method taking a filename and using librdf_serializer_serialize_model_to_file to avoid use of file handles. * csharp/examples/StreamTest.cs (Contains): actually test model.Contains * csharp/Serializer.cs, csharp/Parser.cs: Use (Object)foo == null * csharp/Statement.cs: private Statement (World world, Node subject, Node predicate, Node obj): Compare Node pointers for nullness as Object to prevent trying to invoke null.opEquality(foo) * csharp/Parser.cs: remove debug msg * csharp/examples/StreamTest.cs (ParserStringAsStream): Remove extra pairs of "s at start and end of rdf/xml string. * csharp/Statement.cs: remove debug msg * csharp/Parser.cs: debug msg * csharp/Statement.cs: private Statement (World world, Node subject, Node predicate, Node obj): Pass in Handles not C# object refs * configure.ac: PKG_CONFIG * csharp/Makefile.am: dist contains redland.pub * csharp/Makefile.am: fix redland.pub rule * csharp/redland.pub: Redland.dll public key * csharp/Makefile.am: Add warning if redland.pub rule is run * csharp/Makefile.am: sign-mono rule not needed if AssemblyInfo.cs has redland.pub * csharp/Makefile.am: DLL requires redland.pub * csharp/AssemblyInfo.cs: Redland.dll Assembly info * csharp/Makefile.am: Ship redland.pub (public key) Add scary warnings for redland.snk, redland.pub rules. Use public key to sign * csharp/Makefile.am: Added AssemblyInfo.cs Added strong name and signing for mono. * csharp/Makefile.am, csharp/Util.cs: Renamed util.cs to Util.cs * csharp/test.cs: use Serializer * csharp/Node.cs (Print): Remove Console.WriteLine * csharp/test.cs: added printing out results of stream, iterator * csharp/test.cs: Remove world, now Redland.dll private. * csharp/examples/example4.cs, csharp/examples/example3.cs: write, don't append * csharp/Statement.cs: syntax * csharp/Statement.cs: remove set_pointer Statement (World world, Node subject, Node predicate, Node obj): copy nodes * csharp/Node.cs: Added Node copy constructor * csharp/examples/Makefile.am: clean just tests * csharp/examples/Makefile.am: Require nunit-console.exe * csharp/examples/StreamTest.cs: Use ../../data/dc.rdf * csharp/examples/Makefile.am, csharp/Makefile.am: Remove dup CSHARPCFLAGS * csharp/examples/Makefile.am: Add CSHARPCFLAGS * csharp/Makefile.am: Add CSHARPCFLAGS, CLI_PREFIX Add install-mono, install-pnet * configure.ac: Add CSHARPCFLAGS, CLI_PREFIX * csharp/Makefile.am: Switch to always using ' -' options not mixture of that and ' /' options. Added install-mono target * csharp/examples/Makefile.am: Make nunit-console.exe here (maintainer mode) and ship it. Switch to always using ' -' options not mixture of that and ' /' options. * csharp/examples/AssemblyInfo.cs, csharp/examples/ConsoleUi.cs: nunit-console source unchanged 2004-06-14 Dave Beckett * csharp/examples/example4.cs: Use ../../data/dc.rdf * csharp/examples/dc.rdf: deleted, use data copy * csharp/Uri.cs, csharp/Storage.cs, csharp/Statement.cs, csharp/Serializer.cs, csharp/Parser.cs, csharp/Node.cs, csharp/Model.cs: For P/Invoke where a string is passed in or return, switch to IntPtr and manage the strings with Marshal.StringToHGlobalAuto and Marshal.FreeHGlobal. * python/RDF.py (Statement._wrap_node): Protect from null rednode (Statement.matches): Added to compare an incomplete statement with None values against a complete one, using Redland.librdf_statement_match * csharp/examples/Makefile.am: more CLEANFILES * csharp/examples/Makefile.am: unittests depends on ../Redland.dll * csharp/Uri.cs, csharp/Node.cs: Debug messages * csharp/Makefile.am: Make Redland.dll right * csharp/examples/Makefile.am: Unit tests fix 2004-06-13 Dave Beckett * csharp/Statement.cs (Statement.Statement): Do not call set_pointer with null pointers. * csharp/Node.cs (Equals): Return false if o is null. * configure.ac: Added csharp/examples dir * csharp/examples/example2.cs, csharp/examples/example3.cs, csharp/examples/example4.cs, csharp/examples/GetsTest.cs, csharp/examples/Makefile.am, csharp/examples/ModelGeneralTest.cs, csharp/examples/ModelTest.cs, csharp/examples/SimpleGetsTest.cs, csharp/examples/StreamTest.cs, csharp/examples/TemplateTest.cs, csharp/examples/dc.rdf, csharp/examples/example1.cs, csharp/Parser.cs, csharp/README, csharp/Redland.cs, csharp/Serializer.cs, csharp/Statement.cs, csharp/Storage.cs, csharp/Stream.cs, csharp/TODO, csharp/Uri.cs, csharp/World.cs, csharp/test.cs, csharp/HACKING, csharp/HashStorage.cs, csharp/IWrapper.cs, csharp/Iterator.cs, csharp/LICENSE, csharp/Makefile.am, csharp/MemoryStorage.cs, csharp/Model.cs, csharp/Node.cs: Imported redland-csharp by Cesar Lopez Nataren * configure.ac: Only muck about with removing -O2 from flags in maintainer mode. 2004-06-02 Dave Beckett * python/redlandtest.py: Updated tests to match query to query+query_results split and removal of run_as_bindings style. * python/RDF.py (Model): Removed run_as_bindings. Replaced run_as_statements with execute and wrapping of stream. Added execute. (Query): Removed __len__ Removed run_as_bindings. Replaced run_as_statements with as_stream. Added execute. (QueryResults): Renamed from QueryResultIterator Added more methods from the librdf_query API: as_stream, finished, get_binding_value, get_binding_name, get_binding_value_by_name, get_bindings_count. Added __del__ to tidy up. 2004-06-01 Dave Beckett * configure.ac: require Rasqal 0.9.1 2004-05-30 Dave Beckett * python/RDF.py (set_message_handler): docs * python/RDF.py: Make this 1.0 * perl/t/test3.t, perl/lib/RDF/Redland.pm (message): Return a handled value * perl/lib/RDF/Redland/Query.pm: more missing ;s Use $self not $query * perl/lib/RDF/Redland/Query.pm: missing ;s * python/test/test.py: dc.rdf now in data * python/redlandtest.py: dc.ttl * Makefile.am: Add data to dist subdirs * python/redlandtest.py: Patch from Matt Biddulph adding unit tests for the new Query class and the new NtriplesParser, TurtleParser parsing classes. Amended to move the test data files into ../data. * python/RDF.py: Patch from Matt Biddulph adding: (Model.run_as_bindings): Added to run a querying giving variable binding results. (Model.run_as_statements): Added to run a querying giving triple results. (TurtleParser, NTriplesParser): New convenience classes to create parsers for the Turtle and N-Triples syntaxes. (Query class): New class for querying using the new librdf_query Redland class. (QueryResultIterator class): New class for iterativing over variable binding results. * python/example.py: last change from Matt Biddulph * python/example.py: dc.rdf now in data dir Add RDF.Query test * ruby/example.rb, ruby/Makefile.am, php/test.php, perl/example.pl, perl/Makefile.am, perl/MANIFEST, java/test2.java, java/test1.java: dc.rdf now in data dir * data/Makefile.am: dc.ttl * configure.ac, Makefile.am: Added data dir 2004-05-29 Dave Beckett * autogen.sh: Add --enable-maintainer-mode * configure.ac: Made RASQAL_MIN_VERSION 0.9.0 Added LIBRDF_PKGCONFIG_LIBS for redland.pc * configure.ac: Remove use of LIBRDF_LIBS - merge into LIBRDF_EXTERNAL_LIBS and do not AC_SUBST. Always append to LIBRDF_LIBS, LIBRDF_CPPFLAGS rather than prepend, append mixtures. 2004-05-28 Dave Beckett * configure.ac: Look for BDB in /usr/local/BerkeleyDB.$version * configure.ac: typo: RASQAL_CONFIG * docs/Makefile.am: do not overwrite redland.3 if not in maintainer mode * configure.ac: Use automakefile conditionals MEMCMP and GETOPT 2004-05-18 Dave Beckett * perl/lib/RDF/Redland/Makefile.am: Added Query.pm * perl/lib/RDF/Redland/Query.pm: RDF query api * perl/Makefile.PL, perl/lib/RDF/Redland.pm: Added Query.pm 2004-05-13 Dave Beckett * configure.ac: Turn assert enable options into positive form. 2004-05-11 Dave Beckett * ruby/test/Makefile.am: Use stamp rule to ensure module is built. * ruby/Makefile.am: Rename stamp rule to be indep of the package name. * ruby/test/Makefile.am: echo failure line * ruby/README.txt: words * ruby/test/ical.rdf, ruby/test/triples.rdf: Ruby RDF test data * ruby/test/Makefile.am: Move rdf example data here. Add clean target. Tidy test running target. * ruby/Makefile.am: Remove test.rb * ruby/test/Makefile.am: Set -I paths right * configure.ac: use = not == in test * configure.ac: Make rasqal build internal and external. Add ruby test, lib dirs. * ruby/lib/rdfs/Makefile.am, ruby/test/Makefile.am, ruby/lib/Makefile.am, ruby/lib/rdf/Makefile.am, ruby/Makefile.am: Import more of Ruby RDF for Redland 2004-05-07 Dave Beckett * java/org/librdf/redland/Statement.java: Added equals method. * ruby/lib/rdf/statement.rb: Added == operator * perl/lib/RDF/Redland/Statement.pm: Added equals method. * python/RDF.py (Model.__eq__, Model.__ne__): Added for statement equality, inequality. * python/redlandtest.py: Added tests for statement equality, inequality. 2004-05-06 Dave Beckett * docs/Makefile.am: less doc classes; no real need for the implementation classes. * docs/Makefile.am: Added query_rasqal for docs * python/RDF.py: document using contexts 2004-05-05 Dave Beckett * configure.ac: make PHP_INCLUDES even without --with-php (ie PHP) * tcl/Makefile.am, ruby/Makefile.am, python/Makefile.am, php/Makefile.am, perl/Makefile.am, java/Makefile.am, csharp/Makefile.am: Apply CFLAGS, CPPFLAGS to pick up internal, external includes and src/build dirs. * configure.ac: assign rasqal_dir for SD_PRE * Makefile.am: Added ChangeLog.4 * configure.ac: SUBST raptor, rasqal min versions and use in build, packaging files. * configure.ac: SUBST with_rasqal * configure.ac: report rasqal source in summary * configure.ac: added rasqal * Makefile.am: Added rasqal 2004-04-28 Dave Beckett * ruby/README.txt: README.txt * ruby/test/test_serializer.rb, ruby/test/test_statement.rb, ruby/test/test_store.rb, ruby/test/test_uri.rb, ruby/lib/rdf/util.rb, ruby/lib/rdfs/class.rb, ruby/lib/rdfs/property.rb, ruby/lib/rdfs/rdfs_resource.rb, ruby/test/test_model.rb, ruby/test/test_node.rb, ruby/test/test_parser.rb, ruby/test/test_rdf.rb, ruby/test/test_rdfs_resource.rb, ruby/test/test_resource.rb, ruby/lib/rdf/parser.rb, ruby/lib/rdf/resource.rb, ruby/lib/rdf/serializer.rb, ruby/lib/rdf/statement.rb, ruby/lib/rdf/store.rb, ruby/lib/rdf/stream.rb, ruby/lib/rdf/uri.rb, ruby/lib/rdf/constants.rb, ruby/lib/rdf/convert_owl.rb, ruby/lib/rdf/convertfoaf.rb, ruby/lib/rdf/dc.rb, ruby/lib/rdf/foaf.rb, ruby/lib/rdf/model.rb, ruby/lib/rdf/node.rb, ruby/lib/rdf.rb, ruby/rdf-redland.gemspec: Import from rdf-redland-0.5.tgz from http://rubyforge.org/projects/ruby-rdf/ 2004-04-12 Dave Beckett * python/Makefile.am: Apply local cppflags to building wrapper 2004-04-11 Dave Beckett * python/test/test.py: test model.load * python/RDF.py (model.load): Added calling librdf_model_load 2004-04-08 Dave Beckett * configure.ac: require raptor 1.3.0 2004-03-27 Dave Beckett * tcl/Makefile.am: automake fixes for 1.7+ using newer macros * configure.ac: Do not -Wall automake, override is needed in language dirs. List specific warnings. * ruby/Makefile.am, python/Makefile.am, php/Makefile.am, csharp/Makefile.am: automake fixes for 1.7+ using newer macros * configure.ac, autogen.sh: Use some AM_INIT_AUTOMAKE options. Require automake1.7, which requires autoconf 2.54 2004-03-16 Dave Beckett * php/test.php: Add some PHP 4.3 compatible defines, and use them to find the right shared lib prefix, suffixes to load. * php/php.ini: Use False for bool * php/Makefile.am: try php -c . 2004-03-15 Dave Beckett * php/Makefile.am: Use -c php.ini rather than -d extension_dir=. which might prevent loading (wrong) global configuration. 2004-03-12 Dave Beckett * python/redlandtest.py: Added testParseStringAsStream * python/RDF.py: years * python/RDF.py (Model.add_statements): Use statement_stream._stream. * python/RDF.py (parser.parse_string_as_stream): Add base_uri to example - it's required. 2004-02-26 Dave Beckett * configure.ac: Subsitute LIBRDF_VERSION_DECIMAL 2004-02-24 Dave Beckett * configure.ac: Bumped version to 0.9.17 * Snapshotted redland_0_9_16 for 0.9.16 release (on branch redland_0_9_15-patches) 2004-02-23 Dave Beckett * configure.ac: Bumped version to 0.9.16 * Snapshotted redland_0_9_15 for 0.9.15 release 2004-02-16 Dave Beckett * python/RDF.py (Node.__init__): Use ._reduri for datatype uri arg 2004-02-02 Dave Beckett * perl/Makefile.am: fix test-perl * perl/Makefile.am: delete first test-perl * docs/Makefile.am: Add api.html and fragments 2004-01-31 Dave Beckett * configure.ac: Bumped version to 0.9.16 * tcl/Makefile.am, ruby/Makefile.am, python/Makefile.am, php/Makefile.am, perl/Makefile.am, java/Makefile.am, csharp/Makefile.am: Use redland-src-config --run COMMAND to run test programs with the shared libraries built in the source tree. * configure.ac, Makefile.am, Makefile.PL, docs/fix-python-xhtml, docs/fix-pod-xhtml, docs/Makefile.am: Restore "Redland RDF Application Framework" not "Library" * python/Makefile.am: PYTHON_INCLUDES * configure.ac: Improve python includes, libs checking. Report what's found. 2004-01-30 Dave Beckett * docs/Makefile.am: Added storage.html * python/Makefile.am: Make install dir * python/Makefile.am: nn * python/Makefile.am: hunt for redland-src-config * python/Makefile.am: another -I * python/Makefile.am: add a srcdir * python/Makefile.am: uninstall RDF.py * python/Makefile.am: Install RDF.py * python/Makefile.am: gah! * python/Makefile.am: more bits * python/Makefile.am: Restore unittest to make check * python/Makefile.am: Junk distutils. * configure.ac: Get python_include, python_lib and substitute. 2004-01-29 Dave Beckett * java/org/librdf/redland/Model.java (findStatements): Added with context_node. (getContexts): Added. 2004-01-25 Dave Beckett * configure.ac: Added --disable-assert and --disable-assert-messages to prevent (default) compilation of assertion code and outputing of messages when the assertions fail. * perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Model.pm (DESTROY): Remove debug message fixme. 2004-01-24 Dave Beckett * configure.ac: RAPTOR_MIN_VERSION=1.2.0 * Makefile.am: Add Changelog.1-3 to dist 2004-01-21 Dave Beckett * configure.ac: If /sw/bin, add to END of PATH for OSX 2004-01-17 Dave Beckett * python/RDF.py: Added FileStorage * csharp/Makefile.am: touch stamp after build * csharp/Makefile.am: Update clean * csharp/Makefile.am: Update fakery * perl/Makefile.PL: Stop perl linking to destdir 2004-01-15 Dave Beckett * java/Makefile.am: More OSX-only things; the JNI libs install with a different name! * python/RDF.py (Model.get_contexts): Fix Iterator call. * java/Makefile.am: Add DYLD_LIBRARY_PATH to try to make 'make check' work on OSX. * configure.ac: Add OSX dirs to JDK search guesses * ruby/Makefile.am: Try to find the right libruby another way * python/RDF.py: Export NS class. (Parser. parse_string_as_stream): Promote string URI to a Redland Uri. 2004-01-14 Dave Beckett * configure.ac: help message consistency again * configure.ac: help message consistency. * php/redland_wrap.c.patch: Add librdf_php_world_finish() to PHP_MSHUTDOWN_FUNCTION(redland) * php/test.php: Remove world startup/shutdown, now handled by the module. use $world=librdf_php_get_world() * php/Makefile.am: Ensure the .orig is around for patching. 2004-01-13 Dave Beckett * java/org/librdf/redland/Serializer.java, java/org/librdf/redland/Parser.java, java/org/librdf/redland/Model.java: Updated Model/Parser/Serializer get/setFeature methods to use Node not String. * php/redland_wrap.c.patch: offsets * python/RDF.py (Model.find_statements): Add optional context arg. * perl/lib/RDF/Redland/Model.pm (find_statements): Add optional CONTEXT arg and call librdf_model_find_statements_in_context if given. * perl/lib/RDF/Redland/Model.pm: Added contexts method. * python/RDF.py (Model): Added get_contexts * python/RDF.py (Model): Added get_feature, set_feature (Parser): Updated get_feature, set_feature for using node values. * perl/lib/RDF/Redland/Model.pm: (feature) Added * perl/Makefile.PL: Add CFLAGS to dynamic_lib to get -g when it is enabled. * perl/Makefile.PL: CORE_PACKAGE must be in main namespace * perl/lib/RDF/Redland/Parser.pm (feature): Use/return nodes. * configure.ac: check for getenv 2004-01-12 Dave Beckett * configure.ac: MySQL store works with V3.23.58 and maybe others? 2004-01-07 Dave Beckett * perl/lib/RDF/Redland/Parser.pm (parse_string_into_model): Fix to call the right function librdf_parser_parse_string_into_model * configure.ac: Restore u64 tests 2004-01-05 Dave Beckett * perl/Makefile.am: Don't pass on PACKAGE variable, Makefile.PL doesn't use it * perl/Makefile.PL: Don't use PACKAGE envariable; the name isn't changing now! Hard code CORE name also. * php/redland_wrap.c.patch: offsets again 2004-01-04 Dave Beckett * docs/Makefile.am: correctly substitute version in redland.3 * docs/Makefile.am, Makefile.PL, Makefile.am, configure.ac: dates * Makefile.am: Make generated text files keep their links. Only do the generation in maintainer mode. * php/redland_wrap.c.patch: Updated * php/Makefile.am: Put the patching rules in the Makefile, maintainer mode * perl/Makefile.PL: Perl 5.8 is $]=5.008 2004-01-03 Dave Beckett * docs/fix-python-xhtml, docs/fix-pod-xhtml: TODO.html, LICENSE.html, INSTALL.html: XHTML 1.0 strict and xhtml fixes * Makefile.am: Make TODO up to date redland-bindings-1.0.16.1/ChangeLog.60000644000175000017500000003750010425560756014020 000000000000002005-12-21 Dave Beckett * configure.ac, Makefile.am: updated urls * Makefile.am, configure.ac: Added bindings.rdf * bindings.rdf.in: DOAP for bindings 2005-09-11 Dave Beckett * perl/example.pl: die if data file not found 2005-09-01 Dave Beckett * python/redlandtest.py (testSPARQLQueryTwiceOverwriteVar): Added, which fails now * python/RDF.py (Model, Query): Remove use of self.been_run - never used * python/redlandtest.py: Added testSPARQLQueryTwice * python/RDF.py (Parser and Serializer convienience classes): Remove mime_type="" and uri=None in params. * python/RDF.py (Model.load): Document return is a boolean. (Parser.parse_into_model, Parser.parse_string_into_model): Return a boolean success/failure flag, document this. * demos/query.pl: Add rdf: prefixes to examples Added REDLAND-NEWS example Expand on not-implemented note 2005-08-23 Dave Beckett * csharp/examples/Makefile.am: run nunit-console tests 1 at a time to prevent crazy death * csharp/examples/Makefile.am: clean *.mdb junk * csharp/examples/ModelTest.cs, csharp/examples/SimpleGetsTest.cs, csharp/examples/StreamTest.cs, csharp/examples/TemplateTest.cs, csharp/examples/EncodingTest.cs, csharp/examples/GetsTest.cs, csharp/examples/Makefile.am, csharp/examples/ModelGeneralTest.cs: Update C# and nunit for Mono 1.8.x 2005-08-11 Dave Beckett * autogen.sh: update autogen.sh again * autogen.sh: Rewrite with functions, generalize to any redland package. Add docs. * redland-bindings.spec.in: - Define perl_sitearch, python_libdir, ruby_dir and ruby_libdir at rpm build time. - Split build requirements out and declare minimum versions - Use %configure and %{__make} 2005-08-08 Dave Beckett * ruby/test/test_query.rb: Added serializing tests: test_model_query_serialize_bindings, test_model_query_serialize_ask and test_model_query_serialize_construct * ruby/lib/rdf/redland/serializer.rb (model_to_string): Added and tested. * ruby/lib/rdf/redland/queryresults.rb (to_string): Debugged, tested. * docs/Makefile.am: Added ruby queryresults file * ruby/lib/rdf/redland/queryresults.rb: remove perl doc * docs/Makefile.am: Redland/QueryResults for ruby * ruby/test/Makefile.am: Added test_query.rb * ruby/test/test_query.rb: test_query * ruby/lib/rdf/redland.rb: Added queryresults * ruby/lib/rdf/redland/statement.rb: (==(other)) added * ruby/lib/rdf/redland/query.rb: Moved query results code into queryresults.rb and class. (Query.execute): Return QueryResults * ruby/lib/rdf/redland/model.rb (Model.query_execute): Added. * ruby/lib/rdf/redland/Makefile.am: Added queryresults.rb * ruby/lib/rdf/redland/queryresults.rb: queryresults class * ruby/lib/rdf/redland/parser.rb (Parser.initialize): Use 'rdfxml' as parser name. (Parser.ntriples): Use a NULL mime type (empty string) (Parser.raptor): Use 'rdfxml' as parser name. * ruby/lib/rdf/redland/query.rb (Query.initialize): librdf_new_query takes 5 args, so add a base_uri arg to this. * ruby/lib/rdf/redland.rb: Death to log4r 2005-07-13 Dave Beckett * perl/lib/RDF/Redland/QueryResults.pm: (to_string) return boolean as formats 2005-06-22 Dave Beckett * csharp/AssemblyInfo.cs, csharp/Node.cs, csharp/Parser.cs, csharp/Stream.cs: Patch for namespaces fixes from John Barstow. * python/setup-win32.py: win32 python setup 2005-06-17 Dave Beckett * redland-bindings.spec.in: License not Copyright header 2005-06-10 Dave Beckett * configure.ac: Bumped version to 1.0.3.1 * Snapshotted redland-bindings_1_0_2_1 for 1.0.2.1 release * perl/lib/RDF/Redland.pm.in: Use eval to ensure version gets turned into a perl version thing like 1.00_02_01 and not a string "1.00_02_01". Addresses re-opened Issue #0000034 - http://bugs.librdf.org/mantis/view.php?id=34 2005-06-07 Dave Beckett * ruby/lib/rdf/redland/node.rb, ruby/lib/rdf/redland/resource.rb, ruby/lib/rdf/redland/uri.rb, ruby/lib/rdf/redland.rb: Updates to match newer SWIG. Move constants in rdf/redland.rb to later after $world exists. Fixes issue #0000031 - http://bugs.librdf.org/mantis/view.php?id=31 based on attached patch from aredridel. 2005-06-06 Dave Beckett * python/redlandtest.py (testSPARQLQueryAsString): Fix serializing query results test to XML result2 format answer. * python/RDF.py, perl/lib/RDF/Redland/QueryResults.pm: Use result2 format by default in query results serializing * Makefile.PL: Handle newer configure.ac autoconf versions Don't try to cd raptor or cd librdf * perl/lib/RDF/Redland.pm.in: Moved $VERSION to RDF::Redland package, add _s and leading 0s Fixes issue #0000034 - http://bugs.librdf.org/mantis/view.php?id=34 * configure.ac: Make perl/lib/RDF/Redland.pm from prototype * perl/lib/RDF/Makefile.am, perl/lib/RDF/Redland.pm, perl/lib/RDF/Redland.pm.in: Rename Redland.pm as Redland.pm.in * perl/lib/RDF/Redland/Node.pm: Use ISA with 'URI' to catch several classes of perl URI. (new_literal): Fix promotion of types, strings to a redland URI. Fixes issue #0000033 - http://bugs.librdf.org/mantis/view.php?id=33 2005-06-02 Dave Beckett * configure.ac: Bumped version to 1.0.2.1 2005-06-01 Dave Beckett * python/redland-post.i (librdf_python_reset_callback): Remove unused vars (librdf_python_logger_handler): use log_msg as arg name to remove a warning. 2005-05-29 Dave Beckett * configure.ac: Bumped version to 1.0.1.2 * Snapshotted redland-bindings_1_0_1_1 for 1.0.1.1 release 2005-05-23 Dave Beckett * php/test.php: Update sparql syntax, add an optional in order to test null librdf_node* results. Add a result serializing test. * php/redland_wrap.c.patch: Simplify, all functions returning librdf_node* will automatically return PHP null. * php/redland-typemap.i: Add librdf_node* to returning NULL typemap 2005-05-18 Dave Beckett * configure.ac: Bump version to 1.0.1.1 for redland 1.0.1 (CVS) Bugs to http://bugs.librdf.org/ 2005-05-16 Dave Beckett * python/redlandtest.py: Update to split rdql / sparql and update to new sparql syntax * configure.ac: Search in list of dirs for redland sources with 'internal' * configure.ac: need swig 1.3.24 for known working python binding 2005-05-05 Dave Beckett * php/redland_wrap.c.patch: Patch null return for librdf_query_results_get_binding_value 2005-05-04 Dave Beckett * python/RDF.py: Remove 'return' from __init__ constructors for Storage, Parser and Serializer subclasses. * python/RDF.py: remove ;s 2005-04-17 Dave Beckett * autogen.sh: allow envariables to override the programs 2005-04-15 Dave Beckett * python/RDF.py (Node.__eq__, Node.__ne__, Statement.__eq__, Statement.__ne__): Do not assume in comparisons that the other parameter is of the right type; check it first. Rewrite __ne__ in terms of __eq__ (Daniel Larsson) 2005-04-13 Dave Beckett * php/test.php: Test query result as a string * php/test.php: Added sparql query test 2005-04-08 Dave Beckett * perl/lib/RDF/Redland.pm (set_log_handler, reset_log_handler): Now public, document and prefer them. * perl/lib/RDF/Redland.pm: Added perl convienence Node type classes to see alsos * docs/Makefile.am: Added perl convienence Node type classes. * perl/Makefile.PL, perl/lib/RDF/Redland.pm, perl/lib/RDF/Redland/URINode.pm, perl/lib/RDF/Redland/XMLLiteralNode.pm, perl/lib/RDF/Redland/BlankNode.pm, perl/lib/RDF/Redland/LiteralNode.pm, perl/lib/RDF/Redland/Makefile.am: Add convienience Node subclasses 2005-04-06 Dave Beckett * perl/lib/RDF/Redland/Serializer.pm (set_namespace): Remove duplicate subroutine, keep PREFIX, URI order 2005-03-17 Dave Beckett * docs/fix-rdoc-xhtml: Add links back to redland site only on non-index files * docs/fix-rdoc-xhtml: Add links back to redland sites outside of the frames 2005-03-16 Dave Beckett * docs/Makefile.am: Added fix-rdoc-xhtml and added rdoc output * docs/fix-rdoc-xhtml: Fix RDoc xhtml output * ruby/Makefile.am: Tidy rdoc generation, cleanup * ruby/Makefile.am: rdoc-stamp * ruby/Makefile.am: More rdoc fixes, added docs target * ruby/lib/rdf/redland.rb: Ruby comment fixes for helping rdoc plus query.pl syntax fix (Patch from Nikolas Coukouma) 2005-03-16 Dave Beckett * docs/Makefile.am: Added fix-rdoc-xhtml and added rdoc output * docs/fix-rdoc-xhtml: Fix RDoc xhtml output * ruby/Makefile.am: Tidy rdoc generation, cleanup * ruby/Makefile.am: rdoc-stamp * ruby/Makefile.am: More rdoc fixes, added docs target 2005-03-15 Dave Beckett * ruby/Makefile.am: rdoc rule attempt * ruby/lib/rdf/redland.rb, ruby/lib/rdf/redland/resource.rb, ruby/lib/rdf/redland/serializer.rb, ruby/lib/rdf/redland/statement.rb, ruby/lib/rdf/redland/store.rb, ruby/lib/rdf/redland/stream.rb, ruby/lib/rdf/redland/uri.rb, ruby/lib/rdf/redland/util.rb, ruby/lib/rdf/redland/model.rb, ruby/lib/rdf/redland/node.rb, ruby/lib/rdf/redland/parser.rb, ruby/lib/rdf/redland/query.rb: Ruby comment fixes for helping rdoc plus query.pl syntax fix (Patch from Nikolas Coukouma) 2005-03-14 Dave Beckett * perl/example.pl: Use serializer->set_namespace * perl/lib/RDF/Redland/Serializer.pm (set_namespace): Added to set a prefix/namespace for output * python/example.py: Added serializer.set_namespace * python/RDF.py (Serializer.set_namespace): Added to set a namespace for output 2005-03-10 Dave Beckett * perl/lib/RDF/Redland/Serializer.pm: (Serializer) Add set_namespace (Michael Nachbaur) 2005-03-07 Dave Beckett * demos/Makefile.am: Added query.pl * demos/query.pl: RDF query demo 2005-02-27 Dave Beckett * configure.ac: Bumped version to 1.0.0.3 * Snapshotted redland-bindings_1_0_0_2 for 1.0.0.2 release 2005-02-24 Dave Beckett * python/RDF.py (Storage.__init__): More documentation. * python/RDF.py (Storage.__init__): Fix documentation confusion between storage_name and options. * perl/example.pl: handle optionals in query results when testing. * perl/lib/RDF/Redland/Model.pm (load): Make ruri and rsyntax_uri from perl objects. 2005-02-22 Dave Beckett * perl/lib/RDF/Redland/Parser.pm (parse_into_model, parse_string_into_model): Use set_log_handler, reset_log_handler when $handler is given as a final arg. * perl/lib/RDF/Redland/Model.pm (load): Use set_log_handler, reset_log_handler when $handler is given as a final arg. * perl/lib/RDF/Redland.pm (set_log_handler, reset_log_handler): Internal. * perl/t/test3.t (message): Take full log args. * perl/lib/RDF/Redland.pm (message): Take full log args. Added Log_Sub (set_log_handler): Added to set redland log handler callback. * perl/redland-post.i (librdf_call_perl_message): Update to handle full log args. (librdf_perl_logger_handler): Added to take redland log message. (librdf_perl_world_init): Set librdf_perl_logger_handler. * python/redland-post.i: Another way to do error reports. Use librdf_world_set_logger to grab structured log messages rather than just warning or error strings. If the callback handler is set, call a python callback with signature def handler(code, level, facility, message, line, column, byte, file, uri) and reset it afterwards. Add set_callback and reset_callback to set/restore these. (librdf_call_python_message): Restored, removing varargs use but taking the args above. (librdf_python_message_handler): Removed need for varargs. (librdf_python_logger_handler): Use structured log messages and pass on to python either via callback or delivering an exception/warning. * python/RDF.py: V1.1 another new error reporting method. (Model.load, Parser.parse_into_model, Parser.parse_string_into_model): Gain an optional 'handler' arg that receives error callbacks with signature def handler(code, level, facility, message, line, column, byte, file, uri) 2005-02-16 Dave Beckett * perl/lib/RDF/Redland/QueryResults.pm (to_string): Correct serialize_model_to_string args order. 2005-02-10 Dave Beckett * python/Makefile.am: Added redland-typemap.i * python/RDF.py (message_handler, set_message_handler): Obsolete; Use SWIG to throw exceptions. * python/redland-post.i: Change the error/warning handling code. Warnings are emited immediately. 1 error is stored and used with %exception later; later errors are not handled and passed back. * python/redland-typemap.i: Declare %exception 2005-02-08 Dave Beckett * php/Makefile.am: Define REDLAND_BINDINGS_VERSION for use in module info. Change patch rules so only maintainer makes them on demand. * php/redland_wrap.c.patch: Fix call to zend_rsrc_list_get_rsrc_type to use TSRMLS_CC Change PHP_MINFO_FUNCTION to report Redland loaded, redland librdf version and redland php bindings version * perl/lib/RDF/Redland/QueryResults.pm, perl/lib/RDF/Redland/Query.pm: docs * java/Makefile.am, perl/Makefile.am, php/Makefile.am, python/Makefile.am, ruby/Makefile.am, tcl/Makefile.am, csharp/Makefile.am: Remove linking to $(top_srcdir)../librdf - that's not always right. * perl/lib/RDF/Redland/Storage.pm (new): allow NAME, OPTIONS_STRING to be optional if undef * perl/example.pl: Added SPARQL CONSTRUCT * perl/lib/RDF/Redland/QueryResults.pm (as_stream): Added to return graph results. * perl/lib/RDF/Redland/QueryResults.pm (to_string): Added to write query results in a syntax. (is_bindings, is_boolean, is_graph): Added boolean tests of query results format. (get_boolean): Added to get boolean query result. 2005-02-07 Dave Beckett * python/RDF.py (Storage.__init__): docs fix. 2005-02-06 Dave Beckett * configure.ac: Bumped version to 1.0.0.2 * Snapshotted redland-bindings_1_0_0_1 for 1.0.0.1 release * configure.ac: 1.0.0.1 2005-02-04 Dave Beckett * python/redlandtest.py (testSPARQLQueryAsString): Added. * python/RDF.py (QueryResults.to_file, QueryResults.to_string): Added (Serializer.serialize_model_to_string): Added * configure.ac: AM_PROG_LIBTOOL to AC_PROG_LIBTOOL seems to make things happier * autogen.sh: Add libtoolize and swig to the path search. 2005-02-02 Dave Beckett * python/redlandtest.py (testRDQLQueryAsStreamDontWork): Handle catching a bad format exception. (testSPARQLQueryAsStream): Added, testing SPARQL CONSTRUCT. (testSPARQLQueryAsk): Added, testing SPARQL ASK. * python/RDF.py (class RDQLQuery): Added (class SPARQLQuery): Added (QueryResult.is_bindings, QueryResult.is_boolean, QueryResult.is_graph): Added, testing type of query result (QueryResult): Document more methods and raise errors when wrong format result is asked for. (QueryResult.get_boolean): Added, returning a boolean result. 2005-01-18 Dave Beckett * python/RDF.py: Update license to Apache style and for 2005 2005-01-04 Edd Dumbill * csharp/Iterator.cs, csharp/Model.cs, csharp/Node.cs, csharp/Parser.cs, csharp/Query.cs, csharp/QueryResults.cs, csharp/Serializer.cs, csharp/Statement.cs, csharp/Storage.cs, csharp/Stream.cs, csharp/Uri.cs: add a private member reference to the World, which when assigned increments a refcount. Corresponding refcount is decreased in Dispose(), ensuring world's clients are counted. Also, move to HandleRef instead of IntPtr for C-world pointers, which is more GC-safe. * csharp/World.cs: take destruction of the C world out of the destructor, and instead make it static depending on a ref count. Ensure that the dynamic World, allocated in Redland.cs, also uses this ref count so the world persists for as long as we run. * csharp/test.cs: Fixed to use proper iterator syntax with query results. * csharp/Iterator.cs: (End ()): removed from API, vestige of extinct iterator usage * csharp/Stream.cs: (End ()): removed from API, vestige of extinct iterator usage * csharp/examples/example1.cs: Fixed up to use proper iterator syntax. * csharp/QueryResults.cs: (MoveNext ()): cleaned up iterator logic so it works properly with foreach. (End ()): removed from API, no longer needed 2005-01-03 Dave Beckett * perl/lib/RDF/Redland/Serializer.pm: (new) docs - defaults to ntriples, not random. redland-bindings-1.0.16.1/ChangeLog.70000644000175000017500000003030210613024577014005 000000000000002006-11-19 Dave Beckett * Snapshotted redland-bindings_1_0_5_1 for 1.0.5.1 release 2006-11-18 Dave Beckett * ruby/lib/rdf/redland/resource.rb, ruby/lib/rdf/redland.rb: Remove recursive include of Redland 2006-11-03 Dave Beckett * python/RDF.py: docs for Storage class * perl/lib/RDF/Redland/Parser.pm: Allow undef args 2006-10-26 Dave Beckett * NEWS.html, RELEASE.html: Updated for 1.0.5.1 * ruby/lib/rdf/redland/parser.rb: Add constructor for turtle parser. 2006-10-22 Dave Beckett * configure.ac: Bump version to 1.0.5.1 2006-10-21 Dave Beckett * csharp/Makefile.am, tcl/Makefile.am: Add before installing Fixes Issue#0000126 http://bugs.librdf.org/mantis/view.php?id=126 * ruby/test/test_serializer.rb: fix uris to be legal * ruby/example.rb: fix serializer puts * ruby/test/Makefile.am: clean out*rdf * ruby/lib/rdf/redland/model.rb: (include?, parse_and_merge, rewrite, find_canonical): Remove puts (save): Works now when using default serializer not filename. * ruby/lib/rdf/redland/serializer.rb: (initialize): Default to rdfxml, error out on failure * ruby/example.rb: Added query and serializer test code * ruby/lib/rdf/redland/node.rb: Define bnode and anon to match docs Fixes Issue#0000122 http://bugs.librdf.org/mantis/view.php?id=122 * ruby/lib/rdf/redland/schemas/owl.rb: Added OWLNS Fixes Issue#0000121 http://bugs.librdf.org/mantis/view.php?id=121 * python/RDF.py: Subclass class Warning defined in C for making a RedlandWarning Fixes Issue#0000109 http://bugs.librdf.org/mantis/view.php?id=109 2006-10-05 Dave Beckett * ruby/lib/rdf/redland/store.rb: Do not echo storage options on connection 2006-08-27 Dave Beckett * ruby/lib/rdf/redland/node.rb: (Literal.from_node): Call Uri constructor correctly Fixes Issue#0000120 http://bugs.librdf.org/mantis/view.php?id=120 2006-08-20 Dave Beckett * autogen.sh: Track where programs are discovered. 2006-08-18 Dave Beckett * configure.ac: Patch configure.ac to remove un-necessary tests for C++ or F77++ compilers that libtool stupidly insists on 2006-07-11 Dave Beckett * ruby/lib/rdf/redland/model.rb: doc * ruby/lib/rdf/redland/model.rb: (to_string): Added. * ruby/lib/rdf/redland/serializer.rb: (set_namespace): Switch to more natural prefix, uri ordering * ruby/lib/rdf/redland/queryresults.rb: (bindings_count): Added. (binding_value, binding_value_by_name): Handle nil values. * ruby/lib/rdf/redland/queryresults.rb: (to_string): Allow null URIs and use redland uri objects in args * ruby/test/test_query.rb: (test_model_query_serialize_bindings_json): Added to test JSON output 2006-07-04 Dave Beckett * java/org/librdf/redland/QueryResults.java: (hasNext): Replace with 1 line call. * java/org/librdf/redland/QueryResults.java: Removed started field flag (next): Simplify to just 1 call without using started. * java/Makefile.am: fix example running config * java/example.java: start counting from 0 2006-06-26 Dave Beckett * INSTALL.html: Document --with-python-ldflags for working around installing python in odd places. * configure.ac: Added --with-python-ldflags for working around installing python in odd places. 2006-06-22 Dave Beckett * java/org/librdf/redland/Model.java: (add): copy the *object* not the predicate twice. 2006-06-18 Dave Beckett * java/org/librdf/redland/Model.java: (getSource, getArc, getTarget): Return null rather than try to create a Node with null value. * java/Makefile.am: Remove extra / that stopped Iterator getting into the jar. * csharp/Parser.cs: (Parser): 0 and 1-argument constructors were broke; make them work again, defaulting to rdfxml parser in the default case. 2006-06-04 Dave Beckett * java/example.java: Update for more java-like names * java/org/librdf/redland/Serializer.java: more java-like names * java/org/librdf/redland/Serializer.java: (serialize_to_string): Added (setNamespace): Added * java/org/librdf/redland/Model.java: (toString): Added, defaulting to RDF/XML out * java/example.java: Updated to a complete example including querying, getting string results from queries, triple results and serializing. * java/Makefile.am: Clean test-out.rdf * java/org/librdf/redland/QueryResults.java: More java-like method names * java/org/librdf/redland/Query.java: More java-like method names * java/run-java: Append to paths * java/skeleton.java: Added Query and QueryResults classes * java/Makefile.am: Added Query and QueryResults * java/org/librdf/redland/Model.java: (Model.queryExecute): Added * java/org/librdf/redland/Makefile.am: Added Query and QueryResults * java/org/librdf/redland/Query.java, java/org/librdf/redland/QueryResults.java: Query and QueryResults 2006-05-05 Dave Beckett * Snapshotted redland_bindings_1_0_4_1 for 1.0.4.1 release 2006-05-03 Dave Beckett * python/RDF.py: (None.__init__): Default to xml_language=None rather than "" which isn't strictly needed since the node constructors will now accept both, but helps in the case of older redland libraries. Fixes Issue#0000082 http://bugs.librdf.org/mantis/view.php?id=82 2006-05-02 Dave Beckett * tcl/redland-init.i: Nothing needed here now * tcl/Makefile.am: Invoke swig with -pkgversion @REDLAND_VERSION@ * ruby/test/Makefile.am: do not ignore test failures * ruby/test/test_query.rb: Updates for query results syntax changes * perl/example.pl: update sparql 2006-05-01 Dave Beckett * ruby/redland-types.i: Remove ruby param, it's only called in ruby context * ruby/redland-types.i: Added SWIGRUBY around typemaps * java/org/librdf/redland/World.java: (versionString,copyrightString): Rename the SWIG accessor java functions for the constants. 2006-04-29 Dave Beckett * redland-bindings.spec.in: Added ruby req * python/RDF.py: (NS): Rename method node and local vars to __-prefixed names less likely to be used in a namaespace 2006-04-24 Dave Beckett * ruby/lib/rdf/redland/store.rb: (Redland.TripleStore.initialize): Added lots more storage types. There should be a programatic way to do this at run time. Fixes Issue#0000076 http://bugs.librdf.org/mantis/view.php?id=76 * csharp/Stream.cs: (Stream.Current): Return null when raw_ret is 0 * csharp/QueryResults.cs: (Query.AsStream): Return null when raw_ret is 0 * csharp/Query.cs: (Query.Execute): Return null when raw_ret is 0 * csharp/Model.cs: (Model.Dispose): Hack to use storage to prevent a mono warning (Model.FindStatements, Model.GetSource, Model.Sources, Model.GetPredicate, Model.GetPredicates, Model.GetTarget, Model.GetTargets, Model.ToStream, Model.GetContexts, Model.Execute): Return null when raw_ret is 0 * csharp/Iterator.cs: (Iterator.Current): Return null when raw_ret is 0 2006-04-19 Dave Beckett * python/RDF.py: (World.__init__,World.__del__): Fix module cleanup to ensure Redland.librdf_free_world lives till the end 2006-03-15 Dave Beckett * Switched to Subversion version control. CVS tag for redland bindings 1.0.3.1: redland_bindings_1_0_3_1 Subversion revision ID for redland bindings 1.0.3.1: r10629 2006-03-14 Dave Beckett * Snapshotted redland-bindings_1_0_3_1 for 1.0.3.1 release * csharp/QueryResults.cs (MakeResultsHash): Zero test was backwards * csharp/Makefile.am: clean up mdb cruft * ruby/test/test_model.rb (test_parse_and_merge): Try to debug this. * ruby/lib/rdf/redland/parser.rb: remove one more puts * csharp/QueryResults.cs (QueryResults.MakeResultsHash, QueryResults.BindingValue, QueryResults.BindingValueByName): Do not try to make a new Node over a IntPtr.Zero / C NULL. * docs/php.html: works with 5.1.2 * redland-bindings.spec.in: update me 2006-03-10 Dave Beckett * python/redlandtest.py (testSPARQLQueryTwiceOverwriteVar): Disable as it requires rasqal changes * python/Makefile.am: Add -DSWIG_PYTHON_SILENT_MEMLEAK to prevent wrong python warnings 2006-03-09 Dave Beckett * csharp/Util.cs: Remove unused DLLimport of strlen * csharp/Iterator.cs: Removed DllImport of librdf_iterator_end - never used. * php/redland-post.i (librdf_php_world_finish): Deleted, now inlined into %mshutdown * php/redland-typemap.i (%mshutdown): Inline librdf_php_world_finish. * ruby/Makefile.am, configure.ac: Add LIBRUBYARG_SHARED to get the shared lib name. 2006-03-07 Dave Beckett * COPYING.LIB, COPYING: FSF moved again 2006-03-05 Dave Beckett * Updated many files for Copyright 2006, UB name and Turtle moving site. 2006-03-03 Dave Beckett * php/Makefile.am, php/redland-typemap.i, php/redland_wrap.c.patch: Insert phpinfo and module shutdown using SWIG alone. Delete patch and patching process * php/redland_wrap.c.patch: updated patch for swig 1.3.27 * perl/lib/RDF/Redland/Storage.pm (Storage.new): Patch from Kjetil Kjernsmo to improve storage options handling by allowing a perl hash options as well as the current string of redland options. 2006-02-28 Dave Beckett * python/RDF.py (QueryResults.to_file, QueryResults.to_string): Use default format with None. * python/redlandtest.py: Tweak old urls. (testSPARQLQueryAsString): Update for latest syntax. (testSPARQLQueryTwice): Simplify query - no need for prefix. * python/redland-post.i (librdf_python_world_init): Get RedlandError and RedlandWarning from the RDF module by importing them properly. Fixes issue #0000068 http://bugs.librdf.org/mantis/view.php?id=68 * python/RDF.py: (Parser.parse_string_as_stream, Parser.parse_string_into_model): Convert a Python unicode string to UTF-8 bytes redland expects. Fixes issue #0000061 http://bugs.librdf.org/mantis/view.php?id=61 * python/RDF.py (QueryResults.make_results_hash, QueryResults.get_binding_value, QueryResults.get_binding_value_by_name): Check for None value and set it in the results. Fixes issue #0000059 http://bugs.librdf.org/mantis/view.php?id=59 2006-02-25 Dave Beckett * ruby/lib/rdf/redland/model.rb (get_resource): Handle find returning nil Fixes issue #0000049 http://bugs.librdf.org/mantis/view.php?id=49 * ruby/lib/rdf/redland/resource.rb (initialize): With a Uri argument, use correct argument name 'arg' Fixes issue #0000048 http://bugs.librdf.org/mantis/view.php?id=48 * python/RDF.py (URI.__hash__): Use hash of str(self) to make a working URI hash. Fixes issue #0000047 http://bugs.librdf.org/mantis/view.php?id=47 * python/RDF.py (World.__del__): Hack to prevent death if python destroys the Redland module before RDF Fixes issue #0000044 http://bugs.librdf.org/mantis/view.php?id=44 2006-02-19 Dave Beckett * python/redlandtest.py (testSPARQLQueryAsString): Update for results syntax change. * python/redland-post.i: Remove SWIGEXPORT macro, it breaks on newer swigs and was a wrong usage. 2006-01-16 Dave Beckett * bindings.rdf.in: use download.librdf.org 2006-01-05 Dave Beckett * demos/Makefile.am: added parse.pl * demos/parse.pl: Redland RDF Parsing demo * csharp/World.cs: take destruction of the C world out of the destructor, and instead make it static depending on a ref count. Ensure that the dynamic World, allocated in Redland.cs, also uses this ref count so the world persists for as long as we run. * csharp/test.cs: Fixed to use proper iterator syntax with query results. * csharp/Iterator.cs: (End ()): removed from API, vestige of extinct iterator usage * csharp/Stream.cs: (End ()): removed from API, vestige of extinct iterator usage * csharp/examples/example1.cs: Fixed up to use proper iterator syntax. * csharp/QueryResults.cs: (MoveNext ()): cleaned up iterator logic so it works properly with foreach. (End ()): removed from API, no longer needed 2006-01-03 Dave Beckett * perl/lib/RDF/Redland/Serializer.pm: (new) docs - defaults to ntriples, not random. redland-bindings-1.0.16.1/ChangeLog.80000644000175000017500000001470311312103417014001 000000000000002007-12-28 Dave Beckett * Makefile.am, NEWS.html, RELEASE.html, configure.ac: Bump version to 1.0.8.1 * Snapshotted redland-bindings_1_0_7_1 for 1.0.7.1 release (SVN 13372) * docs/README.html, docs/csharp.html, docs/java.html, docs/objc.html, docs/tcl.html: Remove java, csharp, objc, tcl htmls * Makefile.am, configure.ac: Moved demos elsewhere * demos: Move bindings/demos to demos trunk 2007-12-27 Dave Beckett * NEWS.html: Removed Tcl, Java, C# * bindings.rdf.in: Removed Tcl, Java, C# * tcl: move bindings tcl dir to top level tcl trunk dir * csharp: Move bindings csharp dir to top level csharp trunk dir * java: Move bindings java dir to top level java trunk dir * INSTALL.html, Makefile.am, README.html, RELEASE.html, configure.ac, docs/Makefile.am: Removed tcl java csharp (and mention of objc) as promised in http://lists.usefulinc.com/pipermail/redland-announce/2007q1/000067.html * php/Makefile.am: No need for all the -UPACKAGE_* since they are in an (unused) bindings_config.h * csharp/examples/Makefile.am: Use NUNIT_LIBS to set get rid of $(shell) * csharp/Makefile.am: Set MONO_SN * configure.ac: Update AM_INIT_AUTOMAKE to add warnings Generate a bindings_config.h header just in order to reduce compile lines length. Allow Mono to be found without 'sn' available since it's maintainer only anyway. Set NUNIT_LIBS here since $(shell) is a gnu makeism * php/test.php: update to use null, not $nulluri Load the dlls from a fixed list of names, not what PHP might tell us * php/Makefile.am: Use PHP_* automake vars and loose hard-coded darwin stuff * php/redland-typemap.i: Add incoming typemaps for librdf_uri*, librdf_node* to set real null objects. For PHP5, check for errors after calling a function and throw an exception. * php/redland-post.i: Add exceptions for PHP5 * php/redland-init.i: Put all init into librdf_php_world_init() * php/redland-decl.i: Add librdf_php_get_null_node and librdf_php_get_null_uri prototypes. * configure.ac: Add PHP_SWIG, PHP_CFLAGS, PHP_LDFLAGS and PHP_SO_SUFFIX defines Add --with-php-linking=so/dylib/bundle option to pick some of these. 2007-12-24 Dave Beckett * docs/Makefile.am: Use $(PERL) not perl * ruby/test/test_query.rb: Update sparql results format expected * NEWS.html, RELEASE.html, python/filter.py, configure.ac: 1.0.7.1 2007-12-12 Lauri Aalto * python/redlandtest.py: Fix SPARQL CONSTRUCT query form syntax in python bindings test. 2007-12-07 Lauri Aalto * perl/example.pl: Update SPARQL CONSTRUCT query form in example.pl. Fixes Issue#0000247 http://bugs.librdf.org/mantis/view.php?id=247 2007-11-30 Lauri Aalto * autogen.sh: Make autogen-get-version.pl program version getter case insensitive on program name. E.g. "swig" will find the version number from "SWIG Version x.y.z" output. 2007-11-26 Dave Beckett * autogen.sh: Update to handle OSX glibtoolize and optional ltdl 2007-09-26 Dave Beckett * autogen.sh: autogen.sh with perl version grep script 2007-08-24 Dave Beckett * python/RDF.py: (QueryResults.to_string): Call Serializer constructor correctly Fixes Issue#0000212 http://bugs.librdf.org/mantis/view.php?id=212 * python/redlandtest.py: (testSPARQLQueryTriplesToString): Added for testing Issue#0000212 http://bugs.librdf.org/mantis/view.php?id=212 2007-08-22 Dave Beckett * python/redland-post.i: fixme * python/filter.py: GRDDL parsing with URI filtering * python/RDF.py: Docs Added class TurtleSerializer * python/RDF.py: (class GRDDLParser): Added * python/RDF.py: (Parser.set_uri_filter): Added to set the URI rejection filter. * python/redland-post.i: (librdf_call_python_uri_filter): Added as the librdf callback for URI filtering during parsing, invoking a saved python callback in the user data. (librdf_python_set_parser_uri_filter): Added to set the per-parser URI filter to invoke librdf_call_python_uri_filter to call a user callback function. librdf_python_methods: Added set_parser_uri_filter method. * python/redlandtest.py: (testSPARQLQueryAsString): srx format changed again 2007-08-18 Dave Beckett * python/RDF.py: (Parser.__init__): Do not set rdfxml as default parser, let Redland figure that out. 2007-05-05 Dave Beckett * Snapshotted redland-bindings_1_0_6_1 for 1.0.6.1 release (SVN 12239) * perl/example.pl: Call parser method namespaces_seen * perl/lib/RDF/Redland/Parser.pm: Added namespaces_seen 2007-04-22 Dave Beckett * ruby/lib/rdf/redland/schemas/owl.rb: Apply patch from #0000121 again to fix issue http://bugs.librdf.org/mantis/view.php?id=121 * ruby/lib/rdf/redland.rb: Do not run librdf_free_world * ruby/lib/rdf/redland/uri.rb: Add Uri finalizer * ruby/lib/rdf/redland/queryresults.rb: Add QueryResults finalizer * ruby/lib/rdf/redland/stream.rb: Add NodeIterator finalizer * ruby/lib/rdf/redland/model.rb, ruby/lib/rdf/redland/parser.rb, ruby/lib/rdf/redland/query.rb, ruby/lib/rdf/redland/serializer.rb, ruby/lib/rdf/redland/store.rb: Apply patch to comment out .info calls. Fixes Issue#0000170 http://bugs.librdf.org/mantis/view.php?id=170 * python/RDF.py: (QueryResults.__len__): Return 0 when the count is not 0 Fixes Issue#0000166 http://bugs.librdf.org/mantis/view.php?id=166 * python/RDF.py: (Node.__init__): Convert literals from Unicode to UTF-8 for redland n=RDF.Node(literal= u'this is unicode') now works Fixes Issue#0000147 http://bugs.librdf.org/mantis/view.php?id=147 * python/RDF.py: (Model.add_statement): raise error if adding statement fails. * python/RDF.py: (Query): Raise error if construction fails. (Serializer): Default to none name, mime_type. Raise error if construction fails. * ruby/lib/rdf/redland/parser.rb, ruby/lib/rdf/redland/serializer.rb: Replace Node.new(:from_object=>'value') with Node.new(:from_object=>value) in feature calls. Replace def feature=(uri,value) with def setFeature(uri,value). Fixes Issue#0000140 http://bugs.librdf.org/mantis/view.php?id=140 * autogen.sh: Update autogen.sh 2007-03-10 Dave Beckett * ruby/lib/rdf/redland/stream.rb: (Stream.create_finalizer) free stream, not model 2007-02-17 Dave Beckett * ruby/lib/rdf/redland/serializer.rb, ruby/test/test_serializer.rb: (serializer.model_to_string): Fix null base_uri (Patch from Jeff Dutton) redland-bindings-1.0.16.1/ChangeLog.90000644000175000017500000000446111312103417014002 000000000000002008-09-14 Dave Beckett * configure.ac: AM_PROG_CC_STDC is obsolete (automake 1.8) 2008-07-05 Dave Beckett * Snapshotted redland-bindings_1_0_8_1 for 1.0.8.1 release (SVN 14226) 2008-07-04 Dave Beckett * INSTALL.html, configure.ac: Renamed --with-python link options to match rest - all '-' not mixed '-' and '_'. Updated docs with examples of use for cygwin * ruby/test/test_store.rb: (test_read_store): Do not call GC.start before it is necessary - may cause crash * perl/Makefile.am, php/Makefile.am, python/Makefile.am, ruby/Makefile.am: Update to use LIBRDF_LDFLAGS via AM_LDFLAGS, REDLAND_SWIG for the swig file and not use REDLAND_CONFIG direct * perl/Makefile.PL: Rewrite to prefer pkg-config redland over redland-config and get everything from ENVariables * configure.ac: Prefer pkg-config redland over redland-config. It makes things work better on OSX for one. * perl/Makefile.am: quote REDLAND_CONFIG arg 2008-07-03 Dave Beckett * ruby/test/test_query.rb: Updates for newer rasqal * python/redlandtest.py: Updates for newer sparql and raptor 2008-03-27 Dave Beckett * perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Serializer.pm: (Parser.feature, Serializer.Feature): Cast values to Node if needed and return value to new Node if needed 2008-02-16 Dave Beckett * autogen.sh, autogen.sh, autogen.sh, autogen.sh, autogen.sh: autogen checks when env prog version is empty. Update all packages to latest autogen.sh 2008-02-01 Lauri Aalto * configure.ac, python, python/Makefile.am: Fixed issues related to building Redland Python bindings on Cygwin. Added --with-python_libext for configuring shared library extension for the Python bindings. Useful on systems where .so does not work as a shared library extension. Cygwin example: --with-python_libext=.dll Modified Redland Python library linking order: Moved PYTHON_LDFLAGS after Redland_wrap.so object file. Enables proper linking order when flags for libpython are supplied with --with-python_ldflags. Cygwin example: --with-python_ldflags='-shared -L/usr/lib/python2.5/config -lpython2.5' 2008-01-13 Dave Beckett * autogen.sh: Restore //i * autogen.sh: automake 1.0 docs redland-bindings-1.0.16.1/python/0000755000175000017500000000000012074650260013466 500000000000000redland-bindings-1.0.16.1/python/test/0000755000175000017500000000000012074650260014445 500000000000000redland-bindings-1.0.16.1/python/test/test.py0000644000175000017500000000716611522705745015736 00000000000000# # test.py - Redland Python 2.0 test code # # Copyright (C) 2000-2004 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2004 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # # import RDF storage=RDF.Storage(storage_name="memory", name="test", options_string="") # options_string="new='yes',hash-type='bdb',dir='.'") if storage is None: raise "new RDF.storage failed" model=RDF.Model(storage) if model is None: raise "new RDF.model failed" statement=RDF.Statement(RDF.Uri("http://www.dajobe.org/"), RDF.Uri("http://purl.org/dc/elements/1.1/creator"), RDF.Node("Dave Beckett")) if statement is None: raise "new RDF.statement failed" model.add_statement(statement) print "printing all model statements" # Match against an empty statement - find everything statement=RDF.Statement(subject=None, predicate=None, object=None); for s in model.find_statements(statement): print " found statement:",s # Use any rdf/xml parser that is available parser=RDF.Parser(name="rdfxml",mime_type="application/rdf+xml") if parser is None: raise "Could not find any rdf/xml parser" uri=RDF.Uri(string="file:../data/dc.rdf") print "made uri", uri for s in parser.parse_as_stream(uri, uri): print "found parsed statement:",s model.add_statement(s) rdfxml_string=""" """ for s in parser.parse_string_as_stream(rdfxml_string, uri): print "found parsed statement from string:",s model.add_statement(s) print parser.namespaces_seen() # add it again just to get some more statements print "adding statements again with model.load" model.load(uri) print "printing model" for s in model.as_stream(): print "found statement:",s print "searching model by statement" for s in model.find_statements(RDF.Statement(None, RDF.Uri("http://purl.org/dc/elements/1.1/title"), None)): print " found statement:",s print "searching model for node targets" n1=RDF.Uri("http://www.dajobe.org/") n2=RDF.Uri("http://purl.org/dc/elements/1.1/title") for node in model.targets(n1,n2): print " found node:",node print "matching statements" if not RDF.Statement(None,None,None).matches(RDF.Statement(n1,n2,"Title")): print "Failed" print "Testing for None" print RDF.Statement(None,None,None).subject print "Adding datatyped literal statement to model" model.add_typed_literal_statement(subject=RDF.Node(uri_string="http://example.org/subject"), predicate=RDF.Node(uri_string="http://example.org/predicate"), string="Literal content", xml_language="en-GB", datatype=RDF.Uri(string="http://example.org/datatype")) print "writing model as RDF/XML to test-out.rdf" ser=RDF.RDFXMLSerializer() ser.serialize_model_to_file("test-out.rdf", model) print "done" redland-bindings-1.0.16.1/python/test/Makefile.am0000644000175000017500000000002310406177662016423 00000000000000EXTRA_DIST=test.py redland-bindings-1.0.16.1/python/test/Makefile.in0000644000175000017500000002661212063416535016444 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = python/test DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = test.py all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu python/test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/python/redland-typemap.i0000644000175000017500000000063510406177662016661 00000000000000%exception { $action if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } redland-bindings-1.0.16.1/python/RDF.py0000644000175000017500000022650311772470736014417 00000000000000# # RDF.py - Redland Python RDF module # # Copyright (C) 2000-2011 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # This one file RDF.py is also available under the following license: # # 4. BSD License without advertising (aka MIT license) # from http://www.opensource.org/licenses/mit-license.html # # ------------------------------------------------------------------- # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, copy, # modify, merge, publish, distribute, sublicense, and/or sell copies # of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # -------------------------------------------------------------------- # # You may not use this file except in compliance with at least one of # the above four licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # from __future__ import generators # TODO: # * express failure conditions with Exceptions -- create a class hierarchy # of exceptions for Redland # * rename modules: Redland as _Redland, RDF as Redland """Redland Python API import RDF storage=RDF.Storage(...) model=RDF.Model(storage) ... do stuff The Python interface to the Redland RDF library. See http://librdf.org/ for full details. The main class that is used is Model which represents the RDF graph formed from triples or Statements. These statements consist of three Node objects for resource or literals and can be stored in a Storage (persistent or in-memory) as well as serialized to/from syntaxes via the Serializer or Parser classes. The Query class provides a way to use a query language with a Model, returning answers in QueryResults objects. """ import sys import string __all__ = [ "Node", "Statement", "Model", "Iterator", "Serializer", "NTriplesSerializer", "RDFXMLSerializer", "Stream", "Storage", "MemoryStorage", "HashStorage", "Uri", "Parser", "TurtleParser", "NTriplesParser", "NS", "Query", "RDQLQuery", "SPARQLQuery", "debug"] __version__ = "1.1" # For pydoc __date__ = '$Date$' __author__ = 'Dave Beckett - http://www.dajobe.org/, Edd Dumbill and Matt Biddulph ' # Package variables [globals] # Python style says to use _ to prevent exporting # Use two underscores "(class-private names, # enforced by Python 1.4) in those cases where it is important # that only the current class accesses an attribute" # -- http://python.sourceforge.net/peps/pep-0008.html _debug = 0 _world = None _node_types={ 'NODE_TYPE_UNKNOWN' : 0, 'NODE_TYPE_RESOURCE' : 1, 'NODE_TYPE_LITERAL' : 2, 'NODE_TYPE_BLANK' : 4} import Redland class RedlandError(Exception): """Redland Runtime errors""" def __init__(self, value): self.value = value def __str__(self): return `self.value` class NodeTypeError(RedlandError): pass class RedlandWarning(Warning): pass def node_type(name): """Return the Redland node type of a node name""" if _node_types.has_key(name): return _node_types[name] else: raise NodeTypeError('Unknown node type %s' % name) def node_type_name(num): """Return the name of a Redland node type""" for n in _node_types.keys(): if num==_node_types[n]: return n raise NodeTypeError('Unknown node type number %d' % num) def message_handler (type, message): raise RedlandError("Obsolete method") def set_message_handler(handler): raise RedlandError("Obsolete method") class World(object): """Redland Initialisation class. There are no user methods (can only be constructed). """ def __init__(self,digest_name="",uri_hash=None): """Create new RDF World object (constructor)""" #trick to ensure function exists during module cleanup self._cleanup = Redland.librdf_free_world self._world = None self._world = Redland.librdf_new_world() Redland.librdf_world_open(self._world) Redland.librdf_python_world_init(self._world) def __del__(self): """Destroy RDF World object (destructor).""" global _debug if self._world: if _debug: print "Destroying RDF.World" self._cleanup(self._world) # end class World def debug(value = None): """Get/set Redland debugging output status. RDF.debug (1) # enable debugging if RDF.debug(): # test for debug mode """ global _debug if value is not None: _debug = value else: return _debug class Node(object): """Redland Node (RDF Resource, Property, Literal) Class import RDF node1=RDF.Node() node2=RDF.Node(RDF.Uri("http://example.com/")) node3=RDF.Node("Hello, World!") node4=RDF.Node(uri_string="http://example.com/") node5=RDF.Node(literal="content", is_wf_xml=1) node6=RDF.Node(blank="abc") node7=RDF.Node(node5) ... print node2 if node7.is_resource(): print "Resource with URI", node7.uri if node5.is_blank(): print "Resource with blank node name ", node5.blank_identifier """ def __init__(self, arg = None, **args): """Create an RDF Node (constructor). Resource or Property node creation: n1 = Node(Uri("http://example.com/foo")) String literal node creation (see below for more complex ways of building literals.) n2 = Node("foo") Node copying: n3 = Node(n1) Or create a new RDF Node using the following named parameters: uri_string - create a resource node from a string URI uri - create a resource node from a URI object literal - create a literal node from a literal string datatype - the datatype URI is_wf_xml - the literal is XML (alternative to datatype) language - the literal XML language blank - create a resource node from with a blank node identiifer node - copy a node """ global _world global _debug if _debug: print "Creating RDF.Node args=",args self._node=None if arg is not None: if isinstance(arg, str): args['literal'] = arg elif isinstance(arg, unicode): import Redland_python args['literal'] = Redland_python.unicode_to_bytes(arg) elif isinstance(arg, Uri): args['uri'] = arg elif isinstance(arg, Node): args['node'] = arg if args.has_key('literal') and isinstance(args['literal'], unicode): import Redland_python args['literal'] = Redland_python.unicode_to_bytes(args['literal']) if args.has_key('uri_string'): self._node=Redland.librdf_new_node_from_uri_string(_world._world, args['uri_string']) elif args.has_key('uri'): # no need to copy the underlying uri as the redland C api does # this on node construction self._node = Redland.librdf_new_node_from_uri(_world._world, args['uri']._reduri) elif args.has_key('literal'): if args.has_key('xml_language'): xml_language=args['xml_language'] elif args.has_key('language'): xml_language=args['language'] else: xml_language=None if args.has_key('is_wf_xml'): is_wf_xml=args['is_wf_xml'] else: is_wf_xml=0 if args.has_key('datatype'): datatype=args['datatype'] self._node=Redland.librdf_new_node_from_typed_literal(_world._world, args['literal'], xml_language, datatype._reduri) else: self._node=Redland.librdf_new_node_from_literal(_world._world, args['literal'], xml_language, is_wf_xml) elif args.has_key('node'): self._node=Redland.librdf_new_node_from_node(args['node']._node) elif args.has_key('blank'): self._node=Redland.librdf_new_node_from_blank_identifier(_world._world, args['blank']) elif args.has_key('from_object'): if args.has_key('do_not_copy'): self._node=args['from_object'] else: self._node=Redland.librdf_new_node_from_node(args['from_object']) else: self._node=Redland.librdf_new_node(_world._world) if self._node is None: raise RedlandError("Node construction failed") def __del__(self): """Free an RDF Node (destructor).""" global _debug if _debug: print "Destroying RDF.Node" if self._node: if _debug: print "Deleting Redland node object" Redland.librdf_free_node(self._node) def _get_uri(self): # we return a copy of our internal uri if self.is_resource(): return Uri(from_object=Redland.librdf_node_get_uri(self._node)) else: raise NodeTypeError("Can't get URI for node type %s (%d)" % \ (node_type_name(self.type), self.type)) def _get_type(self): return Redland.librdf_node_get_type(self._node) uri = property(_get_uri, doc = "The URI of a resource node") type = property(_get_type, doc = "The node type, an integer") def _get_literal (self): if not self.is_literal(): raise NodeTypeError("Can't get literal value for node type %s (%d)" % \ (node_type_name(self.type), self.type)) dt_uri = Redland.librdf_node_get_literal_value_datatype_uri(self._node) if dt_uri: dt_uri = Uri(string=Redland.librdf_uri_to_string(dt_uri)) return (unicode(Redland.librdf_node_get_literal_value(self._node), 'utf-8'), Redland.librdf_node_get_literal_value_language(self._node), dt_uri) def _get_literal_value (self): if not self.is_literal(): raise NodeTypeError("Can't get literal value for node type %s (%d)" % \ (node_type_name(self.type), self.type)) dt_uri = Redland.librdf_node_get_literal_value_datatype_uri(self._node) if dt_uri: dt_uri = Uri(string=Redland.librdf_uri_to_string(dt_uri)) val={ 'string': unicode(Redland.librdf_node_get_literal_value(self._node), 'utf-8'), 'language': Redland.librdf_node_get_literal_value_language(self._node), 'datatype': dt_uri } return val literal = property(_get_literal, doc = "A tuple of the string, language and datatype values of the node") literal_value = property(_get_literal_value, doc = "A dictionary containing the value of the node literal with keys string, language and datatype") def _get_blank_identifier(self): if not self.is_blank(): raise NodeTypeError("Can't get blank identifier for node type %s (%d)" % \ (node_type_name(self.type), self.type)) else: return unicode(Redland.librdf_node_get_blank_identifier(self._node), 'utf-8') blank = property(_get_blank_identifier, doc = "The blank node identifier") blank_identifier = property(_get_blank_identifier, doc = "The node identifier of a blank node") def __str__(self): """Get a string representation of an RDF Node.""" return unicode(self).encode('utf-8') def __unicode__(self): """Get a Unicode string representation of an RDF Node.""" if self._node is None: raise RedlandError("Node is invalid") elif self.is_literal(): return unicode(Redland.librdf_node_get_literal_value(self._node), 'utf-8') elif self.is_blank(): return self._get_blank_identifier() else: return unicode(self.uri) def __eq__(self,other): """Equality of an RDF Node compared to another RDF Node.""" if not isinstance(other, self.__class__): return False return (Redland.librdf_node_equals(self._node, other._node) != 0) def __ne__(self,other): """Inequality of an RDF Node compared to another RDF Node.""" return not self == other def __hash__(self): return hash(str(self)) def is_resource(self): """Return true if node is a resource with a URI""" return (Redland.librdf_node_is_resource(self._node) != 0) def is_literal(self): """Return true if node is a literal""" return (Redland.librdf_node_is_literal(self._node) != 0) def is_blank(self): """Return true if node is a blank node""" return (Redland.librdf_node_is_blank(self._node) != 0) # end class Node class Statement(object): """Redland Statement (triple) class. The main means of manipulating statements is by the subject, predicate and object properties. import RDF statement1 = RDF.Statement(node1, node2, node3) statement2 = RDF.Statement(statement = statement1) if statement2.subject.is_resource(): print "statement2 subject is URI ",statement2.subject.uri statement.object = Node("hello, world") """ def __init__(self, subject = None, predicate = None, object = None, **args): """Constructor for Statement. Create a Statement from three Node objects. s1 = RDF.Statement(subjnode, prednode, objnode) A Node argument can be replaced with Uri or string to shortcut Node creation. s2 = RDF.Statement(Uri("http://foo"), Uri("http://bar"), "baz") Copy an existing Statement s1. s3 = RDF.Statement(statement=s1) """ global _world global _debug if _debug: print "Creating RDF.Statement subject=",subject,"predicate=",predicate,"object=",object,"args=",args self._statement = None if args.has_key('statement'): self._statement=Redland.librdf_new_statement_from_statement( args['statement']._statement) elif args.has_key('from_object'): self._statement = Redland.librdf_new_statement_from_statement( args['from_object']) else: if subject is None: s = None else: if isinstance(subject, Uri) or isinstance(subject, str): subject = Node(subject) elif isinstance(subject, unicode): import Redland_python subject = Node(Redland_python.unicode_to_bytes(subject)) s = Redland.librdf_new_node_from_node(subject._node) if predicate is None: p = None else: if isinstance(predicate, Uri) or isinstance(predicate, str): predicate = Node(predicate) elif isinstance(predicate, unicode): import Redland_python predicate = Node(Redland_python.unicode_to_bytes(predicate)) p = Redland.librdf_new_node_from_node(predicate._node) if object is None: o = None else: if isinstance(object, Uri) or isinstance(object, str): object = Node(object) elif isinstance(object, unicode): import Redland_python object = Node(Redland_python.unicode_to_bytes(object)) o = Redland.librdf_new_node_from_node(object._node) self._statement=Redland.librdf_new_statement_from_nodes( _world._world, s, p, o) if self._statement is None: raise RedlandError("Statement construction failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Statement" if self._statement: if _debug: print "Deleting Redland statement object" Redland.librdf_free_statement(self._statement) def _wrap_node(self, rednode): if rednode is None: return None return Node(from_object=rednode) def _get_subject(self): return self._wrap_node( Redland.librdf_statement_get_subject(self._statement)) def _get_object(self): return self._wrap_node( Redland.librdf_statement_get_object(self._statement)) def _get_predicate(self): return self._wrap_node( Redland.librdf_statement_get_predicate(self._statement)) def _set_subject(self, value): if value is None: Redland.librdf_statement_set_subject(self._statement, None) else: Redland.librdf_statement_set_subject(self._statement, Redland.librdf_new_node_from_node(value._node)) def _set_object(self, value): if value is None: Redland.librdf_statement_set_object(self._statement, None) else: Redland.librdf_statement_set_object(self._statement, Redland.librdf_new_node_from_node(value._node)) def _set_predicate(self, value): if value is None: Redland.librdf_statement_set_predicate(self._statement, None) else: Redland.librdf_statement_set_predicate(self._statement, Redland.librdf_new_node_from_node(value._node)) object = property(_get_object, _set_object, doc = "The object node of the statement.") subject = property(_get_subject, _set_subject, doc = "The subject node of the statement.") predicate = property(_get_predicate, _set_predicate, doc = "The predicate node of the statement.") def __str__(self): if self._statement is None: raise RedlandError("Statement is invalid") else: return Redland.librdf_statement_to_string(self._statement) def __unicode__(self): if self._statement is None: raise RedlandError("Statement is invalid") else: return unicode(Redland.librdf_statement_to_string(self._statement), 'utf-8') def __eq__(self,other): """Equality of an RDF Statement compared to another RDF Statement.""" if not isinstance(other, self.__class__): return False return (Redland.librdf_statement_equals(self._statement, other._statement) != 0) def __ne__(self,other): """Inequality of an RDF Statement compared to another RDF Statement.""" return not self == other def matches(self,other): """Comparison of this potentially incomplete RDF Statement compared to another RDF Statement.""" if other is None: return (self is None) return (Redland.librdf_statement_match(other._statement, self._statement) != 0) # end class Statement class Model(object): """Redland Graph class import RDF model = RDF.Model(storage) The main interface to the Redland RDF graph (formed from triples, or RDF statements). There are many methods for adding, removing, querying statements and serializing them to/from syntaxes using the Serializer or Parser classes. Models can also be used as Python sequences to give every triple in the model: for statement in model: print statement Models have other aspects of sequence types. The following also works: if statement in model: # do whatever if (statement, context) in model: # do whatever del model[statement] # remove statement from model del model[statement, context] # ditto for context-aware model model.append(statement) # append a statement model.append(statement, context) # append statement with context num_items = len(model) # get number of statements in the model # works only with countable storages """ def __init__(self, storage = None, **args): """Create an RDF Model (constructor). Create a Model from an existing Storage (most common use). Optional parameters: options_string - A string of options for the Model options_hash - A Hash of options for the Model m1 = RDF.Model(s1) m1 = RDF.Model(storage = s1) Copy an existing model m1, copying the underlying Storage of m1 m2 = RDF.Model(model = m1) Create a model using an in-memory storage. m3 = RDF.Model() """ global _world global _debug if _debug: print "Creating RDF.Model args=",args self._model=None self._storage=None if storage is None: storage = MemoryStorage() if args.has_key('options_string'): self._model=Redland.librdf_new_model(_world._world, storage._storage, args['options_string']) elif args.has_key('options_hash'): self._model=Redland.librdf_new_model_with_options( _world._world, storage._storage, args['options_hash'].hash) elif args.has_key('model'): self._model=Redland.librdf_new_model_from_model(storage._storage, args['model']._model) else: self._model=Redland.librdf_new_model(_world._world, storage._storage, "") if self._model is None or self._model == "NULL": self._model=None raise RedlandError("Creating new Model failed") else: # keep a reference around so storage object is destroyed after this self._storage=storage def __iter__(self): return self.as_stream().__iter__() def __del__(self): global _debug if _debug: print "Destroying RDF.Model" if self._model: Redland.librdf_free_model(self._model) def __len__(self): s = self.size() if s < 0: raise RedlandError("Attempt to get size when using non-countable storage.") return s def size(self): """Return the size of the Model in number of statements. Returns a value < 0 if number of statements not countable.""" return Redland.librdf_model_size(self._model) def add(self,subject,predicate,object): """Add the statement (subject,predicate,object) to the model. DEPRECATED. Use Model.append(Statement(s,p,o)) instead.""" # the reason to deprecate this method is that the Node constructors # will do a lot more checking. This wanton calling of underlying # C methods is a recipe for unexplained core dumps if any of the # nodes are null or invalid. return Redland.librdf_model_add(self._model, Redland.librdf_new_node_from_node(subject._node), Redland.librdf_new_node_from_node(predicate._node), Redland.librdf_new_node_from_node(object._node)) def add_typed_literal_statement(self,subject,predicate, string,xml_language=None,datatype=None): """Add the Statement (subject,predicate, typed literal) to the Model where the typed literal is constructed from the literal string, optional XML language and optional datatype URI. DEPRECATED. Use Model.append(Statement(s,p,o)) instead.""" # the reason to deprecate this method is that the Node constructors # will do a lot more checking. This wanton calling of underlying # C methods is a recipe for unexplained core dumps if any of the # nodes are null or invalid. if datatype is not None: rdatatype = datatype._reduri else: rdatatype = None subject_copy = Redland.librdf_new_node_from_node(subject._node) predicate_copy = Redland.librdf_new_node_from_node(predicate._node) return Redland.librdf_model_add_typed_literal_statement(self._model, subject_copy, predicate_copy, string, xml_language, rdatatype) def add_statement(self,statement,context=None): """Add the Statement to the Model with optional context Node. For Python idiom you should use Model.append() instead, which does the same thing.""" # adding a statement means it gets *copied* into the model # we are free to re-use the statement after adding it if context is not None: rc = Redland.librdf_model_context_add_statement(self._model, context._node, statement._statement) else: rc = Redland.librdf_model_add_statement(self._model, statement._statement) if rc != 0: raise RedlandError("Adding statement failed") def add_statements(self,statement_stream,context=None): """Add the Stream of Statements to the Model with the optional context Node""" if context is not None: return Redland.librdf_model_context_add_statements(self._model, context._node, statement_stream._stream) else: return Redland.librdf_model_add_statements(self._model, statement_stream._stream) def append(self, statement, context = None): """Append a Statement to the Model, with optional context Node. model.append(Statement(s, p, o)""" self.add_statement(statement, context) def remove_statement(self, statement, context = None): """Remove the Statement from the Model with the optional context Node. This is used by the __delitem__ method. Preferred way of removing a Statement is: del model[statement] del model[statement, context] """ if context is not None: return Redland.librdf_model_context_remove_statement(self._model, context._node, statement._statement) else: return Redland.librdf_model_remove_statement(self._model, statement._statement) def __delitem__(self, arg): if isinstance(arg, tuple): try: (s, c) = arg self.remove_statement(s, c) except ValueError: raise TypeError("can only del statement or (statement,context) tuple") else: self.remove_statement(arg) def remove_statements_with_context(self, context): """Remove all Statements from the Model with the given context Node""" return Redland.librdf_model_context_remove_statements(self._model, context._node) context_remove_statements = remove_statements_with_context def contains_statement(self, statement): """Return true if the Statement is in the Model""" return Redland.librdf_model_contains_statement(self._model, statement._statement) def contains_statement_context(self, statement, context): """Return true if the Statement is in the Model with the specified context. Note that the implementation is pretty inefficient.""" for (s, c) in self.find_statements_context(statement): if c == context: return 1 return 0 def __contains__(self, arg): # provided here for efficiency, otherwise Python # would iterate through the contents of the model if isinstance(arg, tuple): try: (s, c) = arg return self.contains_statement_context(s, c) except ValueError: raise TypeError("requires statement or (statement,context) tuple") else: return self.contains_statement(arg) def as_stream(self, context = None): """Return the Model as a Stream of Statements. No need to use this explicitly, instead do: for statement in model: # process statement """ if context is None: my_stream = Redland.librdf_model_as_stream(self._model) else: my_stream = Redland.librdf_model_context_as_stream(self._model, context._node) return Stream(my_stream, self) serialise = as_stream def as_stream_context(self, context = None): """Return the Model as a Stream of (statement, context) tuples. for (s, c) in model.as_stream_context(): # do whatever Specify the optional argument context if you want to hardwire the stream's context. """ return StreamWithContextIter(self.as_stream(context)) def find_statements(self,statement, context = None): """Return a Stream of Statements matching the given Statement -- any nodes with value None of the statement match any Node in the Model. Specify the optional argument context if you want to search only in one context. qs = RDF.Statement(subject = None, predicate = RDF.Node(uri_string = "http://example.com/pred"), object = None) for statement in model.find_statements(qs): # do whatever """ if context is None: my_stream = Redland.librdf_model_find_statements(self._model, statement._statement) else: my_stream = Redland.librdf_model_find_statements_in_context(self._model, statement._statement, context._node) return Stream(my_stream, self) def find_statements_context(self,statement): """Return a Stream of Statements with context, matching the given Statement -- any nodes with value None of the statement match any Node in the Model. qs = RDF.Statement(subject = None, predicate = RDF.Node(uri_string = "http://example.com/pred"), object = None) for (statement, context) in model.find_statements_context(qs): # do whatever """ return StreamWithContextIter(self.find_statements(statement)) def get_sources(self, predicate, target): """Return a sequence of Node s that are the source of Statements in the Model matching (?, predicate, target). Instead of specifying a Node for predicate, you can shortcut with a Uri, and with a Uri or string for target. e.g. model.get_sources(Uri("http://example.com/name"), "Fred") """ if isinstance(predicate, Uri): predicate = Node(predicate) if isinstance(target, Uri) or isinstance(target, str): target = Node(target) elif isinstance(target, unicode): import Redland_python target = Node(Redland_python.unicode_to_bytes(target)) my_iterator = Redland.librdf_model_get_sources(self._model, predicate._node, target._node) if my_iterator is None: raise RedlandError("Unable to create iterator") return Iterator(my_iterator, self, predicate, target) sources = get_sources def get_sources_context(self, predicate, target): """As for Model.get_sources but returns a list of (statement, context) tuples.""" return IteratorWithContextIter(self.get_sources(predicate, target)) def get_predicates(self,source,target): """Return a sequence of Nodes that are the predicates of Statements in the Model matching (source, ?, target). Instead of specifying a Node for source, you can shortcut with a Uri, and with a Uri or string for target. e.g. model.get_predicates(Uri("http://example.com/me"), "Fred") """ if isinstance(source, Uri): source = Node(source) if isinstance(target, Uri) or isinstance(target, str): target = Node(target) elif isinstance(target, unicode): import Redland_python target = Node(Redland_python.unicode_to_bytes(target)) my_iterator=Redland.librdf_model_get_arcs(self._model, source._node, target._node) if my_iterator is None: raise RedlandError("Unable to create iterator") return Iterator(my_iterator,self,source,target) arcs = get_predicates get_arcs = get_predicates predicates = get_predicates def get_predicates_context(self, source, target): """As for Model.get_predicates but returns a list of (statement, context) tuples.""" return IteratorWithContextIter(self.get_predicates(source, target)) def get_targets(self, source, predicate): """Return a sequence of Nodes that are the targets of Statements in the Model matching (source, predicate, ?). Instead of specifying a Node for source or predicate, you can shortcut with a Uri. e.g. model.get_targets(Uri("http://example.com/me"), prednode) """ if isinstance(source, Uri): source = Node(source) if isinstance(predicate, Uri): predicate = Node(predicate) my_iterator = Redland.librdf_model_get_targets(self._model, source._node, predicate._node) if my_iterator is None: raise RedlandError("Unable to create iterator") return Iterator(my_iterator,self,source,predicate) targets = get_targets def get_targets_context(self, source, predicate): """As for Model.get_targets but returns a list of (statement, context) tuples.""" return IteratorWithContextIter(self.get_targets(source, predicate)) def get_source(self, predicate, target): """Return one Node in the Model matching (?, predicate, target). The predicate can be a Node or Uri, the target a Node, Uri or string.""" if isinstance(predicate, Uri): predicate = Node(predicate) if isinstance(target, Uri) or isinstance(target, str): target = Node(target) elif isinstance(target, unicode): import Redland_python target = Node(Redland_python.unicode_to_bytes(target)) my_node=Redland.librdf_model_get_source(self._model, predicate._node, target._node) if not my_node: return None else: return Node(from_object=my_node, do_not_copy=1) def get_predicate(self,source,target): """Return one Node in the Model matching (source, ?, target). The source can be a Node or Uri, the target a Node, Uri or string.""" if isinstance(source, Uri): source = Node(source) if isinstance(target, Uri) or isinstance(target, str): target = Node(target) elif isinstance(target, unicode): import Redland_python target = Node(Redland_python.unicode_to_bytes(target)) my_node=Redland.librdf_model_get_arc(self._model, source._node, target._node) if not my_node: return None else: return Node(from_object=my_node, do_not_copy=1) get_arc = get_predicate def get_target(self, source, predicate): """Return one Node in the Model matching (source, predicate, ?). The source and predicate can be a Node or Uri.""" if isinstance(source, Uri): source = Node(source) if isinstance(predicate, Uri): predicate = Node(predicate) my_node=Redland.librdf_model_get_target(self._model, source._node, predicate._node) if not my_node: return None else: return Node(from_object=my_node, do_not_copy=1) def sync(self): """Synchronise the Model with the underlying Storage.""" Redland.librdf_model_sync(self._model) def get_contexts(self): """Return a sequence of context Nodes in the Model.""" my_iterator = Redland.librdf_model_get_contexts(self._model) if my_iterator is None: raise RedlandError("Unable to create iterator") return Iterator(my_iterator,self) def get_feature(self, uri): """Return the Node value of Model feature URI uri""" if not isinstance(uri, Uri): uri=Uri(string=uri) value=Redland.librdf_model_get_feature(self._model,uri._reduri) if value == "NULL" or value == None: return None return Node(from_object=value) def set_feature(self, uri, value): """Set the Node value of Model feature URI uri.""" if not isinstance(uri, Uri): uri=Uri(string=uri) if not isinstance(value, Node): value=Node(literal=value) Redland.librdf_model_set_feature(self._model,uri._reduri,value._node) def load(self, uri, name="", mime_type="", type_uri=None, handler=None): """Load triples into the Model from a URI in a syntax. Returns a boolean success or failure. If no parser name is given, the parser to use is guessed. If handler is given, an error handler with the signature def handler(code, level, facility, message, line, column, byte, file, uri) is called. """ if isinstance(uri, str): uri = Uri(string=uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) if uri is None: raise TypeError("uri must be a string or RDF.Uri") ruri = uri._reduri if isinstance(type_uri, str): type_uri = Uri(string=type_uri) elif isinstance(type_uri, unicode): import Redland_python type_uri = Uri(string=Redland_python.unicode_to_bytes(type_uri)) if type_uri is not None: rtype_uri = type_uri._reduri else: rtype_uri = None if handler is not None: import Redland_python Redland_python.set_callback(handler) rc=Redland.librdf_model_load(self._model, ruri, name, mime_type, rtype_uri) if handler is not None: import Redland_python Redland_python.reset_callback() return (rc != None) def to_string(self, base_uri=None, name="", mime_type="", type_uri=None): """Serialize the Model to a syntax. print model.to_string(base_uri="http://example.org/base") If no serializer name is given, the default serializer RDF/XML is used. """ if isinstance(base_uri, str): base_uri = Uri(string=base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None if isinstance(type_uri, str): type_uri = Uri(string=type_uri) elif isinstance(type_uri, unicode): import Redland_python type_uri = Uri(string=Redland_python.unicode_to_bytes(type_uri)) if type_uri is not None: rtype_uri = type_uri._reduri else: rtype_uri = None return Redland.librdf_model_to_string(self._model, rbase_uri, name, mime_type, rtype_uri) def __str__(self): return self.to_string() def __unicode__(self): return unicode(self.to_string(), 'utf-8') def execute(self,query): results = Redland.librdf_model_query_execute(self._model,query._query) if results is not None: return QueryResults(query._query,results) else: return None def run_as_statements(self,query): results = Redland.librdf_model_query_execute(self._model,query._query) if results is not None: s=Redland.librdf_query_results_as_stream(results) return Stream(s,results) else: return None # end class Model class Iterator(object): """Redland Node Iterator class A class for iterating over a sequence of Node s such as those returned from a Model query. Some methods return Iterator s or Python sequences. If this is used, it works as follows: iterator=model.get_targets_iterator(source, arc) while not iterator.end(): # get the current Node node=iterator.current() # do something with it # (it is shared; you must copy it you want to keep it) ... iterator.next() iterator=None """ def __init__(self,object,creator1=None,creator2=None,creator3=None): """Create an RDF Iterator (constructor).""" global _debug if _debug: print "Creating RDF.Iterator object=",object,"creator=",creator1 self._iterator=object # keep references to the things we're iterating over so they # don't get destroyed before we're done with them. self._creator1=creator1 self._creator2=creator2 self._creator3=creator3 def __iter__(self): return IteratorIter(self) def __del__(self): global _debug if _debug: print "Destroying RDF.Iterator" if self._iterator: Redland.librdf_free_iterator(self._iterator) def end(self): """Return true if the iterator is exhausted""" return Redland.librdf_iterator_end(self._iterator) def have_elements(self): print """RDF.Iterator method have_elements is deprecated, please use 'not iterator.end' instead.""" return Redland.librdf_iterator_have_elements(self._iterator) def current(self): """Return the current object on the Iterator""" my_node=Redland.librdf_iterator_get_object(self._iterator) if my_node == "NULL" or my_node == None: return None return Node(from_object=my_node) def next(self): """Move to the next object on the Iterator""" Redland.librdf_iterator_next(self._iterator) def context(self): """Return the context Node of the current object on the Iterator""" my_node=Redland.librdf_iterator_get_context(self._iterator) if my_node == "NULL" or my_node == None: return None return Node(from_object=my_node) # end class Iterator class StreamWithContextIter(object): def __init__(self,stream): global _debug if _debug: print "Creating StreamWithContextIter for Stream "+repr(stream) self.stream = stream self.first = 1 def __iter__(self): return self def next(self): if self.first: self.first = 0 else: self.stream.next() if self.stream is None or self.stream.end(): raise StopIteration return (self.stream.current(), self.stream.context()) class IteratorWithContextIter(object): def __init__(self,iterator): global _debug if _debug: print "Creating IteratorWithContextIter for Iterator "+repr(iterator) self.iterator = iterator self.first = 1 def __iter__(self): return self def next(self): if self.first: self.first = 0 else: self.iterator.next() if self.iterator is None or self.iterator.end(): raise StopIteration try: return (self.iterator.current(), self.iterator.context()) except AttributeError: return (self.iterator.current(), None) class IteratorIter(object): def __init__(self,iterator): global _debug if _debug: print "Creating IteratorIter for Iterator "+repr(iterator) self.iterator = iterator self.first = 1 def __iter__(self): return self def next(self): if self.first: self.first = 0 else: self.iterator.next() if self.iterator is None or self.iterator.end(): raise StopIteration return self.iterator.current() class StreamIter: def __init__(self,stream): global _debug if _debug: print "Creating StreamIter for Stream "+repr(stream) self.stream = stream self.first = 1 def __iter__(self): return self def next(self): if self.first: self.first = 0 else: self.stream.next() if self.stream is None or self.stream.end(): raise StopIteration return self.stream.current() class Stream(object): """Redland Statement Stream class A class encapsulating a sequence of Statements, such as those returned from a Model query. Can be used as a Python sequence. stream = model.find_statements(query_statement) for statement in stream: # do whatever with 'statement' # note it is shared and will go out of scope, so you must # copy it if you want it to stay around You should not normally find yourself needing to use this class explicitly. """ def __init__(self, object, creator): """Create an RDF Stream (constructor).""" global _debug if _debug: print "Creating RDF.Stream for object",object, "creator",creator self._stream=object # Keep around a reference to the object that created the stream # so that Python does not destroy them before us. self.creator=creator def context_iter(self): """Return an iterator over this stream that returns (stream, context) tuples each time it is iterated. DEPRECATED. Instead use the context-aware method appropriate, e.g. Model.find_statements_context() or Model.as_stream_context() """ return StreamWithContextIter(self) def __iter__(self): return StreamIter(self) def __del__(self): global _debug if _debug: print "Destroying RDF.Stream" if self._stream: Redland.librdf_free_stream(self._stream) def end(self): """Return true if the stream is exhausted""" if not self._stream: return 1 return Redland.librdf_stream_end(self._stream) def current(self): """Return the current Statement on the Stream""" if not self._stream: return None my_statement=Redland.librdf_stream_get_object(self._stream) if my_statement == "NULL" or my_statement == None: return None return Statement(from_object=my_statement) def next(self): """Move to the next Statement on the Stream""" if not self._stream: return 1 return Redland.librdf_stream_next(self._stream) def context(self): """Return the context Node of the current object on the Stream""" if not self._stream: return 1 my_node=Redland.librdf_stream_get_context(self._stream) if my_node == "NULL" or my_node == None: return None return Node(from_object=my_node) # end class Stream class Storage(object): """Redland Statement Storage class import RDF storage=RDF.Storage(storage_name="memory") The Redland abstraction for storing RDF graphs as Statements. There are no user methods (can only be constructed). You should normally use a specialized class such as MemoryStorage or HashStorage in preference to this class. """ def __init__(self, **args): """Create an RDF Storage (constructor). Create a new RDF Storage using any of these forms s1=RDF.Storage(storage_name="name",options_string="") Create a Storage of the given type. Currently the built in storage names that are always present are 'memory', 'hashes', 'file' and 'uri'. 'bdb' is available when Sleepycat / BerkeleyDB is compiled in, 'mysql' when MySQL is compiled in, and 'sqlite' when SQLite is compiled in. If storage_name is omitted, it defaults to 'memory'. The argument 'name' can be used when the storage needs a name to operate, such as used for a filename or URI: s1=RDF.Storage(storage_name="file", name='/filename',options_string="") s2=RDF.Storage(storage_name="uri", name='http://rdf.example.org/',options_string="") The required argument options_string allows additional store-specific options to be given, some of which are required by certain stores. This uses the following form: s3=RDF.Storage(storage_name="name", name='abc', options_string="key1='value1', key2='value2', ...") for multiple key/value option pairs, option values are always surrounded by single quotes. The common options are: new - optional and takes a boolean value (default false) If true, it deletes any existing store and creates a new one otherwise if false (default) open an existing store. write - optional and takes a boolean value (default true) If true (default) the Storage is opened read-write otherwise if false the storage is opened read-only and for file-based Storages or those with locks, may be opened with shared-readers. Some storage types have additional options: storage_name 'hashes' has options: hash-type - the name of any hash type supported. 'memory' (default), 'file' hash types are always present. 'bdb' is available when BerkeleyDB is compiled in, dir - the directory name to create the files in (default '.') mode - the file creation mode (default 0644 octal) storage_name 'mysql' has options: host - required MySQL database hostname port - optional MySQL database port (defaults to 3306) database - required MySQL database name user - required MySQL database user password - required MySQL database password stoage name 'sqlite' has options: synchronous - optional value off, normal or full The other form is: s4=RDF.Storage(storage=s1) Copy an existing Storage s1. Note: there are convience classes to create a memory storage s5=RDF.MemoryStorage() and Hash storage: # memory hash s6=RDF.HashStorage('abc') # specified bdb hash stored in files named 'def'* s7=RDF.HashStorage('def', options="hash-type='bdb'") """ global _world global _debug if _debug: print "Creating RDF.Storage args=",args self._storage=None if (args.has_key('storage_name') and args.has_key('name') and args.has_key('options_string')): self._storage=Redland.librdf_new_storage(_world._world, args['storage_name'], args['name'], args['options_string']) elif args.has_key('storage'): self._storage=Redland.librdf_new_storage_from_storage( args['storage']._storage) else: raise RedlandError("Creating Storage failed - missing storage_name, name or options_string arguments") if self._storage == "NULL" or self._storage == None: self._storage=None raise RedlandError("Creating Storage failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Storage" if self._storage: Redland.librdf_free_storage(self._storage) # end class Storage class HashStorage(Storage): """Redland Hashed Storage class import RDF h1=RDF.HashStorage("abc", options="hash-type='memory'") # Creating a storage with contexts enabled s=RDF.HashStorage("def", options="contexts='yes'") Class of hashed Storage for a particular type of hash (typically hash-type is "memory" or "bdb") and any other options. """ def __init__(self, hash_name, options=""): Storage.__init__(self, name = hash_name, storage_name = "hashes", options_string = options) class MemoryStorage(Storage): """Redland memory Storage class import RDF h1=RDF.MemoryStorage() h1=RDF.MemoryStorage("abc") h2=RDF.MemoryStorage("abc", "write='no'") # Creating a storage with contexts enabled s = RDF.MemoryStorage(options_string="contexts='yes'") Class of memory Storage with optional name, additional options. """ def __init__(self, mem_name = "", options_string = ""): Storage.__init__(self, name = mem_name, storage_name = "memory", options_string = options_string) class FileStorage(Storage): """Redland file Storage class import RDF s=RDF.FileStorage("abc") Class of file Storage with required name, additional options. """ def __init__(self, mem_name, options_string = ""): Storage.__init__(self, name = mem_name, storage_name = "file", options_string = options_string) class Uri(object): """Redland URI Class import RDF uri1 = RDF.Uri("http://example.com/") uri2 = RDF.Uri(uri1) """ def __init__(self, arg = None, **args): """Create an RDF URI (constructor). Creates a new RDF URI from either of the following forms: uri1 = RDF.Uri("http://example.com/") Create a URI from the given string. uri2 = RDF.Uri(uri1) Copy an existing URI uri1. """ global _world global _debug if _debug: print "Creating RDF.Uri arg,args=",arg,args self._reduri=None if arg is not None: if isinstance(arg, str): args['string'] = arg elif isinstance(arg, unicode): import Redland_python args['string'] = Redland_python.unicode_to_bytes(arg) elif isinstance(arg, Uri): args['uri'] = arg if args.has_key('string') and args['string'] is not None: self._reduri=Redland.librdf_new_uri(_world._world, args['string']) elif args.has_key('uri'): self._reduri=Redland.librdf_new_uri_from_uri(args['uri']._reduri) elif args.has_key('from_object'): if args['from_object']!=None: self._reduri=Redland.librdf_new_uri_from_uri(args['from_object']) else: raise RedlandError("Attempt to create new URI from null URI") if self._reduri is None: raise RedlandError("Uri construction failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Uri" if self._reduri: if _debug: print "Deleting Redland uri object" Redland.librdf_free_uri(self._reduri) def __str__(self): """Get a string representation of an RDF URI.""" return Redland.librdf_uri_to_string(self._reduri) def __unicode__(self): """Get a Unicode string representation of an RDF URI.""" return unicode(Redland.librdf_uri_to_string(self._reduri), 'utf-8') def __hash__(self): return hash(str(self)) def __eq__(self,other): """Equality of RDF URI to another RDF URI.""" if not isinstance(other, self.__class__): return False return (Redland.librdf_uri_equals(self._reduri, other._reduri) != 0) def __ne__(self,other): """Inequality of RDF URI to another RDF URI.""" return not self == other # end class Uri class Parser(object): """Redland Syntax Parser Class import RDF parser1=RDF.Parser() parser2=RDF.Parser(name="rdfxml") parser3=RDF.Parser(mime_type="application/rdf+xml") stream=parser2.parse_as_stream("file://dir/file.rdf") parser3.parse_into_model(model, "file://dir/file.rdf", "http://example.org/") The default parser type if not given explicitly is raptor, for the RDF/XML syntax. """ def __init__(self, name=None, mime_type=None, uri=None): """Create an RDF Parser (constructor). Create a new RDF Parser for a particular syntax. The parser is chosen by the fields given to the constructor, all of which are optional. When any are given, they must all match. The default parser is chosen if none are given, which is RDF/XML in the standard configuration of Raptor. name - parser syntax name mime_type - syntax mime type uri - URI identifying the syntax """ #" global _world global _debug if _debug: print "Creating RDF.Parser name=",name,"mime_type=",mime_type, "uri=",uri self._parser = None if uri is not None: ruri=uri._reduri else: ruri=None self._parser=Redland.librdf_new_parser(_world._world, name, mime_type, ruri) if self._parser is None: raise RedlandError("Parser construction failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Parser" if self._parser: Redland.librdf_free_parser(self._parser) def parse_as_stream(self, uri, base_uri=None): """Return a Stream of Statements from parsing the content at a URI for the optional base URI or None if the parsing fails. (This depends on what URI support raptor provides to redland) for statement in parser.parse_as_stream("http://localhost/r.rdf"): print statement """ if isinstance(uri, str): uri = Uri(string=uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) if base_uri is None: base_uri=uri my_stream=Redland.librdf_parser_parse_as_stream(self._parser, uri._reduri, base_uri._reduri) if my_stream is None: return None return Stream(my_stream, self) def parse_string_as_stream(self, string, base_uri): """Return a Stream of Statements from parsing the content in string with the required base URI or None if the parsing fails. for statement in parser.parse_string_as_stream(rdfstring, base_uri): print statement """ if isinstance(base_uri, str): base_uri = Uri(string=base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is None: raise RedlandError("A base URI is required when parsing a string") if isinstance(string, unicode): import Redland_python string=Redland_python.unicode_to_bytes(string) my_stream=Redland.librdf_parser_parse_string_as_stream(self._parser, string, base_uri._reduri) if my_stream==None: return None return Stream(my_stream, self) def parse_into_model(self, model, uri, base_uri=None, handler=None): """Parse into the Model model from the content at the URI, for the optional base URI. Returns a boolean success or failure. If handler is given, an error handler with the signature def handler(code, level, facility, message, line, column, byte, file, uri) is called. parser.parse_into_model(model, "file:./foo.rdf", "http://example.com/foo.rdf") """ if isinstance(uri, str): uri = Uri(string = uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is None: base_uri = uri if handler is not None: import Redland_python Redland_python.set_callback(handler) try: rc = Redland.librdf_parser_parse_into_model(self._parser, uri._reduri, base_uri._reduri, model._model) except RedlandError, err: print "Caught error",err raise err if handler is not None: import Redland_python Redland_python.reset_callback() return (rc != None) def parse_string_into_model(self, model, string, base_uri, handler = None): """Parse into the Model model from the content string with the required base URI. Returns a boolean success or failure. If handler is given, an error handler with the signature def handler(code, level, facility, message, line, column, byte, file, uri) is called. """ if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is None: raise RedlandError("A base URI is required when parsing a string") if handler is not None: import Redland_python Redland_python.set_callback(handler) if isinstance(string, unicode): import Redland_python string=Redland_python.unicode_to_bytes(string) rc=Redland.librdf_parser_parse_string_into_model(self._parser, string, base_uri._reduri, model._model) if handler is not None: import Redland_python Redland_python.reset_callback() return (rc != None) def get_feature(self, uri): """Return the Node value of Parser feature URI uri""" if not isinstance(uri, Uri): uri=Uri(string=uri) value=Redland.librdf_parser_get_feature(self._parser,uri._reduri) if value == "NULL" or value == None: return None return Node(from_object=value) def set_feature(self, uri, value): """Set the Node value of Parser feature URI uri.""" if not isinstance(uri, Uri): uri=Uri(string=uri) if not isinstance(value, Node): value=Node(literal=value) Redland.librdf_parser_set_feature(self._parser,uri._reduri,value._node) def set_uri_filter(self, filter): """Set a function for rejecting retrieval of URIs seen during parsing. Return False or 0 to not reject the URI def reject(uri): if "bad" == uri: return True return False parser.set_uri_filter(reject) """ import Redland_python Redland_python.set_parser_uri_filter(self._parser, filter) def namespaces_seen(self): """Get a dictionary of prefix/URI pairs for namespaces seen during parsing. """ count = Redland.librdf_parser_get_namespaces_seen_count(self._parser) nspaces={} for index in range(0, count-1): prefix=Redland.librdf_parser_get_namespaces_seen_prefix(self._parser, index) uri_obj=Redland.librdf_parser_get_namespaces_seen_uri(self._parser, index) if uri_obj is None: uri=None else: uri=Uri(from_object=uri_obj) nspaces[prefix]=uri return nspaces # end class Parser class RDFXMLParser(Parser): """Redland RDF/XML Parser class import RDF parser=RDF.RDFXMLParser() """ def __init__(self): Parser.__init__(self, name = "rdfxml") class NTriplesParser(Parser): """Redland N-Triples Parser class import RDF parser=RDF.NTriplesParser() """ def __init__(self): Parser.__init__(self, name = "ntriples") class TurtleParser(Parser): """Redland Turtle Parser class import RDF parser=RDF.TurtleParser() """ def __init__(self): Parser.__init__(self, name = "turtle") class RSSTagSoupParser(Parser): """Redland RSS Tag Soup Parser class import RDF parser=RDF.RSSTagSoupParser() """ def __init__(self): Parser.__init__(self, name = "rss-tag-soup") class GRDDLParser(Parser): """Redland GRDDL Parser class import RDF parser=RDF.GRDDLParser() """ def __init__(self): Parser.__init__(self, name = "grddl") class Query(object): """Redland Query interface class import RDF q1 = RDF.Query("SELECT ?a ?c WHERE (?a dc:title ?c) USING dc FOR ") q2 = RDF.Query("- - -", query_language="triples") q3 = RDF.Query("select $a where ...", query_language="sparql") results=q1.execute(model) for result in results: print result['a'] print result['c'] for statement in q2.execute().as_stream(model): print statement """ def __init__(self, querystring, base_uri=None, query_language="sparql", query_uri=None): self._query = None if querystring is None: raise RedlandError("No query string given") if isinstance(querystring, unicode): querystring = querystring.encode('utf-8') if query_uri is not None: ruri = query_uri._reduri else: ruri = None if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None global _world global _debug if _debug: print "Creating query for language '"+query_language+"', base '"+str(rbase_uri)+"': "+querystring self._query = Redland.librdf_new_query(_world._world, query_language, ruri, querystring, rbase_uri) self.result_stream = None if self._query is None: raise RedlandError("Query construction failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Query" if self._query: Redland.librdf_free_query(self._query) def execute(self,model): results = Redland.librdf_query_execute(self._query,model._model) if results is not None: return QueryResults(self._query,results) else: return None # end class Query class RDQLQuery(Query): """Redland RDQL Query class""" def __init__(self, querystring, base_uri=None): Query.__init__(self, querystring = querystring, base_uri = base_uri, query_language = "rdql") class SPARQLQuery(Query): """Redland SPARQL Query class""" def __init__(self, querystring, base_uri=None): Query.__init__(self, querystring = querystring, base_uri = base_uri, query_language = "sparql") class QueryResults(object): """Redland Query results class """ def __init__(self,query,results): global _debug if _debug: print "Creating QueryResults" self._query = query self._results = results self.first = True def is_bindings(self): """Test if the query results format is variable bindings""" return (Redland.librdf_query_results_is_bindings(self._results) != 0) def is_boolean(self): """Test if the query results format is a boolean""" return (Redland.librdf_query_results_is_boolean(self._results) != 0) def is_graph(self): """Test if the query results format is an RDF graph""" return (Redland.librdf_query_results_is_graph(self._results) != 0) def __iter__(self): return self def __len__(self): """Returns an exception since len() of an iterable is undefined.""" raise ValueError("Cannot take the length of iterable query results") # Iterator method def next(self): """Get the next variable binding result""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") if self.first: self.first = False else: Redland.librdf_query_results_next(self._results) if Redland.librdf_query_results_finished(self._results): raise StopIteration return self.make_results_hash() def make_results_hash(self): results = {} c = Redland.librdf_query_results_get_bindings_count(self._results) for i in range(c): n = Redland.librdf_query_results_get_binding_name(self._results,i) v = Redland.librdf_query_results_get_binding_value(self._results,i) if v is None: results[n] = None else: results[n] = Node(from_object=v) return results def finished(self): """Test if reached the last variable binding result""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") return (Redland.librdf_query_results_finished(self._results) != 0) def as_stream(self): """Return the query results as a stream of triples (RDF.Statement)""" if not self.is_graph(): raise RedlandError("Query result is not in RDF graph format") s=Redland.librdf_query_results_as_stream(self._results) if s is not None: return Stream(s, self) else: return None def get_boolean(self): """Get the boolean query result""" if not self.is_boolean(): raise RedlandError("Query result is not in boolean format") return (Redland.librdf_query_results_get_boolean(self._results) != 0) def get_binding_value(self, offset): """Get the value of a variable binding by offset""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") n=Redland.librdf_query_results_get_binding_value(self._results, offset) if n is None: return None else: return Node(from_object=n, do_not_copy=1) def get_binding_name(self, offset): """Get the name of a variable binding by offset""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") return Redland.librdf_query_results_get_binding_name(self._results, offset) def get_binding_value_by_name(self, name): """Get the value of a variable binding by variable name""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") n=Redland.librdf_query_results_get_binding_value_by_name(self._results, name) if n is None: return None; else: return Node(from_object=n, do_not_copy=1) def get_bindings_count(self): """Get the number of variable bindings in the query result""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") return Redland.librdf_query_results_get_bindings_count(self._results) def __del__(self): global _debug if _debug: print "Destroying RDF.QueryResults" if self._results: Redland.librdf_free_query_results(self._results) def to_file(self, name, format_uri=None, base_uri=None): """Serialize to filename name in syntax format_uri using the optional base URI.""" if isinstance(format_uri, str): format_uri = Uri(string = format_uri) elif isinstance(format_uri, unicode): import Redland_python format_uri = Uri(string=Redland_python.unicode_to_bytes(format_uri)) else: format_uri = None if format_uri is not None: rformat_uri = format_uri._reduri else: rformat_uri = None if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None return Redland.librdf_query_results_to_file(self._results, name, rformat_uri, rbase_uri) def to_string(self, format_uri=None, base_uri=None): """Serialize to a string syntax format_uri using the optional base URI.""" if self.is_graph(): tmpmodel = Model(MemoryStorage()) tmpmodel.add_statements(self.as_stream()) serializer = Serializer() return serializer.serialize_model_to_string(tmpmodel, base_uri) if self.is_boolean(): return str(self.get_boolean()) if not self.is_bindings(): raise RedlandError("Unknown query result format cannot be written as a string") if isinstance(format_uri, str): format_uri = Uri(string = format_uri) elif isinstance(format_uri, unicode): import Redland_python format_uri = Uri(string=Redland_python.unicode_to_bytes(format_uri)) else: format_uri = None if format_uri is not None: rformat_uri = format_uri._reduri else: rformat_uri = None if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None return Redland.librdf_query_results_to_string(self._results, rformat_uri, rbase_uri) def __str__(self): """Serialize to string syntax format.""" return self.to_string() # end class QueryResults class Serializer(object): """ Redland Syntax Serializer Class import RDF ser1=RDF.Serializer() ser2=RDF.Serializer(mime_type="application/rdf+xml") ser3=RDF.Serializer(name="ntriples") A class for turning a Model into a syntax serialization (at present only to local files). """ def __init__(self, name=None, mime_type=None, uri=None): """Create an RDF Serializer (constructor). The arguments name, mime_type and uri are all optional and when omitted the default serialization syntax is used. If any arguments are given, they must all match for an appropriate syntax to be chosen. For example, RDF/XML has a MIME type of 'application/rdf+xml' so this can be given with the mime_type argument, however the N-Triples has none, so the 'ntriples' name must be used. Most syntaxes have URIs. """ global _world global _debug if _debug: print "Creating RDF.Serializer name=",name,"mime_type=",mime_type, \ "uri=",uri self._serializer = None if uri is not None: ruri = uri._reduri else: ruri = None self._serializer=Redland.librdf_new_serializer(_world._world, name, mime_type, ruri) if self._serializer is None: raise RedlandError("Serializer construction failed") def __del__(self): global _debug if _debug: print "Destroying RDF.Serializer" if self._serializer: Redland.librdf_free_serializer(self._serializer) def serialize_model_to_file(self, name, model, base_uri=None): """Serialize to filename name the Model model using the optional base URI.""" if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None return Redland.librdf_serializer_serialize_model_to_file(self._serializer, name, rbase_uri, model._model) def serialize_model_to_string(self, model, base_uri=None): """Serialize to a string using the optional base URI.""" if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None return Redland.librdf_serializer_serialize_model_to_string(self._serializer, rbase_uri, model._model) def serialize_stream_to_string(self, stream, base_uri=None): """Serialize a stream to a string using the optional base URI.""" if isinstance(base_uri, str): base_uri = Uri(string = base_uri) elif isinstance(base_uri, unicode): import Redland_python base_uri = Uri(string=Redland_python.unicode_to_bytes(base_uri)) if base_uri is not None: rbase_uri = base_uri._reduri else: rbase_uri = None return Redland.librdf_serializer_serialize_stream_to_string(self._serializer, rbase_uri, stream._stream) # TODO: features could usefully be implemented as a collection def get_feature(self, uri): """Return the value of Serializer feature URI uri""" if not isinstance(uri, Uri): if isinstance(uri, str): uri = Uri(string=uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) else: raise TypeError("uri must be string or RDF.Uri") return Redland.librdf_serializer_get_feature(self._serializer,uri._reduri) def set_feature(self, uri, value): """Set the value of Serializer feature URI uri.""" if not isinstance(uri, Uri): if isinstance(uri, str): uri = Uri(string=uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) else: raise TypeError("uri must be string or RDF.Uri") Redland.librdf_serializer_set_feature(self._serializer,uri._reduri,value) def set_namespace(self, prefix, uri): """Set a namespace prefix and URI for the Serializer to use.""" if not isinstance(uri, Uri): if isinstance(uri, str): uri = Uri(string=uri) elif isinstance(uri, unicode): import Redland_python uri = Uri(string=Redland_python.unicode_to_bytes(uri)) else: raise TypeError("uri must be string or RDF.Uri") Redland.librdf_serializer_set_namespace(self._serializer, uri._reduri, prefix) # end class Serializer class NTriplesSerializer(Serializer): """Redland N-Triples Serializer class import RDF ser=RDF.NTriplesSerializer() """ def __init__(self): Serializer.__init__(self, name = "ntriples", mime_type = "", uri = None) class RDFXMLSerializer(Serializer): """Redland RDF/XML Serializer class import RDF ser=RDF.RDFXMLSerializer() """ def __init__(self): Serializer.__init__(self, name = "rdfxml") class RDFXMLAbbrevSerializer(Serializer): """Redland RDF/XML with abbreviations Serializer class import RDF ser=RDF.RDFXMLAbbrevSerializer() """ def __init__(self): Serializer.__init__(self, name = "rdfxml-abbrev") class RSS10Serializer(Serializer): """Redland RSS 1.0 Serializer class import RDF ser=RDF.RSS10Serializer() """ def __init__(self): Serializer.__init__(self, name = "rss-1.0") class TurtleSerializer(Serializer): """Redland Turtle Serializer class import RDF ser=RDF.TurtleSerializer() """ def __init__(self): Serializer.__init__(self, name = "turtle") class NS(object): """ Redland Namespace Utility Class import RDF nspace = RDF.NS("http://example.com/foo#") # creates an RDF Node for http://example.com/foo#blah node1 = nspace.blah # creates an RDF Node for http://example.com/foo#blah node2 = nspace['blah'] A class for generating RDF Nodes with URIs from the same vocabulary (such as XML Namespace) varying only in the appended name in the vocabulary. Each node returned is a pointer to a shared copy. """ def __init__(self,prefix): self._prefix = prefix self._nodecache = {} def _node(self,localName): if localName not in self._nodecache: self._nodecache[localName] = Redland.librdf_new_node_from_uri_string(_world._world, self._prefix+localName) return Node(from_object=self._nodecache[localName]) def __getitem__(self,localName): return self._node(localName) def __getattr__(self,localName): return self._node(localName) # global init, create our world. _world=World() redland-bindings-1.0.16.1/python/README0000644000175000017500000000003010406177662014266 00000000000000See ../docs/python.html redland-bindings-1.0.16.1/python/redland-pre.i0000644000175000017500000000007111430156235015751 00000000000000#ifdef HAVE_CONFIG_H #include #endif redland-bindings-1.0.16.1/python/example.py0000644000175000017500000000500611522705745015422 00000000000000#!/usr/bin/python # # example.py - Redland Python 2.0 example code # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # import RDF storage=RDF.Storage(storage_name="hashes", name="test", options_string="new='yes',hash-type='memory',dir='.'") if storage is None: raise Exception("new RDF.Storage failed") #RDF.debug(1) model=RDF.Model(storage) if model is None: raise Exception("new RDF.model failed") statement=RDF.Statement(RDF.Uri("http://www.dajobe.org/"), RDF.Uri("http://purl.org/dc/elements/1.1/creator"), RDF.Node("Dave Beckett")) if statement is None: raise Exception("new RDF.Statement failed") model.add_statement(statement) # Match against an empty statement - find everything for s in model.find_statements(RDF.Statement()): print "found statement:",s test_file='../data/dc.rdf' print "Parsing URI (file)", test_file uri=RDF.Uri(string="file:"+test_file) parser=RDF.Parser('raptor') if parser is None: raise Exception("Failed to create RDF.Parser raptor") count=0 for s in parser.parse_as_stream(uri,uri): model.add_statement(s) count=count+1 print "Parsing added",count,"statements" print "Printing all statements" for s in model.as_stream(): print "Statement:",s q = RDF.Query("SELECT ?a ?c WHERE (?a dc:title ?c) USING dc FOR ") print "Querying for dc:titles:" for result in q.execute(model): print "{" for k in result: print " "+k+" = "+str(result[k]) print "}" print "Writing model to test-out.rdf as rdf/xml" # Use any rdf/xml parser that is available serializer=RDF.Serializer() serializer.set_namespace("dc", RDF.Uri("http://purl.org/dc/elements/1.1/")) serializer.serialize_model_to_file("test-out.rdf", model) print "Serialized to ntriples as a string size",len(model.to_string(name="ntriples", base_uri="http://example.org/base#")),"bytes" print "Done" redland-bindings-1.0.16.1/python/redland-decl.i0000644000175000017500000000006410406177662016105 00000000000000void librdf_python_world_init(librdf_world *world); redland-bindings-1.0.16.1/python/Makefile.am0000644000175000017500000000643111627312542015447 00000000000000# -*- Mode: Makefile -*- # # Makefile.am - automake file for Python interface to Redland # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # RELEASE=@VERSION_RELEASE@ # SWIG 1.3.27+ Needs SWIG_PYTHON_SILENT_MEMLEAK: I know better than SWIG swig_flags= -DSWIG_PYTHON_SILENT_MEMLEAK PYTHON_INCLUDES=@PYTHON_INCLUDES@ AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ $(PYTHON_INCLUDES) $(swig_flags) AM_CFLAGS=@CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) $(swig_flags) # This module needs Rasqal and Raptor symbols AM_LDFLAGS=@LIBRDF_LDFLAGS@ $(MEM_LIBS) @RASQAL_LDFLAGS@ PYTHON=@PYTHON@ PYTHON_PACKAGE=Redland PYTHON_LDFLAGS=@PYTHON_LDFLAGS@ PYTHON_LIBEXT=@PYTHON_LIBEXT@ SWIG_OUTPUTS=$(PYTHON_PACKAGE)_wrap.c pythondir=@PYTHON_LIB@ python_DATA=RDF.py Redland$(PYTHON_LIBEXT) EXTRA_DIST=README RDF.py \ example.py redlandtest.py \ redland-pre.i redland-post.i redland-decl.i redland-typemap.i $(SWIG_OUTPUTS) SUBDIRS=test CLEANFILES=*.db *.pyc test-out.rdf \ $(PYTHON_PACKAGE)_wrap.so $(PYTHON_PACKAGE)_wrap.o $(PYTHON_PACKAGE)-stamp \ $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(PYTHON_PACKAGE).bundle MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) $(SWIG_CRUFT) RUN=@REDLAND_RUN@ SWIG_OPTS=-I$(srcdir) -I$(srcdir)/.. -DREDLAND_PRE_I -DREDLAND_POST_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I $(PYTHON_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-post.i redland-decl.i redland-typemap.i swig -v -python $(SWIG_OPTS) $(SWIG_PYTHON_ARGS) -module $(PYTHON_PACKAGE) -o $@ @REDLAND_SWIG@ $(PYTHON_PACKAGE)_wrap.so: $(srcdir)/$(PYTHON_PACKAGE)_wrap.c $(CC) $(DEFS) $(SWIG_OPTS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(srcdir)/$(PYTHON_PACKAGE)_wrap.c -c -o $@ $(PYTHON_PACKAGE)$(PYTHON_LIBEXT): $(PYTHON_PACKAGE)-stamp $(PYTHON_PACKAGE)-stamp: $(PYTHON_PACKAGE)_wrap.so $(CC) $(AM_CFLAGS) $(CFLAGS) $(PYTHON_PACKAGE)_wrap.so $(PYTHON_LDFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) touch $(PYTHON_PACKAGE)-stamp install-pythonDATA: $(python_DATA) $(mkinstalldirs) $(DESTDIR)$(pythondir) $(INSTALL_PROGRAM) $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(INSTALL_DATA) RDF.py $(DESTDIR)$(pythondir)/RDF.py uninstall-pythonDATA: $(python_DATA) rm -f $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/RDF.py check-local: unittest-python test-python test-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/test/test.py unittest-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/redlandtest.py RDF.html: RDF.py $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) -c 'import pydoc; pydoc.cli()' -w RDF redland-bindings-1.0.16.1/python/Makefile.in0000644000175000017500000005620112063416535015462 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Mode: Makefile -*- # # Makefile.am - automake file for Python interface to Redland # # Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/ # Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # full license terms. # # VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = python DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/bindings_config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pythondir)" DATA = $(python_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@ LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LUA = @LUA@ LUA_CFLAGS = @LUA_CFLAGS@ LUA_LDFLAGS = @LUA_LDFLAGS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MEM = @MEM@ MEM_LIBS = @MEM_LIBS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@ PERLMAN3DIR = @PERLMAN3DIR@ PERL_MAKEMAKER_ARGS = @PERL_MAKEMAKER_ARGS@ PERL_VERSION = @PERL_VERSION@ PHP = @PHP@ PHP_CFLAGS = @PHP_CFLAGS@ PHP_CONFIG = @PHP_CONFIG@ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@ PHP_INCLUDES = @PHP_INCLUDES@ PHP_LDFLAGS = @PHP_LDFLAGS@ PHP_SO_SUFFIX = @PHP_SO_SUFFIX@ PHP_SWIG = @PHP_SWIG@ PHP_VERSION = @PHP_VERSION@ PKG_CONFIG = @PKG_CONFIG@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIB = @PYTHON_LIB@ PYTHON_LIBEXT = @PYTHON_LIBEXT@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ RASQAL_LDFLAGS = @RASQAL_LDFLAGS@ REDLAND_CONFIG = @REDLAND_CONFIG@ REDLAND_HAVE_RAPTOR2_API = @REDLAND_HAVE_RAPTOR2_API@ REDLAND_RUN = @REDLAND_RUN@ REDLAND_SWIG = @REDLAND_SWIG@ REDLAND_VERSION = @REDLAND_VERSION@ RUBY = @RUBY@ RUBY_ARCH_INSTALLDIR = @RUBY_ARCH_INSTALLDIR@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_INCLUDES = @RUBY_INCLUDES@ RUBY_INSTALLDIR = @RUBY_INSTALLDIR@ RUBY_LDFLAGS = @RUBY_LDFLAGS@ RUBY_PACKAGE = @RUBY_PACKAGE@ RUBY_SO_SUFFIX = @RUBY_SO_SUFFIX@ RUBY_VERSION = @RUBY_VERSION@ SD = @SD@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STANDARD_CFLAGS = @STANDARD_CFLAGS@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@ TAR = @TAR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ RELEASE = @VERSION_RELEASE@ # SWIG 1.3.27+ Needs SWIG_PYTHON_SILENT_MEMLEAK: I know better than SWIG swig_flags = -DSWIG_PYTHON_SILENT_MEMLEAK AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ $(PYTHON_INCLUDES) $(swig_flags) AM_CFLAGS = @CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) $(swig_flags) # This module needs Rasqal and Raptor symbols AM_LDFLAGS = @LIBRDF_LDFLAGS@ $(MEM_LIBS) @RASQAL_LDFLAGS@ PYTHON_PACKAGE = Redland SWIG_OUTPUTS = $(PYTHON_PACKAGE)_wrap.c pythondir = @PYTHON_LIB@ python_DATA = RDF.py Redland$(PYTHON_LIBEXT) EXTRA_DIST = README RDF.py \ example.py redlandtest.py \ redland-pre.i redland-post.i redland-decl.i redland-typemap.i $(SWIG_OUTPUTS) SUBDIRS = test CLEANFILES = *.db *.pyc test-out.rdf \ $(PYTHON_PACKAGE)_wrap.so $(PYTHON_PACKAGE)_wrap.o $(PYTHON_PACKAGE)-stamp \ $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(PYTHON_PACKAGE).bundle MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT) RUN = @REDLAND_RUN@ SWIG_OPTS = -I$(srcdir) -I$(srcdir)/.. -DREDLAND_PRE_I -DREDLAND_POST_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu python/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pythondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pythonDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pythonDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am check-local clean clean-generic \ clean-libtool ctags ctags-recursive distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-pythonDATA \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-pythonDATA $(PYTHON_PACKAGE)_wrap.c: @REDLAND_SWIG@ redland-post.i redland-decl.i redland-typemap.i swig -v -python $(SWIG_OPTS) $(SWIG_PYTHON_ARGS) -module $(PYTHON_PACKAGE) -o $@ @REDLAND_SWIG@ $(PYTHON_PACKAGE)_wrap.so: $(srcdir)/$(PYTHON_PACKAGE)_wrap.c $(CC) $(DEFS) $(SWIG_OPTS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(srcdir)/$(PYTHON_PACKAGE)_wrap.c -c -o $@ $(PYTHON_PACKAGE)$(PYTHON_LIBEXT): $(PYTHON_PACKAGE)-stamp $(PYTHON_PACKAGE)-stamp: $(PYTHON_PACKAGE)_wrap.so $(CC) $(AM_CFLAGS) $(CFLAGS) $(PYTHON_PACKAGE)_wrap.so $(PYTHON_LDFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) touch $(PYTHON_PACKAGE)-stamp install-pythonDATA: $(python_DATA) $(mkinstalldirs) $(DESTDIR)$(pythondir) $(INSTALL_PROGRAM) $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(INSTALL_DATA) RDF.py $(DESTDIR)$(pythondir)/RDF.py uninstall-pythonDATA: $(python_DATA) rm -f $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/RDF.py check-local: unittest-python test-python test-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/test/test.py unittest-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/redlandtest.py RDF.html: RDF.py $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) PYTHONPATH=. \ $(RUN)$(PYTHON) -c 'import pydoc; pydoc.cli()' -w RDF # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: redland-bindings-1.0.16.1/python/redland-post.i0000644000175000017500000002511011522705745016161 00000000000000/* -*- Mode: c; c-basic-offset: 2 -*- * * redland-post.i - Python SWIG helper routines * * Copyright (C) 2000-2006, David Beckett http://www.dajobe.org/ * Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the following three licenses as alternatives: * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version * 3. Apache License, V2.0 or any newer version * * You may not use this file except in compliance with at least one of * the above three licenses. * * See LICENSE.html or LICENSE.txt at the top of this package for the * full license terms. * * */ void librdf_python_world_init(librdf_world *world); void SWIG_init(void); static PyObject *librdf_python_callback = NULL; static PyObject * librdf_python_set_callback(PyObject *dummy, PyObject *args); static PyObject * librdf_python_reset_callback(PyObject *dummy, PyObject *args); static PyObject * librdf_python_set_parser_uri_filter(PyObject *dummy, PyObject *args); /* * set the Python function object callback */ static PyObject * librdf_python_set_callback(PyObject *dummy, PyObject *args) { PyObject *result = NULL; PyObject *temp; if (PyArg_ParseTuple(args, "O:set_callback", &temp)) { if (!PyCallable_Check(temp)) { PyErr_SetString(PyExc_TypeError, "parameter must be callable"); return NULL; } Py_XINCREF(temp); /* Add a reference to new callback */ Py_XDECREF(librdf_python_callback); /* Dispose of previous callback */ librdf_python_callback = temp; /* Remember new callback */ /* Boilerplate to return "None" */ Py_INCREF(Py_None); result = Py_None; } return result; } /* * set the Python function object callback */ static PyObject * librdf_python_reset_callback(PyObject *dummy, PyObject *args) { if(librdf_python_callback) { Py_XDECREF(librdf_python_callback); /* Dispose of previous callback */ librdf_python_callback = NULL; } /* Boilerplate to return "None" */ Py_INCREF(Py_None); return Py_None; } /* * calls a python function defined as: * RDF.message(level, message, line, file, uri) * where first argument is the log leve, second is a (scalar) string * message, line number, file (or None), uri (or None) * with an integer return value indicating if the message was handled. */ static int librdf_call_python_message(int code, int level, int facility, const char *message, int line, int column, int byte, const char *file, const char *uri) { PyObject *arglist; PyObject *result; int rc=0; if(!librdf_python_callback) return 0; /* call the callback */ arglist = Py_BuildValue("(iiisiiiss)", code, level, facility, message, line, column, byte, file, uri); if(!arglist) { fprintf(stderr, "librdf_call_python_message: Out of memory\n"); return 0; } result = PyEval_CallObject(librdf_python_callback, arglist); Py_DECREF(arglist); if(result) { if(PyInt_Check(result)) rc=(int)PyInt_AS_LONG(result); Py_DECREF(result); } rc=1; return rc; } static char* librdf_python_error_message = NULL; static char* librdf_python_warning_message = NULL; static PyObject *PyRedland_Warning; static PyObject *PyRedland_Error; /* * helper function for turning a python Unicode string into the UTF-8 * set of bytes suitable for calling Redland string functions */ static PyObject * librdf_python_unicode_to_bytes(PyObject *dummy, PyObject *args) { PyObject *result = NULL; PyObject *unicod; char *output = NULL; if (PyArg_ParseTuple(args, "U:unicode_to_bytes", &unicod)) { Py_UNICODE* input=(Py_UNICODE*)PyUnicode_AS_DATA(unicod); /* turn size of Python Unicode string - UCS2 encoded into size * needed for UTF-8 encoded C-string */ size_t input_len = PyUnicode_GET_SIZE(unicod); size_t output_len; int i, j; /* Turn Unicode string length into max possible UTF-8 length (1-3 * bytes/char) */ output_len = (3 * input_len); output = (char*)malloc(output_len + 1); if(!output) { PyErr_SetString(PyExc_MemoryError, "Out of memory"); goto failure; } j = 0; for(i=0; i < input_len; i++) { int size = raptor_unicode_utf8_string_put_char((unsigned long)input[i], (unsigned char*)&output[j], output_len - j); if(size <= 0) { PyErr_SetString(PyExc_ValueError, "Invalid input Unicode"); goto failure; } j += size; } output[j] = '\0'; result = PyString_FromStringAndSize(output, j + 1); } failure: if(output) free(output); return result; } static int librdf_call_python_uri_filter(void* user_data, librdf_uri* uri) { PyObject *arglist; PyObject *result; int rc=0; PyObject *callback=(PyObject*)user_data; /* call the callback */ arglist = Py_BuildValue("(s)", librdf_uri_as_string(uri)); if(!arglist) { fprintf(stderr, "librdf_call_python_uri_filter: Out of memory\n"); return 0; } result = PyEval_CallObject(callback, arglist); Py_DECREF(arglist); if(result) { if(PyInt_Check(result)) rc=(int)PyInt_AS_LONG(result); Py_DECREF(result); } else rc=1; return rc; } /* * set the parser URI filter callback */ static PyObject * librdf_python_set_parser_uri_filter(PyObject *dummy, PyObject *args) { PyObject *result = NULL; PyObject *temp; PyObject * obj0 = 0 ; void *argp1 = 0 ; int res1 = 0 ; librdf_parser* parser=NULL; librdf_uri_filter_func current_filter; void* current_filter_user_data; if (PyArg_ParseTuple(args, "OO:set_parser_uri_filter", &obj0, &temp)) { /* first argument: SWIG wrapped librdf_parser* */ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in 'librdf_python_set_parser_uri_filter', argument 1 of type 'librdf_parser *'"); } parser = (librdf_parser *)(argp1); /* second argument: PyObject* callback function */ if (!PyCallable_Check(temp)) { PyErr_SetString(PyExc_TypeError, "parameter must be callable"); return NULL; } /* Add a reference to new callback */ Py_XINCREF(temp); /* FIXME: The above object reference should be remembered and * Py_XDECREFed when the parser is destroyed */ /* Check for any existing callback to discard */ current_filter=librdf_parser_get_uri_filter(parser, ¤t_filter_user_data); if(current_filter) { Py_XDECREF((PyObject*)current_filter_user_data); } /* Set new callback */ librdf_parser_set_uri_filter(parser, librdf_call_python_uri_filter, temp); /* Boilerplate to return "None" */ Py_INCREF(Py_None); result = Py_None; } return result; fail: return NULL; } /* Declare a table of methods that python can call */ static PyMethodDef librdf_python_methods [] = { {"set_callback", librdf_python_set_callback, METH_VARARGS, "Set python message callback."}, {"reset_callback", librdf_python_reset_callback, METH_VARARGS, "Set python message callback."}, {"unicode_to_bytes", librdf_python_unicode_to_bytes, METH_VARARGS, "Turn a python Unicode string into the UTF-8 bytes."}, {"set_parser_uri_filter", librdf_python_set_parser_uri_filter, METH_VARARGS, "Set a parser's URI filter function"}, {NULL, NULL, 0, NULL} /* Sentinel */ }; /* * stores a redland error message for later */ static int librdf_python_message_handler(int is_warning, const char *message) { int len; char **buffer; if(is_warning) buffer=&librdf_python_warning_message; else buffer=&librdf_python_error_message; if(*buffer) { /* There is already a pending warning or error, return not handled */ return 0; /* alternative: discard the older one with free(*buffer); */ } len=strlen(message); *buffer=(char*)malloc(len+1); if(!*buffer) { fprintf(stderr, "librdf_python_message_handler: Out of memory\n"); return 0; } strncpy(*buffer, message, len+1); /* * Emit warnings right away * Note: this makes the %exception code for warning never run */ if(*buffer == librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } return 1; } static int librdf_python_logger_handler(void *user_data, librdf_log_message *log_msg) { raptor_locator* locator = log_msg->locator; int line= -1; int column= -1; int byte= -1; const char *uri=NULL; const char *file=NULL; if(locator) { line = raptor_locator_line(locator); column = raptor_locator_column(locator); byte = raptor_locator_byte(locator); file = raptor_locator_file(locator); uri = raptor_locator_uri(locator); } if(librdf_python_callback) return librdf_call_python_message(log_msg->code, log_msg->level, log_msg->facility, log_msg->message, line, column, byte, file, uri); if(log_msg->level < LIBRDF_LOG_WARN) return 1; return librdf_python_message_handler((log_msg->level < LIBRDF_LOG_ERROR), log_msg->message); } void librdf_python_world_init(librdf_world *world) { PyObject *module; PyObject *dict; PyObject *tuple; PyObject* rdf_module; const char *module_name="RDF"; module = Py_InitModule("Redland_python", librdf_python_methods); dict = PyModule_GetDict(module); /* borrowed reference */ tuple = Py_BuildValue ("(iii)", librdf_version_major, librdf_version_minor, librdf_version_release); PyDict_SetItemString(dict, "version", tuple); Py_DECREF(tuple); rdf_module=PyImport_ImportModule((char*)module_name); if(rdf_module != NULL) { PyObject* rdf_module_dict; rdf_module_dict = PyModule_GetDict(rdf_module); /* borrowed reference */ PyRedland_Warning = PyDict_GetItemString(rdf_module_dict, "RedlandWarning"); PyRedland_Error = PyDict_GetItemString(rdf_module_dict, "RedlandError"); Py_DECREF(rdf_module); } else { PyErr_Print(); fprintf(stderr, "Failed to import module \"%s\"\n", module_name); } librdf_world_set_logger(world, NULL, librdf_python_logger_handler); } redland-bindings-1.0.16.1/python/Redland_wrap.c0000644000175000017500000155453511776152604016205 00000000000000/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGPYTHON #define SWIG_PYTHON_DIRECTOR_NO_VTABLE /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Python.h has to appear first */ #include /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { register size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 /* Compatibility macros for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) #define PyInt_Check(x) PyLong_Check(x) #define PyInt_AsLong(x) PyLong_AsLong(x) #define PyInt_FromLong(x) PyLong_FromLong(x) #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) #define PyString_Check(name) PyBytes_Check(name) #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) #define PyString_AsString(str) PyBytes_AsString(str) #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif #ifndef Py_TYPE # define Py_TYPE(op) ((op)->ob_type) #endif /* SWIG APIs for compatibility of both Python 2 & 3 */ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat #else # define SWIG_Python_str_FromFormat PyString_FromFormat #endif /* Warning: This function will allocate a new string in Python 3, * so please call SWIG_Python_str_DelForPy3(x) to free the space. */ SWIGINTERN char* SWIG_Python_str_AsChar(PyObject *str) { #if PY_VERSION_HEX >= 0x03000000 char *cstr; char *newstr; Py_ssize_t len; str = PyUnicode_AsUTF8String(str); PyBytes_AsStringAndSize(str, &cstr, &len); newstr = (char *) malloc(len+1); memcpy(newstr, cstr, len+1); Py_XDECREF(str); return newstr; #else return PyString_AsString(str); #endif } #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) #else # define SWIG_Python_str_DelForPy3(x) #endif SWIGINTERN PyObject* SWIG_Python_str_FromChar(const char *c) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_FromString(c); #else return PyString_FromString(c); #endif } /* Add PyOS_snprintf for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) # define PyOS_snprintf _snprintf # else # define PyOS_snprintf snprintf # endif #endif /* A crude PyString_FromFormat implementation for old Pythons */ #if PY_VERSION_HEX < 0x02020000 #ifndef SWIG_PYBUFFER_SIZE # define SWIG_PYBUFFER_SIZE 1024 #endif static PyObject * PyString_FromFormat(const char *fmt, ...) { va_list ap; char buf[SWIG_PYBUFFER_SIZE * 2]; int res; va_start(ap, fmt); res = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); } #endif /* Add PyObject_Del for old Pythons */ #if PY_VERSION_HEX < 0x01060000 # define PyObject_Del(op) PyMem_DEL((op)) #endif #ifndef PyObject_DEL # define PyObject_DEL PyObject_Del #endif /* A crude PyExc_StopIteration exception for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # ifndef PyExc_StopIteration # define PyExc_StopIteration PyExc_RuntimeError # endif # ifndef PyObject_GenericGetAttr # define PyObject_GenericGetAttr 0 # endif #endif /* Py_NotImplemented is defined in 2.1 and up. */ #if PY_VERSION_HEX < 0x02010000 # ifndef Py_NotImplemented # define Py_NotImplemented PyExc_RuntimeError # endif #endif /* A crude PyString_AsStringAndSize implementation for old Pythons */ #if PY_VERSION_HEX < 0x02010000 # ifndef PyString_AsStringAndSize # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} # endif #endif /* PySequence_Size for old Pythons */ #if PY_VERSION_HEX < 0x02000000 # ifndef PySequence_Size # define PySequence_Size PySequence_Length # endif #endif /* PyBool_FromLong for old Pythons */ #if PY_VERSION_HEX < 0x02030000 static PyObject *PyBool_FromLong(long ok) { PyObject *result = ok ? Py_True : Py_False; Py_INCREF(result); return result; } #endif /* Py_ssize_t for old Pythons */ /* This code is as recommended by: */ /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; # define PY_SSIZE_T_MAX INT_MAX # define PY_SSIZE_T_MIN INT_MIN typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; typedef intintargfunc ssizessizeargfunc; typedef intobjargproc ssizeobjargproc; typedef intintobjargproc ssizessizeobjargproc; typedef getreadbufferproc readbufferproc; typedef getwritebufferproc writebufferproc; typedef getsegcountproc segcountproc; typedef getcharbufferproc charbufferproc; static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) { long result = 0; PyObject *i = PyNumber_Int(x); if (i) { result = PyInt_AsLong(i); Py_DECREF(i); } return result; } #endif #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ if (op) { \ int vret = visit((op), arg); \ if (vret) \ return vret; \ } \ } while (0) #endif #if PY_VERSION_HEX < 0x02030000 typedef struct { PyTypeObject type; PyNumberMethods as_number; PyMappingMethods as_mapping; PySequenceMethods as_sequence; PyBufferProcs as_buffer; PyObject *name, *slots; } PyHeapTypeObject; #endif #if PY_VERSION_HEX < 0x02030000 typedef destructor freefunc; #endif #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ (PY_MAJOR_VERSION > 3)) # define SWIGPY_USE_CAPSULE # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) #endif #if PY_VERSION_HEX < 0x03020000 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIME PyObject* SWIG_Python_ErrorType(int code) { PyObject* type = 0; switch(code) { case SWIG_MemoryError: type = PyExc_MemoryError; break; case SWIG_IOError: type = PyExc_IOError; break; case SWIG_RuntimeError: type = PyExc_RuntimeError; break; case SWIG_IndexError: type = PyExc_IndexError; break; case SWIG_TypeError: type = PyExc_TypeError; break; case SWIG_DivisionByZero: type = PyExc_ZeroDivisionError; break; case SWIG_OverflowError: type = PyExc_OverflowError; break; case SWIG_SyntaxError: type = PyExc_SyntaxError; break; case SWIG_ValueError: type = PyExc_ValueError; break; case SWIG_SystemError: type = PyExc_SystemError; break; case SWIG_AttributeError: type = PyExc_AttributeError; break; default: type = PyExc_RuntimeError; } return type; } SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char* mesg) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); PyErr_Clear(); Py_XINCREF(type); PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); Py_DECREF(value); } else { PyErr_SetString(PyExc_RuntimeError, mesg); } } #if defined(SWIG_PYTHON_NO_THREADS) # if defined(SWIG_PYTHON_THREADS) # undef SWIG_PYTHON_THREADS # endif #endif #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ # define SWIG_PYTHON_USE_GIL # endif # endif # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ # ifndef SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() # endif # ifdef __cplusplus /* C++ code */ class SWIG_Python_Thread_Block { bool status; PyGILState_STATE state; public: void end() { if (status) { PyGILState_Release(state); status = false;} } SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} ~SWIG_Python_Thread_Block() { end(); } }; class SWIG_Python_Thread_Allow { bool status; PyThreadState *save; public: void end() { if (status) { PyEval_RestoreThread(save); status = false; }} SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} ~SWIG_Python_Thread_Allow() { end(); } }; # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() # else /* C code */ # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) # endif # else /* Old thread way, not implemented, user must provide it */ # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) # define SWIG_PYTHON_INITIALIZE_THREADS # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) # define SWIG_PYTHON_THREAD_END_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # endif # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) # define SWIG_PYTHON_THREAD_END_ALLOW # endif # endif #else /* No thread support */ # define SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # define SWIG_PYTHON_THREAD_END_BLOCK # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # define SWIG_PYTHON_THREAD_END_ALLOW #endif /* ----------------------------------------------------------------------------- * Python API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* ----------------------------------------------------------------------------- * Constant declarations * ----------------------------------------------------------------------------- */ /* Constant Types */ #define SWIG_PY_POINTER 4 #define SWIG_PY_BINARY 5 /* Constant information structure */ typedef struct swig_const_info { int type; char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_const_info; /* ----------------------------------------------------------------------------- * Wrapper of PyInstanceMethod_New() used in Python 3 * It is exported to the generated module, used for -fastproxy * ----------------------------------------------------------------------------- */ #if PY_VERSION_HEX >= 0x03000000 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { return PyInstanceMethod_New(func); } #else SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) { return NULL; } #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * pyrun.swg * * This file contains the runtime support for Python modules * and includes code for managing global variables and pointer * type checking. * * ----------------------------------------------------------------------------- */ /* Common SWIG API */ /* for raw pointers */ #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) #ifdef SWIGPYTHON_BUILTIN #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) #else #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #endif #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) #define SWIG_SetErrorObj SWIG_Python_SetErrorObj #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Runtime API implementation */ /* Error manipulation */ SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetObject(errtype, obj); Py_DECREF(obj); SWIG_PYTHON_THREAD_END_BLOCK; } SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetString(errtype, msg); SWIG_PYTHON_THREAD_END_BLOCK; } #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) /* Set a constant value */ #if defined(SWIGPYTHON_BUILTIN) SWIGINTERN void SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { PyObject *s = PyString_InternFromString(key); PyList_Append(seq, s); Py_DECREF(s); } SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); if (public_interface) SwigPyBuiltin_AddPublicSymbol(public_interface, name); } #else SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); } #endif /* Append a value to the result obj */ SWIGINTERN PyObject* SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyList_Check(result)) { PyObject *o2 = result; result = PyList_New(1); PyList_SetItem(result, 0, o2); } PyList_Append(result,obj); Py_DECREF(obj); } return result; #else PyObject* o2; PyObject* o3; if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyTuple_Check(result)) { o2 = result; result = PyTuple_New(1); PyTuple_SET_ITEM(result, 0, o2); } o3 = PyTuple_New(1); PyTuple_SET_ITEM(o3, 0, obj); o2 = result; result = PySequence_Concat(o2, o3); Py_DECREF(o2); Py_DECREF(o3); } return result; #endif } /* Unpack the argument tuple */ SWIGINTERN int SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", name, (min == max ? "" : "at least "), (int)min); return 0; } } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { register int i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; } return 2; } PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { register Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { register int i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } for (; l < max; ++l) { objs[l] = 0; } return i + 1; } } } /* A functor is a function object with one single object argument */ #if PY_VERSION_HEX >= 0x02020000 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); #else #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); #endif /* Helper for static pointer initialization for both C and C++ code, for example static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); */ #ifdef __cplusplus #define SWIG_STATIC_POINTER(var) var #else #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif /* ----------------------------------------------------------------------------- * Pointer declarations * ----------------------------------------------------------------------------- */ /* Flags for new pointer objects */ #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) #ifdef __cplusplus extern "C" { #endif /* How to access Py_None */ #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # ifndef SWIG_PYTHON_NO_BUILD_NONE # ifndef SWIG_PYTHON_BUILD_NONE # define SWIG_PYTHON_BUILD_NONE # endif # endif #endif #ifdef SWIG_PYTHON_BUILD_NONE # ifdef Py_None # undef Py_None # define Py_None SWIG_Py_None() # endif SWIGRUNTIMEINLINE PyObject * _SWIG_Py_None(void) { PyObject *none = Py_BuildValue((char*)""); Py_DECREF(none); return none; } SWIGRUNTIME PyObject * SWIG_Py_None(void) { static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); return none; } #endif /* The python void return value */ SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void) { PyObject *none = Py_None; Py_INCREF(none); return none; } /* SwigPyClientData */ typedef struct { PyObject *klass; PyObject *newraw; PyObject *newargs; PyObject *destroy; int delargs; int implicitconv; PyTypeObject *pytype; } SwigPyClientData; SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty) { SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; return data ? data->implicitconv : 0; } SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc) { SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; PyObject *klass = data ? data->klass : 0; return (klass ? klass : PyExc_RuntimeError); } SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject* obj) { if (!obj) { return 0; } else { SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); /* the klass element */ data->klass = obj; Py_INCREF(data->klass); /* the newraw method and newargs arguments used to create a new raw instance */ if (PyClass_Check(obj)) { data->newraw = 0; data->newargs = obj; Py_INCREF(obj); } else { #if (PY_VERSION_HEX < 0x02020000) data->newraw = 0; #else data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); #endif if (data->newraw) { Py_INCREF(data->newraw); data->newargs = PyTuple_New(1); PyTuple_SetItem(data->newargs, 0, obj); } else { data->newargs = obj; } Py_INCREF(data->newargs); } /* the destroy method, aka as the C++ delete method */ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); if (PyErr_Occurred()) { PyErr_Clear(); data->destroy = 0; } if (data->destroy) { int flags; Py_INCREF(data->destroy); flags = PyCFunction_GET_FLAGS(data->destroy); #ifdef METH_O data->delargs = !(flags & (METH_O)); #else data->delargs = 0; #endif } else { data->delargs = 0; } data->implicitconv = 0; data->pytype = 0; return data; } } SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data) { Py_XDECREF(data->newraw); Py_XDECREF(data->newargs); Py_XDECREF(data->destroy); } /* =============== SwigPyObject =====================*/ typedef struct { PyObject_HEAD void *ptr; swig_type_info *ty; int own; PyObject *next; #ifdef SWIGPYTHON_BUILTIN PyObject *dict; #endif } SwigPyObject; SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { return PyLong_FromVoidPtr(v->ptr); } SWIGRUNTIME PyObject * SwigPyObject_format(const char* fmt, SwigPyObject *v) { PyObject *res = NULL; PyObject *args = PyTuple_New(1); if (args) { if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { PyObject *ofmt = SWIG_Python_str_FromChar(fmt); if (ofmt) { #if PY_VERSION_HEX >= 0x03000000 res = PyUnicode_Format(ofmt,args); #else res = PyString_Format(ofmt,args); #endif Py_DECREF(ofmt); } Py_DECREF(args); } } return res; } SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v) { return SwigPyObject_format("%o",v); } SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v) { return SwigPyObject_format("%x",v); } SWIGRUNTIME PyObject * #ifdef METH_NOARGS SwigPyObject_repr(SwigPyObject *v) #else SwigPyObject_repr(SwigPyObject *v, PyObject *args) #endif { const char *name = SWIG_TypePrettyName(v->ty); PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); if (v->next) { # ifdef METH_NOARGS PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); # else PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); # endif # if PY_VERSION_HEX >= 0x03000000 PyObject *joined = PyUnicode_Concat(repr, nrep); Py_DecRef(repr); Py_DecRef(nrep); repr = joined; # else PyString_ConcatAndDel(&repr,nrep); # endif } return repr; } SWIGRUNTIME int SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char *str; #ifdef METH_NOARGS PyObject *repr = SwigPyObject_repr(v); #else PyObject *repr = SwigPyObject_repr(v, NULL); #endif if (repr) { str = SWIG_Python_str_AsChar(repr); fputs(str, fp); SWIG_Python_str_DelForPy3(str); Py_DECREF(repr); return 0; } else { return 1; } } SWIGRUNTIME PyObject * SwigPyObject_str(SwigPyObject *v) { char result[SWIG_BUFFER_SIZE]; return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? SWIG_Python_str_FromChar(result) : 0; } SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { void *i = v->ptr; void *j = w->ptr; return (i < j) ? -1 : ((i > j) ? 1 : 0); } /* Added for Python 3.x, would it also be useful for Python 2.x? */ SWIGRUNTIME PyObject* SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) { PyObject* res; if( op != Py_EQ && op != Py_NE ) { Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); return res; } SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); #ifdef SWIGPYTHON_BUILTIN static swig_type_info *SwigPyObject_stype = 0; SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { SwigPyClientData *cd; assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; assert(cd); assert(cd->pytype); return cd->pytype; } #else SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); return type; } #endif SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { #ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); if (PyType_IsSubtype(op->ob_type, target_tp)) return 1; return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); #else return (Py_TYPE(op) == SwigPyObject_type()) || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); #endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own); SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v) { SwigPyObject *sobj = (SwigPyObject *) v; PyObject *next = sobj->next; if (sobj->own == SWIG_POINTER_OWN) { swig_type_info *ty = sobj->ty; SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; if (data->delargs) { /* we need to create a temporary object to carry the destroy operation */ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); res = SWIG_Python_CallFunctor(destroy, tmp); Py_DECREF(tmp); } else { PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); PyObject *mself = PyCFunction_GET_SELF(destroy); res = ((*meth)(mself, v)); } Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) else { const char *name = SWIG_TypePrettyName(ty); printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } #endif } Py_XDECREF(next); PyObject_DEL(v); } SWIGRUNTIME PyObject* SwigPyObject_append(PyObject* v, PyObject* next) { SwigPyObject *sobj = (SwigPyObject *) v; #ifndef METH_O PyObject *tmp = 0; if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; next = tmp; #endif if (!SwigPyObject_Check(next)) { return NULL; } sobj->next = next; Py_INCREF(next); return SWIG_Py_Void(); } SWIGRUNTIME PyObject* #ifdef METH_NOARGS SwigPyObject_next(PyObject* v) #else SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *) v; if (sobj->next) { Py_INCREF(sobj->next); return sobj->next; } else { return SWIG_Py_Void(); } } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_disown(PyObject *v) #else SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = 0; return SWIG_Py_Void(); } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_acquire(PyObject *v) #else SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = SWIG_POINTER_OWN; return SWIG_Py_Void(); } SWIGINTERN PyObject* SwigPyObject_own(PyObject *v, PyObject *args) { PyObject *val = 0; #if (PY_VERSION_HEX < 0x02020000) if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) #elif (PY_VERSION_HEX < 0x02050000) if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) #else if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) #endif { return NULL; } else { SwigPyObject *sobj = (SwigPyObject *)v; PyObject *obj = PyBool_FromLong(sobj->own); if (val) { #ifdef METH_NOARGS if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v); } else { SwigPyObject_disown(v); } #else if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v,args); } else { SwigPyObject_disown(v,args); } #endif } return obj; } } #ifdef METH_O static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #else static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #endif #if PY_VERSION_HEX < 0x02020000 SWIGINTERN PyObject * SwigPyObject_getattr(SwigPyObject *sobj,char *name) { return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); } #endif SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void) { static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; static PyNumberMethods SwigPyObject_as_number = { (binaryfunc)0, /*nb_add*/ (binaryfunc)0, /*nb_subtract*/ (binaryfunc)0, /*nb_multiply*/ /* nb_divide removed in Python 3 */ #if PY_VERSION_HEX < 0x03000000 (binaryfunc)0, /*nb_divide*/ #endif (binaryfunc)0, /*nb_remainder*/ (binaryfunc)0, /*nb_divmod*/ (ternaryfunc)0,/*nb_power*/ (unaryfunc)0, /*nb_negative*/ (unaryfunc)0, /*nb_positive*/ (unaryfunc)0, /*nb_absolute*/ (inquiry)0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_VERSION_HEX < 0x03000000 0, /*nb_coerce*/ #endif (unaryfunc)SwigPyObject_long, /*nb_int*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_long, /*nb_long*/ #else 0, /*nb_reserved*/ #endif (unaryfunc)0, /*nb_float*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif #if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ #endif }; static PyTypeObject swigpyobject_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyObject", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ (printfunc)SwigPyObject_print, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else (getattrfunc)0, /* tp_getattr */ #endif (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX >= 0x03000000 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ #else (cmpfunc)SwigPyObject_compare, /* tp_compare */ #endif (reprfunc)SwigPyObject_repr, /* tp_repr */ &SwigPyObject_as_number, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ (reprfunc)SwigPyObject_str, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigobject_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ swigobject_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpyobject_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpyobject_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpyobject_type) < 0) return NULL; #endif } return &swigpyobject_type; } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own) { SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); if (sobj) { sobj->ptr = ptr; sobj->ty = ty; sobj->own = own; sobj->next = 0; } return (PyObject *)sobj; } /* ----------------------------------------------------------------------------- * Implements a simple Swig Packed type, and use it instead of string * ----------------------------------------------------------------------------- */ typedef struct { PyObject_HEAD void *pack; swig_type_info *ty; size_t size; } SwigPyPacked; SWIGRUNTIME int SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char result[SWIG_BUFFER_SIZE]; fputs("pack, v->size, 0, sizeof(result))) { fputs("at ", fp); fputs(result, fp); } fputs(v->ty->name,fp); fputs(">", fp); return 0; } SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { return SWIG_Python_str_FromFormat("", result, v->ty->name); } else { return SWIG_Python_str_FromFormat("", v->ty->name); } } SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); } else { return SWIG_Python_str_FromChar(v->ty->name); } } SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) { size_t i = v->size; size_t j = w->size; int s = (i < j) ? -1 : ((i > j) ? 1 : 0); return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); SWIGRUNTIME PyTypeObject* SwigPyPacked_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); return type; } SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op) { return ((op)->ob_type == SwigPyPacked_TypeOnce()) || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); } SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v) { if (SwigPyPacked_Check(v)) { SwigPyPacked *sobj = (SwigPyPacked *) v; free(sobj->pack); } PyObject_DEL(v); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void) { static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; static PyTypeObject swigpypacked_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX>=0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyPacked", /* tp_name */ sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ (printfunc)SwigPyPacked_print, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 0, /* tp_reserved in 3.0.1 */ #else (cmpfunc)SwigPyPacked_compare, /* tp_compare */ #endif (reprfunc)SwigPyPacked_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ (reprfunc)SwigPyPacked_str, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigpacked_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpypacked_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpypacked_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpypacked_type) < 0) return NULL; #endif } return &swigpypacked_type; } SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) { SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); if (sobj) { void *pack = malloc(size); if (pack) { memcpy(pack, ptr, size); sobj->pack = pack; sobj->ty = ty; sobj->size = size; } else { PyObject_DEL((PyObject *) sobj); sobj = 0; } } return (PyObject *) sobj; } SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) { if (SwigPyPacked_Check(obj)) { SwigPyPacked *sobj = (SwigPyPacked *)obj; if (sobj->size != size) return 0; memcpy(ptr, sobj->pack, size); return sobj->ty; } else { return 0; } } /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIMEINLINE PyObject * _SWIG_This(void) { return SWIG_Python_str_FromChar("this"); } static PyObject *swig_this = NULL; SWIGRUNTIME PyObject * SWIG_This(void) { if (swig_this == NULL) swig_this = _SWIG_This(); return swig_this; } /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ /* TODO: I don't know how to implement the fast getset in Python 3 right now */ #if PY_VERSION_HEX>=0x03000000 #define SWIG_PYTHON_SLOW_GETSET_THIS #endif SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj) { PyObject *obj; if (SwigPyObject_Check(pyobj)) return (SwigPyObject *) pyobj; #ifdef SWIGPYTHON_BUILTIN (void)obj; # ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { pyobj = PyWeakref_GET_OBJECT(pyobj); if (pyobj && SwigPyObject_Check(pyobj)) return (SwigPyObject*) pyobj; } # endif return NULL; #else obj = 0; #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) if (PyInstance_Check(pyobj)) { obj = _PyInstance_Lookup(pyobj, SWIG_This()); } else { PyObject **dictptr = _PyObject_GetDictPtr(pyobj); if (dictptr != NULL) { PyObject *dict = *dictptr; obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; } else { #ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; } #endif obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } } } #else obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } #endif if (obj && !SwigPyObject_Check(obj)) { /* a PyObject is called 'this', try to get the 'real this' SwigPyObject from it */ return SWIG_Python_GetSwigThis(obj); } return (SwigPyObject *)obj; #endif } /* Acquire a pointer value */ SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { if (own == SWIG_POINTER_OWN) { SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; sobj->own = own; return oldown; } } return 0; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; if (!obj) return SWIG_ERROR; if (obj == Py_None) { if (ptr) *ptr = 0; return SWIG_OK; } res = SWIG_ERROR; sobj = SWIG_Python_GetSwigThis(obj); if (own) *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { swig_type_info *to = sobj->ty; if (to == ty) { /* no type cast needed */ if (ptr) *ptr = vptr; break; } else { swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) { sobj = (SwigPyObject *)sobj->next; } else { if (ptr) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } break; } } } else { if (ptr) *ptr = vptr; break; } } if (sobj) { if (own) *own = *own | sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } res = SWIG_OK; } else { if (flags & SWIG_POINTER_IMPLICIT_CONV) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; if (klass) { PyObject *impconv; data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ impconv = SWIG_Python_CallFunctor(klass, obj); data->implicitconv = 0; if (PyErr_Occurred()) { PyErr_Clear(); impconv = 0; } if (impconv) { SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); if (iobj) { void *vptr; res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); if (SWIG_IsOK(res)) { if (ptr) { *ptr = vptr; /* transfer the ownership to 'ptr' */ iobj->own = 0; res = SWIG_AddCast(res); res = SWIG_AddNewMask(res); } else { res = SWIG_AddCast(res); } } } Py_DECREF(impconv); } } } } } return res; } /* Convert a function ptr value */ SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { if (!PyCFunction_Check(obj)) { return SWIG_ConvertPtr(obj, ptr, ty, 0); } else { void *vptr = 0; /* here we get the method pointer for callbacks */ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; if (!desc) return SWIG_ERROR; if (ty) { swig_cast_info *tc = SWIG_TypeCheck(desc,ty); if (tc) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } else { return SWIG_ERROR; } } else { *ptr = vptr; } return SWIG_OK; } } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); if (!to) return SWIG_ERROR; if (ty) { if (to != ty) { /* check type cast? */ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) return SWIG_ERROR; } } return SWIG_OK; } /* ----------------------------------------------------------------------------- * Create a new pointer object * ----------------------------------------------------------------------------- */ /* Create a new instance object, without calling __init__, and set the 'this' attribute. */ SWIGRUNTIME PyObject* SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) { #if (PY_VERSION_HEX >= 0x02020000) PyObject *inst = 0; PyObject *newraw = data->newraw; if (newraw) { inst = PyObject_Call(newraw, data->newargs, NULL); if (inst) { #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { PyObject *dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; PyDict_SetItem(dict, SWIG_This(), swig_this); } } #else PyObject *key = SWIG_This(); PyObject_SetAttr(inst, key, swig_this); #endif } } else { #if PY_VERSION_HEX >= 0x03000000 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); PyObject_SetAttr(inst, SWIG_This(), swig_this); Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; #else PyObject *dict = PyDict_New(); PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) PyObject *inst; PyObject *dict = PyDict_New(); PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); if (inst == NULL) { return NULL; } inst->in_class = (PyClassObject *)data->newargs; Py_INCREF(inst->in_class); inst->in_dict = PyDict_New(); if (inst->in_dict == NULL) { Py_DECREF(inst); return NULL; } #ifdef Py_TPFLAGS_HAVE_WEAKREFS inst->in_weakreflist = NULL; #endif #ifdef Py_TPFLAGS_GC PyObject_GC_Init(inst); #endif PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); return (PyObject *) inst; #endif #endif } SWIGRUNTIME void SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) { PyObject *dict; #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; } PyDict_SetItem(dict, SWIG_This(), swig_this); return; } #endif dict = PyObject_GetAttrString(inst, (char*)"__dict__"); PyDict_SetItem(dict, SWIG_This(), swig_this); Py_DECREF(dict); } SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args) { PyObject *obj[2]; if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { return NULL; } else { SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); if (sthis) { SwigPyObject_append((PyObject*) sthis, obj[1]); } else { SWIG_Python_SetSwigThis(obj[0], obj[1]); } return SWIG_Py_Void(); } } /* Create a new pointer object */ SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { SwigPyClientData *clientdata; PyObject * robj; int own; if (!ptr) return SWIG_Py_Void(); clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; if (clientdata && clientdata->pytype) { SwigPyObject *newobj; if (flags & SWIG_BUILTIN_TP_INIT) { newobj = (SwigPyObject*) self; if (newobj->ptr) { PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); while (newobj->next) newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif return (PyObject*) newobj; } return SWIG_Py_Void(); } assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); if (inst) { Py_DECREF(robj); robj = inst; } } return robj; } /* Create a new packed object */ SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); } /* -----------------------------------------------------------------------------* * Get type list * -----------------------------------------------------------------------------*/ #ifdef SWIG_LINK_RUNTIME void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { #ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); #else # ifdef SWIGPY_USE_CAPSULE type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); # else type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); # endif if (PyErr_Occurred()) { PyErr_Clear(); type_pointer = (void *)0; } #endif } return (swig_module_info *) type_pointer; } #if PY_MAJOR_VERSION < 2 /* PyModule_AddObject function was introduced in Python 2.0. The following function is copied out of Python/modsupport.c in python version 2.3.4 */ SWIGINTERN int PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } dict = PyModule_GetDict(m); if (dict == NULL) { /* Internal error -- modules must have a dict! */ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", PyModule_GetName(m)); return SWIG_ERROR; } if (PyDict_SetItemString(dict, name, o)) return SWIG_ERROR; Py_DECREF(o); return SWIG_OK; } #endif SWIGRUNTIME void #ifdef SWIGPY_USE_CAPSULE SWIG_Python_DestroyModule(PyObject *obj) #else SWIG_Python_DestroyModule(void *vptr) #endif { #ifdef SWIGPY_USE_CAPSULE swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); #else swig_module_info *swig_module = (swig_module_info *) vptr; #endif swig_type_info **types = swig_module->types; size_t i; for (i =0; i < swig_module->size; ++i) { swig_type_info *ty = types[i]; if (ty->owndata) { SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; if (data) SwigPyClientData_Del(data); } } Py_DECREF(SWIG_This()); swig_this = NULL; } SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module) { #if PY_VERSION_HEX >= 0x03000000 /* Add a dummy module object into sys.modules */ PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); #else static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); #endif #ifdef SWIGPY_USE_CAPSULE PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #else PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #endif } /* The python cached type query */ SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void) { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type) { PyObject *cache = SWIG_Python_TypeCache(); PyObject *key = SWIG_Python_str_FromChar(type); PyObject *obj = PyDict_GetItem(cache, key); swig_type_info *descriptor; if (obj) { #ifdef SWIGPY_USE_CAPSULE descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); #else descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { swig_module_info *swig_module = SWIG_Python_GetModule(); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE obj = PyCapsule_New((void*) descriptor, NULL, NULL); #else obj = PyCObject_FromVoidPtr(descriptor, NULL); #endif PyDict_SetItem(cache, key, obj); Py_DECREF(obj); } } Py_DECREF(key); return descriptor; } /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIGRUNTIME int SWIG_Python_AddErrMesg(const char* mesg, int infront) { if (PyErr_Occurred()) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); Py_XINCREF(type); PyErr_Clear(); if (infront) { PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); } else { PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); } SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); } return 1; } else { return 0; } } SWIGRUNTIME int SWIG_Python_ArgFail(int argnum) { if (PyErr_Occurred()) { /* add information about failing argument */ char mesg[256]; PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); return SWIG_Python_AddErrMesg(mesg, 1); } else { return 0; } } SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self) { SwigPyObject *v = (SwigPyObject *)self; swig_type_info *ty = v ? v->ty : 0; return ty ? ty->str : ""; } SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj) { if (type) { #if defined(SWIG_COBJECT_TYPES) if (obj && SwigPyObject_Check(obj)) { const char *otype = (const char *) SwigPyObject_GetDesc(obj); if (otype) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", type, otype); return; } } else #endif { const char *otype = (obj ? obj->ob_type->tp_name : 0); if (otype) { PyObject *str = PyObject_Str(obj); const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; if (cstr) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", type, otype, cstr); SWIG_Python_str_DelForPy3(cstr); } else { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", type, otype); } Py_XDECREF(str); return; } } PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); } else { PyErr_Format(PyExc_TypeError, "unexpected type is received"); } } /* Convert a pointer value, signal an exception on a type mismatch */ SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); #if SWIG_POINTER_EXCEPTION if (flags) { SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_ArgFail(argnum); } #endif } return result; } #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME int SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyTypeObject *tp = obj->ob_type; PyObject *descr; PyObject *encoded_name; descrsetfunc f; int res; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); if (!name) return -1; } else if (!PyUnicode_Check(name)) # else if (!PyString_Check(name)) # endif { PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); return -1; } else { Py_INCREF(name); } if (!tp->tp_dict) { if (PyType_Ready(tp) < 0) goto done; } res = -1; descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) f = descr->ob_type->tp_descr_set; if (!f) { if (PyString_Check(name)) { encoded_name = name; Py_INCREF(name); } else { encoded_name = PyUnicode_AsUTF8String(name); } PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); Py_DECREF(encoded_name); } else { res = f(descr, obj, value); } done: Py_DECREF(name); return res; } #endif #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] #define SWIGTYPE_p_librdf_digest_s swig_types[1] #define SWIGTYPE_p_librdf_hash_s swig_types[2] #define SWIGTYPE_p_librdf_iterator_s swig_types[3] #define SWIGTYPE_p_librdf_log_func swig_types[4] #define SWIGTYPE_p_librdf_log_message swig_types[5] #define SWIGTYPE_p_librdf_model_s swig_types[6] #define SWIGTYPE_p_librdf_node_s swig_types[7] #define SWIGTYPE_p_librdf_parser_s swig_types[8] #define SWIGTYPE_p_librdf_query swig_types[9] #define SWIGTYPE_p_librdf_query_results swig_types[10] #define SWIGTYPE_p_librdf_serializer_s swig_types[11] #define SWIGTYPE_p_librdf_statement_s swig_types[12] #define SWIGTYPE_p_librdf_storage_s swig_types[13] #define SWIGTYPE_p_librdf_stream_s swig_types[14] #define SWIGTYPE_p_librdf_uri_s swig_types[15] #define SWIGTYPE_p_librdf_world_s swig_types[16] #define SWIGTYPE_p_p_char swig_types[17] #define SWIGTYPE_p_raptor_locator swig_types[18] static swig_type_info *swig_types[20]; static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #if (PY_VERSION_HEX <= 0x02000000) # if !defined(SWIG_PYTHON_CLASSIC) # error "This python version requires swig to be run with the '-classic' option" # endif #endif /*----------------------------------------------- @(target):= Redland.so ------------------------------------------------*/ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_init PyInit_Redland #else # define SWIG_init initRedland #endif #define SWIG_name "Redland" #define SWIGVERSION 0x020007 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 if (PyUnicode_Check(obj)) #else if (PyString_Check(obj)) #endif { char *cstr; Py_ssize_t len; #if PY_VERSION_HEX>=0x03000000 if (!alloc && cptr) { /* We can't allow converting without allocation, since the internal representation of string in Python 3 is UCS-2/UCS-4 but we require a UTF-8 representation. TODO(bhy) More detailed explanation */ return SWIG_RuntimeError; } obj = PyUnicode_AsUTF8String(obj); PyBytes_AsStringAndSize(obj, &cstr, &len); if(alloc) *alloc = SWIG_NEWOBJ; #else PyString_AsStringAndSize(obj, &cstr, &len); #endif if (cptr) { if (alloc) { /* In python the user should not be able to modify the inner string representation. To warranty that, if you define SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string buffer is always returned. The default behavior is just to return the pointer value, so, be careful. */ #if defined(SWIG_PYTHON_SAFE_CSTRINGS) if (*alloc != SWIG_OLDOBJ) #else if (*alloc == SWIG_NEWOBJ) #endif { *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); *alloc = SWIG_NEWOBJ; } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { #if PY_VERSION_HEX>=0x03000000 assert(0); /* Should never reach here in Python 3 */ #endif *cptr = SWIG_Python_str_AsChar(obj); } } if (psize) *psize = len + 1; #if PY_VERSION_HEX>=0x03000000 Py_XDECREF(obj); #endif return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *) vptr; if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_double (PyObject *obj, double *val) { int res = SWIG_TypeError; if (PyFloat_Check(obj)) { if (val) *val = PyFloat_AsDouble(obj); return SWIG_OK; } else if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; } else if (PyLong_Check(obj)) { double v = PyLong_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; double d = PyFloat_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = d; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); } else { PyErr_Clear(); } } } #endif return res; } #include #include SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max) { double x = *d; if ((min <= x && x <= max)) { double fx = floor(x); double cx = ceil(x); double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ if ((errno == EDOM) || (errno == ERANGE)) { errno = 0; } else { double summ, reps, diff; if (rd < x) { diff = x - rd; } else if (rd > x) { diff = rd - x; } else { return 1; } summ = rd + x; reps = diff/summ; if (reps < 8*DBL_EPSILON) { *d = rd; return 1; } } } return 0; } SWIGINTERN int SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) { if (PyInt_Check(obj)) { long v = PyInt_AsLong(obj); if (v >= 0) { if (val) *val = v; return SWIG_OK; } else { return SWIG_OverflowError; } } else if (PyLong_Check(obj)) { unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { if (val) *val = (unsigned long)(d); return res; } } } #endif return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t (PyObject * obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); return res; } SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > INT_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void(); } else { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_FromStringAndSize(carray, (int)(size)); #else return PyString_FromStringAndSize(carray, (int)(size)); #endif } } else { return SWIG_Py_Void(); } } SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERNINLINE PyObject* SWIG_From_int (int value) { return PyInt_FromLong((long) value); } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif SWIGINTERN int SWIG_AsVal_long (PyObject *obj, long* val) { if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; } else if (PyLong_Check(obj)) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; long v = PyInt_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { if (val) *val = (long)(d); return res; } } } #endif return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int (PyObject * obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (int)(v); } } return res; } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_int (unsigned int value) { return PyInt_FromSize_t((size_t) value); } #ifdef __cplusplus extern "C" { #endif SWIGINTERN PyObject *_wrap_librdf_new_digest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_digest *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_digest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_digest" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_digest" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); { result = (librdf_digest *)librdf_new_digest(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_digest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_digest",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_digest" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); { librdf_free_digest(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_digest_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_init" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); { librdf_digest_init(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_digest_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_digest_update",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_digest_update" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); { librdf_digest_update(arg1,(char const *)arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_digest_update_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_digest_update_string",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { librdf_digest_update_string(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_digest_final(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_final",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_final" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); { librdf_digest_final(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_digest_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_to_string",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_to_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); { result = (char *)librdf_digest_to_string(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_hash *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_hash",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_hash_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_hash *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_hash_from_string",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); { result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_hash_from_array_of_strings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_hash *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_hash_from_array_of_strings",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "3"" of type '" "char const **""'"); } arg3 = (char **)(argp3); { result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_hash_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_hash_to_string",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_hash_to_string" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_hash_to_string" "', argument " "2"" of type '" "char const *[]""'"); } arg2 = (char **)(argp2); { result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_hash *arg1 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_hash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_hash" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); { librdf_free_hash(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_world(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":librdf_new_world")) SWIG_fail; { result = (librdf_world *)librdf_new_world(); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_world(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_world",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_world" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { librdf_free_world(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_world_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_world_open",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_open" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { librdf_world_open(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_world_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_world_get_feature",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_get_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (librdf_node *)librdf_world_get_feature(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_world_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_world_set_feature",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_world_set_feature(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_get_accept_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_parser_get_accept_header",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_accept_header" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); { result = (char *)librdf_parser_get_accept_header(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_world_set_logger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_world_set_logger",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_logger" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_logger" "', argument " "2"" of type '" "void *""'"); } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_librdf_log_func, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } else { arg3 = *((librdf_log_func *)(argp3)); } } { librdf_world_set_logger(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_iterator" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); { librdf_free_iterator(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_iterator_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_end" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); { result = (int)librdf_iterator_end(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_iterator_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_get_object",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_object" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); { result = (librdf_node *)librdf_iterator_get_object(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_iterator_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_get_context",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_context" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); { result = (librdf_node *)librdf_iterator_get_context(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_iterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_next",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_next" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); { result = (int)librdf_iterator_next(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_uri",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); { result = (librdf_uri *)librdf_new_uri(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_uri_from_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_uri_from_uri",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); { result = (librdf_uri *)librdf_new_uri_from_uri(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_uri_from_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_uri_from_filename",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_filename" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri_from_filename" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_uri",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); { librdf_free_uri(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_uri_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_uri_to_string",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_to_string" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); { result = (char *)librdf_uri_to_string(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_uri_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_uri_equals",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_equals" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_equals" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (int)librdf_uri_equals(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_uri_compare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_uri_compare",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_compare" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_compare" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (int)librdf_uri_compare(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_node",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { result = (librdf_node *)librdf_new_node(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_node_from_uri_string",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_node_from_uri",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri_local_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_node_from_uri_local_name",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); { result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_normalised_uri_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_node_from_normalised_uri_string",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); { result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO|OO:librdf_new_node_from_literal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (obj3) { ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "librdf_new_node_from_literal" "', argument " "4"" of type '" "int""'"); } arg4 = (int)(val4); } { result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_typed_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO|OO:librdf_new_node_from_typed_literal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_typed_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_typed_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_typed_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (obj3) { res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_typed_literal" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); } { result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_node_from_node",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (librdf_node *)librdf_new_node_from_node(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_node_from_blank_identifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O|O:librdf_new_node_from_blank_identifier",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); if (obj1) { res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); } { result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_node",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { librdf_free_node(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_uri",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (librdf_uri *)librdf_node_get_uri(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_type",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_type" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_get_type(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (char *)librdf_node_get_literal_value(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_as_latin1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_as_latin1",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_as_latin1" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (char *)librdf_node_get_literal_value_as_latin1(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_language(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_language",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_language" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (char *)librdf_node_get_literal_value_language(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_datatype_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_datatype_uri",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_datatype_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_is_wf_xml(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_is_wf_xml",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_is_wf_xml" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_li_ordinal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_li_ordinal",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_li_ordinal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_get_li_ordinal(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_to_string",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_to_string" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (char *)librdf_node_to_string(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_get_blank_identifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_blank_identifier",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_blank_identifier" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (char *)librdf_node_get_blank_identifier(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_is_resource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_resource",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_resource" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_is_resource(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_is_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_literal",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_literal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_is_literal(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_is_blank(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_blank",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_blank" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); { result = (int)librdf_node_is_blank(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_node_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_node_equals",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_equals" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_node_equals" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (int)librdf_node_equals(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_statement *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_statement",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { result = (librdf_statement *)librdf_new_statement(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_statement_from_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_statement *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_statement_from_statement",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (librdf_statement *)librdf_new_statement_from_statement(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_statement_from_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_statement *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_statement_from_nodes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_nodes" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_statement_from_nodes" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_statement_from_nodes" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_statement_from_nodes" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); { result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_statement",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { librdf_free_statement(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_get_subject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_subject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (librdf_node *)librdf_statement_get_subject(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_set_subject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_subject",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_subject" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { librdf_statement_set_subject(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_get_predicate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_predicate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (librdf_node *)librdf_statement_get_predicate(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_set_predicate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_predicate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_predicate" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { librdf_statement_set_predicate(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_object",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (librdf_node *)librdf_statement_get_object(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_set_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_object",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_object" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { librdf_statement_set_object(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_equals",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_equals" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_equals" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (int)librdf_statement_equals(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_match(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_match",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_match" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_match" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (int)librdf_statement_match(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_to_string",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_to_string" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (char *)librdf_statement_to_string(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_statement_is_complete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_is_complete",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_is_complete" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); { result = (int)librdf_statement_is_complete(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_model *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_model",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); { result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_model_with_options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_model *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_model_with_options",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_with_options" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model_with_options" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model_with_options" "', argument " "3"" of type '" "librdf_hash *""'"); } arg3 = (librdf_hash *)(argp3); { result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_model_from_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_model *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_model_from_model",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_from_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (librdf_model *)librdf_new_model_from_model(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_model",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { librdf_free_model(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_size" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (int)librdf_model_size(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_model_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); { result = (int)librdf_model_add(arg1,arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_add_string_literal_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:librdf_model_add_string_literal_statement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_string_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_string_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_string_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_string_literal_statement" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); if (obj4) { res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_string_literal_statement" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); } if (obj5) { ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "librdf_model_add_string_literal_statement" "', argument " "6"" of type '" "int""'"); } arg6 = (int)(val6); } { result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return resultobj; fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_add_typed_literal_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:librdf_model_add_typed_literal_statement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "4"" of type '" "char *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "5"" of type '" "char *""'"); } arg5 = (char *)(buf5); if (obj5) { res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "6"" of type '" "librdf_uri *""'"); } arg6 = (librdf_uri *)(argp6); } { result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return resultobj; fail: if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_add_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_add_statement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (int)librdf_model_add_statement(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_add_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_add_statements",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statements" "', argument " "2"" of type '" "librdf_stream *""'"); } arg2 = (librdf_stream *)(argp2); { result = (int)librdf_model_add_statements(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_remove_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_remove_statement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_remove_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (int)librdf_model_remove_statement(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_contains_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_contains_statement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (int)librdf_model_contains_statement(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_as_stream",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (librdf_stream *)librdf_model_as_stream(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_find_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_find_statements",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); { result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_find_statements_in_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO|O:librdf_model_find_statements_in_context",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements_in_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements_in_context" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); if (obj2) { res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_find_statements_in_context" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); } { result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_sources(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_sources",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_sources" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_sources" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_sources" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_arcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_arcs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arcs" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_targets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_targets",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_targets" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_targets" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_targets" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_source",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_source" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_source" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_source" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_arc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_arc",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arc" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arc" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arc" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_arcs_out(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_arcs_out",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_arcs_in(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_arcs_in",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_has_arc_in(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_has_arc_in",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_in" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_has_arc_out(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_has_arc_out",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_out" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_target",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_target" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_target" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_target" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_context_add_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_add_statement",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); { result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_context_add_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_add_statements",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statements" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); { result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_context_remove_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_remove_statement",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_remove_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); { result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_context_remove_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_context_remove_statements",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (int)librdf_model_context_remove_statements(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_context_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_context_as_stream",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_as_stream" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_sync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_sync",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_sync" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { librdf_model_sync(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_contexts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_get_contexts",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_contexts" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (librdf_iterator *)librdf_model_get_contexts(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_contains_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_contains_context",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_context" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); { result = (int)librdf_model_contains_context(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_feature",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (librdf_node *)librdf_model_get_feature(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_set_feature",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_set_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_model_set_feature(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO|OOO:librdf_model_load",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_load" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_load" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_load" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_load" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); } if (obj4) { res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_load" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); } { result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return resultobj; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_query_execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_query_results *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_query_execute",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_query_execute" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_query_execute" "', argument " "2"" of type '" "librdf_query *""'"); } arg2 = (librdf_query *)(argp2); { result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO|OOO:librdf_model_to_string",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_to_string" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (obj2) { res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_to_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); } if (obj3) { res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_to_string" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); } if (obj4) { res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_to_string" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); } { result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); free((char*)result); return resultobj; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_transaction_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_start",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_start" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (int)librdf_model_transaction_start(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_transaction_commit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_commit",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_commit" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (int)librdf_model_transaction_commit(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_model_transaction_rollback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_rollback",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_rollback" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); { result = (int)librdf_model_transaction_rollback(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_storage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_storage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_storage" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_storage" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_storage" "', argument " "4"" of type '" "char *""'"); } arg4 = (char *)(buf4); { result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_storage_from_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_storage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_storage_from_storage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage_from_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); { result = (librdf_storage *)librdf_new_storage_from_storage(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_storage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); { librdf_free_storage(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_check_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_check_name",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (int)librdf_parser_check_name(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_parser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_parser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_parser",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_parser" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_parser" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_parser" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_parser" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); { result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_parser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_parser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_parser" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); { librdf_free_parser(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO|O:librdf_parser_parse_as_stream",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_as_stream" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); if (obj2) { res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); } { result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_into_model",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_into_model" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); { result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_string_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_parse_string_as_stream",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); { result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_string_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_string_into_model",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_string_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); { result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_counted_string_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_counted_string_as_stream",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); { result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_parse_counted_string_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_parser_parse_counted_string_into_model",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "5"" of type '" "librdf_model *""'"); } arg5 = (librdf_model *)(argp5); { result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_feature",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_set_feature",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_set_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_parser_set_feature(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_guess_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_guess_name",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); { result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_guess_name2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_guess_name2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name2" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_guess_name2" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); { result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_prefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_namespaces_seen_prefix",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_uri *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_namespaces_seen_uri",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_parser_get_namespaces_seen_count",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_count" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); { result = (int)librdf_parser_get_namespaces_seen_count(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; librdf_query *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_new_query",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_query" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_query" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_new_query" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); { result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_query_from_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_query *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_query_from_query",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query_from_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); { result = (librdf_query *)librdf_new_query_from_query(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_query",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); { librdf_free_query(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_query_results *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_execute",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_execute" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_execute" "', argument " "2"" of type '" "librdf_model *""'"); } arg2 = (librdf_model *)(argp2); { result = (librdf_query_results *)librdf_query_execute(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_get_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_get_limit",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); { result = (int)librdf_query_get_limit(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_set_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_set_limit",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_limit" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (int)librdf_query_set_limit(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_get_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_get_offset",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); { result = (int)librdf_query_get_offset(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_set_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_set_offset",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_offset" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (int)librdf_query_set_offset(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_stream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_as_stream",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_as_stream" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (librdf_stream *)librdf_query_results_as_stream(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_count",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_get_count(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_next",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_next" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_next(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_finished(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_finished",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_finished" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_finished(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_value",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_value" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_name",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_name" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); { result = (char *)librdf_query_results_get_binding_name(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_value_by_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_value_by_name",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_bindings_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_bindings_count",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_bindings_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_get_bindings_count(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_query_results_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); { result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_to_file2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_query_results_to_file2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_file2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); { result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_query_results_to_string",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); { result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_to_string2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_query_results_to_string2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_string2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_string2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); { result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); free((char*)result); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_query_results(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_query_results",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query_results" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { librdf_free_query_results(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_is_bindings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_bindings",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_bindings" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_is_bindings(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_is_boolean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_boolean",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_is_boolean(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_is_graph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_graph",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_graph" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_is_graph(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_is_syntax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_syntax",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_syntax" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_is_syntax(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_query_results_get_boolean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_boolean",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); { result = (int)librdf_query_results_get_boolean(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_check_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_serializer_check_name",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); { result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_new_serializer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; librdf_serializer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_serializer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_serializer" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_serializer" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_serializer" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_serializer" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); { result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_serializer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_serializer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_serializer" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); { librdf_free_serializer(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_stream_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_serializer_serialize_stream_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "4"" of type '" "librdf_stream *""'"); } arg4 = (librdf_stream *)(argp4); { result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_model_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_serializer_serialize_model_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); { result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_stream_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_serialize_stream_to_string",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); { result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_model_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_serialize_model_to_string",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "3"" of type '" "librdf_model *""'"); } arg3 = (librdf_model *)(argp3); { result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); free((char*)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:librdf_serializer_get_feature",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_get_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); { result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_set_feature",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); { result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_serializer_set_namespace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_set_namespace",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_namespace" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_namespace" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_namespace" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); { result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return resultobj; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return NULL; } SWIGINTERN PyObject *_wrap_librdf_free_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_stream",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_stream" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); { librdf_free_stream(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_stream_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_end" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); { result = (int)librdf_stream_end(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_stream_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_next",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_next" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); { result = (int)librdf_stream_next(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_stream_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_statement *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_get_object",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_object" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); { result = (librdf_statement *)librdf_stream_get_object(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_stream_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; librdf_node *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_get_context",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_context" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); { result = (librdf_node *)librdf_stream_get_context(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_log_message_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_code",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_code" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); { result = (int)librdf_log_message_code(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_log_message_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_level",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_level" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); { result = (int)librdf_log_message_level(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_log_message_facility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_facility",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_facility" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); { result = (int)librdf_log_message_facility(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_log_message_message(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_message",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_message" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); { result = (char *)librdf_log_message_message(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_log_message_locator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; raptor_locator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_locator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_locator" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); { result = (raptor_locator *)librdf_log_message_locator(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_raptor_locator_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_line",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_line" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); { result = (int)raptor_locator_line(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_raptor_locator_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_column",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_column" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); { result = (int)raptor_locator_column(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_raptor_locator_byte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_byte",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_byte" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); { result = (int)raptor_locator_byte(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_raptor_locator_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_file",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_file" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); { result = (char *)raptor_locator_file(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_raptor_locator_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_uri",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_uri" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); { result = (char *)raptor_locator_uri(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_internal_test_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_internal_test_error",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_error" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { librdf_internal_test_error(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_librdf_internal_test_warning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_internal_test_warning",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_warning" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { librdf_internal_test_warning(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN int Swig_var_librdf_short_copyright_string_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_short_copyright_string is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_short_copyright_string_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(librdf_short_copyright_string); return pyobj; } SWIGINTERN int Swig_var_librdf_copyright_string_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_copyright_string is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_copyright_string_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(librdf_copyright_string); return pyobj; } SWIGINTERN int Swig_var_librdf_version_string_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_version_string is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_version_string_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(librdf_version_string); return pyobj; } SWIGINTERN int Swig_var_librdf_version_major_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_version_major is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_version_major_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_major)); return pyobj; } SWIGINTERN int Swig_var_librdf_version_minor_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_version_minor is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_version_minor_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_minor)); return pyobj; } SWIGINTERN int Swig_var_librdf_version_release_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_version_release is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_version_release_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_release)); return pyobj; } SWIGINTERN int Swig_var_librdf_version_decimal_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable librdf_version_decimal is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_librdf_version_decimal_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_decimal)); return pyobj; } SWIGINTERN int Swig_var_raptor_version_string_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable raptor_version_string is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_raptor_version_string_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(raptor_version_string); return pyobj; } SWIGINTERN int Swig_var_raptor_version_major_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable raptor_version_major is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_raptor_version_major_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_major)); return pyobj; } SWIGINTERN int Swig_var_raptor_version_minor_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable raptor_version_minor is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_raptor_version_minor_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_minor)); return pyobj; } SWIGINTERN int Swig_var_raptor_version_release_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable raptor_version_release is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_raptor_version_release_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_release)); return pyobj; } SWIGINTERN int Swig_var_raptor_version_decimal_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable raptor_version_decimal is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_raptor_version_decimal_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_decimal)); return pyobj; } SWIGINTERN int Swig_var_rasqal_version_string_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_string is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_rasqal_version_string_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(rasqal_version_string); return pyobj; } SWIGINTERN int Swig_var_rasqal_version_major_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_major is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_rasqal_version_major_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_major)); return pyobj; } SWIGINTERN int Swig_var_rasqal_version_minor_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_minor is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_rasqal_version_minor_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_minor)); return pyobj; } SWIGINTERN int Swig_var_rasqal_version_release_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_release is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_rasqal_version_release_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_release)); return pyobj; } SWIGINTERN int Swig_var_rasqal_version_decimal_set(PyObject *_val SWIGUNUSED) { SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_decimal is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_rasqal_version_decimal_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_decimal)); return pyobj; } SWIGINTERN PyObject *_wrap_librdf_python_world_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:librdf_python_world_init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_python_world_init" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); { librdf_python_world_init(arg1); if(librdf_python_error_message) { PyErr_SetString(PyRedland_Error, librdf_python_error_message); free(librdf_python_error_message); librdf_python_error_message=NULL; SWIG_fail; } if(librdf_python_warning_message) { PyErr_Warn(PyRedland_Warning, librdf_python_warning_message); free(librdf_python_warning_message); librdf_python_warning_message=NULL; } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } static PyMethodDef SwigMethods[] = { { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, { (char *)"librdf_new_digest", _wrap_librdf_new_digest, METH_VARARGS, NULL}, { (char *)"librdf_free_digest", _wrap_librdf_free_digest, METH_VARARGS, NULL}, { (char *)"librdf_digest_init", _wrap_librdf_digest_init, METH_VARARGS, NULL}, { (char *)"librdf_digest_update", _wrap_librdf_digest_update, METH_VARARGS, NULL}, { (char *)"librdf_digest_update_string", _wrap_librdf_digest_update_string, METH_VARARGS, NULL}, { (char *)"librdf_digest_final", _wrap_librdf_digest_final, METH_VARARGS, NULL}, { (char *)"librdf_digest_to_string", _wrap_librdf_digest_to_string, METH_VARARGS, NULL}, { (char *)"librdf_new_hash", _wrap_librdf_new_hash, METH_VARARGS, NULL}, { (char *)"librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string, METH_VARARGS, NULL}, { (char *)"librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings, METH_VARARGS, NULL}, { (char *)"librdf_hash_to_string", _wrap_librdf_hash_to_string, METH_VARARGS, NULL}, { (char *)"librdf_free_hash", _wrap_librdf_free_hash, METH_VARARGS, NULL}, { (char *)"librdf_new_world", _wrap_librdf_new_world, METH_VARARGS, NULL}, { (char *)"librdf_free_world", _wrap_librdf_free_world, METH_VARARGS, NULL}, { (char *)"librdf_world_open", _wrap_librdf_world_open, METH_VARARGS, NULL}, { (char *)"librdf_world_get_feature", _wrap_librdf_world_get_feature, METH_VARARGS, NULL}, { (char *)"librdf_world_set_feature", _wrap_librdf_world_set_feature, METH_VARARGS, NULL}, { (char *)"librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header, METH_VARARGS, NULL}, { (char *)"librdf_world_set_logger", _wrap_librdf_world_set_logger, METH_VARARGS, NULL}, { (char *)"librdf_free_iterator", _wrap_librdf_free_iterator, METH_VARARGS, NULL}, { (char *)"librdf_iterator_end", _wrap_librdf_iterator_end, METH_VARARGS, NULL}, { (char *)"librdf_iterator_get_object", _wrap_librdf_iterator_get_object, METH_VARARGS, NULL}, { (char *)"librdf_iterator_get_context", _wrap_librdf_iterator_get_context, METH_VARARGS, NULL}, { (char *)"librdf_iterator_next", _wrap_librdf_iterator_next, METH_VARARGS, NULL}, { (char *)"librdf_new_uri", _wrap_librdf_new_uri, METH_VARARGS, NULL}, { (char *)"librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri, METH_VARARGS, NULL}, { (char *)"librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename, METH_VARARGS, NULL}, { (char *)"librdf_free_uri", _wrap_librdf_free_uri, METH_VARARGS, NULL}, { (char *)"librdf_uri_to_string", _wrap_librdf_uri_to_string, METH_VARARGS, NULL}, { (char *)"librdf_uri_equals", _wrap_librdf_uri_equals, METH_VARARGS, NULL}, { (char *)"librdf_uri_compare", _wrap_librdf_uri_compare, METH_VARARGS, NULL}, { (char *)"librdf_new_node", _wrap_librdf_new_node, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_node", _wrap_librdf_new_node_from_node, METH_VARARGS, NULL}, { (char *)"librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier, METH_VARARGS, NULL}, { (char *)"librdf_free_node", _wrap_librdf_free_node, METH_VARARGS, NULL}, { (char *)"librdf_node_get_uri", _wrap_librdf_node_get_uri, METH_VARARGS, NULL}, { (char *)"librdf_node_get_type", _wrap_librdf_node_get_type, METH_VARARGS, NULL}, { (char *)"librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value, METH_VARARGS, NULL}, { (char *)"librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1, METH_VARARGS, NULL}, { (char *)"librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language, METH_VARARGS, NULL}, { (char *)"librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri, METH_VARARGS, NULL}, { (char *)"librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml, METH_VARARGS, NULL}, { (char *)"librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal, METH_VARARGS, NULL}, { (char *)"librdf_node_to_string", _wrap_librdf_node_to_string, METH_VARARGS, NULL}, { (char *)"librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier, METH_VARARGS, NULL}, { (char *)"librdf_node_is_resource", _wrap_librdf_node_is_resource, METH_VARARGS, NULL}, { (char *)"librdf_node_is_literal", _wrap_librdf_node_is_literal, METH_VARARGS, NULL}, { (char *)"librdf_node_is_blank", _wrap_librdf_node_is_blank, METH_VARARGS, NULL}, { (char *)"librdf_node_equals", _wrap_librdf_node_equals, METH_VARARGS, NULL}, { (char *)"librdf_new_statement", _wrap_librdf_new_statement, METH_VARARGS, NULL}, { (char *)"librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement, METH_VARARGS, NULL}, { (char *)"librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes, METH_VARARGS, NULL}, { (char *)"librdf_free_statement", _wrap_librdf_free_statement, METH_VARARGS, NULL}, { (char *)"librdf_statement_get_subject", _wrap_librdf_statement_get_subject, METH_VARARGS, NULL}, { (char *)"librdf_statement_set_subject", _wrap_librdf_statement_set_subject, METH_VARARGS, NULL}, { (char *)"librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate, METH_VARARGS, NULL}, { (char *)"librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate, METH_VARARGS, NULL}, { (char *)"librdf_statement_get_object", _wrap_librdf_statement_get_object, METH_VARARGS, NULL}, { (char *)"librdf_statement_set_object", _wrap_librdf_statement_set_object, METH_VARARGS, NULL}, { (char *)"librdf_statement_equals", _wrap_librdf_statement_equals, METH_VARARGS, NULL}, { (char *)"librdf_statement_match", _wrap_librdf_statement_match, METH_VARARGS, NULL}, { (char *)"librdf_statement_to_string", _wrap_librdf_statement_to_string, METH_VARARGS, NULL}, { (char *)"librdf_statement_is_complete", _wrap_librdf_statement_is_complete, METH_VARARGS, NULL}, { (char *)"librdf_new_model", _wrap_librdf_new_model, METH_VARARGS, NULL}, { (char *)"librdf_new_model_with_options", _wrap_librdf_new_model_with_options, METH_VARARGS, NULL}, { (char *)"librdf_new_model_from_model", _wrap_librdf_new_model_from_model, METH_VARARGS, NULL}, { (char *)"librdf_free_model", _wrap_librdf_free_model, METH_VARARGS, NULL}, { (char *)"librdf_model_size", _wrap_librdf_model_size, METH_VARARGS, NULL}, { (char *)"librdf_model_add", _wrap_librdf_model_add, METH_VARARGS, NULL}, { (char *)"librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_add_statement", _wrap_librdf_model_add_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_add_statements", _wrap_librdf_model_add_statements, METH_VARARGS, NULL}, { (char *)"librdf_model_remove_statement", _wrap_librdf_model_remove_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_contains_statement", _wrap_librdf_model_contains_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_as_stream", _wrap_librdf_model_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_model_find_statements", _wrap_librdf_model_find_statements, METH_VARARGS, NULL}, { (char *)"librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context, METH_VARARGS, NULL}, { (char *)"librdf_model_get_sources", _wrap_librdf_model_get_sources, METH_VARARGS, NULL}, { (char *)"librdf_model_get_arcs", _wrap_librdf_model_get_arcs, METH_VARARGS, NULL}, { (char *)"librdf_model_get_targets", _wrap_librdf_model_get_targets, METH_VARARGS, NULL}, { (char *)"librdf_model_get_source", _wrap_librdf_model_get_source, METH_VARARGS, NULL}, { (char *)"librdf_model_get_arc", _wrap_librdf_model_get_arc, METH_VARARGS, NULL}, { (char *)"librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out, METH_VARARGS, NULL}, { (char *)"librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in, METH_VARARGS, NULL}, { (char *)"librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in, METH_VARARGS, NULL}, { (char *)"librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out, METH_VARARGS, NULL}, { (char *)"librdf_model_get_target", _wrap_librdf_model_get_target, METH_VARARGS, NULL}, { (char *)"librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements, METH_VARARGS, NULL}, { (char *)"librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement, METH_VARARGS, NULL}, { (char *)"librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements, METH_VARARGS, NULL}, { (char *)"librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_model_sync", _wrap_librdf_model_sync, METH_VARARGS, NULL}, { (char *)"librdf_model_get_contexts", _wrap_librdf_model_get_contexts, METH_VARARGS, NULL}, { (char *)"librdf_model_contains_context", _wrap_librdf_model_contains_context, METH_VARARGS, NULL}, { (char *)"librdf_model_get_feature", _wrap_librdf_model_get_feature, METH_VARARGS, NULL}, { (char *)"librdf_model_set_feature", _wrap_librdf_model_set_feature, METH_VARARGS, NULL}, { (char *)"librdf_model_load", _wrap_librdf_model_load, METH_VARARGS, NULL}, { (char *)"librdf_model_query_execute", _wrap_librdf_model_query_execute, METH_VARARGS, NULL}, { (char *)"librdf_model_to_string", _wrap_librdf_model_to_string, METH_VARARGS, NULL}, { (char *)"librdf_model_transaction_start", _wrap_librdf_model_transaction_start, METH_VARARGS, NULL}, { (char *)"librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit, METH_VARARGS, NULL}, { (char *)"librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback, METH_VARARGS, NULL}, { (char *)"librdf_new_storage", _wrap_librdf_new_storage, METH_VARARGS, NULL}, { (char *)"librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage, METH_VARARGS, NULL}, { (char *)"librdf_free_storage", _wrap_librdf_free_storage, METH_VARARGS, NULL}, { (char *)"librdf_parser_check_name", _wrap_librdf_parser_check_name, METH_VARARGS, NULL}, { (char *)"librdf_new_parser", _wrap_librdf_new_parser, METH_VARARGS, NULL}, { (char *)"librdf_free_parser", _wrap_librdf_free_parser, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model, METH_VARARGS, NULL}, { (char *)"librdf_parser_get_feature", _wrap_librdf_parser_get_feature, METH_VARARGS, NULL}, { (char *)"librdf_parser_set_feature", _wrap_librdf_parser_set_feature, METH_VARARGS, NULL}, { (char *)"librdf_parser_guess_name", _wrap_librdf_parser_guess_name, METH_VARARGS, NULL}, { (char *)"librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2, METH_VARARGS, NULL}, { (char *)"librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix, METH_VARARGS, NULL}, { (char *)"librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri, METH_VARARGS, NULL}, { (char *)"librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count, METH_VARARGS, NULL}, { (char *)"librdf_new_query", _wrap_librdf_new_query, METH_VARARGS, NULL}, { (char *)"librdf_new_query_from_query", _wrap_librdf_new_query_from_query, METH_VARARGS, NULL}, { (char *)"librdf_free_query", _wrap_librdf_free_query, METH_VARARGS, NULL}, { (char *)"librdf_query_execute", _wrap_librdf_query_execute, METH_VARARGS, NULL}, { (char *)"librdf_query_get_limit", _wrap_librdf_query_get_limit, METH_VARARGS, NULL}, { (char *)"librdf_query_set_limit", _wrap_librdf_query_set_limit, METH_VARARGS, NULL}, { (char *)"librdf_query_get_offset", _wrap_librdf_query_get_offset, METH_VARARGS, NULL}, { (char *)"librdf_query_set_offset", _wrap_librdf_query_set_offset, METH_VARARGS, NULL}, { (char *)"librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_count", _wrap_librdf_query_results_get_count, METH_VARARGS, NULL}, { (char *)"librdf_query_results_next", _wrap_librdf_query_results_next, METH_VARARGS, NULL}, { (char *)"librdf_query_results_finished", _wrap_librdf_query_results_finished, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count, METH_VARARGS, NULL}, { (char *)"librdf_query_results_to_file", _wrap_librdf_query_results_to_file, METH_VARARGS, NULL}, { (char *)"librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2, METH_VARARGS, NULL}, { (char *)"librdf_query_results_to_string", _wrap_librdf_query_results_to_string, METH_VARARGS, NULL}, { (char *)"librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2, METH_VARARGS, NULL}, { (char *)"librdf_free_query_results", _wrap_librdf_free_query_results, METH_VARARGS, NULL}, { (char *)"librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings, METH_VARARGS, NULL}, { (char *)"librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean, METH_VARARGS, NULL}, { (char *)"librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph, METH_VARARGS, NULL}, { (char *)"librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax, METH_VARARGS, NULL}, { (char *)"librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean, METH_VARARGS, NULL}, { (char *)"librdf_serializer_check_name", _wrap_librdf_serializer_check_name, METH_VARARGS, NULL}, { (char *)"librdf_new_serializer", _wrap_librdf_new_serializer, METH_VARARGS, NULL}, { (char *)"librdf_free_serializer", _wrap_librdf_free_serializer, METH_VARARGS, NULL}, { (char *)"librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file, METH_VARARGS, NULL}, { (char *)"librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file, METH_VARARGS, NULL}, { (char *)"librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string, METH_VARARGS, NULL}, { (char *)"librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string, METH_VARARGS, NULL}, { (char *)"librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature, METH_VARARGS, NULL}, { (char *)"librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature, METH_VARARGS, NULL}, { (char *)"librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace, METH_VARARGS, NULL}, { (char *)"librdf_free_stream", _wrap_librdf_free_stream, METH_VARARGS, NULL}, { (char *)"librdf_stream_end", _wrap_librdf_stream_end, METH_VARARGS, NULL}, { (char *)"librdf_stream_next", _wrap_librdf_stream_next, METH_VARARGS, NULL}, { (char *)"librdf_stream_get_object", _wrap_librdf_stream_get_object, METH_VARARGS, NULL}, { (char *)"librdf_stream_get_context", _wrap_librdf_stream_get_context, METH_VARARGS, NULL}, { (char *)"librdf_log_message_code", _wrap_librdf_log_message_code, METH_VARARGS, NULL}, { (char *)"librdf_log_message_level", _wrap_librdf_log_message_level, METH_VARARGS, NULL}, { (char *)"librdf_log_message_facility", _wrap_librdf_log_message_facility, METH_VARARGS, NULL}, { (char *)"librdf_log_message_message", _wrap_librdf_log_message_message, METH_VARARGS, NULL}, { (char *)"librdf_log_message_locator", _wrap_librdf_log_message_locator, METH_VARARGS, NULL}, { (char *)"raptor_locator_line", _wrap_raptor_locator_line, METH_VARARGS, NULL}, { (char *)"raptor_locator_column", _wrap_raptor_locator_column, METH_VARARGS, NULL}, { (char *)"raptor_locator_byte", _wrap_raptor_locator_byte, METH_VARARGS, NULL}, { (char *)"raptor_locator_file", _wrap_raptor_locator_file, METH_VARARGS, NULL}, { (char *)"raptor_locator_uri", _wrap_raptor_locator_uri, METH_VARARGS, NULL}, { (char *)"librdf_internal_test_error", _wrap_librdf_internal_test_error, METH_VARARGS, NULL}, { (char *)"librdf_internal_test_warning", _wrap_librdf_internal_test_warning, METH_VARARGS, NULL}, { (char *)"librdf_python_world_init", _wrap_librdf_python_world_init, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_char, &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_char, _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_const_info swig_const_table[] = { {0, 0, 0, 0.0, 0, 0}}; #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; clientdata = clientdata; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif #ifdef __cplusplus extern "C" { #endif /* Python-specific SWIG API */ #define SWIG_newvarlink() SWIG_Python_newvarlink() #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) /* ----------------------------------------------------------------------------- * global variable support code. * ----------------------------------------------------------------------------- */ typedef struct swig_globalvar { char *name; /* Name of global variable */ PyObject *(*get_attr)(void); /* Return the current value */ int (*set_attr)(PyObject *); /* Set the value */ struct swig_globalvar *next; } swig_globalvar; typedef struct swig_varlinkobject { PyObject_HEAD swig_globalvar *vars; } swig_varlinkobject; SWIGINTERN PyObject * swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_InternFromString(""); #else return PyString_FromString(""); #endif } SWIGINTERN PyObject * swig_varlink_str(swig_varlinkobject *v) { #if PY_VERSION_HEX >= 0x03000000 PyObject *str = PyUnicode_InternFromString("("); PyObject *tail; PyObject *joined; swig_globalvar *var; for (var = v->vars; var; var=var->next) { tail = PyUnicode_FromString(var->name); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; if (var->next) { tail = PyUnicode_InternFromString(", "); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; } } tail = PyUnicode_InternFromString(")"); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; #else PyObject *str = PyString_FromString("("); swig_globalvar *var; for (var = v->vars; var; var=var->next) { PyString_ConcatAndDel(&str,PyString_FromString(var->name)); if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); } PyString_ConcatAndDel(&str,PyString_FromString(")")); #endif return str; } SWIGINTERN int swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char *tmp; PyObject *str = swig_varlink_str(v); fprintf(fp,"Swig global variables "); fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(str); return 0; } SWIGINTERN void swig_varlink_dealloc(swig_varlinkobject *v) { swig_globalvar *var = v->vars; while (var) { swig_globalvar *n = var->next; free(var->name); free(var); var = n; } } SWIGINTERN PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n) { PyObject *res = NULL; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->get_attr)(); break; } var = var->next; } if (res == NULL && !PyErr_Occurred()) { PyErr_SetString(PyExc_NameError,"Unknown C global variable"); } return res; } SWIGINTERN int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { int res = 1; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->set_attr)(p); break; } var = var->next; } if (res == 1 && !PyErr_Occurred()) { PyErr_SetString(PyExc_NameError,"Unknown C global variable"); } return res; } SWIGINTERN PyTypeObject* swig_varlink_type(void) { static char varlink__doc__[] = "Swig var link object"; static PyTypeObject varlink_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"swigvarlink", /* tp_name */ sizeof(swig_varlinkobject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor) swig_varlink_dealloc, /* tp_dealloc */ (printfunc) swig_varlink_print, /* tp_print */ (getattrfunc) swig_varlink_getattr, /* tp_getattr */ (setattrfunc) swig_varlink_setattr, /* tp_setattr */ 0, /* tp_compare */ (reprfunc) swig_varlink_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ (reprfunc) swig_varlink_str, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ varlink__doc__, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; varlink_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 varlink_type.ob_type = &PyType_Type; #else if (PyType_Ready(&varlink_type) < 0) return NULL; #endif } return &varlink_type; } /* Create a variable linking object for use later */ SWIGINTERN PyObject * SWIG_Python_newvarlink(void) { swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); if (result) { result->vars = 0; } return ((PyObject*) result); } SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { swig_varlinkobject *v = (swig_varlinkobject *) p; swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); if (gv) { size_t size = strlen(name)+1; gv->name = (char *)malloc(size); if (gv->name) { strncpy(gv->name,name,size); gv->get_attr = get_attr; gv->set_attr = set_attr; gv->next = v->vars; } } v->vars = gv; } SWIGINTERN PyObject * SWIG_globals(void) { static PyObject *_SWIG_globals = 0; if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); return _SWIG_globals; } /* ----------------------------------------------------------------------------- * constants/methods manipulation * ----------------------------------------------------------------------------- */ /* Install Constants */ SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { PyObject *obj = 0; size_t i; for (i = 0; constants[i].type; ++i) { switch(constants[i].type) { case SWIG_PY_POINTER: obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); break; case SWIG_PY_BINARY: obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); break; default: obj = 0; break; } if (obj) { PyDict_SetItemString(d, constants[i].name, obj); Py_DECREF(obj); } } } /* -----------------------------------------------------------------------------*/ /* Fix SwigMethods to carry the callback ptrs when needed */ /* -----------------------------------------------------------------------------*/ SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) { ci = &(const_table[j]); break; } } if (ci) { void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; if (ptr) { size_t shift = (ci->ptype) - types; swig_type_info *ty = types_initial[shift]; size_t ldoc = (c - methods[i].ml_doc); size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; char *ndoc = (char*)malloc(ldoc + lptr + 10); if (ndoc) { char *buff = ndoc; strncpy(buff, methods[i].ml_doc, ldoc); buff += ldoc; strncpy(buff, "swig_ptr: ", 10); buff += 10; SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); methods[i].ml_doc = ndoc; } } } } } } #ifdef __cplusplus } #endif /* -----------------------------------------------------------------------------* * Partial Init method * -----------------------------------------------------------------------------*/ #ifdef __cplusplus extern "C" #endif SWIGEXPORT #if PY_VERSION_HEX >= 0x03000000 PyObject* #else void #endif SWIG_init(void) { PyObject *m, *d, *md; #if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef SWIG_module = { # if PY_VERSION_HEX >= 0x03020000 PyModuleDef_HEAD_INIT, # else { PyObject_HEAD_INIT(NULL) NULL, /* m_init */ 0, /* m_index */ NULL, /* m_copy */ }, # endif (char *) SWIG_name, NULL, -1, SwigMethods, NULL, NULL, NULL, NULL }; #endif #if defined(SWIGPYTHON_BUILTIN) static SwigPyClientData SwigPyObject_clientdata = { 0, 0, 0, 0, 0, 0, 0 }; static PyGetSetDef this_getset_def = { (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL }; static SwigPyGetSet thisown_getset_closure = { (PyCFunction) SwigPyObject_own, (PyCFunction) SwigPyObject_own }; static PyGetSetDef thisown_getset_def = { (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure }; PyObject *metatype_args; PyTypeObject *builtin_pytype; int builtin_base_count; swig_type_info *builtin_basetype; PyObject *tuple; PyGetSetDescrObject *static_getset; PyTypeObject *metatype; SwigPyClientData *cd; PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; int i; (void)builtin_pytype; (void)builtin_base_count; (void)builtin_basetype; (void)tuple; (void)static_getset; /* metatype is used to implement static member variables. */ metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); assert(metatype_args); metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); assert(metatype); Py_DECREF(metatype_args); metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; assert(PyType_Ready(metatype) >= 0); #endif /* Fix SwigMethods to carry the callback ptrs when needed */ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); #if PY_VERSION_HEX >= 0x03000000 m = PyModule_Create(&SWIG_module); #else m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif md = d = PyModule_GetDict(m); SWIG_InitializeModule(0); #ifdef SWIGPYTHON_BUILTIN SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; if (!cd) { SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); # if PY_VERSION_HEX >= 0x03000000 return NULL; # else return; # endif } /* All objects have a 'this' attribute */ this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); (void)this_descr; /* All objects have a 'thisown' attribute */ thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); (void)thisown_descr; public_interface = PyList_New(0); public_symbol = 0; (void)public_symbol; PyDict_SetItemString(md, "__all__", public_interface); Py_DECREF(public_interface); for (i = 0; SwigMethods[i].ml_name != NULL; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); for (i = 0; swig_const_table[i].name != 0; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); #endif SWIG_InstallConstants(d,swig_const_table); /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_short_copyright_string",Swig_var_librdf_short_copyright_string_get, Swig_var_librdf_short_copyright_string_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_copyright_string",Swig_var_librdf_copyright_string_get, Swig_var_librdf_copyright_string_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_string",Swig_var_librdf_version_string_get, Swig_var_librdf_version_string_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_major",Swig_var_librdf_version_major_get, Swig_var_librdf_version_major_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_minor",Swig_var_librdf_version_minor_get, Swig_var_librdf_version_minor_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_release",Swig_var_librdf_version_release_get, Swig_var_librdf_version_release_set); SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_decimal",Swig_var_librdf_version_decimal_get, Swig_var_librdf_version_decimal_set); SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_string",Swig_var_raptor_version_string_get, Swig_var_raptor_version_string_set); SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_major",Swig_var_raptor_version_major_get, Swig_var_raptor_version_major_set); SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_minor",Swig_var_raptor_version_minor_get, Swig_var_raptor_version_minor_set); SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_release",Swig_var_raptor_version_release_get, Swig_var_raptor_version_release_set); SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_decimal",Swig_var_raptor_version_decimal_get, Swig_var_raptor_version_decimal_set); SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_string",Swig_var_rasqal_version_string_get, Swig_var_rasqal_version_string_set); SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_major",Swig_var_rasqal_version_major_get, Swig_var_rasqal_version_major_set); SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_minor",Swig_var_rasqal_version_minor_get, Swig_var_rasqal_version_minor_set); SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_release",Swig_var_rasqal_version_release_get, Swig_var_rasqal_version_release_set); SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_decimal",Swig_var_rasqal_version_decimal_get, Swig_var_rasqal_version_decimal_set); #if PY_VERSION_HEX >= 0x03000000 return m; #else return; #endif } redland-bindings-1.0.16.1/python/redlandtest.py0000644000175000017500000003306211756332026016300 00000000000000#!/usr/bin/python # # redlandtest.py - Redland Python RDF model unit tests # # Authors: # Matt Biddulph # Edd Dumbill import unittest from RDF import * class RedlandModelCase (unittest.TestCase): def setUp (self): self.storage_no_context = Storage (storage_name="hashes", name="redland_testcase_nc", options_string="hash-type='bdb',contexts='no',dir='/tmp',new='yes'") self.storage_context = Storage (storage_name="hashes", name="redland_testcase_c", options_string="hash-type='bdb',contexts='yes',dir='/tmp',new='yes'") self.context_node = Node(Uri("http://mycontext/")) self.alien_context_node = Node(Uri("http://mycontext/alien")) def make_statement (self, n): return Statement ( Uri ("http://subject/%d" % n), Uri ("http://pred/%d" % n), Uri ("http://object/%d" % n)) def testListnessNoContext (self): model = Model (self.storage_no_context) for i in range(0,4): s = self.make_statement (i) model.append (s) for i in range(0,4): s = self.make_statement (i) self.assert_(s in model, "statement %s should be in model" % (str(s))) s_two = self.make_statement (2) s_two_again = self.make_statement (2) self.assert_(s_two == s_two_again, "equality; statement %s should equal statement %s" % \ (str(s_two), str(s_two_again))) s_three = self.make_statement (3) self.assert_(s_two != s_three, "inequality; statement %s should not equal statement %s" % \ (str(s_two), str(s_three))) del model[s_two] self.assert_(s_two not in model, "del failed; statement %s should not be in model" % \ (str(s_two))) def testListnessContext (self): model = Model (self.storage_context) for i in range(0,4): s = self.make_statement (i) model.append (s, self.context_node) for i in range(0,4): s = self.make_statement (i) self.assert_((s, self.context_node) in model, "statement %s context %s should be in model" % ( str(s), str(self.context_node))) self.assert_((s, self.alien_context_node) not in model, "statement %s context %s should be in model" % ( str(s), str(self.alien_context_node))) s_two = self.make_statement (2) del model[s_two, self.context_node] self.assert_((s_two, self.context_node) not in model, "del failed; statement %s context %s should not be in model" % \ (str(s_two), str(self.context_node))) class RedlandSimpleGetsCase(unittest.TestCase): def setUp(self): self.storage = MemoryStorage() self.model = Model(self.storage) self.node1 = Node(Uri("http://node1/")) self.node2 = Node(Uri("http://node2/")) self.node3 = Node(Uri("http://node3/")) self.model.append (Statement(self.node1, self.node2, self.node3)) def testSimpleGets(self): self.assert_( self.model.get_source(self.node2, self.node3) == self.node1, "Source should be node1") self.assert_( self.model.get_target(self.node1, self.node2) == self.node3, "Target should be node3") self.assert_( self.model.get_predicate(self.node1, self.node3) == self.node2, "Predicate should be node2") class RedlandGetsCase(unittest.TestCase): def setUp(self): self.storage = MemoryStorage() self.model = Model(self.storage) self.node1 = Node(Uri("http://node1/")) self.node2 = Node(Uri("http://node2/")) self.node3 = Node(Uri("http://node3/")) self.node4 = Node(Uri("http://node4/")) self.node5 = Node(Uri("http://node5/")) self.node6 = Node(Uri("http://node6/")) self.nodeb = Node() self.model.append(Statement(self.node1, self.node2, self.node3)) self.model.append(Statement(self.node1, self.node2, self.node4)) self.model.append(Statement(self.node6, self.node2, self.node4)) self.model.append(Statement(self.node5, self.node3, self.node6)) self.model.append(Statement(self.node5, self.node1, self.node6)) # and now, with context self.storageC = MemoryStorage(options_string="contexts='yes'") self.modelC = Model(self.storageC) self.context_node = Node(Uri("http://mycontext/")) self.modelC.append(Statement(self.node1, self.node2, self.node3), self.context_node) self.modelC.append(Statement(self.node1, self.node2, self.node4), self.context_node) self.modelC.append(Statement(self.node6, self.node2, self.node4), self.context_node) self.modelC.append(Statement(self.node5, self.node3, self.node6), self.context_node) self.modelC.append(Statement(self.node5, self.node1, self.node6), self.context_node) def testGets(self): sources = list(self.model.get_sources(self.node2, self.node4)) self.assert_( (self.node1 in sources) and (self.node6 in sources), "sources should contain node1 and node6") targets = list(self.model.get_targets(self.node1, self.node2)) self.assert_( (self.node3 in targets) and (self.node4 in targets), "targets should contain node3 and node4") predicates = list(self.model.get_predicates(self.node5, self.node6)) self.assert_( (self.node3 in predicates) and (self.node1 in predicates), "predicates should contain node3 and node1") def testGetsC(self): sources = list(self.modelC.get_sources_context(self.node2, self.node4)) self.assert_( ((self.node1, self.context_node) in sources) and ((self.node6, self.context_node) in sources), "sources should contain (node1,c) and (node6,c)") targets = list(self.modelC.get_targets_context(self.node1, self.node2)) self.assert_( ((self.node3, self.context_node) in targets) and ((self.node4, self.context_node) in targets), "targets should contain (node3,c) and (node4,c)") predicates = list(self.modelC.get_predicates_context(self.node5, self.node6)) self.assert_( ((self.node3, self.context_node) in predicates) and ((self.node1, self.context_node) in predicates), "predicates should contain (node3,c) and (node1,c)") class RedlandStreamsCase(unittest.TestCase): def setUp(self): self.storage = MemoryStorage(options_string="contexts='yes'") self.model = Model(self.storage) self.parser = Parser() def testParseNTriplesIntoModel(self): a = "file:../data/dc.nt" p = NTriplesParser() p.parse_into_model(self.model,a) self.assert_(len(self.model) == 3,"dc.rdf should have 3 statements") def testParseTurtleIntoModel(self): a = "file:../data/dc.ttl" p = TurtleParser() p.parse_into_model(self.model,a) self.assert_(len(self.model) == 3,"dc.rdf should have 3 statements") def testParseIntoModel(self): a = "file:../data/dc.rdf" self.parser.parse_into_model(self.model,a) self.assert_(len(self.model) == 3,"dc.rdf should have 3 statements") def testIterateModel(self): a = "file:../data/dc.rdf" self.parser.parse_into_model(self.model,a) counter = 0 for s in self.model: counter += 1 self.assert_(counter == 3,"dc.rdf should have 3 statements") def testParseAsStream(self): a = "file:../data/dc.rdf" for s in self.parser.parse_as_stream(a): self.model.append(s) self.assert_(len(self.model) == 3,"dc.rdf should have 3 statements") def testFindStatements1(self): self.parser.parse_into_model(self.model,"file:../data/dc.rdf") statement = Statement( Uri("http://www.dajobe.org/"), None, None) count = 0 found_stmts = self.model.find_statements(statement) for i in found_stmts: count += 1 self.assert_(count == 3, "Should have found_stmts 3 statements") def testContains(self): self.parser.parse_into_model(self.model,"file:../data/dc.rdf") statement = Statement( Uri("http://www.dajobe.org/"), Uri("http://purl.org/dc/elements/1.1/creator"), "Dave Beckett") count = 0 found_stmts = self.model.find_statements(statement) for i in found_stmts: count += 1 self.assert_(count == 1, "Should have found_stmts 1 statement") # test we can find it at all, for comparison self.assert_(statement in self.model, "Should have found a statement via __contains__") def testFindStatementsWithContext(self): a = "file:../data/dc.rdf" intended_context = Node(Uri("http://example.org/")) for s in self.parser.parse_as_stream(a): self.model.append (s, intended_context) subject = Node(Uri("http://www.dajobe.org/")) statement = Statement(subject, None, None) count = 0 for s,c in self.model.find_statements_context(statement): self.failIf(c is None, "Didn't get context back from find_statements") self.assert_(c == intended_context, "Didn't get the right context back from find_statements") self.assert_(statement.subject == subject, "find_statements_context didn't find statements with the right subject") count += 1 self.assert_(count == 3, "Should have found 3 statements") def testParseStringAsStream(self): content = """Redland RDF""" base_uri = Uri("http://example.org/base#") s=self.parser.parse_string_as_stream(content, base_uri) self.assert_(s is not None, "parse_string_as_stream should have succeeded") rc=self.model.add_statements(s) self.assert_(rc == 0, "add statements should have succeeded") class RedlandModelGeneral (unittest.TestCase): def setUp (self): self.storage = HashStorage("test", options="hash-type='bdb'") self.model = Model(self.storage) def testSync(self): self.model.sync() class RasqalQueryTestCase (unittest.TestCase): def setUp(self): self.model = Model() self.parser = Parser() a = "file:../data/dc.rdf" self.parser.parse_into_model(self.model,a) def testSPARQLQueryAsStream(self): q = SPARQLQuery("PREFIX dc: CONSTRUCT {?a dc:title ?c} WHERE {?a dc:title ?c}") s = q.execute(self.model).as_stream() self.assert_(s is not None, "execute as_stream should have succeeded") rc=self.model.add_statements(s) self.assert_(rc == 0, "add statements should have succeeded") def testSPARQLQueryAsk(self): q = SPARQLQuery("PREFIX dc: ASK WHERE {?x ?y ?z}") rc = q.execute(self.model).get_boolean() self.assert_(rc is True, "execute get_boolean should have returned True") def testSPARQLQueryAsString(self): q = SPARQLQuery("PREFIX dc: SELECT * WHERE {?a dc:title ?c}") r = q.execute(self.model) expect = 372 self.assert_(r is not None, "execute to_string should have succeeded") s = r.to_string() self.assert_(len(s) == expect, "to_string should have returned "+str(expect)+" not " + str(len(s))) def testSPARQLQueryTwice(self): q = SPARQLQuery("SELECT ?x ?y ?z WHERE {?x ?y ?z}") results1 = q.execute(self.model) count1 = 0 for result in results1: count1 += 1 self.assert_(count1 == 3, "Should have found three results in execution 1") results2 = q.execute(self.model) count2 = 0 for result2 in results2: count2 += 1 self.assert_(count2 == 3, "Should have found three results in execution 2") # def testSPARQLQueryTwiceOverwriteVar(self): # q = SPARQLQuery("SELECT ?x ?y ?z WHERE {?x ?y ?z}") # results = q.execute(self.model) # count = 0 # for result in results: # print "result 1>",count,result # count += 1 # self.assert_(count == 3, "Should have found three results in execution 1 not "+str(count)) # # results = q.execute(self.model) # count = 0 # for result in results: # print "result 2>",count,result # count += 1 # self.assert_(count == 3, "Should have found three results in execution 2 not "+str(count)) def testSPARQLQueryTriplesToString(self): q = SPARQLQuery("PREFIX dc: CONSTRUCT {?a dc:title ?c} WHERE {?a dc:title ?c}") r = q.execute(self.model) expect = 289 self.assert_(r is not None, "execute to_string should have succeeded") s = r.to_string() self.assert_(len(s) == expect, "to_string should have returned "+str(expect)+" not " + str(len(s))) if __name__ == '__main__': unittest.main() redland-bindings-1.0.16.1/INSTALL.html0000644000175000017500000002676112074646572014110 00000000000000 Redland librdf Language Bindings - Building and Installing from Source

Redland librdf Language Bindings - Building and Installing from Source

1. Get pre-requisites

The Redland Bindings require a previously built and installed Redland package with the same version number. In particular, the header files, shared libraries and SWIG interface files that Redland provides are required for most language bindings. An alternative to installation is to extract the Redland sources in a parent directory or a sibling directory called 'librdf'.

2. Getting the sources

There are several ways to get the sources. The most stable and tested versions are the sources shipped with each release and these are recommended as the first place to start. For the latest developent sources, anonymous GIT access is available but this may require some configuring of developer tools that are not needed for releases.

The source bundle and package files contain all the HTML files and documentation provided on the web site.

2.1. Getting the sources from releases

The released sources and available from http://download.librdf.org/source/ master site as well as the SourceForge site.

2.2. Getting the sources from GIT

  git clone git://github.com/dajobe/redland-bindings.git
  cd redland-bindings

At this stage, or after a git pull you will need to create the automake and autoconf derived files, as described below in Create the configure program by using the autogen.sh script.

Building the Redland bindings in this way requires some particular development tools not needed when building from snapshot releases - automake, autoconf and swig. The autogen.sh script looks for the newest versions of the auto* tools and checks that they meet the minimum versions.

3. Configuring and building

Redland uses the GNU automake and autoconf to handle system dependency checking. It is developed and built on x86 Linux and x86 OSX but is also tested on other systems occasionally.

configure tries very hard to find several programs and libraries that the Redland bindings need. These include the binding binaries: perl, python, etc., C header files for the bindings such as for Python etc. and various others. A summary of the parts found is given at the end of the configure run. Several options to configure given below can be used to point to locations or names of dependencies that cannot be automatically determined.

3.1. Create configure program

If there is no configure program, you can create it by running the autogen.sh script, as long as you have the automake and autoconf tools. This is done by:

  ./autogen.sh

and you can also pass along arguments intended for configure (see below for what these are):

  ./autogen.sh --prefix=/usr/local/somewhere

On OSX you may have to explicitly set the LIBTOOLIZE variable for the libtoolize utility since on OSX libtoolize is a different program. The full path to the utility should be given:

  LIBTOOLIZE=/opt/local/bin/glibtoolize ./autogen.sh

Alternatively you can run the automake and autoconf programs by hand with:

  aclocal; autoheader; automake --add-missing; autoconf

The automake and autoconf tools have many different versions and autogen.sh enforces the minimums. At present development is being done with automake 1.10.2 (minimum version 1.7), autoconf 2.63 (minimum version 2.54) and libtool 2.2.6 (minimum version 2.2.0). These are only needed when compiling from GIT sources. autogen.sh enforces the requirements.

3.2. Options for configure

See also the generic GNU installation instructions in INSTALL for information about general options such as --prefix etc.

--with-lua(=LUA-COMMAND)
--with-perl(=PERL-COMMAND)
--with-php(=PHP-COMMAND)
--with-python(=PYTHON-COMMAND)
--with-ruby(=RUBY-COMMAND)

Enable the given language APIs - the default is to build no language APIs automatically. If the option value is omitted or yes, configure will guess the location of the language command. If the option value is no or no option is given, the language API will be disabled - this is the default, not to build any language API.

If the option is given a value, that is used as the appropriate language command to use. For example --with-ruby=ruby1.8 will use the 'ruby1.8' binary, whereas --with-ruby will use 'ruby' as the binary, both of these will be searched for in the PATH. An absolute path could alternatively be given such as --with-python=/opt/mypython/bin/python to use a python installation in a different location.

--with-perl-makemaker-args=ARGS

Set the arguments for the Perl ExtUtils::MakeMaker Makefile.PL invocation. The default arguments is ''. This is useful to set the set of installation directories such as with --with-perl-makemaker-args=INSTALLDIRS=vendor to move the installation to the vendor directories. Useful choices are '', 'perl', 'site' and 'vendor'. See the ExtUtils::MakeMaker docs above for more information on the options.

--with-python-get-python-lib-args=ARGS

Set the arguments for the Python distutils.sysconfig function get_python_lib() which determines the install directory for the shared object for the python binding. The default value is '' which puts the installed objects in the general library dir for third-party extensions. Other useful values are probably '1' which returns the platform-dependent library dir and '1,1' which returns the standard library directory for platform-dependent libraries.

--with-python-ldflags(=FLAGS)

Set the linker flags for linking Python. This can also be done by setting the environment variable PYTHON_LDFLAGS. If neither is set, configure will guess an appropriate set for the current system. Cygwin example:

  -with-python-ldflags='-shared -L/usr/lib/python2.5/config -lpython2.5'
--with-python-libext=.EXT

Set the python shared library link extension (default .so). Useful on systems where .so does not work as a shared library extension. Cygwin example:

  -with-python-libext=.dll
--with-ruby-install-dir=DIR

Set the directory to install the archhitecture-independent Ruby bindings files. The default value is '' which will install the files to directory given by the the value of the Config::CONFIG['rubylibdir'] variable

--with-ruby-arch-install-dir=DIR

Set the directory to install the architecture-specific Ruby bindings files. The default value is '' which will use the value of the variable configured by --with-ruby-arch-install-dir-variable to get the the installation directory. Setting this configuration overrides setting the variable name.

--with-ruby-arch-install-dir-variable=NAME

Set the Config::CONFIG['sitearchdir'] variable name to get the the installation directory for installing architecture-specific Ruby bindings files. The default variable is 'archdir'. Other useful values are probably 'sitearchdir'. This is overridden if --with-ruby-arch-install-dir is set.

--with-ruby-linking=TYPE

Set the Ruby module linking type: one of 'so', 'dylib' (OSX) or 'bundle' (OSX). Otherwise the defaults are guessed.

3.3 Configuring

If everything is in the default place, do:

   ./configure

More commonly you will be doing something like this, indicating which binding or bindings are wanted:

   ./configure --with-python

NOTE: It is usually safe to use older redland bindings with newer redland releases, it will just omit any new functions added. configure may warn about this and stop, and if this is the case, you can override it with --with-redland=system to let configuration continue.

If you are having problems with configuring several times when adding or removing options, you may have to tidy up first with either of these:

   make clean
   rm -f config.cache

3.4 Compiling

   make

3.5. Testing

You can build and run the built-in tests for Redland with:

    make check

which will run these tests for the enabled languages. These may fail if the main redland libraries (librdf and raptor, rasqal) are not installed but are used in nearby source trees. So in this case you should install redland, raptor and rasqal first

The language-specific tests can also be built and run with:

   cd language
   make check

3.6 Installing the bindings

To install the bindings, do:

   make install

Otherwise, the language-specific installations can be made with:

  cd language
  make install

4. Using the library

There are many examples for all of the language interfaces in the corresponding sub-directories such as perl/example.pl which may be easier to modify.

5. Using the Perl interface

See the Redland Perl Interface document for full information on installing and using Redland from Perl.

6. Using the Python interface

See the Redland Python Interface document for full information on installing and using Redland from Python.

7. Using the Ruby interface

See the Redland Ruby Interface document for full information on installing and using Redland from Ruby.

8. Using the PHP interface

See the Redland PHP Interface document for full information on installing and using Redland from PHP.


Copyright (C) 2004-2013 Dave Beckett
Copyright (C) 2004-2005 University of Bristol

redland-bindings-1.0.16.1/AUTHORS0000644000175000017500000000012211447773210013134 00000000000000Dave Beckett Dominic Sisneros (Ruby API) redland-bindings-1.0.16.1/redland-bindings.spec0000644000175000017500000001552312074650256016160 00000000000000# -*- RPM-SPEC -*- # Note that this is NOT a relocatable package %define name redland-bindings %define version 1.0.16.1 %define release SNAP %define prefix /usr %define redland_version 1.0.16 # Installation directories for perl, python and ruby are host-specific %define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch) # Not %{_libdir} as on FC4 x86_64 it is the wrong place %define python_libdir %{_prefix}/lib %define ruby_dir %(ruby -rrbconfig -e "puts Config::CONFIG['archdir']") %define ruby_libdir %(ruby -rrbconfig -e "puts Config::CONFIG['rubylibdir']") Summary: Redland librdf Language Bindings Name: %{name} Version: %{version} Release: %{release} Prefix: %{_prefix} License: LGPL/Apache 2 Group: Development/Libraries Source: http://download.librdf.org/source/%{name}-%{version}.tar.gz URL: http://librdf.org/ BuildRoot: /tmp/%{name}-%{version} BuildRequires: redland-devel >= %{redland_version} BuildRequires: perl >= 5.8.0 BuildRequires: python-devel >= 2.3.0 BuildRequires: ruby >= 1.8.0 BuildRequires: ruby-devel >= 1.8.0 Packager: Dave Beckett Docdir: %{prefix}/doc Requires: redland >= %{redland_version} Requires: ruby >= 1.8.0 %description Redland librdf Language bindings provide high-level interfaces for RDF (Resource Description Framework) implemented on top of the Redland librdf library which provides an object-based RDF API, supports for syntaxes and triple stores. %package -n redland-perl Summary: Perl modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-perl The redland-perl package contains the parts of Redland librdf that provide an interface to Perl. %package -n redland-python Summary: Python modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-python The redland-python package contains the parts of Redland librdf that provide an interface to Python. %package -n redland-ruby Summary: Ruby modules for the Redland librdf RDF library Group: Development/Libraries Requires: redland = %{redland_version} %description -n redland-ruby The redland-ruby package contains the parts of Redland librdf that provide an interface to Ruby. %prep %setup %build # Force use of default python PYTHON=python export PYTHON %configure --enable-release cd perl %{__make} Makefile.perl PERL_MAKEMAKER_ARGS="PREFIX=$RPM_BUILD_ROOT/%{_prefix} SYSCONFDIR=$RPM_BUILD_ROOT/%{_sysconfdir} INST_PREFIX=%{_prefix} INST_SYSCONFDIR=%{_sysconfdir}" %{__make} cd .. cd python %{__make} cd .. cd ruby %{__make} cd .. %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd perl %{__make} prefix=$RPM_BUILD_ROOT%{prefix} exec_prefix=$RPM_BUILD_ROOT%{prefix} bindir=$RPM_BUILD_ROOT%{prefix}/bin sbindir=$RPM_BUILD_ROOT%{prefix}/sbin sysconfdir=$RPM_BUILD_ROOT/etc datadir=$RPM_BUILD_ROOT%{prefix}/share includedir=$RPM_BUILD_ROOT%{prefix}/include libdir=$RPM_BUILD_ROOT%{_libdir} libexecdir=$RPM_BUILD_ROOT%{prefix}/libexec localstatedir=$RPM_BUILD_ROOT/var sharedstatedir=$RPM_BUILD_ROOT%{prefix}/com mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{prefix}/share/info install find $RPM_BUILD_ROOT -name perllocal.pod -exec rm -v {} \; find $RPM_BUILD_ROOT%{perl_sitearch} -name \*.so -exec chmod 755 {} \; cd .. cd python %{__make} install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT%{prefix} -name "*.py[co]" -exec rm -f {} \; cd .. cd ruby mkdir -p $RPM_BUILD_ROOT%{ruby_dir} mkdir -p $RPM_BUILD_ROOT%{ruby_libdir} %{__make} install DESTDIR=$RPM_BUILD_ROOT cd .. %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files -n redland-perl %defattr(-, bin, bin) %{perl_sitearch}/auto %{perl_sitearch}/RDF/Redland %{perl_sitearch}/RDF/Redland.pm %doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README %doc LICENSE-2.0.txt NOTICE %doc %{_mandir}/man3/RDF::Redland*.3pm* %doc perl/example.pl %files -n redland-python %defattr(-, bin, bin) %{python_libdir}/python*/site-packages/RDF.py %{python_libdir}/python*/site-packages/Redland.so* %doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt %doc README NEWS LICENSE.txt NOTICE %doc docs/pydoc/RDF.html python/example.py %files -n redland-ruby %defattr(-, bin, bin) %{ruby_dir}/redland.so %{ruby_libdir}/rdf/*.rb %{ruby_libdir}/rdf/redland/*.rb %{ruby_libdir}/rdf/redland/schemas/*.rb %doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt %doc README NEWS LICENSE.txt NOTICE %doc ruby/example.rb %post %postun %changelog * Sat Apr 29 2006 Dave Beckett - Require ruby since the rpm file needs it * Thu Aug 11 2005 Dave Beckett - Define perl_sitearch, python_libdir, ruby_dir and ruby_libdir at rpm build time. - Split build requirements out and declare minimum versions - Use %configure and %{__make} * Wed Nov 3 2004 Dave Beckett - Added redland-ruby include wrapper classes - BuildRequires: perl, python-devel, ruby-devel * Mon Nov 2 2004 Dave Beckett - License now LGPL/Apache 2 - Added LICENSE-2.0.txt and NOTICE * Mon Jul 19 2004 Dave Beckett - split redland to give redland-bindings - requires redland 0.9.17 * Mon Jul 12 2004 Dave Beckett - put /usr/share/redland/Redland.i in redland-devel * Wed May 5 2004 Dave Beckett - require raptor 1.3.0 - require rasqal 0.2.0 * Fri Jan 30 2004 Dave Beckett - require raptor 1.2.0 - update for removal of python distutils - require python 2.2.0+ - require perl 5.8.0+ - build and require mysql - do not build and require threestore * Sun Jan 4 2004 Dave Beckett - added redland-python package - export some more docs * Mon Dec 15 2003 Dave Beckett - require raptor 1.1.0 - require libxml 2.4.0 or newer - added pkgconfig redland.pc - split redland/devel package shared libs correctly * Mon Sep 8 2003 Dave Beckett - require raptor 1.0.0 * Thu Sep 4 2003 Dave Beckett - added rdfproc * Thu Aug 28 2003 Dave Beckett - patches added post 0.9.13 to fix broken perl UNIVERSAL::isa * Thu Aug 21 2003 Dave Beckett - Add redland-db-upgrade.1 - Removed duplicate perl CORE shared objects * Sun Aug 17 2003 Dave Beckett - Updates for new perl module names. * Tue Apr 22 2003 Dave Beckett - Updated for Redhat 9, RPM 4 * Fri Feb 12 2003 Dave Beckett - Updated for redland 0.9.12 * Fri Jan 4 2002 Dave Beckett - Updated for new Perl module names * Fri Sep 14 2001 Dave Beckett - Added shared libraries redland-bindings-1.0.16.1/README.html0000644000175000017500000000522512074643533013721 00000000000000 Redland librdf Language Bindings

Redland librdf Language Bindings

Dave Beckett

Overview

Redland librdf is a library that provides a high-level interface for the Resource Description Framework (RDF) allowing the RDF graph to be parsed from XML, stored, queried and manipulated. Redland implements each of the RDF concepts in its own class via an object based API, reflected into the language APIs, currently Perl, PHP, Python and Ruby. Several classes providing functionality such as for parsers, storage are built as modules that can be loaded at compile or run-time as required.

The Redland librdf language bindings provides the higher level language APIs to Redland in the following languages.

Sources and Binaries

The packaged sources are available from http://download.librdf.org/source/ (master site) and also from the SourceForge site. The development GIT sources can also be browsed on GitHub

License

This library is free software / open source software released under the LGPL 2.1 (GPL) or Apache 2.0 licenses. See LICENSE.html for full details.

Installation and Documentation

See INSTALL.html for general installation and configuration information and the language specific documents for installing the interfaces in the current available APIs: Perl, PHP, Python or Ruby . There are no LUA docs at this time.

Mailing Lists

The Redland mailing lists discuss the development and use of Redland and Raptor as well as future plans and announcement of releases.


Copyright (C) 2004-2013 Dave Beckett
Copyright (C) 2004-2005 University of Bristol

redland-bindings-1.0.16.1/INSTALL0000644000175000017500000003660012020200162013102 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. redland-bindings-1.0.16.1/TODO.html0000644000175000017500000000122612074643533013526 00000000000000 Redland librdf Language Bindings - To Do List

Redland librdf Language Bindings - To Do list

Bugs should be reported at the Redland Issue Tracker.


Copyright (C) 2004-2013 Dave Beckett
Copyright (C) 2004-2005 University of Bristol

redland-bindings-1.0.16.1/ChangeLog0000644000175000017500000002517012074646572013657 000000000000002013-01-13 Dave Beckett * ChangeLog, ChangeLog.10, ChangeLog.11, Makefile.am: Add ChangeLog.10 ChangeLog.11 for 2009 and 2010 * .gitignore: do not ignore ChangeLog * INSTALL.html, LICENSE.html, NEWS.html, README.html, RELEASE.html, TODO.html: 2013 1.0.16.1 2012-10-23 Dave Beckett * configure.ac: Allow Redland 1.0.15+ or newer. Warn SWIG 2 is going to be required. 2012-08-31 Dave Beckett * configure.ac: Warn when swig is OLDER than recommended 2012-08-31 Dave Beckett * autogen.sh, configure.ac: Update autogen.sh and configure.ac via autoupdate * autogen.sh: autogen.sh: Added -Wall to aclocal and autoconf invocations 2012-07-07 Dave Beckett * docs/Makefile.am: Update rdoc files for ruby 1.9 rdoc output * docs/Makefile.am, docs/fix-rdoc-xhtml, ruby/Makefile.am: Update ruby rdoc building * ruby/lib/rdf/redland/model.rb, ruby/lib/rdf/redland/parser.rb, ruby/lib/rdf/redland/query.rb, ruby/lib/rdf/redland/serializer.rb, ruby/lib/rdf/redland/store.rb, ruby/lib/rdf/redland/stream.rb, ruby/lib/rdf/redland/uri.rb: Fix ruby -w warnings - commenting out literals Fixes Issue #0000243 http://bugs.librdf.org/mantis/view.php?id=243 * ruby/test/test_model.rb: Remove duplicate test test_delete * ruby/lib/rdf/redland/schemas/foaf.rb: Remove duplicate method foaf_name * ruby/lib/rdf/redland/queryresults.rb: Remove duplicate method binding_name * configure.ac: Add --with-ruby-install-dir-variable to set non-arch ruby install var Fixes Issue #0000480 http://bugs.librdf.org/mantis/view.php?id=480 * ruby/.gitignore, ruby/test/.gitignore: ignore more * ruby/test/test_model.rb, ruby/test/test_parser.rb: Test fixes for ruby 1.9 * php/Makefile.am: Tidy php makefile * configure.ac, ruby/.gitignore, ruby/Makefile.am, ruby/test/Makefile.am: Update ruby build approach after PHP Set the ruby build suffix at configure time and add an option to make it configurable with --with-ruby-linking taking values so, dylib, bundle Cleans up ruby Makefiles to remove conditionals Intended to fix Issue #0000444 http://bugs.librdf.org/mantis/view.php?id=444 2012-07-07 Dave Beckett * ruby/redland-pre.i: Add STR2CSTR macro for ruby 1.9 * configure.ac: Add ruby arch include dir if it exists. Removed configure --with-ruby-header-dir-variable * ruby/Makefile.am: -UHAVE_CONFIG_H for compiling while including ruby.h * configure.ac: Default to ruby 'rubyhdrdir' for ruby headers * configure.ac: Update ruby configuration for newer 1.9 config variables Add --with-ruby-header-dir-variable to set the variable to use for the headers, defaults to sitehdrdir Check for ruby headers in the dir from the above and default to the old away in the RUBY_ARCHDIR. Report the result in the configure output and where the header came from. * configure.ac: Use ruby RbConfig:: instead of deprecated Config:: * ChangeLog, NEWS.html, RELEASE.html: 1.0.16.1 * NEWS.html, RELEASE.html, configure.ac: Bumped version to 1.0.16.1 2012-06-26 Dave Beckett * Makefile.am: EXTRA_DIST: Remove ChangeLog NEWS since they are in dist by default * autogen.sh: autogen.sh updates - Abort run if a configuring program fails. - Generate NEWS with old timestamp if missing so automake can run - small doc and message updates 2012-06-21 Dave Beckett * python/RDF.py: fix """ * autogen.sh: Support NOCONFIGURE variable, like Lib{XML2,XSLT} 2012-05-20 Dave Beckett * ruby/lib/rdf/redland/parser.rb: (Parser.parse_string_into_model): Call parse_string_as_stream properly * ruby/test/test_query.rb: Convert all old rdql queries to sparql * python/RDF.py: Query language defaults to sparql * python/redlandtest.py: Remove RDQL tests 2011-11-13 Dave Beckett * NEWS.html, RELEASE.html, configure.ac: Bumped version to 1.0.14.2 * ChangeLog: Snapshotted redland-bindings_1_0_14_1 for 1.0.14.1 release (GIT 58ec9f8828575ec0344d4f1d69b7e13f2e81040c) * RELEASE.html: SWIG 2 * configure.ac: SWIG_RECOMMENDED_VERSION 2.0.0 just a warning * perl/lib/RDF/Redland.pm.in: Hack to prevent a false Perl runtime warning 2011-11-12 Dave Beckett * python/RDF.py: Change all 'type(arg) is T' to 'isinstance(arg, T)' Fixes Issue #00000473 http://bugs.librdf.org/mantis/view.php?id=473 2011-11-03 Joe Presbrey * php/redland-decl.i, php/redland-post.i: add librdf_php_free_last_log 2011-11-02 Dave Beckett * Merge pull request #3 from presbrey/master PHP logging (error handling) enhancements 2011-07-23 Dave Beckett * configure.ac, python/Makefile.am: Link python bindings with rasqal and raptor * NEWS.html, RELEASE.html, configure.ac: Bumped version to 1.0.14.1 2011-07-15 Dave Beckett * Merge pull request #2 from slok/master (Serializer.serialize_stream_to_string): Added to serialize stream to string 2011-04-29 Dave Beckett * Merged pull request #1 from kasei/master. Properly set utf8 flag on perl scalars for URI and Node object values. Perl 5.7.3 or newer is required now. 2011-04-28 Gregory Todd Williams * perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/URI.pm: Set utf8 flag on scalars in Node->literal_value and URI->as_string. 2011-02-08 Dave Beckett * Snapshotted redland-bindings_1_0_13_1 for 1.0.13.1 release (GIT c7c4c93e5d00987a41e65196e728ed44e5fe644b) * redland-bindings.spec.in: Use PERL_MAKEMAKER_ARGS instead of MAKE_PL_OPTS - untested! * bindings.rdf.in: #ws and github * ChangeLog, INSTALL.html, README.html, RELEASE.html, TODO.html: 2011 and 1.0.13.1 2011-02-06 Dave Beckett * INSTALL.html: --with-redland has gone * INSTALL.html, configure.ac, ruby/Makefile.am: Allow configuration of Ruby arch/arch-independent install dirs Add --with-ruby-arch-install-dir and --with-ruby-arch-install-dir-variable. Use --with-ruby-install-dir just for arch independent files. Adjust installation to install shared object into arch dir, .rb files into the arch independent dir. Updates Fixes Issue#0000412 http://bugs.librdf.org/mantis/view.php?id=412 * LICENSE.html: Add BSD license for python/RDF.py here. Make GPL V2 or newer explicit. * INSTALL.html, configure.ac, ruby/Makefile.am, ruby/lib/rdf/Makefile.am, ruby/lib/rdf/redland/Makefile.am, ruby/lib/rdf/redland/schemas/Makefile.am: Enable ruby installation to be configured Add --with-ruby-install-dir and --with-ruby-install-dir-variable to configure. The former allows any installation path to be used, the latter sets the configuration variable to use, defaulting to 'archdir' (the current config). Replaced rubyarch_dir with rubyinstall_dir in Makefile.am for ruby bindings since it may or may not be the Ruby 'archdir'. Added documentation for the new options Fixes Issue#0000412 http://bugs.librdf.org/mantis/view.php?id=412 * INSTALL.html, configure.ac, perl/Makefile.am: Added --with-perl-makemaker-args to configure perl installation Allows builder/packager to configure the perl build/installation using standard ExtUtils::MakeMaker options. Fixes Issue#0000411 http://bugs.librdf.org/mantis/view.php?id=411 2011-02-05 Dave Beckett * INSTALL.html: Added --with-python-get-python-lib-args * configure.ac: Added --with-python-get-python-lib-args for setting python install dir Fixes Issue#0000398 http://bugs.librdf.org/mantis/view.php?id=398 * ruby/lib/rdf/redland/model.rb: (triples_with_context): Return statement and context properly Fixes Issue#0000390 http://bugs.librdf.org/mantis/view.php?id=390 2011-02-03 Dave Beckett * lua/Makefile.am, lua/test.lua, perl/Makefile.PL, perl/Makefile.am, perl/example.pl, perl/lib/RDF/Redland.pm.in, perl/lib/RDF/Redland/BlankNode.pm, perl/lib/RDF/Redland/Iterator.pm, perl/lib/RDF/Redland/LiteralNode.pm, perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Query.pm, perl/lib/RDF/Redland/QueryResults.pm, perl/lib/RDF/Redland/RSS.pm, perl/lib/RDF/Redland/Serializer.pm, perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/Storage.pm, perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/URINode.pm, perl/lib/RDF/Redland/XMLLiteralNode.pm, perl/redland-post.i, perl/rss-dump.pl, perl/serialize.pl, perl/t/test1.t, perl/t/test2.t, perl/t/test3.t, php/Makefile.am, php/test.php, python/Makefile.am, python/RDF.py, python/example.py, python/redland-post.i, python/test/test.py, ruby/Makefile.am, ruby/example.rb, ruby/lib/Makefile.am, ruby/lib/rdf/Makefile.am, ruby/lib/rdf/redland/Makefile.am, ruby/lib/rdf/redland/schemas/Makefile.am, ruby/test.rb, ruby/test/Makefile.am: Clarify license text in files to match LICENSE.html text All files are now recorded that they are available under the three license alternatives (or any newer version) using the current text from LICENSE.html at the root of this package. In addition python/RDF.py is also available under the BSD License without advertising (aka MIT license), the license text is included in the file. Fixes Issue#0000413 http://bugs.librdf.org/mantis/view.php?id=413 2011-02-01 Dave Beckett * configure.ac, perl/Makefile.PL: Remove redland-config support configure changed to - Use pkg-config redland only - Remove support for compiling against a non-installed redland - Add pkg-config rasqal output to compile/link flags. 2011-01-31 Dave Beckett * configure.ac: Get PYTHON_LIB from distutils Use distutils.sysconfig function get_python_lib() to get the library binary directory. distutils is a standard package so this should be portable. (Although it does not seem to be in distutils2 whenever that gets standard may be some time) Fixes Issue#0000398 http://bugs.librdf.org/mantis/view.php?id=398 2011-01-31 Dave Beckett * NEWS.html, RELEASE.html: 1.0.13.1 2011-01-24 Dave Beckett * python/redlandtest.py: (RasqalQueryTestCase): Count without using len() * python/RDF.py: Throw an exception when trying to take len() of iterable query results (QueryResults.__len__): Return a ValueError Fixes Issue#0000401 http://bugs.librdf.org/mantis/view.php?id=401 2011-01-23 Dave Beckett * python/redland-post.i: remove raptor V1 support * python/redland-post.i: Remove static prototypes for consts no longer needed for SWIG * python/redlandtest.py: Remove tests for query language triples, now removed. * configure.ac: 1.0.13.1 redland-bindings-1.0.16.1/bindings.rdf.in0000644000175000017500000000757011524276113014775 00000000000000 Redland librdf Language Bindings 2004-07-19 Language bindings in Perl, PHP, Python and Ruby to the Redland librdf Resource Description Framework (RDF) library. Redland librdf Language bindings provide high-level interfaces for RDF (Resource Description Framework) implemented on top of the Redland librdf library which provides an object-based RDF API, supports for syntaxes and triple stores. The bindings implements each of the RDF concepts in its own class via an object based API, reflected into the language APIs, currently Perl, PHP, Python and Ruby. Several classes providing functionality such as for parsers, storage, serializers and query languages are built as modules that can be loaded at compile or run-time as required. Dave Beckett 970987f991961f2553a1bf2574166fa29befbccb stable 2005-06-10 @VERSION@ Dave Beckett 970987f991961f2553a1bf2574166fa29befbccb redland-bindings-1.0.16.1/ChangeLog.100000644000175000017500000000654112074643533014071 000000000000002009-12-19 Dave Beckett * python/Makefile.am: reordering link flags so PYTHON_LDFLAGS is first and after object, to try to help with -Wl,--as-needed 2009-12-16 Dave Beckett * Snapshotted redland-bindings_1_0_10_1 for 1.0.10.1 release (SVN 15922) 2009-12-16 Dave Beckett * php/redland-post.i: (librdf_php_check_exception): Use TSRMLS_CC 2009-12-15 Dave Beckett * ChangeLog, ChangeLog.8, ChangeLog.9, Makefile.am: Add Changelogs for 2007 2008 * NEWS.html, RELEASE.html, configure.ac: Bump version to 1.0.10.1 - note 1.0.9.1 was never released. oops * ruby/lib/rdf/redland/resource.rb: (resource.type?): Use return value of model.find - a sequence and count it's size rather than just compare value to nil. Addresses Issue#000292 http://bugs.librdf.org/mantis/view.php?id=292 but may not fix it. * configure.ac: Added PYTHON_LDFLAGS, PYTHON_LIBEXT, PYTHON_INCLUDES and PYTHON_LIB envariables to override/set the python build parameters. Thanks to 'normang' for inspring this change from the patch in the issue. Fixes Issue#0000257 http://bugs.librdf.org/mantis/view.php?id=257 2009-11-29 Lauri Aalto * autogen.sh: Reduce autogen noise on systems where uname is not in /usr/bin 2009-09-29 Dave Beckett * python/redland-post.i: (librdf_python_unicode_to_bytes): Allocate enough bytes for storing an UTF-8 encoded version of a python UCS-2 encoded Unicode string - up to 3 bytes per codepoint. Fixes Issue#000313 http://bugs.librdf.org/mantis/view.php?id=313 2009-09-17 Dave Beckett * INSTALL.html: Add note about using older bindings with newer redland 2009-08-31 Dave Beckett * ruby/Makefile.am: Alter linking to put LDFLAGS at end of line so that they can be overridden by user/distro. Patch from Aria Stewart. Thanks * ruby/lib/rdf/redland/model.rb: (Model.delete): Allow wildcards in s,p,o to delete a set of statements from a Model.find call. Patch from Aria Stewart. Thanks * ruby/lib/rdf/redland/parser.rb: (Parser.parse_into_model, Parser.parse_string_into_model): Add warning about different argument order to rdoc documentation 2009-08-25 Dave Beckett * autogen.sh: 2 lines shorter * autogen.sh: Use FOO_args for default args for feature FOO Add --enable-gkt-doc only if it is a needed feature Automatically look for glibtoolize on Darwin/OSX * configure.ac: AC_SUBST(ECHO) so messages print ok * php/Makefile.am: Put PHP linking args at end * autogen.sh: Add autogen.sh from raptor with optional shave * php/Makefile.am: Restore AM_LDFLAGS using LIBRDF_LDFLAGS to make php bindings link again. * ruby/lib/rdf/redland/model.rb: Added Model.load 2009-07-17 Dave Beckett * COPYING: Update GPL2 to latest version (white space changes) used by rasqal, raptor, redland 2009-07-04 Dave Beckett * python/test/test.py: Call parser.namespaces_seen() * python/RDF.py: Added Parser.namespaces_seen 2009-04-12 Dave Beckett * autogen.sh: copy in from ../librdf/autogen.sh * configure.ac: 1.0.9.1 2009-04-07 Dave Beckett * python/Makefile.am: Set PYTHON_INCLUDES as a make var so it can be overridden, such as in debian packaging where multiple python version bindings are built at one time. redland-bindings-1.0.16.1/ChangeLog.110000644000175000017500000001205012074643533014062 000000000000002010-12-02 Dave Beckett * python/RDF.py: Allow querystring parameter to Query objects to be unicode (Query.__init__): Check querystring is not None and convert unicode to string (UTF-8 bytes) Fixes Issue #0000403 http://bugs.librdf.org/mantis/view.php?id=403 2010-12-01 Dave Beckett * python/RDF.py: In constructors, set all attributes to None before any exceptions can be thrown * python/RDF.py: Protect World and Iterator destructors from use of maybe undefined attribute. * python/RDF.py: typo * python/RDF.py: Node class __str__ and __unicode__ methods return simple results (Node.__str__): Just calls __unicode__ and converts (Node.__unicode__): No longer returns a formatted result (in N-Triples) but grabs a simple string value for literal, blank and uri. * python/RDF.py: Node class gains a blank property (Node.__get_blank_): Return a unicode ID (Node.blank): Added property with shorter name than blank_identifier. * python/RDF.py: Node class gains literal property returning a tuple of str, lang, dt (Node._get_literal): Added to return a tuple-valued property which is shorter and nicer to deal with than a dictionary. (Node.literal): Added property that uses above internal function. 2010-11-14 Dave Beckett * python/RDF.py: (QueryResults.to_string): Return bindings results with base URI Only returns bindings results in cases when the base_uri was None due to indenting the return statement. 2010-10-16 Nicholas J Humfrey * ruby/test/test_query.rb, ruby/test/test_serializer.rb: Improved Ruby serialiser tests by checking output using regular expressions instead of stream lengths. 2010-10-15 Dave Beckett * ruby/test/Makefile.am, ruby/test/one.nt, ruby/test/test_store.rb: Make test_store.rb work * ruby/lib/rdf/redland/node.rb: Fixed a number of Ruby tests by restoring Redland::Node#to_s to it's old behavior of returning string values without quotes. * ruby/lib/rdf/redland.rb, ruby/lib/rdf/redland/model.rb, ruby/lib/rdf/redland/parser.rb, ruby/lib/rdf/redland/resource.rb, ruby/test/test_model.rb, ruby/test/test_node.rb, ruby/test/test_parser.rb, ruby/test/test_query.rb, ruby/test/test_rdfs_resource.rb, ruby/test/test_resource.rb, ruby/test/test_statement.rb, ruby/test/test_store.rb, ruby/test/test_uri.rb: Cleaned up inconsistent whitespace in the Ruby code and tests. Made the Ruby tests less noisy by commenting out a number of 'puts' debug statements. 2010-10-10 Dave Beckett * configure.ac: Compare versions in decimal * configure.ac: Just warn if system redland is newer than our version. Error out if it is older. 2010-09-27 Dave Beckett * Snapshotted redland-bindings_1_0_11_1 for 1.0.11.1 release (GIT 46c21d201277766c7d6afe9c8e5c3876ab7c5571) 2010-09-26 Dave Beckett * python/Makefile.am: Add redland-pre.i * php/Makefile.am: Added -d enable_dl=On to test to maybe help reduce warnings See http://us2.php.net/dl * RELEASE.html, bindings.rdf.in, configure.ac, redland-bindings.spec.in: #words - Redland librdf language bindings * lua/Makefile.am: lua_$(LUA_PACKAGE).h is not an output of swig for lua * AUTHORS: C# gone * autogen.sh: Use latest autogen.sh - automake 1.11 required, uses silent rules etc. * perl/Makefile.am, php/Makefile.am, python/Makefile.am: Remove junk for obsolete dmalloc configuration * .gitignore, acinclude.m4, build/.gitignore: Update config for build/ dir. remove unused acinclude.m4 * configure.ac: Automake 1.11 and use build/ dir for aux and macros like rest of Redland * LICENSE.html: Use 'or any newer versions' in titles too. Link to specific LGPL 2.1 2010-09-20 Dave Beckett * lua/Makefile.am, lua/test.lua: Add test.lua and make 'make check' work * Makefile.am, configure.ac, lua/Makefile.am: Add skeleton config for LUA bindings 2010-08-09 Dave Beckett * python/redland-post.i: Revert raptor_locator_uri_string to raptor_locator_uri * python/Makefile.am, python/redland-post.i, python/redland-pre.i: Update for raptor2 API * configure.ac: Check if Redland uses Raptor2 API and set/define REDLAND_HAVE_RAPTOR2_API 2010-08-07 Dave Beckett * configure.ac: 1.0.11 2010-08-05 Dave Beckett * python/example.py: Turn raised exceptions into objects * configure.ac: For OSX Python, add -F$fpath to set framework path for the given python * python/redland-post.i: (librdf_python_unicode_to_bytes): Throw exceptions with better runtime error types * python/redland-post.i: (librdf_python_unicode_to_bytes): Fix calculation of input string length and output buffer size. Set exceptions on errors - using a bogus type for now 2010-02-04 Dave Beckett * ruby/lib/rdf/redland/node.rb: (node_from_hash): removed unused var h 2010-01-02 Dave Beckett * .gitignore, perl/.gitignore, php/.gitignore, python/.gitignore, ruby/.gitignore: Add .gitignore to replace SVN prop svn:ignore redland-bindings-1.0.16.1/COPYING0000644000175000017500000004310310444336174013125 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. redland-bindings-1.0.16.1/RELEASE.html0000644000175000017500000011256312074646572014056 00000000000000 Redland librdf Language Bindings

Redland librdf Language Bindings

Redland-bindings 1.0.16.1 changes

Synchronise with Redland 1.0.16 (release notes). This release requires Redland 1.0.16 which requires Rasqal 0.9.25 and Raptor 2.0.7 or newer.

Issues Fixed:

  • 0000243: Ruby bindings emit lots of warnings when loading library
  • 0000444: Ruby bindings installation is incomplete (redland.bundle missing)
  • 0000480: installation for ruby could still be improved
  • 0000498: 'parse_string_into_model' calls 'parse_string_as_stream' with an incorrect number of parameters in Ruby binding

Ruby bindings changes

Update ruby configuration for newer 1.9 config macros and variables using ruby arch include directory if it exists.

Set the ruby build suffix at configure time and add an option to make it configurable with configure argument --with-ruby-linking taking values 'so', 'dylib' or 'bundle'

Added configure --with-ruby-install-dir-variable to set non-arch ruby install var. Fixes Issue #0000480

Make Parser class method parse_string_into_model() work properly.

Fix ruby -w warnings - commenting out literals. Fixes Issue #0000243

Other changes

Remove all RDQL test queries since support is being removed from Rasqal.

autogen.sh now supports the NOCONFIGURE variable like Lib{XML2,XSLT}, aborts the run if an progrma fails and creates the NEWS if it does not exist to aid building from GIT and 'make dist'.

Redland-bindings 1.0.15.1 changes

Never released.

Redland-bindings 1.0.14.1 changes

Synchronise with Redland 1.0.14 (release notes). This release requires Redland 1.0.14 which requires Rasqal 0.9.25 and Raptor 2.0.0 or newer.

SWIG 2.0.0 or newer is now recommended. Not tested with SWIG 1.x series.

Issues Fixed:

  • 0000473: Python API objects can not be sub-classed.

Perl changes

Perl 5.7.3 or newer is required now.

Node and URI class: set utf8 flag on scalars in Node->literal_value and URI->as_string. (Gregory Todd Williams)

Added a hack to prevent false runtime warnings about a variable used once.

PHP changes

PHP logging and error handling enhancements. (Joe Presbrey)

Python changes

Change all 'type(arg) is T' to 'isinstance(arg, T)' to allow subclassing of the Redland python classes. Fixes Issue #00000473

Redland librdf Language Bindings 1.0.13.1 Changes

Synchronise with Redland 1.0.13 (release notes). This release requires Redland 1.0.13 which requires Rasqal 0.9.25 and Raptor 2.0.0 or newer. Raptor V1 support was removed.

Issues Fixed:

  • Issue #0000390: Ruby Redland::Model#triples_with_context exception
  • Issue #0000398: configure.ac hardcodes part of the python module path, which breaks 64 bit
  • Issue #0000401: behaviour of RDF.QuerySet has changed since 1.0.7.1 or later
  • Issue #0000403: destructor for RDF.Query throws an exception
  • Issue #0000411: Perl installs to /usr/lib/perl5/site_perl/ openSUSE want's it under /usr/lib/perl5/vendor_perl
  • Issue #0000412: when building packages, ruby gems should go in sitearchdir
  • Issue #0000413: Licensing of source code is unclear to distributions

Python changes

Validate all constructors set attributes to None so that early destruction does not give undefined attribute errors.

Node class methods __str__() and __unicode__() methods now return simple string results.

Node class method __unicode__() no longer returns a formatted result (in N-Triples) but grabs a simple string value for literal, blank and uri.

Node class gains a blank property returning a Unicode blank node ID.

Node class gains a literal property returning a tuple of (string, language, datatype URI).

Query constructor now accepts Unicode querystrings argument values. Issue #0000403

QueryResults method to_string() was fixed to return bindings results when given a base URI.

Using len() on an iterable QueryResults now returns an exception since this breaks the idea of an iterable object; it has no well defined length. Issue#0000401

Ruby changes

Model class method triples_with_context() now returns both the statement and context properly. Issue #0000390

Fixed a number of Ruby tests by restoring Redland::Node#to_s to it's old behavior of returning string values without quotes.

Made the Ruby tests less noisy.

Improved Ruby serialiser tests.

Configuration changes

Removed redland-config support; use only pkg-config redland.

Removed --with-redland option and support for compiling against a non-installed redland.

configure now warns if the system redland is newer than our version and errors out if it is older.

The python configuration in configure now uses distutils.sysconfig function get_python_lib() to get the library binary directory. Added option --with-python-get-python-lib-args to set the parameters if necessary. Issue#0000398

The perl configuration in configure was updated to use a new --with-perl-makemaker-args option to allow the builder or packager to configure the perl build and installation using standard ExtUtils::MakeMaker options. Issue #0000411

The ruby configuration in configure was updated to add --with-ruby-install-dir, --with-ruby-arch-install-dir and --with-ruby-arch-install-dir-variable options to configure Ruby installation paths for architecture independent and architecture-dependent files. Issue #0000412

Other changes

All files are now recorded that they are available under the three license alternatives (or any newer version) using the current text from LICENSE.html at the root of this package. In addition python/RDF.py is also available under the BSD License without advertising (aka MIT license), the license text is included in the file. Issue #0000413

Redland librdf Language Bindings 1.0.11.1 Changes

Issues Fixed:

  • 0000292: Method Redland::Resource.type? always return true

Lua binding

Added experimental Lua language binding. Use --with-lua=lua5.1 etc. to select a particular binary and version. This same name will be used with pkg-config(1) to get the include and link lines.

Python binding

Fix Unicode conversion for strings to use correct functions and throw better runtime errors exceptions.

Fix linking parameter order for python to help with newer GCC that force -Wl,--as-needed link args.

Ruby binding

Fixed method Redland::Resource.type? to not always return true: Issue #0000292

Redland Bindings 1.0.10.1 Changes

Issues Fixed:

  • 0000257: Make PYTHON_LIB installation directory configurable
  • 0000313: Unicode to UTF8 buffer overflows

PHP binding changes

Make PHP bindings link again by restoring LDFLAGS.

Fix PHP C interface librdf_php_check_exception to work when compiled with "ZTS mode". Whatever that is!

Python binding changes

Added Parser class method namespaces_seen

Allocate enough bytes for storing an UTF-8 encoded version of a python UCS-2 encoded Unicode string - up to 3 bytes per codepoint. Fixes Issue#000313

Added PYTHON_LDFLAGS, PYTHON_LIBEXT, PYTHON_INCLUDES and PYTHON_LIB configureenvariables to override/set the python build parameters. Thanks to 'normang' for inspring this change from the patch in the Issue#0000257 that it fixes.

Ruby binding changes

Model class method delete: allow wildcards in s,p,o to delete a set of statements from a Model.find call. Patch from Aria Stewart.

Model class method load: added

Parser class methods parse_into_model and parse_string_into_model: add documentation to note argument orders are different.

Resource class method type?: Use return value of model.find - a sequence and count it's size rather than just compare value to nil. Addresses Issue#000292 but may not fix it.

Alter linking to put LDFLAGS at end of line so that they can be overridden by user/distro. Patch from Aria Stewart.

Other changes

Redland Bindings 1.0.9.1 Changes

Never released.

Redland Bindings 1.0.8.1 Changes

The main change in this release is to synchronise with Redland 1.0.8 (Redland 1.0.8 release Notes) and provide a few other fixes and improvements.

Changed the configuration to prefer using pkg-config details over redland-config. This is the future and also makes linking work better on OSX.

Perl Bindings Changes

The Parser and Serializer class feature methods now cast values to/from Node for set/get when needed.

Python Bindings Changes

Modified linking to use new configure options --with-python-ldflags and --with-python_libext options to help systems such as Cygwin where the shared libraries are not .so

Ruby Bindings Changes

Updates to tests for expected SPARQL XML Results.

Redland Bindings 1.0.7.1 Changes

The main change in this release is to synchronise with Redland 1.0.7 (Redland 1.0.7 release Notes) and provide a few other fixes and improvements.

Removed Tcl, Java and C# APIs from the release as promised in Feb 2007

PHP Bindings Changes

Throws proper PHP5 exceptions when errors happen, passing along location information to the caller.

Null URIs and Redland nodes can be given with a PHP null.

Probably does not work on PHP4 anymore.

Python Bindings Changes

Parser class: Do not set rdfxml as default parser, let Redland figure that out.

Parser class: add method set_uri_filter to set the URI rejection filter function.

GRDDLParser class: added as a convenience class to create a parser of name 'grddl'.

Fixed Issue#0000212 : QueryResults.to_string is not working

Other changes

Updated SPARQL CONSTRUCT in perl example and test code Fixes Issue#0000247: Actuall v is 1.0.6.1 ; example.pl ends with an error

Updated autogen.sh to handle better vesioning, OSX glibtoolize and ltdl.

Some C# build fixes.

Redland Bindings 1.0.6.1 Changes

The main change in this release is to synchronise with Redland 1.0.6 (Redland 1.0.6 release Notes) and provide several other fixes and improvements.

Packaging and Configuration Changes

C# bindings changes

None

Java bindings changes

None

Perl bindings changes

Parser class gains namespaces_seen method to return hash of namespace prefix/uris seen during a parse.

PHP bindings changes

None

Python bindings changes

QueryResults class method __len__: Return 0 when the count is not 0 Fixes Issue #0000166

Model class method add_statement now raises an error if adding statement fails.

Node class constructor: Convert literals from Unicode to UTF-8 for redland n=RDF.Node(literal= u'this is unicode') now works Fixes Issue #0000147

Query class now raises an error if construction fails.

Serializer class constructor now defaults to none name, mime_type and raises an error if construction fails.

Ruby bindings changes

Apply patch from #0000121 again not properly fixed in previous patching owl.rb Fixes Issue #0000121

Uri, NodeIterator and QueryResults classes gain a finalizer to close and free up the redland objects on destruction.

Model, Parser, Query, Serializer and Store classes: Apply patch to comment out log .info calls. Fixes Issue #0000170 and Issue #0000172

Serializer class feature methods: Fix use of Node constructor. Fixes Issue #0000140

Serializer class method model_to_string: Fix null base_uri (Patch from Jeff Dutton)

Strem class fixed incorect call to librdf_free_model(stream) Fixes Issue #0000171

Tcl bindings changes

None

Redland Bindings 1.0.5.1 Changes

The main change in this release is to synchronise with Redland 1.0.5 (Redland 1.0.5 release Notes) and provide several other fixes and improvements.

Packaging and Configuration Changes

Patched configure to remove un-necessary tests for C++ or F77++ compilers that libtool stupidly insists on.

Added --with-python-ldflags for working around installing python in odd places.

Create directories before make install. Fixes Issue #0000126

C# bindings changes

Model class methods getSource, getArc and getTarget now return null rather than try to create a Node with null value.

Parser class constructors now working again, defaulting to RDF/XML parser.

Java bindings changes

Add Java Query and QueryResults classes and example of using them. Added Serializer method setNamespace.

Perl bindings changes

Parser class now allows undef arguments for base URIs.

PHP bindings changes

None.

Python bindings changes

Subclass python class Warning defined in C for making a RedlandWarning. Fixes Issue #0000109

Storage class gained some update docs.

Ruby bindings changes

Model class added method to_string. Removed several puts in methods. Method save now works when using default serializer and not filename.

Node class method from_node now calls Uri constructor properly.

Node class now defines bnode and anon to match docs Fixes Issue #0000122

Parser class now has constructor for a turtle parser.

QueryResults class added method bindings_count.

QueryResults class methods binding_value, binding_value_by_name now handle nil values.

Serializer class modified method set_namespace to use prefix, uri_ordering. Constructor now defaults to rdfxml syntax.

Storage class no longer echos storage options to stdout.

Added OWL_NS to owl.rb. Fixes Issue #0000121

Example gains query and serializer test code.

Removed some recursive includes of Redland.

Tcl bindings changes

None

Redland Bindings 1.0.4.1 Changes

The main change in this release is to synchronise with Redland 1.0.4 (Redland 1.0.4 release Notes) and provide some other minor fixes.

Packaging and Configuration Changes

Now using Subversion for version control and the Redland bindings installation instructions explain how to get Redland from Subversion.

C# bindings changes

Return null in more cases when a redland function returns 0/NULL for a function result..

Java bindings changes

Rename the SWIG accessor java functions for the constants which changed in some previous SWIG verison.

Perl bindings changes

No changes.

PHP bindings changes

No changes.

Python bindings changes

Fix module cleanup to ensure Redland.librdf_free_world lives till the end.

NS Class: Rename method node and local variables to __-prefixed names less likely to be used in a namespace.

Edit to allow omitting a literal language and make the default work with the updated typed literal fix in Redland 1.0.3

Ruby bindings changes

Build fixes for newer SWIG.

Tcl bindings changes

Update build configuration to record redland name/version correctly.

Redland Bindings 1.0.3.1 Changes

The main changes in this release are:

Synchronises with Redland 1.0.3 (Redland 1.0.3 release Notes)

Many fixes across multiple binding languages.

Version Control change: Redland Bindings will be switching to use Subversion for version control after the 1.0.2.1 release. Please check the Redland Subversion site for the latest status or the online Redland Bindings installation notes for the Redland Bindings specific subversion installation information.

Packaging and Configuration Changes

The build now generates a bindings.rdf DOAP file.

The autogen.sh script for building from a soruce code checkout was revamped to be more modular.

RPM spec file was updated. It now defines perl_sitearch, python_libdir, ruby_dir and ruby_libdir at RPM build time. The build requirements were split out and now declare minimum versions. Uses newer %configure and %{__make} macros and License header field.

C# bindings changes

Namespace fixes patch from John Barstow.

Update nunit console to newer.

Update C# syntax for Mono 1.8.x+.

Java bindings changes

No changes.

Perl bindings changes

QueryResults.to_string: return boolean format results.

Storage constructor: Improve storage options handling by allowing a perl hash options in addition to the current form of a string of redland options. Patch from Kjetil Kjernsmo.

PHP bindings changes

Insert phpinfo and module shutdown using SWIG alone which might work better.

Python bindings changes

  • win32 fixes
  • Model.load returns a boolean
  • Parser.parse_into_model and Parser.parse_string_into_model now return boolean success/failure
  • Improve default arguments for Parser and Serializer convienence classes, keeping the same defaults
  • Added test testSPARQLQueryTwiceOverwriteVar which fails due to current Rasqal implementation.
  • Remove use of SWIGEXPORT macro which breaks on newer SWIGs
  • World.__del__: Added hack to prevent death if python destroys the Redland module before the RDF module. Fixes Issue #0000044
  • URI.__hash__: Use hash of str(self) to make a working URI hash allowing Redland URIs to be stored in Python dicts. Fixes Issue #0000047
  • QueryResults.make_results_hash, QueryResults.get_binding_value and QueryResults.get_binding_value_by_name: Check for a None value and set it in the results correctly. Fixes Issue #0000059
  • Parser.parse_string_as_stream and Parser.parse_string_into_model: Convert a Python unicode string to the UTF-8 bytes Redland expects. Fixes Issue #0000061
  • Make Python exceptions RedlandError and RedlandWarning properly returned from the RDF module by importing them correctly from C. Fixes Issue #0000068
  • QueryResults.to_file and QueryResults.to_string now use the default format when given None.

Ruby bindings changes

  • Remove mention of log4r not really ever used
  • Serializer class method model_to_string added.
  • Query class method initialize - add missing base_uri arg
  • QueryResults class: added, separate from query class.
  • Statement class method ==(other) added
  • Model class method query_execute added
  • Parser class: Use rdfxml as parser name
  • Resource class method initialize: Make it work with a Uri argument. Fixes Issue #0000048.
  • Model class method get_resource): Handle find returning nil for no result. Fixes Issue #0000049

Tcl bindings changes

No changes.

Redland Bindings 1.0.2.1 Changes

This release is mainly to synchronise with Redland 1.0.2

Perl bindings changes

Query results are now serialized to the latest SPARQL XML format.

A $VERSION variable is exported by the perl binding so that you can do use RDF::Redland 1.00_02 to ensure you get a certain version or newer.

Node class method new_literal modified to accept several classes of perl URI and fixed to promote them correctly to a redland URI.

Python bindings changes

Query results are now serialized to the latest SPARQL XML format.

Ruby bindings changes

Update the bindings for newer SWIG and re-order requires to make irb -r rdf/redland work (aredridel)

Redland Bindings 1.0.1.1 Changes

General Changes

The query demonstrations written in Perl now use the revised SPARQL syntax.

C# bindings changes

No changes.

Objective-C / Cocoa bindings changes

No changes.

Perl bindings changes

Perl. Added RDF::Redland methods set_log_handler and reset_log_handler to get structured error messages. Prefer this to the older handler.

Perl. Added convienience Node subclasses RDF::Redland::URINode, RDF::Redland::XMLLiteralNode, RDF::Redland::BlankNode and RDF::Redland::LiteralNode

PHP bindings changes

When returning NULL librdf_node* objects, convert them also to a PHP null.

Python bindings changes

Serializer class gains set_namespace method.

Adjust Node, Statement class comparisons to not assume the other parameter is of the right type. Remove 'return' from constructors. (Daniel Larsson).

Ruby bindings changes

Generate html documentation using rdoc (Nikolas Coukouma).

Tcl bindings changes

No changes.

Redland Bindings 1.0.0.2 Changes

General Changes

Removed bogus C include of the ../librdf dir from all bindings build; always just use whatever redland-config --cflags returns.

Perl bindings changes

Added methods for returning query results as RDF graphs, boolean results and as a syntax format such as RDF/XML for graphs, SPARQL Variable Binding Results XML Format for bindings. .

The error handling was altered for parsing methods class RDF::Redland::Model method load, class RDF::Redland::Parser methods parse_into_model and parse_string_into_model which now take an optional handler parameter that is a subroutine handler providing detailed log information. This can be used to capture or store detailed info on possibly multiple problems in parsing.

PHP bindings changes

Fix for swig calling zend_rsrc_list_get_rsrc_type incorrectly. Added PHP_MINFO_FUNCTION to report that Redland was loaded, the version of redland and the PHP bindings.

Python bindings changes

Change the way that redland errors and warnings are reported. There are now two choices. By default warnings are now generated immediately as a Python PyRedland_Warning warning. The first error generated is saved and thrown as an PyRedland_Error exception after the redland function returns. If multiple errors are generated, the remaining ones are left to the default redland error handler, which prints them to stderr.

The alternative is in parsing methods model.load, parser.parse_into_model and parser.parse_string_into_model which now take an optional handler parameter that is a subroutine handler providing detailed log information.

This change has a disadvantage in no longer allowing user-registration of callbacks but it does seem to work better with Python than the former mechanism of python calling C calling Python.

Redland Bindings 1.0.0.1 Changes

The main changes for this release are to provide additional query results formats, in Python only at present and to synchronise with Redland 1.0.0

C# bindings changes

Correct marshalling .NET strings to and from UTF-8 inside Redland correctly. (Edd Dumbill)

Improve and correct the destruction of internal iterator objects (Edd Dumbill)

Use HandleRef to improve the references to redland World to prevent premature destruction of redland objects. (Edd Dumbill)

See the csharp/ChangeLog in the source tree for more details of these changes.

Objective-C / Cocoa bindings changes

This binding is for the Objective-C (Obj-C) language with the Cocoa Framework on the Apple OSX platform. It was created and is developed by René Puls who provides it at the Cocoa Bindings for Redland site

Perl bindings changes

No changes.

PHP bindings changes

No changes.

Python bindings changes

Added convienience classes for making RDQL and SPARQL queries. Added methods for returning query results as RDF graphs and boolean results. Added unittests for those.

Ruby bindings changes

Updated to rdf-redland 0.5.3.1 and made the installation work standalone from ruby gem. Fixed some test cases so the testsuite passes now.

Tcl bindings changes

No changes.

Redland Bindings 0.9.19.1 Changes

Redland binding's License was changed from LGPL 2.1/MPL 1.1 to LGPL 2.1/Apache 2 (except for the C# binding).

Rebuild for Redland 0.9.19

General Changes

Fixes to lose Makefile use of $< syntax for better make(1) portability.

configure was updated to try harder to find Java JNI headers, looking in $JAVA_HOME, or using --with-jdk argument.

C# binding changes

Assign the logging delegate to a private member to stop it being prematurely garbage collected. (Edd Dumbill)

Perl binding changes

Rewrote $uri=$uri->{URI} style code to prevent premature object destruction.

Class Model: Added to_string() method.

Classes Query, QueryResults: Made documentation and examples to match the code.

PHP binding changes

Added a typemap to provide a proper PHP ZVAL_NULL value when returning a NULL librdf_stream* or librdf_iterator* object pointer, rather than a swig-typed NULL pointer.

Python binding changes

Rewrote uri=uri._reduri style code to prevent premature object destruction.

Class Model: Added method to_string.

Class Node: Documented literal language and other literal_language method dictionary keys.

Redland Bindings 0.9.18-1 Changes

Rebuild for Redland 0.9.18 - no API changes

Redland Bindings 0.9.17-1 Changes

This is the first release of Redland Bindings separate from Redland and includes the following changes compared to the language bindings in Redland 0.9.16

General Changes

The main change is to split the API that Redland exports in the redland package from the language specific parts in the redland-bindings package.

For most of the language bindings, the interface between them is using the swig interface generator tool. This is now defined by the Redland.i file provided by the redland package (in binary packages inside redland-devel rpm or librdf-dev debs). This can also be found via redland-config --swig and then used to generate the C wrappers for the bindings. There may be need for language-specific changes which can be used via #included .i files triggered by calling swig and the C compiler with defines like -DREDLAND_PRE_I to #include redland-pre.i from the Redland.i.

The last paragraph does not apply to C# (Redland#) which uses the built in P/Invoke feature of the language and runtime to call the Redland functions directly.

Packaging changes

C# API (Redland#) Changes

This is an entirely new API for 0.9.17 originally created by Cesar Lopez Nataren. It was updated by Dave Beckett to work with the released Mono 1.0 and substantially improved by Edd Dumbill. Changes since Cesar's version are given in detail in the csharp directory ChangeLog but include:

  • Namespace changed from Rdf to Redland
  • Added marshalling of strings between Redland and Redland#
  • Freeing of native Redland objects by implementing the C# IDisposable interface, the Dispose method
  • Query and QueryResults Classes: Added for new Redland 0.9.17 librdf_query and librdf_query_results classes.
  • Added strong naming of Redland.dll
  • Class Model. Added methods Execute, GetContexts, GetFeature, SetFeature, Load.
  • Class World. Updated to use new Redland 0.9.17 logging API especially for parsing errors and warnings
  • Class Parser: ParserError for parsing exceptions
  • Classes Errors, Locator, LogMessage: Added for wrapping structured error messages returned from parsing.
  • Classes Node, Statement, Uri: Added Equals, operator==, operator !=
  • Classes Stream and Iterator: Fixes for the IEnumerable interface
  • Class Node: Added methods for types - Type, IsResource, IsLiteral, IsBlank
  • Class Node: Added method Uri.
  • Fixed handling of null / IntPtr.Zero in several methods

Java API Changes

This API has not been updated for all Redland 0.9.17 changes.

Class Statement. Added equals method.

Perl API changes

This API has been updated for all Redland 0.9.17 changes.

  • Class Statement. Added equals method.
  • Classes Query, QueryResults: Added for new Redland 0.9.17 librdf_query and librdf_query_results classes.
  • Class Model: Added execute method.

PHP API Changes

No changes needed as this is a bare API directly using Redland functions.

Added some PHP 4.3 compatible defines to the test program.

Python API changes

This API has been updated for all Redland 0.9.17 changes. The main changes are as follows:

  • Another attempt to return errors and warnings from parsing better.
  • Class Model. Added new method load.
    Added new method execute to invoke querying on a model.
  • Class NS: Copy librdf_node each time since sharing the C pointers is wrong.
  • Class Parser. Method parse_string_as_stream example fixed to show the required base_uri parameter.
  • Clases Query, QueryResults: Added for new Redland 0.9.17 librdf_query, librdf_query_results including unit tests (Matt Biddulph)
  • Class Statement. Added equality and inequality operators.
    Added matches operator for comparing an incomplete statement with None values against a complete one
  • Class TurtleParser, NTriplesParser: Added convenience classes to create parsers for the Turtle and N-Triples syntaxes.(Matt Biddulph)

Ruby API changes

Replaced with a fuller API rdf-redland written by by Dominic Sisneros. See the rdf-redland project site.

This API has not been updated for all Redland 0.9.17 changes but may have newer version at the URI above.

Class statement. Added == operator.

Tcl API changes

No changes needed as this is a bare API directly using Redland functions.


Copyright (C) 2004-2013 Dave Beckett
Copyright (C) 2004-2005 University of Bristol