redland-bindings-1.0.17.1+dfsg/0000755000175000017500000000000012333525246015321 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/Makefile.in0000644000175000017500000006631412333525224017374 0ustar dajobedajobe# 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_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 ChangeLog.12 ChangeLog.13 \ 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.17.1+dfsg/ruby/0000755000175000017500000000000012333525246016302 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/ruby/Makefile.in0000644000175000017500000005763412333525224020362 0ustar dajobedajobe# 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_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) \ jquery-1.7.2.js 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/$@ echo "Install JQuery full source replacing rdoc's minimized" cp jquery-1.7.2.js $(RDOC_DIR)/js/jquery.js 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.17.1+dfsg/ruby/redland_wrap.c0000644000175000017500000112416511776152551021127 0ustar dajobedajobe/* ---------------------------------------------------------------------------- * 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.17.1+dfsg/ruby/test/0000755000175000017500000000000012333525246017261 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/ruby/test/test_store.rb0000644000175000017500000000230311776152534022005 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/Makefile.in0000644000175000017500000003217312333525224021330 0ustar dajobedajobe# 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_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.17.1+dfsg/ruby/test/test_rdf.rb0000644000175000017500000000152611776152534021432 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/test_model.rb0000644000175000017500000001157411776163726021770 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/triples.rdf0000644000175000017500000000227610406177662021453 0ustar dajobedajobe 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.17.1+dfsg/ruby/test/test_serializer.rb0000644000175000017500000000305011776152534023022 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/test_uri.rb0000644000175000017500000000132111776152534021447 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/one.nt0000644000175000017500000000007711456140765020415 0ustar dajobedajobe "2334" . redland-bindings-1.0.17.1+dfsg/ruby/test/test_node.rb0000644000175000017500000000436611776152534021611 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/Makefile.am0000644000175000017500000000334411776151670021327 0ustar dajobedajobe# -*- 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.17.1+dfsg/ruby/test/test_query.rb0000644000175000017500000001334111776152534022022 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/test_parser.rb0000644000175000017500000001414711776152545022160 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/test_rdfs_resource.rb0000644000175000017500000000370611776152534023526 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/ical.rdf0000644000175000017500000003720610406177662020702 0ustar dajobedajobe 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.17.1+dfsg/ruby/test/test_resource.rb0000644000175000017500000000754211776152534022512 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/test/README0000644000175000017500000000031710406177662020146 0ustar dajobedajobeThese 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.17.1+dfsg/ruby/test/test_statement.rb0000644000175000017500000000116011776152534022655 0ustar dajobedajoberequire '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.17.1+dfsg/ruby/jquery-1.7.2.js0000644000175000017500000075572112333525121020633 0ustar dajobedajobe/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Wed Mar 21 12:46:34 2012 -0700 */ (function( window, undefined ) { // Use the correct document accordingly with window argument (sandbox) var document = window.document, navigator = window.navigator, location = window.location; var jQuery = (function() { // Define a local copy of jQuery var jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); }, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // A central reference to the root jQuery(document) rootjQuery, // A simple way to check for HTML strings or ID strings // Prioritize #id over to avoid XSS via location.hash (#9521) quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, // Check if a string has a non-whitespace character in it rnotwhite = /\S/, // Used for trimming whitespace trimLeft = /^\s+/, trimRight = /\s+$/, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, // JSON RegExp rvalidchars = /^[\],:{}\s]*$/, rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, // Useragent RegExp rwebkit = /(webkit)[ \/]([\w.]+)/, ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/, rmsie = /(msie) ([\w.]+)/, rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/, // Matches dashed string for camelizing rdashAlpha = /-([a-z]|[0-9])/ig, rmsPrefix = /^-ms-/, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return ( letter + "" ).toUpperCase(); }, // Keep a UserAgent string for use with jQuery.browser userAgent = navigator.userAgent, // For matching the engine and version of the browser browserMatch, // The deferred used on DOM ready readyList, // The ready event handler DOMContentLoaded, // Save a reference to some core methods toString = Object.prototype.toString, hasOwn = Object.prototype.hasOwnProperty, push = Array.prototype.push, slice = Array.prototype.slice, trim = String.prototype.trim, indexOf = Array.prototype.indexOf, // [[Class]] -> type pairs class2type = {}; jQuery.fn = jQuery.prototype = { constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem, ret, doc; // Handle $(""), $(null), or $(undefined) if ( !selector ) { return this; } // Handle $(DOMElement) if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; } // The body element only exists once, optimize finding it if ( selector === "body" && !context && document.body ) { this.context = document; this[0] = document.body; this.selector = selector; this.length = 1; return this; } // Handle HTML strings if ( typeof selector === "string" ) { // Are we dealing with HTML string or an ID? if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = quickExpr.exec( selector ); } // Verify a match, and that no context was specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; doc = ( context ? context.ownerDocument || context : document ); // If a single string is passed in and it's a single tag // just do a createElement and skip the rest ret = rsingleTag.exec( selector ); if ( ret ) { if ( jQuery.isPlainObject( context ) ) { selector = [ document.createElement( ret[1] ) ]; jQuery.fn.attr.call( selector, context, true ); } else { selector = [ doc.createElement( ret[1] ) ]; } } else { ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes; } return jQuery.merge( this, selector ); // HANDLE: $("#id") } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The current version of jQuery being used jquery: "1.7.2", // The default length of a jQuery object is 0 length: 0, // The number of elements contained in the matched element set size: function() { return this.length; }, toArray: function() { return slice.call( this, 0 ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems, name, selector ) { // Build a new jQuery matched element set var ret = this.constructor(); if ( jQuery.isArray( elems ) ) { push.apply( ret, elems ); } else { jQuery.merge( ret, elems ); } // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; if ( name === "find" ) { ret.selector = this.selector + ( this.selector ? " " : "" ) + selector; } else if ( name ) { ret.selector = this.selector + "." + name + "(" + selector + ")"; } // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Attach the listeners jQuery.bindReady(); // Add the callback readyList.add( fn ); return this; }, eq: function( i ) { i = +i; return i === -1 ? this.slice( i ) : this.slice( i, i + 1 ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, slice: function() { return this.pushStack( slice.apply( this, arguments ), "slice", slice.call(arguments).join(",") ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ noConflict: function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Either a released hold or an DOMready/load event and not yet ready if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready, 1 ); } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.fireWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { jQuery( document ).trigger( "ready" ).off( "ready" ); } } }, bindReady: function() { if ( readyList ) { return; } readyList = jQuery.Callbacks( "once memory" ); // Catch cases where $(document).ready() is called after the // browser event has already occurred. if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready return setTimeout( jQuery.ready, 1 ); } // Mozilla, Opera and webkit nightlies currently support this event if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); // If IE event model is used } else if ( document.attachEvent ) { // ensure firing before onload, // maybe late but safe also for iframes document.attachEvent( "onreadystatechange", DOMContentLoaded ); // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); // If IE and not a frame // continually check to see if the document is ready var toplevel = false; try { toplevel = window.frameElement == null; } catch(e) {} if ( document.documentElement.doScroll && toplevel ) { doScrollCheck(); } } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, isWindow: function( obj ) { return obj != null && obj == obj.window; }, isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }, type: function( obj ) { return obj == null ? String( obj ) : class2type[ toString.call(obj) ] || "object"; }, isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } try { // Not own constructor property must be Object if ( obj.constructor && !hasOwn.call(obj, "constructor") && !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } } catch ( e ) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. var key; for ( key in obj ) {} return key === undefined || hasOwn.call( obj, key ); }, isEmptyObject: function( obj ) { for ( var name in obj ) { return false; } return true; }, error: function( msg ) { throw new Error( msg ); }, parseJSON: function( data ) { if ( typeof data !== "string" || !data ) { return null; } // Make sure leading/trailing whitespace is removed (IE can't handle it) data = jQuery.trim( data ); // Attempt to parse using the native JSON parser first if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); } // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( rvalidchars.test( data.replace( rvalidescape, "@" ) .replace( rvalidtokens, "]" ) .replace( rvalidbraces, "")) ) { return ( new Function( "return " + data ) )(); } jQuery.error( "Invalid JSON: " + data ); }, // Cross-browser xml parsing parseXML: function( data ) { if ( typeof data !== "string" || !data ) { return null; } var xml, tmp; try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML( data ); } } catch( e ) { xml = undefined; } if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }, noop: function() {}, // Evaluates a script in a global context // Workarounds based on findings by Jim Driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globalEval: function( data ) { if ( data && rnotwhite.test( data ) ) { // We use execScript on Internet Explorer // We use an anonymous function so that context is window // rather than jQuery in Firefox ( window.execScript || function( data ) { window[ "eval" ].call( window, data ); } )( data ); } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); }, // args is for internal usage only each: function( object, callback, args ) { var name, i = 0, length = object.length, isObj = length === undefined || jQuery.isFunction( object ); if ( args ) { if ( isObj ) { for ( name in object ) { if ( callback.apply( object[ name ], args ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.apply( object[ i++ ], args ) === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isObj ) { for ( name in object ) { if ( callback.call( object[ name ], name, object[ name ] ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { break; } } } } return object; }, // Use native String.trim function wherever possible trim: trim ? function( text ) { return text == null ? "" : trim.call( text ); } : // Otherwise use our own trimming functionality function( text ) { return text == null ? "" : text.toString().replace( trimLeft, "" ).replace( trimRight, "" ); }, // results is for internal usage only makeArray: function( array, results ) { var ret = results || []; if ( array != null ) { // The window, strings (and functions) also have 'length' // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 var type = jQuery.type( array ); if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { push.call( ret, array ); } else { jQuery.merge( ret, array ); } } return ret; }, inArray: function( elem, array, i ) { var len; if ( array ) { if ( indexOf ) { return indexOf.call( array, elem, i ); } len = array.length; i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { // Skip accessing in sparse arrays if ( i in array && array[ i ] === elem ) { return i; } } } return -1; }, merge: function( first, second ) { var i = first.length, j = 0; if ( typeof second.length === "number" ) { for ( var l = second.length; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var ret = [], retVal; inv = !!inv; // Go through the array, only saving the items // that pass the validator function for ( var i = 0, length = elems.length; i < length; i++ ) { retVal = !!callback( elems[ i ], i ); if ( inv !== retVal ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, key, ret = [], i = 0, length = elems.length, // jquery objects are treated as arrays isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; // Go through the array, translating each of the items to their if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } // Go through every key on the object, } else { for ( key in elems ) { value = callback( elems[ key ], key, arg ); if ( value != null ) { ret[ ret.length ] = value; } } } // Flatten any nested arrays return ret.concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { if ( typeof context === "string" ) { var tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind var args = slice.call( arguments, 2 ), proxy = function() { return fn.apply( context, args.concat( slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; return proxy; }, // Mutifunctional method to get and set values to a collection // The value/s can optionally be executed if it's a function access: function( elems, fn, key, value, chainable, emptyGet, pass ) { var exec, bulk = key == null, i = 0, length = elems.length; // Sets many values if ( key && typeof key === "object" ) { for ( i in key ) { jQuery.access( elems, fn, i, key[i], 1, emptyGet, value ); } chainable = 1; // Sets one value } else if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = pass === undefined && jQuery.isFunction( value ); if ( bulk ) { // Bulk operations only iterate when executing function values if ( exec ) { exec = fn; fn = function( elem, key, value ) { return exec.call( jQuery( elem ), value ); }; // Otherwise they run against the entire set } else { fn.call( elems, value ); fn = null; } } if ( fn ) { for (; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } } chainable = 1; } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }, now: function() { return ( new Date() ).getTime(); }, // Use of jQuery.browser is frowned upon. // More details: http://docs.jquery.com/Utilities/jQuery.browser uaMatch: function( ua ) { ua = ua.toLowerCase(); var match = rwebkit.exec( ua ) || ropera.exec( ua ) || rmsie.exec( ua ) || ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || []; return { browser: match[1] || "", version: match[2] || "0" }; }, sub: function() { function jQuerySub( selector, context ) { return new jQuerySub.fn.init( selector, context ); } jQuery.extend( true, jQuerySub, this ); jQuerySub.superclass = this; jQuerySub.fn = jQuerySub.prototype = this(); jQuerySub.fn.constructor = jQuerySub; jQuerySub.sub = this.sub; jQuerySub.fn.init = function init( selector, context ) { if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { context = jQuerySub( context ); } return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); }; jQuerySub.fn.init.prototype = jQuerySub.fn; var rootjQuerySub = jQuerySub(document); return jQuerySub; }, browser: {} }); // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); browserMatch = jQuery.uaMatch( userAgent ); if ( browserMatch.browser ) { jQuery.browser[ browserMatch.browser ] = true; jQuery.browser.version = browserMatch.version; } // Deprecated, use jQuery.browser.webkit instead if ( jQuery.browser.webkit ) { jQuery.browser.safari = true; } // IE doesn't match non-breaking spaces with \s if ( rnotwhite.test( "\xA0" ) ) { trimLeft = /^[\s\xA0]+/; trimRight = /[\s\xA0]+$/; } // All jQuery objects should point back to these rootjQuery = jQuery(document); // Cleanup functions for the document ready method if ( document.addEventListener ) { DOMContentLoaded = function() { document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); jQuery.ready(); }; } else if ( document.attachEvent ) { DOMContentLoaded = function() { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( document.readyState === "complete" ) { document.detachEvent( "onreadystatechange", DOMContentLoaded ); jQuery.ready(); } }; } // The DOM ready check for Internet Explorer function doScrollCheck() { if ( jQuery.isReady ) { return; } try { // If IE is used, use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ document.documentElement.doScroll("left"); } catch(e) { setTimeout( doScrollCheck, 1 ); return; } // and execute any waiting functions jQuery.ready(); } return jQuery; })(); // String to Object flags format cache var flagsCache = {}; // Convert String-formatted flags into Object-formatted ones and store in cache function createFlags( flags ) { var object = flagsCache[ flags ] = {}, i, length; flags = flags.split( /\s+/ ); for ( i = 0, length = flags.length; i < length; i++ ) { object[ flags[i] ] = true; } return object; } /* * Create a callback list using the following parameters: * * flags: an optional list of space-separated flags that will change how * the callback list behaves * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible flags: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( flags ) { // Convert flags from String-formatted to Object-formatted // (we check in cache first) flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {}; var // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = [], // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // Flag to know if list is currently firing firing, // First callback to fire (used internally by add and fireWith) firingStart, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // Add one or several callbacks to the list add = function( args ) { var i, length, elem, type, actual; for ( i = 0, length = args.length; i < length; i++ ) { elem = args[ i ]; type = jQuery.type( elem ); if ( type === "array" ) { // Inspect recursively add( elem ); } else if ( type === "function" ) { // Add if not in unique mode and callback is not in if ( !flags.unique || !self.has( elem ) ) { list.push( elem ); } } } }, // Fire callbacks fire = function( context, args ) { args = args || []; memory = !flags.memory || [ context, args ]; fired = true; firing = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) { memory = true; // Mark as halted break; } } firing = false; if ( list ) { if ( !flags.once ) { if ( stack && stack.length ) { memory = stack.shift(); self.fireWith( memory[ 0 ], memory[ 1 ] ); } } else if ( memory === true ) { self.disable(); } else { list = []; } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { var length = list.length; add( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away, unless previous // firing was halted (stopOnFalse) } else if ( memory && memory !== true ) { firingStart = length; fire( memory[ 0 ], memory[ 1 ] ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { var args = arguments, argIndex = 0, argLength = args.length; for ( ; argIndex < argLength ; argIndex++ ) { for ( var i = 0; i < list.length; i++ ) { if ( args[ argIndex ] === list[ i ] ) { // Handle firingIndex and firingLength if ( firing ) { if ( i <= firingLength ) { firingLength--; if ( i <= firingIndex ) { firingIndex--; } } } // Remove the element list.splice( i--, 1 ); // If we have some unicity property then // we only need to do this once if ( flags.unique ) { break; } } } } } return this; }, // Control if a given callback is in the list has: function( fn ) { if ( list ) { var i = 0, length = list.length; for ( ; i < length; i++ ) { if ( fn === list[ i ] ) { return true; } } } return false; }, // Remove all callbacks from the list empty: function() { list = []; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory || memory === true ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( stack ) { if ( firing ) { if ( !flags.once ) { stack.push( [ context, args ] ); } } else if ( !( flags.once && memory ) ) { fire( context, args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; var // Static reference to slice sliceDeferred = [].slice; jQuery.extend({ Deferred: function( func ) { var doneList = jQuery.Callbacks( "once memory" ), failList = jQuery.Callbacks( "once memory" ), progressList = jQuery.Callbacks( "memory" ), state = "pending", lists = { resolve: doneList, reject: failList, notify: progressList }, promise = { done: doneList.add, fail: failList.add, progress: progressList.add, state: function() { return state; }, // Deprecated isResolved: doneList.fired, isRejected: failList.fired, then: function( doneCallbacks, failCallbacks, progressCallbacks ) { deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks ); return this; }, always: function() { deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments ); return this; }, pipe: function( fnDone, fnFail, fnProgress ) { return jQuery.Deferred(function( newDefer ) { jQuery.each( { done: [ fnDone, "resolve" ], fail: [ fnFail, "reject" ], progress: [ fnProgress, "notify" ] }, function( handler, data ) { var fn = data[ 0 ], action = data[ 1 ], returned; if ( jQuery.isFunction( fn ) ) { deferred[ handler ](function() { returned = fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify ); } else { newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); } }); } else { deferred[ handler ]( newDefer[ action ] ); } }); }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { if ( obj == null ) { obj = promise; } else { for ( var key in promise ) { obj[ key ] = promise[ key ]; } } return obj; } }, deferred = promise.promise({}), key; for ( key in lists ) { deferred[ key ] = lists[ key ].fire; deferred[ key + "With" ] = lists[ key ].fireWith; } // Handle state deferred.done( function() { state = "resolved"; }, failList.disable, progressList.lock ).fail( function() { state = "rejected"; }, doneList.disable, progressList.lock ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( firstParam ) { var args = sliceDeferred.call( arguments, 0 ), i = 0, length = args.length, pValues = new Array( length ), count = length, pCount = length, deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? firstParam : jQuery.Deferred(), promise = deferred.promise(); function resolveFunc( i ) { return function( value ) { args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; if ( !( --count ) ) { deferred.resolveWith( deferred, args ); } }; } function progressFunc( i ) { return function( value ) { pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; deferred.notifyWith( promise, pValues ); }; } if ( length > 1 ) { for ( ; i < length; i++ ) { if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) { args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) ); } else { --count; } } if ( !count ) { deferred.resolveWith( deferred, args ); } } else if ( deferred !== firstParam ) { deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); } return promise; } }); jQuery.support = (function() { var support, all, a, select, opt, input, fragment, tds, events, eventName, i, isSupported, div = document.createElement( "div" ), documentElement = document.documentElement; // Preliminary tests div.setAttribute("className", "t"); div.innerHTML = "
a"; all = div.getElementsByTagName( "*" ); a = div.getElementsByTagName( "a" )[ 0 ]; // Can't get basic test support if ( !all || !all.length || !a ) { return {}; } // First batch of supports tests select = document.createElement( "select" ); opt = select.appendChild( document.createElement("option") ); input = div.getElementsByTagName( "input" )[ 0 ]; support = { // IE strips leading whitespace when .innerHTML is used leadingWhitespace: ( div.firstChild.nodeType === 3 ), // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE htmlSerialize: !!div.getElementsByTagName("link").length, // Get the style information from getAttribute // (IE uses .cssText instead) style: /top/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) hrefNormalized: ( a.getAttribute("href") === "/a" ), // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 opacity: /^0.55/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, // Make sure that if no value is specified for a checkbox // that it defaults to "on". // (WebKit defaults to "" instead) checkOn: ( input.value === "on" ), // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: opt.selected, // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", // Tests for enctype support on a form(#6743) enctype: !!document.createElement("form").enctype, // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>", // Will be defined later submitBubbles: true, changeBubbles: true, focusinBubbles: false, deleteExpando: true, noCloneEvent: true, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableMarginRight: true, pixelMargin: true }; // jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead jQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat"); // Make sure checked status is properly cloned input.checked = true; support.noCloneChecked = input.cloneNode( true ).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Test to see if it's possible to delete an expando from an element // Fails in Internet Explorer try { delete div.test; } catch( e ) { support.deleteExpando = false; } if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { div.attachEvent( "onclick", function() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) support.noCloneEvent = false; }); div.cloneNode( true ).fireEvent( "onclick" ); } // Check if a radio maintains its value // after being appended to the DOM input = document.createElement("input"); input.value = "t"; input.setAttribute("type", "radio"); support.radioValue = input.value === "t"; input.setAttribute("checked", "checked"); // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute( "name", "t" ); div.appendChild( input ); fragment = document.createDocumentFragment(); fragment.appendChild( div.lastChild ); // WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) support.appendChecked = input.checked; fragment.removeChild( input ); fragment.appendChild( div ); // Technique from Juriy Zaytsev // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/ // We only care about the case where non-standard event systems // are used, namely in IE. Short-circuiting here helps us to // avoid an eval call (in setAttribute) which can cause CSP // to go haywire. See: https://developer.mozilla.org/en/Security/CSP if ( div.attachEvent ) { for ( i in { submit: 1, change: 1, focusin: 1 }) { eventName = "on" + i; isSupported = ( eventName in div ); if ( !isSupported ) { div.setAttribute( eventName, "return;" ); isSupported = ( typeof div[ eventName ] === "function" ); } support[ i + "Bubbles" ] = isSupported; } } fragment.removeChild( div ); // Null elements to avoid leaks in IE fragment = select = opt = div = input = null; // Run tests that need a body at doc ready jQuery(function() { var container, outer, inner, table, td, offsetSupport, marginDiv, conMarginTop, style, html, positionTopLeftWidthHeight, paddingMarginBorderVisibility, paddingMarginBorder, body = document.getElementsByTagName("body")[0]; if ( !body ) { // Return for frameset docs that don't have a body return; } conMarginTop = 1; paddingMarginBorder = "padding:0;margin:0;border:"; positionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;"; paddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;"; style = "style='" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;"; html = "
" + "" + "
"; container = document.createElement("div"); container.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px"; body.insertBefore( container, body.firstChild ); // Construct the test element div = document.createElement("div"); container.appendChild( div ); // Check if table cells still have offsetWidth/Height when they are set // to display:none and there are still other visible table cells in a // table row; if so, offsetWidth/Height are not reliable for use when // determining if an element has been hidden directly using // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). // (only IE 8 fails this test) div.innerHTML = "
t
"; tds = div.getElementsByTagName( "td" ); isSupported = ( tds[ 0 ].offsetHeight === 0 ); tds[ 0 ].style.display = ""; tds[ 1 ].style.display = "none"; // Check if empty table cells still have offsetWidth/Height // (IE <= 8 fail this test) support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. For more // info see bug #3333 // Fails in WebKit before Feb 2011 nightlies // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right if ( window.getComputedStyle ) { div.innerHTML = ""; marginDiv = document.createElement( "div" ); marginDiv.style.width = "0"; marginDiv.style.marginRight = "0"; div.style.width = "2px"; div.appendChild( marginDiv ); support.reliableMarginRight = ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0; } if ( typeof div.style.zoom !== "undefined" ) { // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout // (IE < 8 does this) div.innerHTML = ""; div.style.width = div.style.padding = "1px"; div.style.border = 0; div.style.overflow = "hidden"; div.style.display = "inline"; div.style.zoom = 1; support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); // Check if elements with layout shrink-wrap their children // (IE 6 does this) div.style.display = "block"; div.style.overflow = "visible"; div.innerHTML = "
"; support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); } div.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility; div.innerHTML = html; outer = div.firstChild; inner = outer.firstChild; td = outer.nextSibling.firstChild.firstChild; offsetSupport = { doesNotAddBorder: ( inner.offsetTop !== 5 ), doesAddBorderForTableAndCells: ( td.offsetTop === 5 ) }; inner.style.position = "fixed"; inner.style.top = "20px"; // safari subtracts parent border width here which is 5px offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 ); inner.style.position = inner.style.top = ""; outer.style.overflow = "hidden"; outer.style.position = "relative"; offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 ); offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop ); if ( window.getComputedStyle ) { div.style.marginTop = "1%"; support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%"; } if ( typeof container.style.zoom !== "undefined" ) { container.style.zoom = 1; } body.removeChild( container ); marginDiv = div = container = null; jQuery.extend( support, offsetSupport ); }); return support; })(); var rbrace = /^(?:\{.*\}|\[.*\])$/, rmultiDash = /([A-Z])/g; jQuery.extend({ cache: {}, // Please use with caution uuid: 0, // Unique for each copy of jQuery on the page // Non-digits removed to match rinlinejQuery expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), // The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "embed": true, // Ban all objects except for Flash (which handle expandos) "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "applet": true }, hasData: function( elem ) { elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; return !!elem && !isEmptyDataObject( elem ); }, data: function( elem, name, data, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var privateCache, thisCache, ret, internalKey = jQuery.expando, getByName = typeof name === "string", // We have to handle DOM nodes and JS objects differently because IE6-7 // can't GC object references properly across the DOM-JS boundary isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is // attached directly to the object so GC can occur automatically cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows // the code to shortcut on the same path as a DOM node with no cache id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey, isEvents = name === "events"; // Avoid doing any more work than we need to when trying to get data on an // object that has no data at all if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) { return; } if ( !id ) { // Only DOM nodes need a new unique ID for each element since their data // ends up in the global cache if ( isNode ) { elem[ internalKey ] = id = ++jQuery.uuid; } else { id = internalKey; } } if ( !cache[ id ] ) { cache[ id ] = {}; // Avoids exposing jQuery metadata on plain JS objects when the object // is serialized using JSON.stringify if ( !isNode ) { cache[ id ].toJSON = jQuery.noop; } } // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } } privateCache = thisCache = cache[ id ]; // jQuery data() is stored in a separate object inside the object's internal data // cache in order to avoid key collisions between internal data and user-defined // data. if ( !pvt ) { if ( !thisCache.data ) { thisCache.data = {}; } thisCache = thisCache.data; } if ( data !== undefined ) { thisCache[ jQuery.camelCase( name ) ] = data; } // Users should not attempt to inspect the internal events object using jQuery.data, // it is undocumented and subject to change. But does anyone listen? No. if ( isEvents && !thisCache[ name ] ) { return privateCache.events; } // Check for both converted-to-camel and non-converted data property names // If a data property was specified if ( getByName ) { // First Try to find as-is property data ret = thisCache[ name ]; // Test for null|undefined property data if ( ret == null ) { // Try to find the camelCased property ret = thisCache[ jQuery.camelCase( name ) ]; } } else { ret = thisCache; } return ret; }, removeData: function( elem, name, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, i, l, // Reference to internal data cache key internalKey = jQuery.expando, isNode = elem.nodeType, // See jQuery.data for more information cache = isNode ? jQuery.cache : elem, // See jQuery.data for more information id = isNode ? elem[ internalKey ] : internalKey; // If there is already no cache entry for this object, there is no // purpose in continuing if ( !cache[ id ] ) { return; } if ( name ) { thisCache = pvt ? cache[ id ] : cache[ id ].data; if ( thisCache ) { // Support array or space separated string names for data keys if ( !jQuery.isArray( name ) ) { // try the string as a key before any manipulation if ( name in thisCache ) { name = [ name ]; } else { // split the camel cased version by spaces unless a key with the spaces exists name = jQuery.camelCase( name ); if ( name in thisCache ) { name = [ name ]; } else { name = name.split( " " ); } } } for ( i = 0, l = name.length; i < l; i++ ) { delete thisCache[ name[i] ]; } // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) { return; } } } // See jQuery.data for more information if ( !pvt ) { delete cache[ id ].data; // Don't destroy the parent cache unless the internal data object // had been the only thing left in it if ( !isEmptyDataObject(cache[ id ]) ) { return; } } // Browsers that fail expando deletion also refuse to delete expandos on // the window, but it will allow it on all other JS objects; other browsers // don't care // Ensure that `cache` is not a window object #10080 if ( jQuery.support.deleteExpando || !cache.setInterval ) { delete cache[ id ]; } else { cache[ id ] = null; } // We destroyed the cache and need to eliminate the expando on the node to avoid // false lookups in the cache for entries that no longer exist if ( isNode ) { // IE does not allow us to delete expando properties from nodes, // nor does it have a removeAttribute function on Document nodes; // we must handle all of these cases if ( jQuery.support.deleteExpando ) { delete elem[ internalKey ]; } else if ( elem.removeAttribute ) { elem.removeAttribute( internalKey ); } else { elem[ internalKey ] = null; } } }, // For internal use only. _data: function( elem, name, data ) { return jQuery.data( elem, name, data, true ); }, // A method for determining if a DOM node can handle the data expando acceptData: function( elem ) { if ( elem.nodeName ) { var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; if ( match ) { return !(match === true || elem.getAttribute("classid") !== match); } } return true; } }); jQuery.fn.extend({ data: function( key, value ) { var parts, part, attr, name, l, elem = this[0], i = 0, data = null; // Gets all values if ( key === undefined ) { if ( this.length ) { data = jQuery.data( elem ); if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { attr = elem.attributes; for ( l = attr.length; i < l; i++ ) { name = attr[i].name; if ( name.indexOf( "data-" ) === 0 ) { name = jQuery.camelCase( name.substring(5) ); dataAttr( elem, name, data[ name ] ); } } jQuery._data( elem, "parsedAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } parts = key.split( ".", 2 ); parts[1] = parts[1] ? "." + parts[1] : ""; part = parts[1] + "!"; return jQuery.access( this, function( value ) { if ( value === undefined ) { data = this.triggerHandler( "getData" + part, [ parts[0] ] ); // Try to fetch any internally stored data first if ( data === undefined && elem ) { data = jQuery.data( elem, key ); data = dataAttr( elem, key, data ); } return data === undefined && parts[1] ? this.data( parts[0] ) : data; } parts[1] = value; this.each(function() { var self = jQuery( this ); self.triggerHandler( "setData" + part, parts ); jQuery.data( this, key, value ); self.triggerHandler( "changeData" + part, parts ); }); }, null, value, arguments.length > 1, null, false ); }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); function dataAttr( elem, key, data ) { // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : jQuery.isNumeric( data ) ? +data : rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later jQuery.data( elem, key, data ); } else { data = undefined; } } return data; } // checks a cache object for emptiness function isEmptyDataObject( obj ) { for ( var name in obj ) { // if the public data object is empty, the private is still empty if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { continue; } if ( name !== "toJSON" ) { return false; } } return true; } function handleQueueMarkDefer( elem, type, src ) { var deferDataKey = type + "defer", queueDataKey = type + "queue", markDataKey = type + "mark", defer = jQuery._data( elem, deferDataKey ); if ( defer && ( src === "queue" || !jQuery._data(elem, queueDataKey) ) && ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) { // Give room for hard-coded callbacks to fire first // and eventually mark/queue something else on the element setTimeout( function() { if ( !jQuery._data( elem, queueDataKey ) && !jQuery._data( elem, markDataKey ) ) { jQuery.removeData( elem, deferDataKey, true ); defer.fire(); } }, 0 ); } } jQuery.extend({ _mark: function( elem, type ) { if ( elem ) { type = ( type || "fx" ) + "mark"; jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 ); } }, _unmark: function( force, elem, type ) { if ( force !== true ) { type = elem; elem = force; force = false; } if ( elem ) { type = type || "fx"; var key = type + "mark", count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 ); if ( count ) { jQuery._data( elem, key, count ); } else { jQuery.removeData( elem, key, true ); handleQueueMarkDefer( elem, type, "mark" ); } } }, queue: function( elem, type, data ) { var q; if ( elem ) { type = ( type || "fx" ) + "queue"; q = jQuery._data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !q || jQuery.isArray(data) ) { q = jQuery._data( elem, type, jQuery.makeArray(data) ); } else { q.push( data ); } } return q || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), fn = queue.shift(), hooks = {}; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } jQuery._data( elem, type + ".run", hooks ); fn.call( elem, function() { jQuery.dequeue( elem, type ); }, hooks ); } if ( !queue.length ) { jQuery.removeData( elem, type + "queue " + type + ".run", true ); handleQueueMarkDefer( elem, type, "queue" ); } } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, object ) { if ( typeof type !== "string" ) { object = type; type = undefined; } type = type || "fx"; var defer = jQuery.Deferred(), elements = this, i = elements.length, count = 1, deferDataKey = type + "defer", queueDataKey = type + "queue", markDataKey = type + "mark", tmp; function resolve() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } } while( i-- ) { if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) { count++; tmp.add( resolve ); } } resolve(); return defer.promise( object ); } }); var rclass = /[\n\t\r]/g, rspace = /\s+/, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, rclickable = /^a(?:rea)?$/i, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, getSetAttribute = jQuery.support.getSetAttribute, nodeHook, boolHook, fixSpecified; jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each(function() { jQuery.removeAttr( this, name ); }); }, prop: function( name, value ) { return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { name = jQuery.propFix[ name ] || name; return this.each(function() { // try/catch handles cases where IE balks (such as removing a property on window) try { this[ name ] = undefined; delete this[ name ]; } catch( e ) {} }); }, addClass: function( value ) { var classNames, i, l, elem, setClass, c, cl; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).addClass( value.call(this, j, this.className) ); }); } if ( value && typeof value === "string" ) { classNames = value.split( rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 ) { if ( !elem.className && classNames.length === 1 ) { elem.className = value; } else { setClass = " " + elem.className + " "; for ( c = 0, cl = classNames.length; c < cl; c++ ) { if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { setClass += classNames[ c ] + " "; } } elem.className = jQuery.trim( setClass ); } } } } return this; }, removeClass: function( value ) { var classNames, i, l, elem, className, c, cl; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).removeClass( value.call(this, j, this.className) ); }); } if ( (value && typeof value === "string") || value === undefined ) { classNames = ( value || "" ).split( rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 && elem.className ) { if ( value ) { className = (" " + elem.className + " ").replace( rclass, " " ); for ( c = 0, cl = classNames.length; c < cl; c++ ) { className = className.replace(" " + classNames[ c ] + " ", " "); } elem.className = jQuery.trim( className ); } else { elem.className = ""; } } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isBool = typeof stateVal === "boolean"; if ( jQuery.isFunction( value ) ) { return this.each(function( i ) { jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery( this ), state = stateVal, classNames = value.split( rspace ); while ( (className = classNames[ i++ ]) ) { // check each className given, space seperated list state = isBool ? state : !self.hasClass( className ); self[ state ? "addClass" : "removeClass" ]( className ); } } else if ( type === "undefined" || type === "boolean" ) { if ( this.className ) { // store className if set jQuery._data( this, "__className__", this.className ); } // toggle whole className this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " ", i = 0, l = this.length; for ( ; i < l; i++ ) { if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { return true; } } return false; }, val: function( value ) { var hooks, ret, isFunction, elem = this[0]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { return ret; } ret = elem.value; return typeof ret === "string" ? // handle most common string cases ret.replace(rreturn, "") : // handle cases where value is null/undef or number ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each(function( i ) { var self = jQuery(this), val; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, self.val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map(val, function ( value ) { return value == null ? "" : value + ""; }); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } }); } }); jQuery.extend({ valHooks: { option: { get: function( elem ) { // attributes.value is undefined in Blackberry 4.7 but // uses .value. See #6932 var val = elem.attributes.value; return !val || val.specified ? elem.value : elem.text; } }, select: { get: function( elem ) { var value, i, max, option, index = elem.selectedIndex, values = [], options = elem.options, one = elem.type === "select-one"; // Nothing was selected if ( index < 0 ) { return null; } // Loop through all the selected options i = one ? index : 0; max = one ? index + 1 : options.length; for ( ; i < max; i++ ) { option = options[ i ]; // Don't return options that are disabled or in a disabled optgroup if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } // Fixes Bug #2551 -- select.val() broken in IE after form.reset() if ( one && !values.length && options.length ) { return jQuery( options[ index ] ).val(); } return values; }, set: function( elem, value ) { var values = jQuery.makeArray( value ); jQuery(elem).find("option").each(function() { this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; }); if ( !values.length ) { elem.selectedIndex = -1; } return values; } } }, attrFn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function( elem, name, value, pass ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } if ( pass && name in jQuery.attrFn ) { return jQuery( elem )[ name ]( value ); } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); // All attributes are lowercase // Grab necessary hook if one is defined if ( notxml ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { elem.setAttribute( name, "" + value ); return value; } } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { ret = elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined return ret === null ? undefined : ret; } }, removeAttr: function( elem, value ) { var propName, attrNames, name, l, isBool, i = 0; if ( value && elem.nodeType === 1 ) { attrNames = value.toLowerCase().split( rspace ); l = attrNames.length; for ( ; i < l; i++ ) { name = attrNames[ i ]; if ( name ) { propName = jQuery.propFix[ name ] || name; isBool = rboolean.test( name ); // See #9699 for explanation of this approach (setting first, then removal) // Do not do this for boolean attributes (see #10870) if ( !isBool ) { jQuery.attr( elem, name, "" ); } elem.removeAttribute( getSetAttribute ? name : propName ); // Set corresponding property to false for boolean attributes if ( isBool && propName in elem ) { elem[ propName ] = false; } } } } }, attrHooks: { type: { set: function( elem, value ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( rtype.test( elem.nodeName ) && elem.parentNode ) { jQuery.error( "type property can't be changed" ); } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 // Reset value to it's default in case type is set after value // This is for element creation var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } }, // Use the value property for back compat // Use the nodeHook for button elements in IE6/7 (#1954) value: { get: function( elem, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.get( elem, name ); } return name in elem ? elem.value : null; }, set: function( elem, value, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.set( elem, value, name ); } // Does not return so that setAttribute is also used elem.value = value; } } }, propFix: { tabindex: "tabIndex", readonly: "readOnly", "for": "htmlFor", "class": "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable" }, prop: function( elem, name, value ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set properties on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); if ( notxml ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { return ( elem[ name ] = value ); } } else { if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { return elem[ name ]; } } }, propHooks: { tabIndex: { get: function( elem ) { // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ var attributeNode = elem.getAttributeNode("tabindex"); return attributeNode && attributeNode.specified ? parseInt( attributeNode.value, 10 ) : rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? 0 : undefined; } } } }); // Add the tabIndex propHook to attrHooks for back-compat (different case is intentional) jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex; // Hook for boolean attributes boolHook = { get: function( elem, name ) { // Align boolean attributes with corresponding properties // Fall back to attribute presence where some booleans are not supported var attrNode, property = jQuery.prop( elem, name ); return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ? name.toLowerCase() : undefined; }, set: function( elem, value, name ) { var propName; if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { // value is true since we know at this point it's type boolean and not false // Set boolean attributes to the same name and set the DOM property propName = jQuery.propFix[ name ] || name; if ( propName in elem ) { // Only set the IDL specifically if it already exists on the element elem[ propName ] = true; } elem.setAttribute( name, name.toLowerCase() ); } return name; } }; // IE6/7 do not support getting/setting some attributes with get/setAttribute if ( !getSetAttribute ) { fixSpecified = { name: true, id: true, coords: true }; // Use this for any attribute in IE6/7 // This fixes almost every IE6/7 issue nodeHook = jQuery.valHooks.button = { get: function( elem, name ) { var ret; ret = elem.getAttributeNode( name ); return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ? ret.nodeValue : undefined; }, set: function( elem, value, name ) { // Set the existing or create a new attribute node var ret = elem.getAttributeNode( name ); if ( !ret ) { ret = document.createAttribute( name ); elem.setAttributeNode( ret ); } return ( ret.nodeValue = value + "" ); } }; // Apply the nodeHook to tabindex jQuery.attrHooks.tabindex.set = nodeHook.set; // Set width and height to auto instead of 0 on empty string( Bug #8150 ) // This is for removals jQuery.each([ "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { set: function( elem, value ) { if ( value === "" ) { elem.setAttribute( name, "auto" ); return value; } } }); }); // Set contenteditable to false on removals(#10429) // Setting to empty string throws an error as an invalid value jQuery.attrHooks.contenteditable = { get: nodeHook.get, set: function( elem, value, name ) { if ( value === "" ) { value = "false"; } nodeHook.set( elem, value, name ); } }; } // Some attributes require a special call on IE if ( !jQuery.support.hrefNormalized ) { jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { get: function( elem ) { var ret = elem.getAttribute( name, 2 ); return ret === null ? undefined : ret; } }); }); } if ( !jQuery.support.style ) { jQuery.attrHooks.style = { get: function( elem ) { // Return undefined in the case of empty string // Normalize to lowercase since IE uppercases css property names return elem.style.cssText.toLowerCase() || undefined; }, set: function( elem, value ) { return ( elem.style.cssText = "" + value ); } }; } // Safari mis-reports the default selected property of an option // Accessing the parent's selectedIndex property fixes it if ( !jQuery.support.optSelected ) { jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { get: function( elem ) { var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } return null; } }); } // IE6/7 call enctype encoding if ( !jQuery.support.enctype ) { jQuery.propFix.enctype = "encoding"; } // Radios and checkboxes getter/setter if ( !jQuery.support.checkOn ) { jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { get: function( elem ) { // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified return elem.getAttribute("value") === null ? "on" : elem.value; } }; }); } jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); } } }); }); var rformElems = /^(?:textarea|input|select)$/i, rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/, rhoverHack = /(?:^|\s)hover(\.\S+)?\b/, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/, quickParse = function( selector ) { var quick = rquickIs.exec( selector ); if ( quick ) { // 0 1 2 3 // [ _, tag, id, class ] quick[1] = ( quick[1] || "" ).toLowerCase(); quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" ); } return quick; }, quickIs = function( elem, m ) { var attrs = elem.attributes || {}; return ( (!m[1] || elem.nodeName.toLowerCase() === m[1]) && (!m[2] || (attrs.id || {}).value === m[2]) && (!m[3] || m[3].test( (attrs[ "class" ] || {}).value )) ); }, hoverHack = function( events ) { return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" ); }; /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { add: function( elem, types, handler, data, selector ) { var elemData, eventHandle, events, t, tns, type, namespaces, handleObj, handleObjIn, quick, handlers, special; // Don't attach events to noData or text/comment nodes (allow plain objects tho) if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first events = elemData.events; if ( !events ) { elemData.events = events = {}; } eventHandle = elemData.handle; if ( !eventHandle ) { elemData.handle = eventHandle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space // jQuery(...).bind("mouseover mouseout", fn); types = jQuery.trim( hoverHack(types) ).split( " " ); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = tns[1]; namespaces = ( tns[2] || "" ).split( "." ).sort(); // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: tns[1], data: data, handler: handler, guid: handler.guid, selector: selector, quick: selector && quickParse( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first handlers = events[ type ]; if ( !handlers ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener/attachEvent if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, global: {}, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var elemData = jQuery.hasData( elem ) && jQuery._data( elem ), t, tns, type, origType, namespaces, origCount, j, events, special, handle, eventType, handleObj; if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = jQuery.trim( hoverHack( types || "" ) ).split(" "); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = origType = tns[1]; namespaces = tns[2]; // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector? special.delegateType : special.bindType ) || type; eventType = events[ type ] || []; origCount = eventType.length; namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null; // Remove matching events for ( j = 0; j < eventType.length; j++ ) { handleObj = eventType[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !namespaces || namespaces.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { eventType.splice( j--, 1 ); if ( handleObj.selector ) { eventType.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( eventType.length === 0 && origCount !== eventType.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { handle = elemData.handle; if ( handle ) { handle.elem = null; } // removeData also checks for emptiness and clears the expando if empty // so use it instead of delete jQuery.removeData( elem, [ "events", "handle" ], true ); } }, // Events that are safe to short-circuit if no handlers are attached. // Native DOM events should not be added, they may have inline handlers. customEvent: { "getData": true, "setData": true, "changeData": true }, trigger: function( event, data, elem, onlyHandlers ) { // Don't do events on text and comment nodes if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) { return; } // Event object or event type var type = event.type || event, namespaces = [], cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType; // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "!" ) >= 0 ) { // Exclusive events trigger only for the exact event (no namespaces) type = type.slice(0, -1); exclusive = true; } if ( type.indexOf( "." ) >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { // No jQuery handlers for this event type, and it can't have inline handlers return; } // Caller can pass in an Event, Object, or just an event type string event = typeof event === "object" ? // jQuery.Event object event[ jQuery.expando ] ? event : // Object literal new jQuery.Event( type, event ) : // Just the event type (string) new jQuery.Event( type ); event.type = type; event.isTrigger = true; event.exclusive = exclusive; event.namespace = namespaces.join( "." ); event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null; ontype = type.indexOf( ":" ) < 0 ? "on" + type : ""; // Handle a global trigger if ( !elem ) { // TODO: Stop taunting the data cache; remove global events and always attach to document cache = jQuery.cache; for ( i in cache ) { if ( cache[ i ].events && cache[ i ].events[ type ] ) { jQuery.event.trigger( event, data, cache[ i ].handle.elem, true ); } } return; } // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data != null ? jQuery.makeArray( data ) : []; data.unshift( event ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) eventPath = [[ elem, special.bindType || type ]]; if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode; old = null; for ( ; cur; cur = cur.parentNode ) { eventPath.push([ cur, bubbleType ]); old = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( old && old === elem.ownerDocument ) { eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]); } } // Fire handlers on the event path for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) { cur = eventPath[i][0]; event.type = eventPath[i][1]; handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Note that this is a bare JS function and not a jQuery handler handle = ontype && cur[ ontype ]; if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) { event.preventDefault(); } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Can't use an .isFunction() check here because IE6/7 fails that test. // Don't do default actions on window, that's where global variables be (#6170) // IE<9 dies on focus/blur to hidden element (#1486) if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method old = elem[ ontype ]; if ( old ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; elem[ type ](); jQuery.event.triggered = undefined; if ( old ) { elem[ ontype ] = old; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event || window.event ); var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []), delegateCount = handlers.delegateCount, args = [].slice.call( arguments, 0 ), run_all = !event.exclusive && !event.namespace, special = jQuery.event.special[ event.type ] || {}, handlerQueue = [], i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers that should run if there are delegated events // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && !(event.button && event.type === "click") ) { // Pregenerate a single jQuery object for reuse with .is() jqcur = jQuery(this); jqcur.context = this.ownerDocument || this; for ( cur = event.target; cur != this; cur = cur.parentNode || this ) { // Don't process events on disabled elements (#6911, #8165) if ( cur.disabled !== true ) { selMatch = {}; matches = []; jqcur[0] = cur; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; sel = handleObj.selector; if ( selMatch[ sel ] === undefined ) { selMatch[ sel ] = ( handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel ) ); } if ( selMatch[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, matches: matches }); } } } } // Add the remaining (directly-bound) handlers if ( handlers.length > delegateCount ) { handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) }); } // Run delegates first; they may want to stop propagation beneath us for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) { matched = handlerQueue[ i ]; event.currentTarget = matched.elem; for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) { handleObj = matched.matches[ j ]; // Triggered event must either 1) be non-exclusive and have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) { event.data = handleObj.data; event.handleObj = handleObj; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { event.result = ret; if ( ret === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, // Includes some event props shared by KeyEvent and MouseEvent // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 *** props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var eventDoc, doc, body, button = original.button, fromElement = original.fromElement; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add relatedTarget, if necessary if ( !event.relatedTarget && fromElement ) { event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, originalEvent = event, fixHook = jQuery.event.fixHooks[ event.type ] || {}, copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = jQuery.Event( originalEvent ); for ( i = copy.length; i; ) { prop = copy[ --i ]; event[ prop ] = originalEvent[ prop ]; } // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2) if ( !event.target ) { event.target = originalEvent.srcElement || document; } // Target should not be a text node (#504, Safari) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8) if ( event.metaKey === undefined ) { event.metaKey = event.ctrlKey; } return fixHook.filter? fixHook.filter( event, originalEvent ) : event; }, special: { ready: { // Make sure the ready event is setup setup: jQuery.bindReady }, load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { delegateType: "focusin" }, blur: { delegateType: "focusout" }, beforeunload: { setup: function( data, namespaces, eventHandle ) { // We only want to do this special case on windows if ( jQuery.isWindow( this ) ) { this.onbeforeunload = eventHandle; } }, teardown: function( namespaces, eventHandle ) { if ( this.onbeforeunload === eventHandle ) { this.onbeforeunload = null; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; // Some plugins are using, but it's undocumented/deprecated and will be removed. // The 1.7 special event interface should provide all the hooks needed now. jQuery.event.handle = jQuery.event.dispatch; jQuery.removeEvent = document.removeEventListener ? function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } } : function( elem, type, handle ) { if ( elem.detachEvent ) { elem.detachEvent( "on" + type, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; function returnFalse() { return false; } function returnTrue() { return true; } // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); // otherwise set the returnValue property of the original event to false (IE) } else { e.returnValue = false; } }, stopPropagation: function() { this.isPropagationStopped = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if stopPropagation exists run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // otherwise set the cancelBubble property of the original event to true (IE) e.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); }, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse }; // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var target = this, related = event.relatedTarget, handleObj = event.handleObj, selector = handleObj.selector, ret; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // IE submit delegation if ( !jQuery.support.submitBubbles ) { jQuery.event.special.submit = { setup: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Lazy-add a submit handler when a descendant form may potentially be submitted jQuery.event.add( this, "click._submit keypress._submit", function( e ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; if ( form && !form._submit_attached ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); form._submit_attached = true; } }); // return undefined since we don't need an event listener }, postDispatch: function( event ) { // If form was submitted by the user, bubble the event up the tree if ( event._submit_bubble ) { delete event._submit_bubble; if ( this.parentNode && !event.isTrigger ) { jQuery.event.simulate( "submit", this.parentNode, event, true ); } } }, teardown: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Remove delegated handlers; cleanData eventually reaps submit handlers attached above jQuery.event.remove( this, "._submit" ); } }; } // IE change delegation and checkbox/radio fix if ( !jQuery.support.changeBubbles ) { jQuery.event.special.change = { setup: function() { if ( rformElems.test( this.nodeName ) ) { // IE doesn't fire change on a check/radio until blur; trigger it on click // after a propertychange. Eat the blur-change in special.change.handle. // This still fires onchange a second time for check/radio after blur. if ( this.type === "checkbox" || this.type === "radio" ) { jQuery.event.add( this, "propertychange._change", function( event ) { if ( event.originalEvent.propertyName === "checked" ) { this._just_changed = true; } }); jQuery.event.add( this, "click._change", function( event ) { if ( this._just_changed && !event.isTrigger ) { this._just_changed = false; jQuery.event.simulate( "change", this, event, true ); } }); } return false; } // Delegated event; lazy-add a change handler on descendant inputs jQuery.event.add( this, "beforeactivate._change", function( e ) { var elem = e.target; if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) { jQuery.event.add( elem, "change._change", function( event ) { if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { jQuery.event.simulate( "change", this.parentNode, event, true ); } }); elem._change_attached = true; } }); }, handle: function( event ) { var elem = event.target; // Swallow native change events from checkbox/radio, we already triggered them above if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { return event.handleObj.handler.apply( this, arguments ); } }, teardown: function() { jQuery.event.remove( this, "._change" ); return rformElems.test( this.nodeName ); } }; } // Create "bubbling" focus and blur events if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler while someone wants focusin/focusout var attaches = 0, handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { if ( attaches++ === 0 ) { document.addEventListener( orig, handler, true ); } }, teardown: function() { if ( --attaches === 0 ) { document.removeEventListener( orig, handler, true ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // && selector != null // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event var handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( var type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, live: function( types, data, fn ) { jQuery( this.context ).on( types, this.selector, data, fn ); return this; }, die: function( types, fn ) { jQuery( this.context ).off( types, this.selector || "**", fn ); return this; }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn ); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { if ( this[0] ) { return jQuery.event.trigger( type, data, this[0], true ); } }, toggle: function( fn ) { // Save reference to arguments for access in closure var args = arguments, guid = fn.guid || jQuery.guid++, i = 0, toggler = function( event ) { // Figure out which function to execute var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); // Make sure that clicks stop event.preventDefault(); // and execute the function return args[ lastToggle ].apply( this, arguments ) || false; }; // link all the functions, so any of them can unbind this click handler toggler.guid = guid; while ( i < args.length ) { args[ i++ ].guid = guid; } return this.click( toggler ); }, hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); } }); jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { if ( fn == null ) { fn = data; data = null; } return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; if ( jQuery.attrFn ) { jQuery.attrFn[ name ] = true; } if ( rkeyEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks; } if ( rmouseEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks; } }); /*! * Sizzle CSS Selector Engine * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, expando = "sizcache" + (Math.random() + '').replace('.', ''), done = 0, toString = Object.prototype.toString, hasDuplicate = false, baseHasDuplicate = true, rBackslash = /\\/g, rReturn = /\r\n/g, rNonWord = /\W/; // Here we check if the JavaScript engine is using some sort of // optimization where it does not always call our comparision // function. If that is the case, discard the hasDuplicate value. // Thus far that includes Google Chrome. [0, 0].sort(function() { baseHasDuplicate = false; return 0; }); var Sizzle = function( selector, context, results, seed ) { results = results || []; context = context || document; var origContext = context; if ( context.nodeType !== 1 && context.nodeType !== 9 ) { return []; } if ( !selector || typeof selector !== "string" ) { return results; } var m, set, checkSet, extra, ret, cur, pop, i, prune = true, contextXML = Sizzle.isXML( context ), parts = [], soFar = selector; // Reset the position of the chunker regexp (start from head) do { chunker.exec( "" ); m = chunker.exec( soFar ); if ( m ) { soFar = m[3]; parts.push( m[1] ); if ( m[2] ) { extra = m[3]; break; } } } while ( m ); if ( parts.length > 1 && origPOS.exec( selector ) ) { if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { set = posProcess( parts[0] + parts[1], context, seed ); } else { set = Expr.relative[ parts[0] ] ? [ context ] : Sizzle( parts.shift(), context ); while ( parts.length ) { selector = parts.shift(); if ( Expr.relative[ selector ] ) { selector += parts.shift(); } set = posProcess( selector, set, seed ); } } } else { // Take a shortcut and set the context if the root selector is an ID // (but not if it'll be faster if the inner selector is an ID) if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { ret = Sizzle.find( parts.shift(), context, contextXML ); context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0]; } if ( context ) { ret = seed ? { expr: parts.pop(), set: makeArray(seed) } : Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set; if ( parts.length > 0 ) { checkSet = makeArray( set ); } else { prune = false; } while ( parts.length ) { cur = parts.pop(); pop = cur; if ( !Expr.relative[ cur ] ) { cur = ""; } else { pop = parts.pop(); } if ( pop == null ) { pop = context; } Expr.relative[ cur ]( checkSet, pop, contextXML ); } } else { checkSet = parts = []; } } if ( !checkSet ) { checkSet = set; } if ( !checkSet ) { Sizzle.error( cur || selector ); } if ( toString.call(checkSet) === "[object Array]" ) { if ( !prune ) { results.push.apply( results, checkSet ); } else if ( context && context.nodeType === 1 ) { for ( i = 0; checkSet[i] != null; i++ ) { if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) { results.push( set[i] ); } } } else { for ( i = 0; checkSet[i] != null; i++ ) { if ( checkSet[i] && checkSet[i].nodeType === 1 ) { results.push( set[i] ); } } } } else { makeArray( checkSet, results ); } if ( extra ) { Sizzle( extra, origContext, results, seed ); Sizzle.uniqueSort( results ); } return results; }; Sizzle.uniqueSort = function( results ) { if ( sortOrder ) { hasDuplicate = baseHasDuplicate; results.sort( sortOrder ); if ( hasDuplicate ) { for ( var i = 1; i < results.length; i++ ) { if ( results[i] === results[ i - 1 ] ) { results.splice( i--, 1 ); } } } } return results; }; Sizzle.matches = function( expr, set ) { return Sizzle( expr, null, null, set ); }; Sizzle.matchesSelector = function( node, expr ) { return Sizzle( expr, null, null, [node] ).length > 0; }; Sizzle.find = function( expr, context, isXML ) { var set, i, len, match, type, left; if ( !expr ) { return []; } for ( i = 0, len = Expr.order.length; i < len; i++ ) { type = Expr.order[i]; if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { left = match[1]; match.splice( 1, 1 ); if ( left.substr( left.length - 1 ) !== "\\" ) { match[1] = (match[1] || "").replace( rBackslash, "" ); set = Expr.find[ type ]( match, context, isXML ); if ( set != null ) { expr = expr.replace( Expr.match[ type ], "" ); break; } } } } if ( !set ) { set = typeof context.getElementsByTagName !== "undefined" ? context.getElementsByTagName( "*" ) : []; } return { set: set, expr: expr }; }; Sizzle.filter = function( expr, set, inplace, not ) { var match, anyFound, type, found, item, filter, left, i, pass, old = expr, result = [], curLoop = set, isXMLFilter = set && set[0] && Sizzle.isXML( set[0] ); while ( expr && set.length ) { for ( type in Expr.filter ) { if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { filter = Expr.filter[ type ]; left = match[1]; anyFound = false; match.splice(1,1); if ( left.substr( left.length - 1 ) === "\\" ) { continue; } if ( curLoop === result ) { result = []; } if ( Expr.preFilter[ type ] ) { match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); if ( !match ) { anyFound = found = true; } else if ( match === true ) { continue; } } if ( match ) { for ( i = 0; (item = curLoop[i]) != null; i++ ) { if ( item ) { found = filter( item, match, i, curLoop ); pass = not ^ found; if ( inplace && found != null ) { if ( pass ) { anyFound = true; } else { curLoop[i] = false; } } else if ( pass ) { result.push( item ); anyFound = true; } } } } if ( found !== undefined ) { if ( !inplace ) { curLoop = result; } expr = expr.replace( Expr.match[ type ], "" ); if ( !anyFound ) { return []; } break; } } } // Improper expression if ( expr === old ) { if ( anyFound == null ) { Sizzle.error( expr ); } else { break; } } old = expr; } return curLoop; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Utility function for retreiving the text value of an array of DOM nodes * @param {Array|Element} elem */ var getText = Sizzle.getText = function( elem ) { var i, node, nodeType = elem.nodeType, ret = ""; if ( nodeType ) { if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent || innerText for elements if ( typeof elem.textContent === 'string' ) { return elem.textContent; } else if ( typeof elem.innerText === 'string' ) { // Replace IE's carriage returns return elem.innerText.replace( rReturn, '' ); } else { // Traverse it's children for ( elem = elem.firstChild; elem; elem = elem.nextSibling) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } } else { // If no nodeType, this is expected to be an array for ( i = 0; (node = elem[i]); i++ ) { // Do not traverse comment nodes if ( node.nodeType !== 8 ) { ret += getText( node ); } } } return ret; }; var Expr = Sizzle.selectors = { order: [ "ID", "NAME", "TAG" ], match: { ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ }, leftMatch: {}, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function( elem ) { return elem.getAttribute( "href" ); }, type: function( elem ) { return elem.getAttribute( "type" ); } }, relative: { "+": function(checkSet, part){ var isPartStr = typeof part === "string", isTag = isPartStr && !rNonWord.test( part ), isPartStrNotTag = isPartStr && !isTag; if ( isTag ) { part = part.toLowerCase(); } for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { if ( (elem = checkSet[i]) ) { while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? elem || false : elem === part; } } if ( isPartStrNotTag ) { Sizzle.filter( part, checkSet, true ); } }, ">": function( checkSet, part ) { var elem, isPartStr = typeof part === "string", i = 0, l = checkSet.length; if ( isPartStr && !rNonWord.test( part ) ) { part = part.toLowerCase(); for ( ; i < l; i++ ) { elem = checkSet[i]; if ( elem ) { var parent = elem.parentNode; checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; } } } else { for ( ; i < l; i++ ) { elem = checkSet[i]; if ( elem ) { checkSet[i] = isPartStr ? elem.parentNode : elem.parentNode === part; } } if ( isPartStr ) { Sizzle.filter( part, checkSet, true ); } } }, "": function(checkSet, part, isXML){ var nodeCheck, doneName = done++, checkFn = dirCheck; if ( typeof part === "string" && !rNonWord.test( part ) ) { part = part.toLowerCase(); nodeCheck = part; checkFn = dirNodeCheck; } checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML ); }, "~": function( checkSet, part, isXML ) { var nodeCheck, doneName = done++, checkFn = dirCheck; if ( typeof part === "string" && !rNonWord.test( part ) ) { part = part.toLowerCase(); nodeCheck = part; checkFn = dirNodeCheck; } checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML ); } }, find: { ID: function( match, context, isXML ) { if ( typeof context.getElementById !== "undefined" && !isXML ) { var m = context.getElementById(match[1]); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [m] : []; } }, NAME: function( match, context ) { if ( typeof context.getElementsByName !== "undefined" ) { var ret = [], results = context.getElementsByName( match[1] ); for ( var i = 0, l = results.length; i < l; i++ ) { if ( results[i].getAttribute("name") === match[1] ) { ret.push( results[i] ); } } return ret.length === 0 ? null : ret; } }, TAG: function( match, context ) { if ( typeof context.getElementsByTagName !== "undefined" ) { return context.getElementsByTagName( match[1] ); } } }, preFilter: { CLASS: function( match, curLoop, inplace, result, not, isXML ) { match = " " + match[1].replace( rBackslash, "" ) + " "; if ( isXML ) { return match; } for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { if ( elem ) { if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) { if ( !inplace ) { result.push( elem ); } } else if ( inplace ) { curLoop[i] = false; } } } return false; }, ID: function( match ) { return match[1].replace( rBackslash, "" ); }, TAG: function( match, curLoop ) { return match[1].replace( rBackslash, "" ).toLowerCase(); }, CHILD: function( match ) { if ( match[1] === "nth" ) { if ( !match[2] ) { Sizzle.error( match[0] ); } match[2] = match[2].replace(/^\+|\s*/g, ''); // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec( match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); // calculate the numbers (first)n+(last) including if they are negative match[2] = (test[1] + (test[2] || 1)) - 0; match[3] = test[3] - 0; } else if ( match[2] ) { Sizzle.error( match[0] ); } // TODO: Move to normal caching system match[0] = done++; return match; }, ATTR: function( match, curLoop, inplace, result, not, isXML ) { var name = match[1] = match[1].replace( rBackslash, "" ); if ( !isXML && Expr.attrMap[name] ) { match[1] = Expr.attrMap[name]; } // Handle if an un-quoted value was used match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" ); if ( match[2] === "~=" ) { match[4] = " " + match[4] + " "; } return match; }, PSEUDO: function( match, curLoop, inplace, result, not ) { if ( match[1] === "not" ) { // If we're dealing with a complex expression, or a simple one if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { match[3] = Sizzle(match[3], null, null, curLoop); } else { var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); if ( !inplace ) { result.push.apply( result, ret ); } return false; } } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { return true; } return match; }, POS: function( match ) { match.unshift( true ); return match; } }, filters: { enabled: function( elem ) { return elem.disabled === false && elem.type !== "hidden"; }, disabled: function( elem ) { return elem.disabled === true; }, checked: function( elem ) { return elem.checked === true; }, selected: function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, parent: function( elem ) { return !!elem.firstChild; }, empty: function( elem ) { return !elem.firstChild; }, has: function( elem, i, match ) { return !!Sizzle( match[3], elem ).length; }, header: function( elem ) { return (/h\d/i).test( elem.nodeName ); }, text: function( elem ) { var attr = elem.getAttribute( "type" ), type = elem.type; // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) // use getAttribute instead to test this case return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null ); }, radio: function( elem ) { return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type; }, checkbox: function( elem ) { return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type; }, file: function( elem ) { return elem.nodeName.toLowerCase() === "input" && "file" === elem.type; }, password: function( elem ) { return elem.nodeName.toLowerCase() === "input" && "password" === elem.type; }, submit: function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && "submit" === elem.type; }, image: function( elem ) { return elem.nodeName.toLowerCase() === "input" && "image" === elem.type; }, reset: function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && "reset" === elem.type; }, button: function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && "button" === elem.type || name === "button"; }, input: function( elem ) { return (/input|select|textarea|button/i).test( elem.nodeName ); }, focus: function( elem ) { return elem === elem.ownerDocument.activeElement; } }, setFilters: { first: function( elem, i ) { return i === 0; }, last: function( elem, i, match, array ) { return i === array.length - 1; }, even: function( elem, i ) { return i % 2 === 0; }, odd: function( elem, i ) { return i % 2 === 1; }, lt: function( elem, i, match ) { return i < match[3] - 0; }, gt: function( elem, i, match ) { return i > match[3] - 0; }, nth: function( elem, i, match ) { return match[3] - 0 === i; }, eq: function( elem, i, match ) { return match[3] - 0 === i; } }, filter: { PSEUDO: function( elem, match, i, array ) { var name = match[1], filter = Expr.filters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } else if ( name === "contains" ) { return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0; } else if ( name === "not" ) { var not = match[3]; for ( var j = 0, l = not.length; j < l; j++ ) { if ( not[j] === elem ) { return false; } } return true; } else { Sizzle.error( name ); } }, CHILD: function( elem, match ) { var first, last, doneName, parent, cache, count, diff, type = match[1], node = elem; switch ( type ) { case "only": case "first": while ( (node = node.previousSibling) ) { if ( node.nodeType === 1 ) { return false; } } if ( type === "first" ) { return true; } node = elem; /* falls through */ case "last": while ( (node = node.nextSibling) ) { if ( node.nodeType === 1 ) { return false; } } return true; case "nth": first = match[2]; last = match[3]; if ( first === 1 && last === 0 ) { return true; } doneName = match[0]; parent = elem.parentNode; if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) { count = 0; for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { node.nodeIndex = ++count; } } parent[ expando ] = doneName; } diff = elem.nodeIndex - last; if ( first === 0 ) { return diff === 0; } else { return ( diff % first === 0 && diff / first >= 0 ); } } }, ID: function( elem, match ) { return elem.nodeType === 1 && elem.getAttribute("id") === match; }, TAG: function( elem, match ) { return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match; }, CLASS: function( elem, match ) { return (" " + (elem.className || elem.getAttribute("class")) + " ") .indexOf( match ) > -1; }, ATTR: function( elem, match ) { var name = match[1], result = Sizzle.attr ? Sizzle.attr( elem, name ) : Expr.attrHandle[ name ] ? Expr.attrHandle[ name ]( elem ) : elem[ name ] != null ? elem[ name ] : elem.getAttribute( name ), value = result + "", type = match[2], check = match[4]; return result == null ? type === "!=" : !type && Sizzle.attr ? result != null : type === "=" ? value === check : type === "*=" ? value.indexOf(check) >= 0 : type === "~=" ? (" " + value + " ").indexOf(check) >= 0 : !check ? value && result !== false : type === "!=" ? value !== check : type === "^=" ? value.indexOf(check) === 0 : type === "$=" ? value.substr(value.length - check.length) === check : type === "|=" ? value === check || value.substr(0, check.length + 1) === check + "-" : false; }, POS: function( elem, match, i, array ) { var name = match[2], filter = Expr.setFilters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } } } }; var origPOS = Expr.match.POS, fescape = function(all, num){ return "\\" + (num - 0 + 1); }; for ( var type in Expr.match ) { Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) ); } // Expose origPOS // "global" as in regardless of relation to brackets/parens Expr.match.globalPOS = origPOS; var makeArray = function( array, results ) { array = Array.prototype.slice.call( array, 0 ); if ( results ) { results.push.apply( results, array ); return results; } return array; }; // Perform a simple check to determine if the browser is capable of // converting a NodeList to an array using builtin methods. // Also verifies that the returned array holds DOM nodes // (which is not the case in the Blackberry browser) try { Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType; // Provide a fallback method if it does not work } catch( e ) { makeArray = function( array, results ) { var i = 0, ret = results || []; if ( toString.call(array) === "[object Array]" ) { Array.prototype.push.apply( ret, array ); } else { if ( typeof array.length === "number" ) { for ( var l = array.length; i < l; i++ ) { ret.push( array[i] ); } } else { for ( ; array[i]; i++ ) { ret.push( array[i] ); } } } return ret; }; } var sortOrder, siblingCheck; if ( document.documentElement.compareDocumentPosition ) { sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; return 0; } if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { return a.compareDocumentPosition ? -1 : 1; } return a.compareDocumentPosition(b) & 4 ? -1 : 1; }; } else { sortOrder = function( a, b ) { // The nodes are identical, we can exit early if ( a === b ) { hasDuplicate = true; return 0; // Fallback to using sourceIndex (in IE) if it's available on both nodes } else if ( a.sourceIndex && b.sourceIndex ) { return a.sourceIndex - b.sourceIndex; } var al, bl, ap = [], bp = [], aup = a.parentNode, bup = b.parentNode, cur = aup; // If the nodes are siblings (or identical) we can do a quick check if ( aup === bup ) { return siblingCheck( a, b ); // If no parents were found then the nodes are disconnected } else if ( !aup ) { return -1; } else if ( !bup ) { return 1; } // Otherwise they're somewhere else in the tree so we need // to build up a full list of the parentNodes for comparison while ( cur ) { ap.unshift( cur ); cur = cur.parentNode; } cur = bup; while ( cur ) { bp.unshift( cur ); cur = cur.parentNode; } al = ap.length; bl = bp.length; // Start walking down the tree looking for a discrepancy for ( var i = 0; i < al && i < bl; i++ ) { if ( ap[i] !== bp[i] ) { return siblingCheck( ap[i], bp[i] ); } } // We ended someplace up the tree so do a sibling check return i === al ? siblingCheck( a, bp[i], -1 ) : siblingCheck( ap[i], b, 1 ); }; siblingCheck = function( a, b, ret ) { if ( a === b ) { return ret; } var cur = a.nextSibling; while ( cur ) { if ( cur === b ) { return -1; } cur = cur.nextSibling; } return 1; }; } // Check to see if the browser returns elements by name when // querying by getElementById (and provide a workaround) (function(){ // We're going to inject a fake input element with a specified name var form = document.createElement("div"), id = "script" + (new Date()).getTime(), root = document.documentElement; form.innerHTML = ""; // Inject it into the root element, check its status, and remove it quickly root.insertBefore( form, root.firstChild ); // The workaround has to do additional checks after a getElementById // Which slows things down for other browsers (hence the branching) if ( document.getElementById( id ) ) { Expr.find.ID = function( match, context, isXML ) { if ( typeof context.getElementById !== "undefined" && !isXML ) { var m = context.getElementById(match[1]); return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : []; } }; Expr.filter.ID = function( elem, match ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); return elem.nodeType === 1 && node && node.nodeValue === match; }; } root.removeChild( form ); // release memory in IE root = form = null; })(); (function(){ // Check to see if the browser returns only elements // when doing getElementsByTagName("*") // Create a fake element var div = document.createElement("div"); div.appendChild( document.createComment("") ); // Make sure no comments are found if ( div.getElementsByTagName("*").length > 0 ) { Expr.find.TAG = function( match, context ) { var results = context.getElementsByTagName( match[1] ); // Filter out possible comments if ( match[1] === "*" ) { var tmp = []; for ( var i = 0; results[i]; i++ ) { if ( results[i].nodeType === 1 ) { tmp.push( results[i] ); } } results = tmp; } return results; }; } // Check to see if an attribute returns normalized href attributes div.innerHTML = ""; if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && div.firstChild.getAttribute("href") !== "#" ) { Expr.attrHandle.href = function( elem ) { return elem.getAttribute( "href", 2 ); }; } // release memory in IE div = null; })(); if ( document.querySelectorAll ) { (function(){ var oldSizzle = Sizzle, div = document.createElement("div"), id = "__sizzle__"; div.innerHTML = "

"; // Safari can't handle uppercase or unicode characters when // in quirks mode. if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { return; } Sizzle = function( query, context, extra, seed ) { context = context || document; // Only use querySelectorAll on non-XML documents // (ID selectors don't work in non-HTML documents) if ( !seed && !Sizzle.isXML(context) ) { // See if we find a selector to speed up var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { // Speed-up: Sizzle("TAG") if ( match[1] ) { return makeArray( context.getElementsByTagName( query ), extra ); // Speed-up: Sizzle(".CLASS") } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { return makeArray( context.getElementsByClassName( match[2] ), extra ); } } if ( context.nodeType === 9 ) { // Speed-up: Sizzle("body") // The body element only exists once, optimize finding it if ( query === "body" && context.body ) { return makeArray( [ context.body ], extra ); // Speed-up: Sizzle("#ID") } else if ( match && match[3] ) { var elem = context.getElementById( match[3] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id === match[3] ) { return makeArray( [ elem ], extra ); } } else { return makeArray( [], extra ); } } try { return makeArray( context.querySelectorAll(query), extra ); } catch(qsaError) {} // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { var oldContext = context, old = context.getAttribute( "id" ), nid = old || id, hasParent = context.parentNode, relativeHierarchySelector = /^\s*[+~]/.test( query ); if ( !old ) { context.setAttribute( "id", nid ); } else { nid = nid.replace( /'/g, "\\$&" ); } if ( relativeHierarchySelector && hasParent ) { context = context.parentNode; } try { if ( !relativeHierarchySelector || hasParent ) { return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); } } catch(pseudoError) { } finally { if ( !old ) { oldContext.removeAttribute( "id" ); } } } } return oldSizzle(query, context, extra, seed); }; for ( var prop in oldSizzle ) { Sizzle[ prop ] = oldSizzle[ prop ]; } // release memory in IE div = null; })(); } (function(){ var html = document.documentElement, matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector; if ( matches ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9 fails this) var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ), pseudoWorks = false; try { // This should fail with an exception // Gecko does not error, returns false instead matches.call( document.documentElement, "[test!='']:sizzle" ); } catch( pseudoError ) { pseudoWorks = true; } Sizzle.matchesSelector = function( node, expr ) { // Make sure that attribute selectors are quoted expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if ( !Sizzle.isXML( node ) ) { try { if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) { var ret = matches.call( node, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || !disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9, so check for that node.document && node.document.nodeType !== 11 ) { return ret; } } } catch(e) {} } return Sizzle(expr, null, null, [node]).length > 0; }; } })(); (function(){ var div = document.createElement("div"); div.innerHTML = "
"; // Opera can't find a second classname (in 9.6) // Also, make sure that getElementsByClassName actually exists if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { return; } // Safari caches class attributes, doesn't catch changes (in 3.2) div.lastChild.className = "e"; if ( div.getElementsByClassName("e").length === 1 ) { return; } Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function( match, context, isXML ) { if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { return context.getElementsByClassName(match[1]); } }; // release memory in IE div = null; })(); function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { var match = false; elem = elem[dir]; while ( elem ) { if ( elem[ expando ] === doneName ) { match = checkSet[elem.sizset]; break; } if ( elem.nodeType === 1 && !isXML ){ elem[ expando ] = doneName; elem.sizset = i; } if ( elem.nodeName.toLowerCase() === cur ) { match = elem; break; } elem = elem[dir]; } checkSet[i] = match; } } } function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { var match = false; elem = elem[dir]; while ( elem ) { if ( elem[ expando ] === doneName ) { match = checkSet[elem.sizset]; break; } if ( elem.nodeType === 1 ) { if ( !isXML ) { elem[ expando ] = doneName; elem.sizset = i; } if ( typeof cur !== "string" ) { if ( elem === cur ) { match = true; break; } } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { match = elem; break; } } elem = elem[dir]; } checkSet[i] = match; } } } if ( document.documentElement.contains ) { Sizzle.contains = function( a, b ) { return a !== b && (a.contains ? a.contains(b) : true); }; } else if ( document.documentElement.compareDocumentPosition ) { Sizzle.contains = function( a, b ) { return !!(a.compareDocumentPosition(b) & 16); }; } else { Sizzle.contains = function() { return false; }; } Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; var posProcess = function( selector, context, seed ) { var match, tmpSet = [], later = "", root = context.nodeType ? [context] : context; // Position selectors must be done after the filter // And so must :not(positional) so we move all PSEUDOs to the end while ( (match = Expr.match.PSEUDO.exec( selector )) ) { later += match[0]; selector = selector.replace( Expr.match.PSEUDO, "" ); } selector = Expr.relative[selector] ? selector + "*" : selector; for ( var i = 0, l = root.length; i < l; i++ ) { Sizzle( selector, root[i], tmpSet, seed ); } return Sizzle.filter( later, tmpSet ); }; // EXPOSE // Override sizzle attribute retrieval Sizzle.attr = jQuery.attr; Sizzle.selectors.attrMap = {}; jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.filters; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; })(); var runtil = /Until$/, rparentsprev = /^(?:parents|prevUntil|prevAll)/, // Note: This RegExp should be improved, or likely pulled from Sizzle rmultiselector = /,/, isSimple = /^.[^:#\[\.,]*$/, slice = Array.prototype.slice, POS = jQuery.expr.match.globalPOS, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend({ find: function( selector ) { var self = this, i, l; if ( typeof selector !== "string" ) { return jQuery( selector ).filter(function() { for ( i = 0, l = self.length; i < l; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }); } var ret = this.pushStack( "", "find", selector ), length, n, r; for ( i = 0, l = this.length; i < l; i++ ) { length = ret.length; jQuery.find( selector, this[i], ret ); if ( i > 0 ) { // Make sure that the results are unique for ( n = length; n < ret.length; n++ ) { for ( r = 0; r < length; r++ ) { if ( ret[r] === ret[n] ) { ret.splice(n--, 1); break; } } } } } return ret; }, has: function( target ) { var targets = jQuery( target ); return this.filter(function() { for ( var i = 0, l = targets.length; i < l; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector, false), "not", selector); }, filter: function( selector ) { return this.pushStack( winnow(this, selector, true), "filter", selector ); }, is: function( selector ) { return !!selector && ( typeof selector === "string" ? // If this is a positional selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". POS.test( selector ) ? jQuery( selector, this.context ).index( this[0] ) >= 0 : jQuery.filter( selector, this ).length > 0 : this.filter( selector ).length > 0 ); }, closest: function( selectors, context ) { var ret = [], i, l, cur = this[0]; // Array (deprecated as of jQuery 1.7) if ( jQuery.isArray( selectors ) ) { var level = 1; while ( cur && cur.ownerDocument && cur !== context ) { for ( i = 0; i < selectors.length; i++ ) { if ( jQuery( cur ).is( selectors[ i ] ) ) { ret.push({ selector: selectors[ i ], elem: cur, level: level }); } } cur = cur.parentNode; level++; } return ret; } // String var pos = POS.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : 0; for ( i = 0, l = this.length; i < l; i++ ) { cur = this[i]; while ( cur ) { if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { ret.push( cur ); break; } else { cur = cur.parentNode; if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { break; } } } } ret = ret.length > 1 ? jQuery.unique( ret ) : ret; return this.pushStack( ret, "closest", selectors ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return jQuery.inArray( this[0], jQuery( elem ) ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context ) : jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? all : jQuery.unique( all ) ); }, andSelf: function() { return this.add( this.prevObject ); } }); // A painfully simple check to see if an element is disconnected // from a document (should be improved, where feasible). function isDisconnected( node ) { return !node || !node.parentNode || node.parentNode.nodeType === 11; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return jQuery.nth( elem, 2, "nextSibling" ); }, prev: function( elem ) { return jQuery.nth( elem, 2, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.makeArray( elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( !runtil.test( name ) ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { ret = ret.reverse(); } return this.pushStack( ret, name, slice.call( arguments ).join(",") ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 ? jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : jQuery.find.matches(expr, elems); }, dir: function( elem, dir, until ) { var matched = [], cur = elem[ dir ]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { 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; } }); // Implement the identical functionality for filter and not function winnow( elements, qualifier, keep ) { // Can't pass null or undefined to indexOf in Firefox 4 // Set to 0 to skip string check qualifier = qualifier || 0; if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep(elements, function( elem, i ) { var retVal = !!qualifier.call( elem, i, elem ); return retVal === keep; }); } else if ( qualifier.nodeType ) { return jQuery.grep(elements, function( elem, i ) { return ( elem === qualifier ) === keep; }); } else if ( typeof qualifier === "string" ) { var filtered = jQuery.grep(elements, function( elem ) { return elem.nodeType === 1; }); if ( isSimple.test( qualifier ) ) { return jQuery.filter(qualifier, filtered, !keep); } else { qualifier = jQuery.filter( qualifier, filtered ); } } return jQuery.grep(elements, function( elem, i ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; }); } function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; } var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, rtagName = /<([\w:]+)/, rtbody = /]", "i"), // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /\/(java|ecma)script/i, rcleanScript = /^\s*", "" ], legend: [ 1, "
", "
" ], thead: [ 1, "", "
" ], tr: [ 2, "", "
" ], td: [ 3, "", "
" ], col: [ 2, "", "
" ], area: [ 1, "", "" ], _default: [ 0, "", "" ] }, safeFragment = createSafeFragment( document ); wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // IE can't serialize and

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.17.1+dfsg/docs/rdoc/js/0000755000175000017500000000000012342744623017616 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/js/darkfish.js0000644000175000017500000000616712333525243021754 0ustar dajobedajobe/** * * Darkfish Page Functions * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $ * * Author: Michael Granger * */ /* 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.17.1+dfsg/docs/rdoc/js/search.js0000644000175000017500000000000012333525243021402 0ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/js/navigation.js0000644000175000017500000000000012333525243022274 0ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/js/quicksearch.js0000644000175000017500000000504011776165535022466 0ustar dajobedajobe/** * * 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.17.1+dfsg/docs/rdoc/js/search_index.js0000644000175000017500000000000012333525243022571 0ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/js/searcher.js0000644000175000017500000000000012333525243021731 0ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/DC.html0000644000175000017500000001232312074643545020362 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdoc.css0000644000175000017500000003257512333525243020652 0ustar dajobedajobe/* * "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.17.1+dfsg/docs/rdoc/rdf/0000755000175000017500000000000011776166205017761 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/rdf/redland_rb.html0000644000175000017500000000372512074643545022751 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/0000755000175000017500000000000011776166205021372 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/rdf/redland/queryresults_rb.html0000644000175000017500000000310112074643545025524 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/schemas/0000755000175000017500000000000011776166204023014 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/rdf/redland/schemas/foaf_rb.html0000644000175000017500000000311012074643545025273 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/schemas/rdfs_rb.html0000644000175000017500000000314712074643545025330 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/schemas/owl_rb.html0000644000175000017500000000310712074643545025167 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/statement_rb.html0000644000175000017500000000307612074643544024753 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/parser_rb.html0000644000175000017500000000317512074643544024243 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/node_rb.html0000644000175000017500000000312212074643544023664 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/serializer_rb.html0000644000175000017500000000307712074643544025121 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/util_rb.html0000644000175000017500000000277512074643545023732 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/model_rb.html0000644000175000017500000000326212074643544024044 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/uri_rb.html0000644000175000017500000000307012074643544023540 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/stream_rb.html0000644000175000017500000000312512074643544024235 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/query_rb.html0000644000175000017500000000312612074643544024110 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/resource_rb.html0000644000175000017500000000307512074643544024575 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/dc_rb.html0000644000175000017500000000306712074643545023336 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/rdf/redland/store_rb.html0000644000175000017500000000307212074643544024077 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/index.html0000644000175000017500000005061412074643545021210 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/images/0000755000175000017500000000000011776165535020460 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/rdoc/images/brick.png0000644000175000017500000000070411776165535022261 0ustar dajobedajobe‰PNG  IHDRµú7êgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<VIDATÁ?HTàïݦ’^ÙŸÍ ju ¢±É¥±Á¢ÖpOhi/ˆ¢¡8Ô©½!‡p*Áˆ0ã‚ÐŽ¼²;ßûõ}E¬,tnîM2¾Ó|13 "by¢ÕK’$iõ^NFD±²Ð™Ý;«Ö4eZ|òU‡j|«ùjf^´’$ig)kYËbÚI’¤uõKÏêWâ¸øìPÛcJ'U>ê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.17.1+dfsg/docs/rdoc/images/bullet_toggle_plus.png0000644000175000017500000000032111776165535025055 0ustar dajobedajobe‰PNG  IHDRµú7êgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<cIDAT(ÏcøÏ€2ÐQÁ‘½ûÿïú¿åÿúÿ+ÿ/Þ‹EÁÞÿ‡àpÖ, ¶%ÖþÿćþOÀ¦` PýoǦ`1’ õØÌBrC6Öuýoê­ü_ò?ÝÀ„$Ù }J ƦgIEND®B`‚redland-bindings-1.0.17.1+dfsg/docs/rdoc/images/date.png0000644000175000017500000000116211776165535022103 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/bullet_toggle_minus.png0000644000175000017500000000031711776165535025232 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/page_green.png0000644000175000017500000000115511776165535023264 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/macFFBgHack.png0000644000175000017500000000031711776165535023203 0ustar dajobedajobe‰PNG  IHDRÄé…csBIT|dˆ pHYs  ÒÝ~ütEXtSoftwareAdobe Fireworks CS3˜ÖFtEXtCreation Time7/16/07Z§ÿ (IDATH‰íÍA0!´§U[ Gϱ½JJJJJJJJJÀYÑñüŸ…IEND®B`‚redland-bindings-1.0.17.1+dfsg/docs/rdoc/images/package.png0000644000175000017500000000152511776165535022564 0ustar dajobedajobe‰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&mì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óú#âLRi4ŠQ’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ßaì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.17.1+dfsg/docs/rdoc/images/zoom.png0000644000175000017500000000126411776165535022155 0ustar dajobedajobe‰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ñ}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¹œTŠŽ5+…ª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ÇÖØ`ÚÎ×nÞÓàÑÉÜ€â#äÙÒêì|î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ÜÁ…*Ö‘XŽb<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'všK 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ÑÓ-Õ×oÒÔÖ ØàÛâäÚ'ÜdÐåêÖìzÙáÝzßé&ÜãÞîùçüø(èCGo߉OÒä¢À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ç¶½7VÞ¿}c\ÛÄâÃuï;oà‰ý>oý—ÖüÓõu+],Eì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]¬ÃÂˤ€ObòÎ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£ÄŒ#Nìˆ-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‹[ÞîÞ!ù ,Ð ÿ %Ždižhª®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.17.1+dfsg/docs/rdoc/images/tag_green.png0000644000175000017500000000114511776165535023122 0ustar dajobedajobe‰PNG  IHDRóÿagAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<÷IDAT8Ë…“Ia†ûOÌ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.17.1+dfsg/docs/rdoc/images/brick_link.png0000644000175000017500000000137411776165535023302 0ustar dajobedajobe‰PNG  IHDRóÿagAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<ŽIDAT8ËmRÍKâQýÁÀü -f=³æ?ˆIZT‹v³ÒrpmªEDR-*"+RJ,+"ZLRô.JÅ¢Œ†>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øzzzžIpuu½^õõu90¾_¬9ªªªžººº>’ »»ûáÕ^WTT|ì ššš ÓéP]]ºº: Æ$¨¯¯ÿA‚æææ»WŸÄ¶Ãƒƒƒwâ{5nÛØØZZZÐÖÖ&cæÄ]Š5¬}EP^^þ®²²ò³Á`¸0¿,˃ÀcccãW/"Ö˜ãkXû §ùùY®j–IEND®B`‚redland-bindings-1.0.17.1+dfsg/docs/rdoc/images/ruby.png0000644000175000017500000000112011776165535022141 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/wrench.png0000644000175000017500000000114211776165535022452 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/page_white_text.png0000644000175000017500000000052611776165535024351 0ustar dajobedajobe‰PNG  IHDRµú7êgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<èIDATÁ1nSAÀÙÇž4A¸‚Ž‚(¡I“Sp.KPp"„ÒQÒAŠ7%Žƒßþû1Ó¢;ó°ó+„‹çýZ######Ïù´µ±DWk=æCù›?ù‘û|ÞÚX‚æjä˜9昇ì³ËÈSóekMs9¾•¯NNV«ÕG@ÿà¶‹kD)ÃÞ4¼hn­†“¡”éÐ.Q¦@ønJ)1]:À;1@ø¡ ÓT˜Þ:Àt€Ÿ¦išÞ:ˆö€I²$fM³ž-Ú+g”]îþ´•Ï^LvIEND®B`‚redland-bindings-1.0.17.1+dfsg/docs/rdoc/images/bug.png0000644000175000017500000000140611776165535021744 0ustar dajobedajobe‰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.17.1+dfsg/docs/rdoc/images/plugin.png0000644000175000017500000000111711776165535022464 0ustar dajobedajobe‰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¯ 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.17.1+dfsg/docs/rdoc/Redland/NodeIterator.html0000644000175000017500000003551712074643545024056 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/TripleStore.html0000644000175000017500000002532512074643545023727 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/RedlandError.html0000644000175000017500000001216012074643545024027 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/MergedModel.html0000644000175000017500000004537012074643545023641 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Stream.html0000644000175000017500000003631512074643545022707 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Uri.html0000644000175000017500000002773412074643545022220 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/FileStore.html0000644000175000017500000001457212074643545023351 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/NodeTypeError.html0000644000175000017500000001221212074643545024203 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Resource.html0000644000175000017500000007125412074643545023244 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/BNode.html0000644000175000017500000001651012074643545022436 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Node.html0000644000175000017500000010124012074643545022327 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/ContextParser.html0000644000175000017500000002304512074643545024251 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Literal.html0000644000175000017500000003174412074643545023051 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/QueryResults.html0000644000175000017500000007433412074643545024146 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Serializer.html0000644000175000017500000004737212074643545023572 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/RDFS.html0000644000175000017500000003240512074643545022206 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Util.html0000644000175000017500000002700512074643545022365 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/MemoryStore.html0000644000175000017500000001474212074643545023741 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Query.html0000644000175000017500000002613712074643545022562 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/World.html0000644000175000017500000002152612074643545022541 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Model.html0000644000175000017500000024102712074643545022512 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Namespace.html0000644000175000017500000001703212074643545023343 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/OWL.html0000644000175000017500000001505512074643545022113 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/HashOpen.html0000644000175000017500000001512212074643545023152 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/Statement.html0000644000175000017500000006277612074643545023432 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland/HashStore.html0000644000175000017500000003346412074643545023356 0ustar dajobedajobe 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.17.1+dfsg/docs/rdoc/Redland.html0000644000175000017500000002316612074643545021454 0ustar dajobedajobe 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.17.1+dfsg/docs/php.html0000644000175000017500000000307711033062714017725 0ustar dajobedajobe 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.17.1+dfsg/docs/pydoc/0000755000175000017500000000000010077001466017363 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/pydoc/RDF.html0000644000175000017500000031001012333525243020660 0ustar dajobedajobe 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)
__next__(self)
Move to the next object on the Iterator
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 = __next__(self)

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)
get_limit(self)
get_offset(self)
set_limit(self, limit)
set_offset(self, offset)

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)
get_limit(self)
get_offset(self)
set_limit(self, limit)
set_offset(self, offset)

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)
get_limit(self)
get_offset(self)
set_limit(self, limit)
set_offset(self, offset)

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)
__next__(self)
Move to the next Statement on the Stream
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 = __next__(self)

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-2014 Dave Beckett, Copyright 2000-2005 University of Bristol

redland-bindings-1.0.17.1+dfsg/docs/ruby.html0000644000175000017500000001351411033062714020114 0ustar dajobedajobe 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.17.1+dfsg/docs/README.html0000644000175000017500000000221012115553537020071 0ustar dajobedajobe 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-2013 Dave Beckett, Copyright (C) 2000-2005 University of Bristol

redland-bindings-1.0.17.1+dfsg/docs/python.html0000644000175000017500000001544511033062714020461 0ustar dajobedajobe 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.17.1+dfsg/docs/Makefile.am0000644000175000017500000001077512333525121020307 0ustar dajobedajobe# -*- 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 \ rdoc/js/darkfish.js rdoc/js/jquery.js rdoc/js/navigation.js rdoc/js/searcher.js \ rdoc/js/search_index.js rdoc/js/search.js 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 --new-blocklevel-tags nav,section,footer -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/js 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.17.1+dfsg/docs/perl.html0000644000175000017500000001735611033062714020105 0ustar dajobedajobe 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.17.1+dfsg/docs/fix-pod-xhtml0000755000175000017500000000321611033062714020671 0ustar dajobedajobe#!/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.17.1+dfsg/docs/README0000644000175000017500000000104212257622062017125 0ustar dajobedajobe 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-2013 Dave Beckett, Copyright (C) 2000-2005 University of Bristol redland-bindings-1.0.17.1+dfsg/docs/pod/0000755000175000017500000000000010077001462017023 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/pod/RDF/0000755000175000017500000000000010077001462017436 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/pod/RDF/Redland/0000755000175000017500000000000010244365415021016 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/docs/pod/RDF/Redland/Parser.html0000644000175000017500000001200111522705753023135 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Stream.html0000644000175000017500000000524311522705754023147 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Iterator.html0000644000175000017500000000610211522705753023477 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/URINode.html0000644000175000017500000000352711522705754023164 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Storage.html0000644000175000017500000001276111522705754023323 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/XMLLiteralNode.html0000644000175000017500000000350211522705754024473 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Node.html0000644000175000017500000002117512333525243022575 0ustar dajobedajobe 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 preferred. 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-2014 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.17.1+dfsg/docs/pod/RDF/Redland/LiteralNode.html0000644000175000017500000000410011522705754024105 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/QueryResults.html0000644000175000017500000001162111522705754024400 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/RSS.html0000644000175000017500000002247211522705754022366 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Serializer.html0000644000175000017500000000647711522705754024037 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/BlankNode.html0000644000175000017500000000340011522705754023542 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Query.html0000644000175000017500000000573111522705753023022 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Model.html0000644000175000017500000002500511522705753022751 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/URI.html0000644000175000017500000000543711612732317022353 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland/Statement.html0000644000175000017500000001071311522705754023656 0ustar dajobedajobe 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.17.1+dfsg/docs/pod/RDF/Redland.html0000644000175000017500000001330512333525243021704 0ustar dajobedajobe 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-2014 Dave Beckett, (C) Copyright 2000-2005 University of Bristol

redland-bindings-1.0.17.1+dfsg/RELEASE.html0000644000175000017500000011643012333525121017264 0ustar dajobedajobe Redland librdf Language Bindings

Redland librdf Language Bindings

Redland-bindings 1.0.17.1 changes

Synchronise with Redland 1.0.17 (release notes). This release requires Redland 1.0.16 or newer which requires Rasqal 0.9.25 and Raptor 2.0.7 or newer.

Issues Fixed:

  • 0000406: Python API one-liner segfaults
  • 0000549: add python 3 support to redland-bindings
  • 0000552: make test-php has problem finding librdf.so.0
  • 0000569: example.py: "librdf_query_execute(" ... syntax error, unexpected '(', expecting '{'

Python Bindings changes

Add query limit and offset getter/setter wrappers to RDF.py. Patch from artfwo - thanks.

Added Python 3.0 support (continue supporting python 2) with patch from Diane Trout - thanks. Fixes Issue #0000549

Generate recommended files: _Redland.socode> (or .dylib) wrapped by Redland.py. Redland.py is now required to be shipped to make the bindings work. WARNING: this will likely cause distribution packaging changes. Patch from Peter Liljenberg - thanks.

Added examples of MySQL storage. Patch from Olivier Berger - thanks.

Use python distutils get_python_inc() to get includes path.

Ruby Bindings changes

Updated configure to get Ruby 2.0 arch headers file so the bindings work with Ruby 2.

Other changes

Removed old tests

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

redland-bindings-1.0.17.1+dfsg/ChangeLog.100000644000175000017500000000654112074643533017322 0ustar dajobedajobe2009-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.17.1+dfsg/python/0000755000175000017500000000000012333525246016642 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/python/Makefile.in0000644000175000017500000005636612333525224020723 0ustar dajobedajobe# 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_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 # Redland.py wraps and loads _Redland.so/dylib PYTHON_FULL_DYLIB = _$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) SWIG_OUTPUTS = $(PYTHON_PACKAGE)_wrap.c Redland.py pythondir = @PYTHON_LIB@ python_DATA = RDF.py $(PYTHON_FULL_DYLIB) Redland.py 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_FULL_DYLIB) $(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 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-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 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-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_FULL_DYLIB): $(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_FULL_DYLIB) touch $(PYTHON_PACKAGE)-stamp install-pythonDATA: $(python_DATA) $(mkinstalldirs) $(DESTDIR)$(pythondir) $(INSTALL_PROGRAM) $(PYTHON_FULL_DYLIB) $(DESTDIR)$(pythondir)/$(PYTHON_FULL_DYLIB) $(INSTALL_DATA) RDF.py $(DESTDIR)$(pythondir)/RDF.py $(INSTALL_DATA) Redland.py $(DESTDIR)$(pythondir)/Redland.py uninstall-pythonDATA: $(python_DATA) rm -f $(DESTDIR)$(pythondir)/$(PYTHON_FULL_DYLIB) $(DESTDIR)$(pythondir)/RDF.{py,pyc} $(DESTDIR)$(pythondir)/Redland.{py,pyc} clean-local: rm -rf __pycache__ check-local: unittest-python test-python test-python: $(PYTHON_FULL_DYLIB) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/test/test.py unittest-python: $(PYTHON_FULL_DYLIB) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/redlandtest.py RDF.html: RDF.py $(PYTHON_FULL_DYLIB) 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.17.1+dfsg/python/redland-decl.i0000644000175000017500000000006410406177662021336 0ustar dajobedajobevoid librdf_python_world_init(librdf_world *world); redland-bindings-1.0.17.1+dfsg/python/redland-post.i0000644000175000017500000002637712262664306021431 0ustar dajobedajobe/* -*- 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); #if PY_MAJOR_VERSION >= 3 PyObject* #else void #endif SWIG_init(void); #if PY_MAJOR_VERSION >= 3 #define PyInt_AS_LONG PyLong_AsLong #define PyString_FromStringAndSize PyBytes_FromStringAndSize #endif 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 */ }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef librdf_python_moduledef = { PyModuleDef_HEAD_INIT, "Redland_python", NULL, /* doc string */ -1, /* per module memory */ librdf_python_methods, NULL, /* Unused, reload */ NULL, /* GC traverse */ NULL, /* GC clearing*/ NULL /* free during deallocation */ }; #endif /* * 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"; #if PY_MAJOR_VERSION >= 3 module = PyModule_Create(&librdf_python_moduledef); dict = PyImport_GetModuleDict(); PyDict_SetItemString(dict, "Redland_python", module); #else module = Py_InitModule("Redland_python", librdf_python_methods); #endif 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.17.1+dfsg/python/test/0000755000175000017500000000000012333525246017621 5ustar dajobedajoberedland-bindings-1.0.17.1+dfsg/python/test/Makefile.in0000644000175000017500000002652412333525224021673 0ustar dajobedajobe# 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_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.17.1+dfsg/python/test/test.py0000644000175000017500000000727712262664306021171 0ustar dajobedajobe# # 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" % (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 %s" %(uri,)) for s in parser.parse_as_stream(uri, uri): print("found parsed statement: %s" % (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" % (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" %(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" % (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: %s" % (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.17.1+dfsg/python/test/Makefile.am0000644000175000017500000000002310406177662021654 0ustar dajobedajobeEXTRA_DIST=test.py redland-bindings-1.0.17.1+dfsg/python/Redland.py0000644000175000017500000007652112262672161020600 0ustar dajobedajobe# 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. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_Redland', [dirname(__file__)]) except ImportError: import _Redland return _Redland if fp is not None: try: _mod = imp.load_module('_Redland', fp, pathname, description) finally: fp.close() return _mod _Redland = swig_import_helper() del swig_import_helper else: import _Redland del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def librdf_new_digest(*args): return _Redland.librdf_new_digest(*args) librdf_new_digest = _Redland.librdf_new_digest def librdf_free_digest(*args): return _Redland.librdf_free_digest(*args) librdf_free_digest = _Redland.librdf_free_digest def librdf_digest_init(*args): return _Redland.librdf_digest_init(*args) librdf_digest_init = _Redland.librdf_digest_init def librdf_digest_update(*args): return _Redland.librdf_digest_update(*args) librdf_digest_update = _Redland.librdf_digest_update def librdf_digest_update_string(*args): return _Redland.librdf_digest_update_string(*args) librdf_digest_update_string = _Redland.librdf_digest_update_string def librdf_digest_final(*args): return _Redland.librdf_digest_final(*args) librdf_digest_final = _Redland.librdf_digest_final def librdf_digest_to_string(*args): return _Redland.librdf_digest_to_string(*args) librdf_digest_to_string = _Redland.librdf_digest_to_string def librdf_new_hash(*args): return _Redland.librdf_new_hash(*args) librdf_new_hash = _Redland.librdf_new_hash def librdf_new_hash_from_string(*args): return _Redland.librdf_new_hash_from_string(*args) librdf_new_hash_from_string = _Redland.librdf_new_hash_from_string def librdf_new_hash_from_array_of_strings(*args): return _Redland.librdf_new_hash_from_array_of_strings(*args) librdf_new_hash_from_array_of_strings = _Redland.librdf_new_hash_from_array_of_strings def librdf_hash_to_string(*args): return _Redland.librdf_hash_to_string(*args) librdf_hash_to_string = _Redland.librdf_hash_to_string def librdf_free_hash(*args): return _Redland.librdf_free_hash(*args) librdf_free_hash = _Redland.librdf_free_hash def librdf_new_world(): return _Redland.librdf_new_world() librdf_new_world = _Redland.librdf_new_world def librdf_free_world(*args): return _Redland.librdf_free_world(*args) librdf_free_world = _Redland.librdf_free_world def librdf_world_open(*args): return _Redland.librdf_world_open(*args) librdf_world_open = _Redland.librdf_world_open def librdf_world_get_feature(*args): return _Redland.librdf_world_get_feature(*args) librdf_world_get_feature = _Redland.librdf_world_get_feature def librdf_world_set_feature(*args): return _Redland.librdf_world_set_feature(*args) librdf_world_set_feature = _Redland.librdf_world_set_feature def librdf_parser_get_accept_header(*args): return _Redland.librdf_parser_get_accept_header(*args) librdf_parser_get_accept_header = _Redland.librdf_parser_get_accept_header def librdf_world_set_logger(*args): return _Redland.librdf_world_set_logger(*args) librdf_world_set_logger = _Redland.librdf_world_set_logger def librdf_free_iterator(*args): return _Redland.librdf_free_iterator(*args) librdf_free_iterator = _Redland.librdf_free_iterator def librdf_iterator_end(*args): return _Redland.librdf_iterator_end(*args) librdf_iterator_end = _Redland.librdf_iterator_end def librdf_iterator_get_object(*args): return _Redland.librdf_iterator_get_object(*args) librdf_iterator_get_object = _Redland.librdf_iterator_get_object def librdf_iterator_get_context(*args): return _Redland.librdf_iterator_get_context(*args) librdf_iterator_get_context = _Redland.librdf_iterator_get_context def librdf_iterator_next(*args): return _Redland.librdf_iterator_next(*args) librdf_iterator_next = _Redland.librdf_iterator_next def librdf_new_uri(*args): return _Redland.librdf_new_uri(*args) librdf_new_uri = _Redland.librdf_new_uri def librdf_new_uri_from_uri(*args): return _Redland.librdf_new_uri_from_uri(*args) librdf_new_uri_from_uri = _Redland.librdf_new_uri_from_uri def librdf_new_uri_from_filename(*args): return _Redland.librdf_new_uri_from_filename(*args) librdf_new_uri_from_filename = _Redland.librdf_new_uri_from_filename def librdf_free_uri(*args): return _Redland.librdf_free_uri(*args) librdf_free_uri = _Redland.librdf_free_uri def librdf_uri_to_string(*args): return _Redland.librdf_uri_to_string(*args) librdf_uri_to_string = _Redland.librdf_uri_to_string def librdf_uri_equals(*args): return _Redland.librdf_uri_equals(*args) librdf_uri_equals = _Redland.librdf_uri_equals def librdf_uri_compare(*args): return _Redland.librdf_uri_compare(*args) librdf_uri_compare = _Redland.librdf_uri_compare def librdf_new_node(*args): return _Redland.librdf_new_node(*args) librdf_new_node = _Redland.librdf_new_node def librdf_new_node_from_uri_string(*args): return _Redland.librdf_new_node_from_uri_string(*args) librdf_new_node_from_uri_string = _Redland.librdf_new_node_from_uri_string def librdf_new_node_from_uri(*args): return _Redland.librdf_new_node_from_uri(*args) librdf_new_node_from_uri = _Redland.librdf_new_node_from_uri def librdf_new_node_from_uri_local_name(*args): return _Redland.librdf_new_node_from_uri_local_name(*args) librdf_new_node_from_uri_local_name = _Redland.librdf_new_node_from_uri_local_name def librdf_new_node_from_normalised_uri_string(*args): return _Redland.librdf_new_node_from_normalised_uri_string(*args) librdf_new_node_from_normalised_uri_string = _Redland.librdf_new_node_from_normalised_uri_string def librdf_new_node_from_literal(*args): return _Redland.librdf_new_node_from_literal(*args) librdf_new_node_from_literal = _Redland.librdf_new_node_from_literal def librdf_new_node_from_typed_literal(*args): return _Redland.librdf_new_node_from_typed_literal(*args) librdf_new_node_from_typed_literal = _Redland.librdf_new_node_from_typed_literal def librdf_new_node_from_node(*args): return _Redland.librdf_new_node_from_node(*args) librdf_new_node_from_node = _Redland.librdf_new_node_from_node def librdf_new_node_from_blank_identifier(*args): return _Redland.librdf_new_node_from_blank_identifier(*args) librdf_new_node_from_blank_identifier = _Redland.librdf_new_node_from_blank_identifier def librdf_free_node(*args): return _Redland.librdf_free_node(*args) librdf_free_node = _Redland.librdf_free_node def librdf_node_get_uri(*args): return _Redland.librdf_node_get_uri(*args) librdf_node_get_uri = _Redland.librdf_node_get_uri def librdf_node_get_type(*args): return _Redland.librdf_node_get_type(*args) librdf_node_get_type = _Redland.librdf_node_get_type def librdf_node_get_literal_value(*args): return _Redland.librdf_node_get_literal_value(*args) librdf_node_get_literal_value = _Redland.librdf_node_get_literal_value def librdf_node_get_literal_value_as_latin1(*args): return _Redland.librdf_node_get_literal_value_as_latin1(*args) librdf_node_get_literal_value_as_latin1 = _Redland.librdf_node_get_literal_value_as_latin1 def librdf_node_get_literal_value_language(*args): return _Redland.librdf_node_get_literal_value_language(*args) librdf_node_get_literal_value_language = _Redland.librdf_node_get_literal_value_language def librdf_node_get_literal_value_datatype_uri(*args): return _Redland.librdf_node_get_literal_value_datatype_uri(*args) librdf_node_get_literal_value_datatype_uri = _Redland.librdf_node_get_literal_value_datatype_uri def librdf_node_get_literal_value_is_wf_xml(*args): return _Redland.librdf_node_get_literal_value_is_wf_xml(*args) librdf_node_get_literal_value_is_wf_xml = _Redland.librdf_node_get_literal_value_is_wf_xml def librdf_node_get_li_ordinal(*args): return _Redland.librdf_node_get_li_ordinal(*args) librdf_node_get_li_ordinal = _Redland.librdf_node_get_li_ordinal def librdf_node_to_string(*args): return _Redland.librdf_node_to_string(*args) librdf_node_to_string = _Redland.librdf_node_to_string def librdf_node_get_blank_identifier(*args): return _Redland.librdf_node_get_blank_identifier(*args) librdf_node_get_blank_identifier = _Redland.librdf_node_get_blank_identifier def librdf_node_is_resource(*args): return _Redland.librdf_node_is_resource(*args) librdf_node_is_resource = _Redland.librdf_node_is_resource def librdf_node_is_literal(*args): return _Redland.librdf_node_is_literal(*args) librdf_node_is_literal = _Redland.librdf_node_is_literal def librdf_node_is_blank(*args): return _Redland.librdf_node_is_blank(*args) librdf_node_is_blank = _Redland.librdf_node_is_blank def librdf_node_equals(*args): return _Redland.librdf_node_equals(*args) librdf_node_equals = _Redland.librdf_node_equals def librdf_new_statement(*args): return _Redland.librdf_new_statement(*args) librdf_new_statement = _Redland.librdf_new_statement def librdf_new_statement_from_statement(*args): return _Redland.librdf_new_statement_from_statement(*args) librdf_new_statement_from_statement = _Redland.librdf_new_statement_from_statement def librdf_new_statement_from_nodes(*args): return _Redland.librdf_new_statement_from_nodes(*args) librdf_new_statement_from_nodes = _Redland.librdf_new_statement_from_nodes def librdf_free_statement(*args): return _Redland.librdf_free_statement(*args) librdf_free_statement = _Redland.librdf_free_statement def librdf_statement_get_subject(*args): return _Redland.librdf_statement_get_subject(*args) librdf_statement_get_subject = _Redland.librdf_statement_get_subject def librdf_statement_set_subject(*args): return _Redland.librdf_statement_set_subject(*args) librdf_statement_set_subject = _Redland.librdf_statement_set_subject def librdf_statement_get_predicate(*args): return _Redland.librdf_statement_get_predicate(*args) librdf_statement_get_predicate = _Redland.librdf_statement_get_predicate def librdf_statement_set_predicate(*args): return _Redland.librdf_statement_set_predicate(*args) librdf_statement_set_predicate = _Redland.librdf_statement_set_predicate def librdf_statement_get_object(*args): return _Redland.librdf_statement_get_object(*args) librdf_statement_get_object = _Redland.librdf_statement_get_object def librdf_statement_set_object(*args): return _Redland.librdf_statement_set_object(*args) librdf_statement_set_object = _Redland.librdf_statement_set_object def librdf_statement_equals(*args): return _Redland.librdf_statement_equals(*args) librdf_statement_equals = _Redland.librdf_statement_equals def librdf_statement_match(*args): return _Redland.librdf_statement_match(*args) librdf_statement_match = _Redland.librdf_statement_match def librdf_statement_to_string(*args): return _Redland.librdf_statement_to_string(*args) librdf_statement_to_string = _Redland.librdf_statement_to_string def librdf_statement_is_complete(*args): return _Redland.librdf_statement_is_complete(*args) librdf_statement_is_complete = _Redland.librdf_statement_is_complete def librdf_new_model(*args): return _Redland.librdf_new_model(*args) librdf_new_model = _Redland.librdf_new_model def librdf_new_model_with_options(*args): return _Redland.librdf_new_model_with_options(*args) librdf_new_model_with_options = _Redland.librdf_new_model_with_options def librdf_new_model_from_model(*args): return _Redland.librdf_new_model_from_model(*args) librdf_new_model_from_model = _Redland.librdf_new_model_from_model def librdf_free_model(*args): return _Redland.librdf_free_model(*args) librdf_free_model = _Redland.librdf_free_model def librdf_model_size(*args): return _Redland.librdf_model_size(*args) librdf_model_size = _Redland.librdf_model_size def librdf_model_add(*args): return _Redland.librdf_model_add(*args) librdf_model_add = _Redland.librdf_model_add def librdf_model_add_string_literal_statement(*args): return _Redland.librdf_model_add_string_literal_statement(*args) librdf_model_add_string_literal_statement = _Redland.librdf_model_add_string_literal_statement def librdf_model_add_typed_literal_statement(*args): return _Redland.librdf_model_add_typed_literal_statement(*args) librdf_model_add_typed_literal_statement = _Redland.librdf_model_add_typed_literal_statement def librdf_model_add_statement(*args): return _Redland.librdf_model_add_statement(*args) librdf_model_add_statement = _Redland.librdf_model_add_statement def librdf_model_add_statements(*args): return _Redland.librdf_model_add_statements(*args) librdf_model_add_statements = _Redland.librdf_model_add_statements def librdf_model_remove_statement(*args): return _Redland.librdf_model_remove_statement(*args) librdf_model_remove_statement = _Redland.librdf_model_remove_statement def librdf_model_contains_statement(*args): return _Redland.librdf_model_contains_statement(*args) librdf_model_contains_statement = _Redland.librdf_model_contains_statement def librdf_model_as_stream(*args): return _Redland.librdf_model_as_stream(*args) librdf_model_as_stream = _Redland.librdf_model_as_stream def librdf_model_find_statements(*args): return _Redland.librdf_model_find_statements(*args) librdf_model_find_statements = _Redland.librdf_model_find_statements def librdf_model_find_statements_in_context(*args): return _Redland.librdf_model_find_statements_in_context(*args) librdf_model_find_statements_in_context = _Redland.librdf_model_find_statements_in_context def librdf_model_get_sources(*args): return _Redland.librdf_model_get_sources(*args) librdf_model_get_sources = _Redland.librdf_model_get_sources def librdf_model_get_arcs(*args): return _Redland.librdf_model_get_arcs(*args) librdf_model_get_arcs = _Redland.librdf_model_get_arcs def librdf_model_get_targets(*args): return _Redland.librdf_model_get_targets(*args) librdf_model_get_targets = _Redland.librdf_model_get_targets def librdf_model_get_source(*args): return _Redland.librdf_model_get_source(*args) librdf_model_get_source = _Redland.librdf_model_get_source def librdf_model_get_arc(*args): return _Redland.librdf_model_get_arc(*args) librdf_model_get_arc = _Redland.librdf_model_get_arc def librdf_model_get_arcs_out(*args): return _Redland.librdf_model_get_arcs_out(*args) librdf_model_get_arcs_out = _Redland.librdf_model_get_arcs_out def librdf_model_get_arcs_in(*args): return _Redland.librdf_model_get_arcs_in(*args) librdf_model_get_arcs_in = _Redland.librdf_model_get_arcs_in def librdf_model_has_arc_in(*args): return _Redland.librdf_model_has_arc_in(*args) librdf_model_has_arc_in = _Redland.librdf_model_has_arc_in def librdf_model_has_arc_out(*args): return _Redland.librdf_model_has_arc_out(*args) librdf_model_has_arc_out = _Redland.librdf_model_has_arc_out def librdf_model_get_target(*args): return _Redland.librdf_model_get_target(*args) librdf_model_get_target = _Redland.librdf_model_get_target def librdf_model_context_add_statement(*args): return _Redland.librdf_model_context_add_statement(*args) librdf_model_context_add_statement = _Redland.librdf_model_context_add_statement def librdf_model_context_add_statements(*args): return _Redland.librdf_model_context_add_statements(*args) librdf_model_context_add_statements = _Redland.librdf_model_context_add_statements def librdf_model_context_remove_statement(*args): return _Redland.librdf_model_context_remove_statement(*args) librdf_model_context_remove_statement = _Redland.librdf_model_context_remove_statement def librdf_model_context_remove_statements(*args): return _Redland.librdf_model_context_remove_statements(*args) librdf_model_context_remove_statements = _Redland.librdf_model_context_remove_statements def librdf_model_context_as_stream(*args): return _Redland.librdf_model_context_as_stream(*args) librdf_model_context_as_stream = _Redland.librdf_model_context_as_stream def librdf_model_sync(*args): return _Redland.librdf_model_sync(*args) librdf_model_sync = _Redland.librdf_model_sync def librdf_model_get_contexts(*args): return _Redland.librdf_model_get_contexts(*args) librdf_model_get_contexts = _Redland.librdf_model_get_contexts def librdf_model_contains_context(*args): return _Redland.librdf_model_contains_context(*args) librdf_model_contains_context = _Redland.librdf_model_contains_context def librdf_model_get_feature(*args): return _Redland.librdf_model_get_feature(*args) librdf_model_get_feature = _Redland.librdf_model_get_feature def librdf_model_set_feature(*args): return _Redland.librdf_model_set_feature(*args) librdf_model_set_feature = _Redland.librdf_model_set_feature def librdf_model_load(*args): return _Redland.librdf_model_load(*args) librdf_model_load = _Redland.librdf_model_load def librdf_model_query_execute(*args): return _Redland.librdf_model_query_execute(*args) librdf_model_query_execute = _Redland.librdf_model_query_execute def librdf_model_to_string(*args): return _Redland.librdf_model_to_string(*args) librdf_model_to_string = _Redland.librdf_model_to_string def librdf_model_transaction_start(*args): return _Redland.librdf_model_transaction_start(*args) librdf_model_transaction_start = _Redland.librdf_model_transaction_start def librdf_model_transaction_commit(*args): return _Redland.librdf_model_transaction_commit(*args) librdf_model_transaction_commit = _Redland.librdf_model_transaction_commit def librdf_model_transaction_rollback(*args): return _Redland.librdf_model_transaction_rollback(*args) librdf_model_transaction_rollback = _Redland.librdf_model_transaction_rollback def librdf_new_storage(*args): return _Redland.librdf_new_storage(*args) librdf_new_storage = _Redland.librdf_new_storage def librdf_new_storage_from_storage(*args): return _Redland.librdf_new_storage_from_storage(*args) librdf_new_storage_from_storage = _Redland.librdf_new_storage_from_storage def librdf_free_storage(*args): return _Redland.librdf_free_storage(*args) librdf_free_storage = _Redland.librdf_free_storage def librdf_parser_check_name(*args): return _Redland.librdf_parser_check_name(*args) librdf_parser_check_name = _Redland.librdf_parser_check_name def librdf_new_parser(*args): return _Redland.librdf_new_parser(*args) librdf_new_parser = _Redland.librdf_new_parser def librdf_free_parser(*args): return _Redland.librdf_free_parser(*args) librdf_free_parser = _Redland.librdf_free_parser def librdf_parser_parse_as_stream(*args): return _Redland.librdf_parser_parse_as_stream(*args) librdf_parser_parse_as_stream = _Redland.librdf_parser_parse_as_stream def librdf_parser_parse_into_model(*args): return _Redland.librdf_parser_parse_into_model(*args) librdf_parser_parse_into_model = _Redland.librdf_parser_parse_into_model def librdf_parser_parse_string_as_stream(*args): return _Redland.librdf_parser_parse_string_as_stream(*args) librdf_parser_parse_string_as_stream = _Redland.librdf_parser_parse_string_as_stream def librdf_parser_parse_string_into_model(*args): return _Redland.librdf_parser_parse_string_into_model(*args) librdf_parser_parse_string_into_model = _Redland.librdf_parser_parse_string_into_model def librdf_parser_parse_counted_string_as_stream(*args): return _Redland.librdf_parser_parse_counted_string_as_stream(*args) librdf_parser_parse_counted_string_as_stream = _Redland.librdf_parser_parse_counted_string_as_stream def librdf_parser_parse_counted_string_into_model(*args): return _Redland.librdf_parser_parse_counted_string_into_model(*args) librdf_parser_parse_counted_string_into_model = _Redland.librdf_parser_parse_counted_string_into_model def librdf_parser_get_feature(*args): return _Redland.librdf_parser_get_feature(*args) librdf_parser_get_feature = _Redland.librdf_parser_get_feature def librdf_parser_set_feature(*args): return _Redland.librdf_parser_set_feature(*args) librdf_parser_set_feature = _Redland.librdf_parser_set_feature def librdf_parser_guess_name(*args): return _Redland.librdf_parser_guess_name(*args) librdf_parser_guess_name = _Redland.librdf_parser_guess_name def librdf_parser_guess_name2(*args): return _Redland.librdf_parser_guess_name2(*args) librdf_parser_guess_name2 = _Redland.librdf_parser_guess_name2 def librdf_parser_get_namespaces_seen_prefix(*args): return _Redland.librdf_parser_get_namespaces_seen_prefix(*args) librdf_parser_get_namespaces_seen_prefix = _Redland.librdf_parser_get_namespaces_seen_prefix def librdf_parser_get_namespaces_seen_uri(*args): return _Redland.librdf_parser_get_namespaces_seen_uri(*args) librdf_parser_get_namespaces_seen_uri = _Redland.librdf_parser_get_namespaces_seen_uri def librdf_parser_get_namespaces_seen_count(*args): return _Redland.librdf_parser_get_namespaces_seen_count(*args) librdf_parser_get_namespaces_seen_count = _Redland.librdf_parser_get_namespaces_seen_count def librdf_new_query(*args): return _Redland.librdf_new_query(*args) librdf_new_query = _Redland.librdf_new_query def librdf_new_query_from_query(*args): return _Redland.librdf_new_query_from_query(*args) librdf_new_query_from_query = _Redland.librdf_new_query_from_query def librdf_free_query(*args): return _Redland.librdf_free_query(*args) librdf_free_query = _Redland.librdf_free_query def librdf_query_execute(*args): return _Redland.librdf_query_execute(*args) librdf_query_execute = _Redland.librdf_query_execute def librdf_query_get_limit(*args): return _Redland.librdf_query_get_limit(*args) librdf_query_get_limit = _Redland.librdf_query_get_limit def librdf_query_set_limit(*args): return _Redland.librdf_query_set_limit(*args) librdf_query_set_limit = _Redland.librdf_query_set_limit def librdf_query_get_offset(*args): return _Redland.librdf_query_get_offset(*args) librdf_query_get_offset = _Redland.librdf_query_get_offset def librdf_query_set_offset(*args): return _Redland.librdf_query_set_offset(*args) librdf_query_set_offset = _Redland.librdf_query_set_offset def librdf_query_results_as_stream(*args): return _Redland.librdf_query_results_as_stream(*args) librdf_query_results_as_stream = _Redland.librdf_query_results_as_stream def librdf_query_results_get_count(*args): return _Redland.librdf_query_results_get_count(*args) librdf_query_results_get_count = _Redland.librdf_query_results_get_count def librdf_query_results_next(*args): return _Redland.librdf_query_results_next(*args) librdf_query_results_next = _Redland.librdf_query_results_next def librdf_query_results_finished(*args): return _Redland.librdf_query_results_finished(*args) librdf_query_results_finished = _Redland.librdf_query_results_finished def librdf_query_results_get_binding_value(*args): return _Redland.librdf_query_results_get_binding_value(*args) librdf_query_results_get_binding_value = _Redland.librdf_query_results_get_binding_value def librdf_query_results_get_binding_name(*args): return _Redland.librdf_query_results_get_binding_name(*args) librdf_query_results_get_binding_name = _Redland.librdf_query_results_get_binding_name def librdf_query_results_get_binding_value_by_name(*args): return _Redland.librdf_query_results_get_binding_value_by_name(*args) librdf_query_results_get_binding_value_by_name = _Redland.librdf_query_results_get_binding_value_by_name def librdf_query_results_get_bindings_count(*args): return _Redland.librdf_query_results_get_bindings_count(*args) librdf_query_results_get_bindings_count = _Redland.librdf_query_results_get_bindings_count def librdf_query_results_to_file(*args): return _Redland.librdf_query_results_to_file(*args) librdf_query_results_to_file = _Redland.librdf_query_results_to_file def librdf_query_results_to_file2(*args): return _Redland.librdf_query_results_to_file2(*args) librdf_query_results_to_file2 = _Redland.librdf_query_results_to_file2 def librdf_query_results_to_string(*args): return _Redland.librdf_query_results_to_string(*args) librdf_query_results_to_string = _Redland.librdf_query_results_to_string def librdf_query_results_to_string2(*args): return _Redland.librdf_query_results_to_string2(*args) librdf_query_results_to_string2 = _Redland.librdf_query_results_to_string2 def librdf_free_query_results(*args): return _Redland.librdf_free_query_results(*args) librdf_free_query_results = _Redland.librdf_free_query_results def librdf_query_results_is_bindings(*args): return _Redland.librdf_query_results_is_bindings(*args) librdf_query_results_is_bindings = _Redland.librdf_query_results_is_bindings def librdf_query_results_is_boolean(*args): return _Redland.librdf_query_results_is_boolean(*args) librdf_query_results_is_boolean = _Redland.librdf_query_results_is_boolean def librdf_query_results_is_graph(*args): return _Redland.librdf_query_results_is_graph(*args) librdf_query_results_is_graph = _Redland.librdf_query_results_is_graph def librdf_query_results_is_syntax(*args): return _Redland.librdf_query_results_is_syntax(*args) librdf_query_results_is_syntax = _Redland.librdf_query_results_is_syntax def librdf_query_results_get_boolean(*args): return _Redland.librdf_query_results_get_boolean(*args) librdf_query_results_get_boolean = _Redland.librdf_query_results_get_boolean def librdf_serializer_check_name(*args): return _Redland.librdf_serializer_check_name(*args) librdf_serializer_check_name = _Redland.librdf_serializer_check_name def librdf_new_serializer(*args): return _Redland.librdf_new_serializer(*args) librdf_new_serializer = _Redland.librdf_new_serializer def librdf_free_serializer(*args): return _Redland.librdf_free_serializer(*args) librdf_free_serializer = _Redland.librdf_free_serializer def librdf_serializer_serialize_stream_to_file(*args): return _Redland.librdf_serializer_serialize_stream_to_file(*args) librdf_serializer_serialize_stream_to_file = _Redland.librdf_serializer_serialize_stream_to_file def librdf_serializer_serialize_model_to_file(*args): return _Redland.librdf_serializer_serialize_model_to_file(*args) librdf_serializer_serialize_model_to_file = _Redland.librdf_serializer_serialize_model_to_file def librdf_serializer_serialize_stream_to_string(*args): return _Redland.librdf_serializer_serialize_stream_to_string(*args) librdf_serializer_serialize_stream_to_string = _Redland.librdf_serializer_serialize_stream_to_string def librdf_serializer_serialize_model_to_string(*args): return _Redland.librdf_serializer_serialize_model_to_string(*args) librdf_serializer_serialize_model_to_string = _Redland.librdf_serializer_serialize_model_to_string def librdf_serializer_get_feature(*args): return _Redland.librdf_serializer_get_feature(*args) librdf_serializer_get_feature = _Redland.librdf_serializer_get_feature def librdf_serializer_set_feature(*args): return _Redland.librdf_serializer_set_feature(*args) librdf_serializer_set_feature = _Redland.librdf_serializer_set_feature def librdf_serializer_set_namespace(*args): return _Redland.librdf_serializer_set_namespace(*args) librdf_serializer_set_namespace = _Redland.librdf_serializer_set_namespace def librdf_free_stream(*args): return _Redland.librdf_free_stream(*args) librdf_free_stream = _Redland.librdf_free_stream def librdf_stream_end(*args): return _Redland.librdf_stream_end(*args) librdf_stream_end = _Redland.librdf_stream_end def librdf_stream_next(*args): return _Redland.librdf_stream_next(*args) librdf_stream_next = _Redland.librdf_stream_next def librdf_stream_get_object(*args): return _Redland.librdf_stream_get_object(*args) librdf_stream_get_object = _Redland.librdf_stream_get_object def librdf_stream_get_context(*args): return _Redland.librdf_stream_get_context(*args) librdf_stream_get_context = _Redland.librdf_stream_get_context def librdf_log_message_code(*args): return _Redland.librdf_log_message_code(*args) librdf_log_message_code = _Redland.librdf_log_message_code def librdf_log_message_level(*args): return _Redland.librdf_log_message_level(*args) librdf_log_message_level = _Redland.librdf_log_message_level def librdf_log_message_facility(*args): return _Redland.librdf_log_message_facility(*args) librdf_log_message_facility = _Redland.librdf_log_message_facility def librdf_log_message_message(*args): return _Redland.librdf_log_message_message(*args) librdf_log_message_message = _Redland.librdf_log_message_message def librdf_log_message_locator(*args): return _Redland.librdf_log_message_locator(*args) librdf_log_message_locator = _Redland.librdf_log_message_locator def raptor_locator_line(*args): return _Redland.raptor_locator_line(*args) raptor_locator_line = _Redland.raptor_locator_line def raptor_locator_column(*args): return _Redland.raptor_locator_column(*args) raptor_locator_column = _Redland.raptor_locator_column def raptor_locator_byte(*args): return _Redland.raptor_locator_byte(*args) raptor_locator_byte = _Redland.raptor_locator_byte def raptor_locator_file(*args): return _Redland.raptor_locator_file(*args) raptor_locator_file = _Redland.raptor_locator_file def raptor_locator_uri(*args): return _Redland.raptor_locator_uri(*args) raptor_locator_uri = _Redland.raptor_locator_uri def librdf_internal_test_error(*args): return _Redland.librdf_internal_test_error(*args) librdf_internal_test_error = _Redland.librdf_internal_test_error def librdf_internal_test_warning(*args): return _Redland.librdf_internal_test_warning(*args) librdf_internal_test_warning = _Redland.librdf_internal_test_warning def librdf_python_world_init(*args): return _Redland.librdf_python_world_init(*args) librdf_python_world_init = _Redland.librdf_python_world_init # This file is compatible with both classic and new-style classes. cvar = _Redland.cvar librdf_short_copyright_string = cvar.librdf_short_copyright_string librdf_copyright_string = cvar.librdf_copyright_string librdf_version_string = cvar.librdf_version_string librdf_version_major = cvar.librdf_version_major librdf_version_minor = cvar.librdf_version_minor librdf_version_release = cvar.librdf_version_release librdf_version_decimal = cvar.librdf_version_decimal raptor_version_string = cvar.raptor_version_string raptor_version_major = cvar.raptor_version_major raptor_version_minor = cvar.raptor_version_minor raptor_version_release = cvar.raptor_version_release raptor_version_decimal = cvar.raptor_version_decimal rasqal_version_string = cvar.rasqal_version_string rasqal_version_major = cvar.rasqal_version_major rasqal_version_minor = cvar.rasqal_version_minor rasqal_version_release = cvar.rasqal_version_release rasqal_version_decimal = cvar.rasqal_version_decimal redland-bindings-1.0.17.1+dfsg/python/redland-typemap.i0000644000175000017500000000063510406177662022112 0ustar dajobedajobe%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.17.1+dfsg/python/example.py0000644000175000017500000000500412117757171020652 0ustar dajobedajobe#!/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("PREFIX dc: SELECT ?a ?c WHERE {?a dc:title ?c}") 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.17.1+dfsg/python/redlandtest.py0000644000175000017500000003332312262664306021533 0ustar dajobedajobe#!/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.assertTrue(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.assertTrue(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.assertTrue(s_two != s_three, "inequality; statement %s should not equal statement %s" % \ (str(s_two), str(s_three))) del model[s_two] self.assertTrue(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.assertTrue((s, self.context_node) in model, "statement %s context %s should be in model" % ( str(s), str(self.context_node))) self.assertTrue((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.assertTrue((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.assertTrue( self.model.get_source(self.node2, self.node3) == self.node1, "Source should be node1") self.assertTrue( self.model.get_target(self.node1, self.node2) == self.node3, "Target should be node3") self.assertTrue( 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.assertTrue( (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.assertTrue( (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.assertTrue( (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.assertTrue( ((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.assertTrue( ((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.assertTrue( ((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.assertTrue(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.assertTrue(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.assertTrue(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.assertTrue(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.assertTrue(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.assertTrue(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.assertTrue(count == 1, "Should have found_stmts 1 statement") # test we can find it at all, for comparison self.assertTrue(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.assertFalse(c is None, "Didn't get context back from find_statements") self.assertTrue(c == intended_context, "Didn't get the right context back from find_statements") self.assertTrue(statement.subject == subject, "find_statements_context didn't find statements with the right subject") count += 1 self.assertTrue(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.assertTrue(s is not None, "parse_string_as_stream should have succeeded") rc=self.model.add_statements(s) self.assertTrue(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.assertTrue(s is not None, "execute as_stream should have succeeded") rc=self.model.add_statements(s) self.assertTrue(rc == 0, "add statements should have succeeded") def testSPARQLQueryAsk(self): q = SPARQLQuery("PREFIX dc: ASK WHERE { dc:creator \"Dave Beckett\"}") rc = q.execute(self.model).get_boolean() self.assertTrue(rc, "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.assertTrue(r is not None, "execute to_string should have succeeded") s = r.to_string() self.assertTrue(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.assertTrue(count1 == 3, "Should have found three results in execution 1") results2 = q.execute(self.model) count2 = 0 for result2 in results2: count2 += 1 self.assertTrue(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.assertTrue(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.assertTrue(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.assertTrue(r is not None, "execute to_string should have succeeded") s = r.to_string() self.assertTrue(len(s) == expect, "to_string should have returned "+str(expect)+" not " + str(len(s))) if __name__ == '__main__': unittest.main() redland-bindings-1.0.17.1+dfsg/python/Makefile.am0000644000175000017500000000665212333525121020677 0ustar dajobedajobe# -*- 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@ # Redland.py wraps and loads _Redland.so/dylib PYTHON_FULL_DYLIB=_$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) SWIG_OUTPUTS=$(PYTHON_PACKAGE)_wrap.c Redland.py pythondir=@PYTHON_LIB@ python_DATA=RDF.py $(PYTHON_FULL_DYLIB) Redland.py 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_FULL_DYLIB) $(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_FULL_DYLIB): $(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_FULL_DYLIB) touch $(PYTHON_PACKAGE)-stamp install-pythonDATA: $(python_DATA) $(mkinstalldirs) $(DESTDIR)$(pythondir) $(INSTALL_PROGRAM) $(PYTHON_FULL_DYLIB) $(DESTDIR)$(pythondir)/$(PYTHON_FULL_DYLIB) $(INSTALL_DATA) RDF.py $(DESTDIR)$(pythondir)/RDF.py $(INSTALL_DATA) Redland.py $(DESTDIR)$(pythondir)/Redland.py uninstall-pythonDATA: $(python_DATA) rm -f $(DESTDIR)$(pythondir)/$(PYTHON_FULL_DYLIB) $(DESTDIR)$(pythondir)/RDF.{py,pyc} $(DESTDIR)$(pythondir)/Redland.{py,pyc} clean-local: rm -rf __pycache__ check-local: unittest-python test-python test-python: $(PYTHON_FULL_DYLIB) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/test/test.py unittest-python: $(PYTHON_FULL_DYLIB) PYTHONPATH=. \ $(RUN)$(PYTHON) $(srcdir)/redlandtest.py RDF.html: RDF.py $(PYTHON_FULL_DYLIB) PYTHONPATH=. \ $(RUN)$(PYTHON) -c 'import pydoc; pydoc.cli()' -w RDF redland-bindings-1.0.17.1+dfsg/python/RDF.py0000644000175000017500000023062112315200226017617 0ustar dajobedajobe# # 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 if sys.version_info >= (3,0,0): PY3 = True def unicode(s, enc=None): if not isinstance(s, str): return str(s) else: return s else: PY3 = False class RedlandError(Exception): """Redland Runtime errors""" def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class NodeTypeError(RedlandError): pass class RedlandWarning(Warning): pass def node_type(name): """Return the Redland node type of a node name""" if name in _node_types: 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 list(_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 not PY3 and 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 not PY3 and 'literal' in args and isinstance(args['literal'], unicode): import Redland_python args['literal'] = Redland_python.unicode_to_bytes(args['literal']) if 'uri_string' in args: self._node=Redland.librdf_new_node_from_uri_string(_world._world, args['uri_string']) elif 'uri' in args: # 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 'literal' in args: if 'xml_language' in args: xml_language=args['xml_language'] elif 'language' in args: xml_language=args['language'] else: xml_language=None if 'is_wf_xml' in args: is_wf_xml=args['is_wf_xml'] else: is_wf_xml=0 if 'datatype' in args: 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 'node' in args: self._node=Redland.librdf_new_node_from_node(args['node']._node) elif 'blank' in args: self._node=Redland.librdf_new_node_from_blank_identifier(_world._world, args['blank']) elif 'from_object' in args: if 'do_not_copy' in args: 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.""" value = self.__unicode__() if PY3: return value else: return value.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(unicode(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 'statement' in args: self._statement=Redland.librdf_new_statement_from_statement( args['statement']._statement) elif 'from_object' in args: 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 'options_string' in args: self._model=Redland.librdf_new_model(_world._world, storage._storage, args['options_string']) elif 'options_hash' in args: self._model=Redland.librdf_new_model_with_options( _world._world, storage._storage, args['options_hash'].hash) elif 'model' in args: 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, str): 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, str): 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, str): 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, str): 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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) next = __next__ 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: next(self.stream) if self.stream is None or self.stream.end(): raise StopIteration return (self.stream.current(), self.stream.context()) next = __next__ 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: next(self.iterator) 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) next = __next__ 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: next(self.iterator) if self.iterator is None or self.iterator.end(): raise StopIteration return self.iterator.current() next = __next__ 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: next(self.stream) if self.stream is None or self.stream.end(): raise StopIteration return self.stream.current() next = __next__ 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) next = __next__ 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 ('storage_name' in args and 'name' in args and 'options_string' in args): self._storage=Redland.librdf_new_storage(_world._world, args['storage_name'], args['name'], args['options_string']) elif 'storage' in args: 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 not PY3 and isinstance(arg, unicode): import Redland_python args['string'] = Redland_python.unicode_to_bytes(arg) elif isinstance(arg, Uri): args['uri'] = arg if 'string' in args and args['string'] is not None: self._reduri=Redland.librdf_new_uri(_world._world, args['string']) elif 'uri' in args: self._reduri=Redland.librdf_new_uri_from_uri(args['uri']._reduri) elif 'from_object' in args: 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(unicode(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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 as 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 '"+unicode(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 def get_limit(self): return Redland.librdf_query_get_limit(self._query) def set_limit(self,limit): rc = Redland.librdf_query_set_limit(self._query,limit) if rc != 0: raise RedlandError("Couldn't set query results limit") def get_offset(self): return Redland.librdf_query_get_offset(self._query) def set_offset(self,offset): rc = Redland.librdf_query_set_offset(self._query,offset) if rc != 0: raise RedlandError("Couldn't set query results offset") # 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() next = __next__ 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 not PY3 and 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 not PY3 and 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 unicode(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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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 not PY3 and 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.17.1+dfsg/python/Redland_wrap.c0000644000175000017500000155454112262672161021427 0ustar dajobedajobe/* ---------------------------------------------------------------------------- * 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 init_Redland #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.17.1+dfsg/python/redland-pre.i0000644000175000017500000000007112262670147021211 0ustar dajobedajobe#ifdef HAVE_CONFIG_H #include #endif redland-bindings-1.0.17.1+dfsg/python/README0000644000175000017500000000003010406177662017517 0ustar dajobedajobeSee ../docs/python.html redland-bindings-1.0.17.1+dfsg/ChangeLog.110000644000175000017500000001205012074643533017313 0ustar dajobedajobe2010-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.17.1+dfsg/ChangeLog.70000644000175000017500000003030210613024577017236 0ustar dajobedajobe2006-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.17.1+dfsg/README.html0000644000175000017500000000522512074643533017152 0ustar dajobedajobe 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.17.1+dfsg/TODO0000644000175000017500000000061412074643543016015 0ustar dajobedajobe 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.17.1+dfsg/TODO.html0000644000175000017500000000122612074643533016757 0ustar dajobedajobe 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.17.1+dfsg/Makefile.am0000644000175000017500000000337612100414312017345 0ustar dajobedajobe# -*- 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 ChangeLog.12 ChangeLog.13 \ 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.17.1+dfsg/LICENSE.txt0000644000175000017500000001163212074643543017152 0ustar dajobedajobe 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.17.1+dfsg/COPYING0000644000175000017500000004310310444336174016356 0ustar dajobedajobe 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.17.1+dfsg/redland-bindings.spec.in0000644000175000017500000001553011524276113022007 0ustar dajobedajobe# -*- 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.17.1+dfsg/configure0000755000175000017500000155033112333525224017234 0ustar dajobedajobe#! /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.17.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.17.1' PACKAGE_STRING='Redland librdf Language bindings 1.0.17.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_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.17.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.17.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.17.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.17.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.17.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"; 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*) LD="${LD-ld} -m elf_i386" ;; 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)};'` 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 python_default_libext=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_config_var("SO"))'` # 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=$python_default_libext 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=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_inc())'` PYTHON_INCLUDES="-I$python_includes" { $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_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyarchhdrdir']"` 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 -I$ruby_arch_header_dir_config" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&5 $as_echo "$RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&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` 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` 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.17.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.17.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.17.1+dfsg/INSTALL.html0000644000175000017500000003023312333525121017306 0ustar dajobedajobe 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

NOTE: For some language bindings you may need to set the shared library search path before the tests will work, if Redland's librdf.so (librdf.dylib etc.) is not installed in a standard system library patth such as /usr/lib (if it was installed with --prefix=/usr. On most systems you can set the LD_LIBRARY_PATH environment variable to include the directory where the librdfDYLD_LIBRARY_PATH). You can also configure it via a system wide file - see the ld, ld.so, orld.so.1 or dyld manual pages for details.

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.17.1+dfsg/INSTALL0000644000175000017500000003660012020200162016333 0ustar dajobedajobeInstallation 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.17.1+dfsg/ChangeLog.40000644000175000017500000010120410406201354017221 0ustar dajobedajobe2003-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.17.1+dfsg/README0000644000175000017500000000444712074643543016215 0ustar dajobedajobe 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.17.1+dfsg/ChangeLog.60000644000175000017500000003750010425560756017251 0ustar dajobedajobe2005-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.17.1+dfsg/aclocal.m40000644000175000017500000124527512333525223017174 0ustar dajobedajobe# 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*) LD="${LD-ld} -m elf_i386" ;; 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"; 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.17.1+dfsg/ChangeLog.30000644000175000017500000004001310406201342017215 0ustar dajobedajobe2002-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