diff --git a/CHANGELOG b/CHANGELOG index a4904b1b02..9e00e982dd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,10 @@ -not released yet ----------------- +v1.1.beta1 (2012-XX-XX) +----------------------- + +* WARNING: + - the user has changed from "arango" to "arangodb", the start script has changed from + "arangod" to "arangodb", the database directory has changed from "/var/arangodb" to + "/var/lib/arangodb" to be compliant with various Linux policies * having the OpenSSL library installed is now a prerequisite to compiling ArangoDB removed the --enable-ssl configure option @@ -112,9 +117,14 @@ not released yet as before. The Javascript API in the shell also offers a new update() method in extension to the previously existing replace() method. -v1.0.1 (2012-XX-XX) + +v1.0.1 (2012-09-30) ------------------- +* added AQL function TO_LIST + +* draft for issue #165: front-end application howto + * updated mruby to cf8fdea4a6598aa470e698e8cbc9b9b492319d * fix for issue #190: install doesn't create log directory diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1333a4e66d..2061265b05 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ Please follow these guidelines if you want to contribute to ArangoDB: * bug fixes should be done in the "devel" first, before being applied to master or other branches * If missing, install the required prerequisites. They are listed [here](https://github.com/triAGENS/ArangoDB/wiki/Compiling). * configure and make your local clone. If you intend to modify the parser files, please make sure to active the --enable-maintainer-mode configure option. In this case, you also need to have Python installed. -* Make sure your local unmodified clone works locally before making any code changes. You can do so by running the included test suite (i.e. make unittests) +* Make sure the unmodified clone works locally before making any code changes. You can do so by running the included test suite (i.e. make unittests) * If you intend to do documentation changes, you also must install Doxygen in any recent version. ## Making Changes @@ -28,6 +28,7 @@ Please follow these guidelines if you want to contribute to ArangoDB: * If the modifications change any documented behavior or add new features, document the changes. The documentation can be found in arangod/Documentation directory. To recreate the documentation locally, run make doxygen. This will re-create all documentation files in the Doxygen directory in your repository. You can inspect the documentation in this folder using a text editor or a browser * When done, run the complete test suite and make sure all tests pass * When finished, push the changes to your GitHub repository and send a pull request from your fork to the ArangoDB repository. Please make sure to select the appropriate branches there +* You must use the Apache License for your changes ## Additional Resources diff --git a/Documentation/Scripts/arangodb_footer.html b/Documentation/Scripts/arangodb_footer.html index c2c6461536..e69de29bb2 100644 --- a/Documentation/Scripts/arangodb_footer.html +++ b/Documentation/Scripts/arangodb_footer.html @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/Documentation/Scripts/arangodb_header.html b/Documentation/Scripts/arangodb_header.html index f359039dd1..e69de29bb2 100644 --- a/Documentation/Scripts/arangodb_header.html +++ b/Documentation/Scripts/arangodb_header.html @@ -1 +0,0 @@ - diff --git a/Installation/Makefile.local b/Installation/Makefile.local index d843502e38..93712c0170 100644 --- a/Installation/Makefile.local +++ b/Installation/Makefile.local @@ -1,22 +1,19 @@ # -*- mode: Makefile; -*- -MANUAL_DST="www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals" -IMAGES_DST="www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals/images" +MANUAL_DST=www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals +IMAGES_DST=www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals/images -OUTPUT_FOLDER="Doxygen/manuals/$(PACKAGE_VERSION)" +OUTPUT_FOLDER=Doxygen/manuals/$(PACKAGE_VERSION) ################################################################################ ## publish ################################################################################ -.PHONY: publish publish-prepare publish-wiki publish-html publish-pdf +.PHONY: publish publish-wiki publish-html publish-pdf -publish: publish-prepare publish-wiki publish-html publish-pdf +publish: publish-wiki publish-html publish-pdf cd Doxygen/manuals && scp -r "$(PACKAGE_VERSION)" $(MANUAL_DST) -publish-prepare: - @test -d $(OUTPUT_FOLDER) || mkdir -p $(OUTPUT_FOLDER) - publish-wiki: (cd Doxygen/wiki && git checkout --force -- . && git clean -f -d -x && git pull) $(MAKE) wiki diff --git a/Installation/packetize.sh b/Installation/packetize.sh index 277c034ad0..ef506d4d2d 100755 --- a/Installation/packetize.sh +++ b/Installation/packetize.sh @@ -168,9 +168,9 @@ echo echo "########################################################" echo "Call mkepmlist to create a sublist" - for dir in js/actions/system js/server js/server/modules js/server/modules/org/arangodb js/client js/client/modules js/common/modules js/common/bootstrap; do - echo " mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST}" - mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST} + for dir in `find js -type d`; do + echo " mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST}" + mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST} done for dir in . css css/images media media/icons media/images js js/modules; do diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 75855fa1ef..0000000000 --- a/Makefile.in +++ /dev/null @@ -1,5869 +0,0 @@ -# Makefile.in generated by automake 1.12 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; -*- - -################################################################################ -### @brief source to build before compile -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief JavaScript source code as header -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief library "libarango.a" -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -################################################################################ - -################################################################################ -### @brief program "arangod" -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -################################################################################ - -################################################################################ -### @brief program "arangosh" -################################################################################ - -# -*- mode: Makefile; -*- - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief /sbin programs -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -################################################################################ - -################################################################################ -### @brief program "arangoirb" -################################################################################ - -# -*- mode: Makefile; -*- - -# -*- mode: Makefile; -*- - -################################################################################ -################################################################################ - -################################################################################ -### @brief directory setup -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief sets up the directories -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief sets up the directories -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief built sources -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief built sources -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief libev -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief V8 -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief mruby -################################################################################ - -# -*- mode: Makefile; -*- - -################################################################################ -### @brief ICU -################################################################################ - - - -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@ -target_triplet = @target@ -@ENABLE_RELATIVE_TRUE@am__append_1 = \ -@ENABLE_RELATIVE_TRUE@ -D_SYSCONFDIR_='"etc/relative"' - -@ENABLE_RELATIVE_FALSE@am__append_2 = \ -@ENABLE_RELATIVE_FALSE@ -D_SYSCONFDIR_='"${sysconfdir}/${PACKAGE_TARNAME}"' - - -################################################################################ -### @brief ruby additions -################################################################################ -@ENABLE_MRUBY_TRUE@am__append_3 = @MRUBY_CPPFLAGS@ @MRUBY_LDFLAGS@ -@ENABLE_MRUBY_TRUE@am__append_4 = @MRUBY_LIBS@ -sbin_PROGRAMS = bin/arangod$(EXEEXT) bin/arango-password$(EXEEXT) \ - bin/arango-dfdb$(EXEEXT) bin/arango-upgrade$(EXEEXT) -bin_PROGRAMS = bin/arangosh$(EXEEXT) bin/arangoimp$(EXEEXT) \ - $(am__EXEEXT_1) $(am__EXEEXT_2) -@ENABLE_ARANGOB_TRUE@am__append_5 = bin/arangob -noinst_PROGRAMS = $(am__EXEEXT_3) - -################################################################################ -### @brief ruby additions -################################################################################ -@ENABLE_MRUBY_TRUE@am__append_6 = lib/libarango_mruby.a -@ENABLE_MRUBY_TRUE@am__append_7 = bin/arangoirb -@ENABLE_MRUBY_TRUE@am__append_8 = \ -@ENABLE_MRUBY_TRUE@ $(shell find @srcdir@/mr/actions/system -name "*.rb" -print) - -DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \ - $(srcdir)/3rdParty/Makefile.all-in-one-icu \ - $(srcdir)/3rdParty/Makefile.all-in-one-libev \ - $(srcdir)/3rdParty/Makefile.all-in-one-mruby \ - $(srcdir)/3rdParty/Makefile.all-in-one-v8 \ - $(srcdir)/Documentation/Makefile.doxygen $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.files $(srcdir)/Makefile.in \ - $(srcdir)/UnitTests/Makefile.files \ - $(srcdir)/arangod/Makefile.files \ - $(srcdir)/arangoirb/Makefile.files \ - $(srcdir)/arangosh/Makefile.files $(srcdir)/etc/Makefile.files \ - $(srcdir)/js/Makefile.javascript $(srcdir)/lib/Makefile.bison \ - $(srcdir)/lib/Makefile.files $(srcdir)/lib/Makefile.flex \ - $(srcdir)/mr/Makefile.mruby $(srcdir)/utils/Makefile.files \ - $(top_srcdir)/Documentation/arango.template.in \ - $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \ - $(top_srcdir)/config/config.h.in \ - $(top_srcdir)/config/config.sub $(top_srcdir)/config/depcomp \ - $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \ - $(top_srcdir)/configure \ - $(top_srcdir)/lib/BasicsC/local-configuration.h.in \ - config/compile config/config.guess config/config.sub \ - config/depcomp config/install-sh config/missing -@ENABLE_MRUBY_TRUE@am__append_9 = \ -@ENABLE_MRUBY_TRUE@ lib/libarango_mruby.a \ -@ENABLE_MRUBY_TRUE@ @MRUBY_LIBS@ - -@ENABLE_MRUBY_TRUE@am__append_10 = \ -@ENABLE_MRUBY_TRUE@ arangod/MRServer/ApplicationMR.cpp \ -@ENABLE_MRUBY_TRUE@ arangod/MRServer/mr-actions.cpp - -@ENABLE_MAINTAINER_MODE_TRUE@am__append_11 = \ -@ENABLE_MAINTAINER_MODE_TRUE@ arangod/Ahuacatl/ahuacatl-grammar.h - -@ENABLE_MAINTAINER_MODE_TRUE@am__append_12 = UnitTests/basics_suite UnitTests/geo_suite -@ENABLE_MAINTAINER_MODE_FALSE@UnitTests_basics_suite_DEPENDENCIES = -@ENABLE_MAINTAINER_MODE_FALSE@UnitTests_geo_suite_DEPENDENCIES = -@ENABLE_MAINTAINER_MODE_TRUE@am__append_13 = \ -@ENABLE_MAINTAINER_MODE_TRUE@ errorfiles - -@ENABLE_ARANGOB_TRUE@am__append_14 = \ -@ENABLE_ARANGOB_TRUE@ Doxygen/man/man1/arangob.1 - -@ENABLE_MRUBY_TRUE@am__append_15 = @builddir@/.setup-mr-directories - -################################################################################ -### @brief cleanup -################################################################################ -@ENABLE_MRUBY_TRUE@am__append_16 = $(MRUBY_HEADER) .setup-mr-directories - -################################################################################ -### @brief documentation -################################################################################ - -################################################################################ -### @brief javascript -################################################################################ - -################################################################################ -### @brief mruby -################################################################################ - -################################################################################ -### @brief generate readme -################################################################################ -@ENABLE_HTML2TEXT_TRUE@@ENABLE_MARKDOWN_TRUE@am__append_17 = README -@ENABLE_MAINTAINER_MODE_TRUE@am__append_18 = $(FLEX_FILES) \ -@ENABLE_MAINTAINER_MODE_TRUE@ $(FLEXXX_FILES) $(BISON_FILES) \ -@ENABLE_MAINTAINER_MODE_TRUE@ $(BISONXX_FILES) - -################################################################################ -### @brief cleanup -################################################################################ - -################################################################################ -### @brief CLEANUP -################################################################################ -@ENABLE_MAINTAINER_MODE_TRUE@am__append_19 = $(FLEX_FILES) \ -@ENABLE_MAINTAINER_MODE_TRUE@ $(FLEXXX_FILES) $(BISON_FILES) \ -@ENABLE_MAINTAINER_MODE_TRUE@ $(BISONXX_FILES) -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@am__append_20 = @LIBEV_LIBS@ - -################################################################################ -### @brief additional files to remove -################################################################################ -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@am__append_21 = @srcdir@/.libev-build-@TRI_BITS@ \ -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ .libev-build-@TRI_BITS@ -@ENABLE_ALL_IN_ONE_V8_TRUE@am__append_22 = @V8_LIBS@ - -################################################################################ -### @brief additional files to remove -################################################################################ -@ENABLE_ALL_IN_ONE_V8_TRUE@am__append_23 = \ -@ENABLE_ALL_IN_ONE_V8_TRUE@ @srcdir@/.v8-build-@TRI_BITS@ \ -@ENABLE_ALL_IN_ONE_V8_TRUE@ .v8-build-@TRI_BITS@ -@ENABLE_MRUBY_TRUE@am__append_24 = @MRUBY_LIBS@ - -################################################################################ -### @brief additional files to remove -################################################################################ -@ENABLE_MRUBY_TRUE@am__append_25 = @srcdir@/.mruby-build-@TRI_BITS@ \ -@ENABLE_MRUBY_TRUE@ .mruby-build-@TRI_BITS@ -@ENABLE_ALL_IN_ONE_ICU_TRUE@am__append_26 = @ICU_LIBS@ - -################################################################################ -### @brief additional files to remove -################################################################################ -@ENABLE_ALL_IN_ONE_ICU_TRUE@am__append_27 = .icu-build-@TRI_BITS@ -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/ax_cxx_check_lib.m4 \ - $(top_srcdir)/m4/configure.basics \ - $(top_srcdir)/m4/configure.static \ - $(top_srcdir)/m4/configure.memory \ - $(top_srcdir)/m4/configure.logging \ - $(top_srcdir)/m4/configure.largefile \ - $(top_srcdir)/m4/configure.threads \ - $(top_srcdir)/m4/configure.documentation \ - $(top_srcdir)/m4/configure.coverage \ - $(top_srcdir)/m4/configure.maintainer \ - $(top_srcdir)/m4/external.math \ - $(top_srcdir)/m4/external.readline \ - $(top_srcdir)/m4/external.openssl \ - $(top_srcdir)/m4/all-in-one.libev \ - $(top_srcdir)/m4/external.libev \ - $(top_srcdir)/m4/all-in-one.mruby \ - $(top_srcdir)/m4/all-in-one.v8 $(top_srcdir)/m4/external.v8 \ - $(top_srcdir)/m4/all-in-one.icu $(top_srcdir)/m4/external.icu \ - $(top_srcdir)/m4/configure.information \ - $(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 = $(top_builddir)/config/config.h \ - $(top_builddir)/lib/BasicsC/local-configuration.h -CONFIG_CLEAN_FILES = Documentation/arango.template -CONFIG_CLEAN_VPATH_FILES = -LIBRARIES = $(noinst_LIBRARIES) -AR = ar -ARFLAGS = cru -AM_V_AR = $(am__v_AR_@AM_V@) -am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) -am__v_AR_0 = @echo " AR " $@; -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -lib_libarango_a_AR = $(AR) $(ARFLAGS) -lib_libarango_a_LIBADD = -am__dirstamp = $(am__leading_dot)dirstamp -am_lib_libarango_a_OBJECTS = lib/Basics/ConditionLocker.$(OBJEXT) \ - lib/Basics/ConditionVariable.$(OBJEXT) \ - lib/Basics/Exceptions.$(OBJEXT) lib/Basics/FileUtils.$(OBJEXT) \ - lib/Basics/Initialise.$(OBJEXT) \ - lib/Basics/LibraryLoader.$(OBJEXT) lib/Basics/Mutex.$(OBJEXT) \ - lib/Basics/MutexLocker.$(OBJEXT) \ - lib/Basics/ProgramOptions.$(OBJEXT) \ - lib/Basics/ProgramOptionsDescription.$(OBJEXT) \ - lib/Basics/Random.$(OBJEXT) lib/Basics/ReadLocker.$(OBJEXT) \ - lib/Basics/ReadUnlocker.$(OBJEXT) \ - lib/Basics/ReadWriteLock.$(OBJEXT) \ - lib/Basics/StringUtils.$(OBJEXT) lib/Basics/Thread.$(OBJEXT) \ - lib/Basics/Timing.$(OBJEXT) lib/Basics/Utf8Helper.$(OBJEXT) \ - lib/Basics/WriteLocker.$(OBJEXT) \ - lib/Basics/WriteUnlocker.$(OBJEXT) \ - lib/Basics/ssl-helper.$(OBJEXT) \ - lib/BasicsC/associative-multi.$(OBJEXT) \ - lib/BasicsC/associative.$(OBJEXT) \ - lib/BasicsC/conversions.$(OBJEXT) lib/BasicsC/csv.$(OBJEXT) \ - lib/BasicsC/error.$(OBJEXT) lib/BasicsC/files.$(OBJEXT) \ - lib/BasicsC/hashes.$(OBJEXT) lib/BasicsC/init.$(OBJEXT) \ - lib/BasicsC/json.$(OBJEXT) \ - lib/BasicsC/json-utilities.$(OBJEXT) \ - lib/BasicsC/linked-list.$(OBJEXT) \ - lib/BasicsC/locks-macos.$(OBJEXT) \ - lib/BasicsC/locks-posix.$(OBJEXT) \ - lib/BasicsC/logging.$(OBJEXT) lib/BasicsC/memory.$(OBJEXT) \ - lib/BasicsC/memory-map-posix.$(OBJEXT) \ - lib/BasicsC/mersenne.$(OBJEXT) \ - lib/BasicsC/process-utils.$(OBJEXT) \ - lib/BasicsC/random.$(OBJEXT) \ - lib/BasicsC/socket-utils.$(OBJEXT) \ - lib/BasicsC/string-buffer.$(OBJEXT) \ - lib/BasicsC/strings.$(OBJEXT) lib/BasicsC/structures.$(OBJEXT) \ - lib/BasicsC/system-functions.$(OBJEXT) \ - lib/BasicsC/terminal-utils-posix.$(OBJEXT) \ - lib/BasicsC/terminal-utils.$(OBJEXT) \ - lib/BasicsC/threads-posix.$(OBJEXT) \ - lib/BasicsC/utf8-helper.$(OBJEXT) lib/BasicsC/vector.$(OBJEXT) \ - lib/BasicsC/voc-errors.$(OBJEXT) \ - lib/JsonParser/json-parser.$(OBJEXT) \ - lib/Logger/Logger.$(OBJEXT) lib/Logger/LoggerData.$(OBJEXT) \ - lib/Logger/LoggerInfo.$(OBJEXT) \ - lib/Logger/LoggerStream.$(OBJEXT) \ - lib/Logger/LoggerTiming.$(OBJEXT) \ - lib/ProgramOptions/program-options.$(OBJEXT) \ - lib/Rest/AnyServer.$(OBJEXT) lib/Rest/EndpointList.$(OBJEXT) \ - lib/Rest/Endpoint.$(OBJEXT) lib/Rest/Handler.$(OBJEXT) \ - lib/Rest/HttpRequest.$(OBJEXT) lib/Rest/HttpResponse.$(OBJEXT) \ - lib/Rest/Initialise.$(OBJEXT) lib/Rest/JsonContainer.$(OBJEXT) \ - lib/Rest/SslInterface.$(OBJEXT) lib/Rest/Url.$(OBJEXT) \ - lib/ShapedJson/json-shaper.$(OBJEXT) \ - lib/ShapedJson/shape-accessor.$(OBJEXT) \ - lib/ShapedJson/shaped-json.$(OBJEXT) \ - lib/Statistics/statistics.$(OBJEXT) \ - lib/Utilities/LineEditor.$(OBJEXT) \ - lib/Utilities/ScriptLoader.$(OBJEXT) \ - lib/Variant/VariantArray.$(OBJEXT) \ - lib/Variant/VariantBlob.$(OBJEXT) \ - lib/Variant/VariantBoolean.$(OBJEXT) \ - lib/Variant/VariantDate.$(OBJEXT) \ - lib/Variant/VariantDatetime.$(OBJEXT) \ - lib/Variant/VariantDouble.$(OBJEXT) \ - lib/Variant/VariantFloat.$(OBJEXT) \ - lib/Variant/VariantInt16.$(OBJEXT) \ - lib/Variant/VariantInt32.$(OBJEXT) \ - lib/Variant/VariantInt64.$(OBJEXT) \ - lib/Variant/VariantInt8.$(OBJEXT) \ - lib/Variant/VariantMatrix2.$(OBJEXT) \ - lib/Variant/VariantNull.$(OBJEXT) \ - lib/Variant/VariantObject.$(OBJEXT) \ - lib/Variant/VariantString.$(OBJEXT) \ - lib/Variant/VariantUInt16.$(OBJEXT) \ - lib/Variant/VariantUInt32.$(OBJEXT) \ - lib/Variant/VariantUInt64.$(OBJEXT) \ - lib/Variant/VariantUInt8.$(OBJEXT) \ - lib/Variant/VariantVector.$(OBJEXT) -lib_libarango_a_OBJECTS = $(am_lib_libarango_a_OBJECTS) -lib_libarango_client_a_AR = $(AR) $(ARFLAGS) -lib_libarango_client_a_LIBADD = -am_lib_libarango_client_a_OBJECTS = \ - lib/SimpleHttpClient/GeneralClientConnection.$(OBJEXT) \ - lib/SimpleHttpClient/ClientConnection.$(OBJEXT) \ - lib/SimpleHttpClient/SslClientConnection.$(OBJEXT) \ - lib/SimpleHttpClient/SimpleClient.$(OBJEXT) \ - lib/SimpleHttpClient/SimpleHttpClient.$(OBJEXT) \ - lib/SimpleHttpClient/SimpleHttpResult.$(OBJEXT) -lib_libarango_client_a_OBJECTS = $(am_lib_libarango_client_a_OBJECTS) -lib_libarango_fe_a_AR = $(AR) $(ARFLAGS) -lib_libarango_fe_a_LIBADD = -am_lib_libarango_fe_a_OBJECTS = \ - lib/Admin/ApplicationAdminServer.$(OBJEXT) \ - lib/Admin/RestAdminBaseHandler.$(OBJEXT) \ - lib/Admin/RestAdminFeConfigurationHandler.$(OBJEXT) \ - lib/Admin/RestAdminLogHandler.$(OBJEXT) \ - lib/Admin/RestBaseHandler.$(OBJEXT) \ - lib/Admin/RestVersionHandler.$(OBJEXT) \ - lib/ApplicationServer/ApplicationFeature.$(OBJEXT) \ - lib/ApplicationServer/ApplicationServer.$(OBJEXT) \ - lib/Dispatcher/ApplicationDispatcher.$(OBJEXT) \ - lib/Dispatcher/Dispatcher.$(OBJEXT) \ - lib/Dispatcher/DispatcherQueue.$(OBJEXT) \ - lib/Dispatcher/DispatcherThread.$(OBJEXT) \ - lib/Dispatcher/Job.$(OBJEXT) \ - lib/HttpServer/ApplicationEndpointServer.$(OBJEXT) \ - lib/HttpServer/HttpHandler.$(OBJEXT) \ - lib/HttpServer/HttpHandlerFactory.$(OBJEXT) \ - lib/HttpServer/PathHandler.$(OBJEXT) \ - lib/HttpServer/RedirectHandler.$(OBJEXT) \ - lib/HttpServer/ServiceUnavailableHandler.$(OBJEXT) \ - lib/ResultGenerator/HtmlResultGenerator.$(OBJEXT) \ - lib/ResultGenerator/Initialise.$(OBJEXT) \ - lib/ResultGenerator/JsonResultGenerator.$(OBJEXT) \ - lib/ResultGenerator/JsonXResultGenerator.$(OBJEXT) \ - lib/ResultGenerator/OutputGenerator.$(OBJEXT) \ - lib/ResultGenerator/PhpResultGenerator.$(OBJEXT) \ - lib/ResultGenerator/ResultGenerator.$(OBJEXT) \ - lib/ResultGenerator/XmlResultGenerator.$(OBJEXT) \ - lib/Scheduler/ApplicationScheduler.$(OBJEXT) \ - lib/Scheduler/AsyncTask.$(OBJEXT) \ - lib/Scheduler/ListenTask.$(OBJEXT) \ - lib/Scheduler/PeriodicTask.$(OBJEXT) \ - lib/Scheduler/Scheduler.$(OBJEXT) \ - lib/Scheduler/SchedulerLibev.$(OBJEXT) \ - lib/Scheduler/SchedulerThread.$(OBJEXT) \ - lib/Scheduler/SignalTask.$(OBJEXT) \ - lib/Scheduler/SocketTask.$(OBJEXT) \ - lib/Scheduler/Task.$(OBJEXT) \ - lib/Scheduler/TaskManager.$(OBJEXT) \ - lib/Scheduler/TimerTask.$(OBJEXT) -lib_libarango_fe_a_OBJECTS = $(am_lib_libarango_fe_a_OBJECTS) -lib_libarango_mruby_a_AR = $(AR) $(ARFLAGS) -lib_libarango_mruby_a_LIBADD = -am__lib_libarango_mruby_a_SOURCES_DIST = lib/MRuby/MRLoader.cpp \ - lib/MRuby/MRLineEditor.cpp lib/MRuby/mr-utils.c -@ENABLE_MRUBY_TRUE@am_lib_libarango_mruby_a_OBJECTS = \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/MRLoader.$(OBJEXT) \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/MRLineEditor.$(OBJEXT) \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/mr-utils.$(OBJEXT) -lib_libarango_mruby_a_OBJECTS = $(am_lib_libarango_mruby_a_OBJECTS) -lib_libarango_v8_a_AR = $(AR) $(ARFLAGS) -lib_libarango_v8_a_LIBADD = -am_lib_libarango_v8_a_OBJECTS = lib/V8/JSLoader.$(OBJEXT) \ - lib/V8/V8LineEditor.$(OBJEXT) lib/V8/v8-conv.$(OBJEXT) \ - lib/V8/v8-execution.$(OBJEXT) lib/V8/v8-json.$(OBJEXT) \ - lib/V8/v8-shell.$(OBJEXT) lib/V8/v8-utils.$(OBJEXT) -lib_libarango_v8_a_OBJECTS = $(am_lib_libarango_v8_a_OBJECTS) -@ENABLE_ARANGOB_TRUE@am__EXEEXT_1 = bin/arangob$(EXEEXT) -@ENABLE_MRUBY_TRUE@am__EXEEXT_2 = bin/arangoirb$(EXEEXT) -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" \ - "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)" \ - "$(DESTDIR)$(arangosysconfdir)" "$(DESTDIR)$(pkgdatadir)" -@ENABLE_MAINTAINER_MODE_TRUE@am__EXEEXT_3 = \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/basics_suite$(EXEEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/geo_suite$(EXEEXT) -PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) $(sbin_PROGRAMS) -am__UnitTests_basics_suite_SOURCES_DIST = UnitTests/Runner.cpp \ - UnitTests/Philadelphia/csv-test.cpp \ - UnitTests/Philadelphia/json-test.cpp \ - UnitTests/Philadelphia/json-utilities-test.cpp \ - UnitTests/Philadelphia/hashes-test.cpp \ - UnitTests/Philadelphia/mersenne-test.cpp \ - UnitTests/Philadelphia/associative-pointer-test.cpp \ - UnitTests/Philadelphia/string-buffer-test.cpp \ - UnitTests/Philadelphia/string-utf8-normalize-test.cpp \ - UnitTests/Philadelphia/string-utf8-test.cpp \ - UnitTests/Philadelphia/string-test.cpp \ - UnitTests/Philadelphia/vector-pointer-test.cpp \ - UnitTests/Philadelphia/vector-test.cpp \ - UnitTests/Jutland/EndpointTest.cpp \ - UnitTests/Jutland/StringBufferTest.cpp \ - UnitTests/Jutland/StringUtilsTest.cpp -@ENABLE_MAINTAINER_MODE_TRUE@am_UnitTests_basics_suite_OBJECTS = \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Runner.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/csv-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/json-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/json-utilities-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/hashes-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/mersenne-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/associative-pointer-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-buffer-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-utf8-normalize-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-utf8-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/vector-pointer-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/vector-test.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/EndpointTest.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/StringBufferTest.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/StringUtilsTest.$(OBJEXT) -UnitTests_basics_suite_OBJECTS = $(am_UnitTests_basics_suite_OBJECTS) -am__UnitTests_geo_suite_SOURCES_DIST = UnitTests/Cambridge/Runner.cpp \ - UnitTests/Cambridge/georeg.cpp arangod/GeoIndex/GeoIndex.c -@ENABLE_MAINTAINER_MODE_TRUE@am_UnitTests_geo_suite_OBJECTS = UnitTests/Cambridge/UnitTests_geo_suite-Runner.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Cambridge/UnitTests_geo_suite-georeg.$(OBJEXT) \ -@ENABLE_MAINTAINER_MODE_TRUE@ arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.$(OBJEXT) -UnitTests_geo_suite_OBJECTS = $(am_UnitTests_geo_suite_OBJECTS) -am_bin_arango_dfdb_OBJECTS = -bin_arango_dfdb_OBJECTS = $(am_bin_arango_dfdb_OBJECTS) -bin_arango_dfdb_LDADD = $(LDADD) -am_bin_arango_password_OBJECTS = -bin_arango_password_OBJECTS = $(am_bin_arango_password_OBJECTS) -bin_arango_password_LDADD = $(LDADD) -am_bin_arango_upgrade_OBJECTS = -bin_arango_upgrade_OBJECTS = $(am_bin_arango_upgrade_OBJECTS) -bin_arango_upgrade_LDADD = $(LDADD) -am__bin_arangob_SOURCES_DIST = arangosh/ArangoShell/ArangoClient.cpp \ - arangosh/Benchmark/arangob.cpp -@ENABLE_ARANGOB_TRUE@am_bin_arangob_OBJECTS = arangosh/ArangoShell/bin_arangob-ArangoClient.$(OBJEXT) \ -@ENABLE_ARANGOB_TRUE@ arangosh/Benchmark/bin_arangob-arangob.$(OBJEXT) -bin_arangob_OBJECTS = $(am_bin_arangob_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) -@ENABLE_ARANGOB_TRUE@bin_arangob_DEPENDENCIES = lib/libarango_v8.a \ -@ENABLE_ARANGOB_TRUE@ lib/libarango_client.a lib/libarango.a \ -@ENABLE_ARANGOB_TRUE@ $(am__DEPENDENCIES_2) -am__bin_arangod_SOURCES_DIST = arangod/Actions/actions.cpp \ - arangod/Actions/ActionDispatcherThread.cpp \ - arangod/Actions/RestActionHandler.cpp \ - arangod/Ahuacatl/ahuacatl-access-optimiser.c \ - arangod/Ahuacatl/ahuacatl-ast-node.c \ - arangod/Ahuacatl/ahuacatl-bind-parameter.c \ - arangod/Ahuacatl/ahuacatl-codegen.c \ - arangod/Ahuacatl/ahuacatl-collections.c \ - arangod/Ahuacatl/ahuacatl-context.c \ - arangod/Ahuacatl/ahuacatl-conversions.c \ - arangod/Ahuacatl/ahuacatl-error.c \ - arangod/Ahuacatl/ahuacatl-explain.c \ - arangod/Ahuacatl/ahuacatl-functions.c \ - arangod/Ahuacatl/ahuacatl-grammar.c \ - arangod/Ahuacatl/ahuacatl-index.c \ - arangod/Ahuacatl/ahuacatl-node.c \ - arangod/Ahuacatl/ahuacatl-optimiser.c \ - arangod/Ahuacatl/ahuacatl-parser-functions.c \ - arangod/Ahuacatl/ahuacatl-parser.c \ - arangod/Ahuacatl/ahuacatl-result.c \ - arangod/Ahuacatl/ahuacatl-scope.c \ - arangod/Ahuacatl/ahuacatl-statementlist.c \ - arangod/Ahuacatl/ahuacatl-statement-dump.c \ - arangod/Ahuacatl/ahuacatl-statement-walker.c \ - arangod/Ahuacatl/ahuacatl-tokens.c \ - arangod/Ahuacatl/ahuacatl-variable.c \ - arangod/BitIndexes/bitarray.c \ - arangod/BitIndexes/bitarrayIndex.c arangod/GeoIndex/GeoIndex.c \ - arangod/HashIndex/hasharray.c arangod/HashIndex/hashindex.c \ - arangod/IndexIterators/index-iterator.c \ - arangod/IndexOperators/index-operator.c \ - arangod/PriorityQueue/pqueueindex.c \ - arangod/PriorityQueue/priorityqueue.c \ - arangod/RestHandler/StatisticsBaseHandler.cpp \ - arangod/RestHandler/ConnectionStatisticsHandler.cpp \ - arangod/RestHandler/RequestStatisticsHandler.cpp \ - arangod/RestHandler/RestBatchHandler.cpp \ - arangod/RestHandler/RestDocumentHandler.cpp \ - arangod/RestHandler/RestEdgeHandler.cpp \ - arangod/RestHandler/RestImportHandler.cpp \ - arangod/RestHandler/RestVocbaseBaseHandler.cpp \ - arangod/RestServer/ArangoServer.cpp \ - arangod/RestServer/arango.cpp arangod/SkipLists/skiplist.c \ - arangod/SkipLists/skiplistIndex.c \ - arangod/V8Server/ApplicationV8.cpp \ - arangod/V8Server/v8-actions.cpp \ - arangod/V8Server/v8-objects.cpp arangod/V8Server/v8-query.cpp \ - arangod/V8Server/v8-vocbase.cpp arangod/VocBase/auth.c \ - arangod/VocBase/barrier.c arangod/VocBase/cleanup.c \ - arangod/VocBase/collection.c arangod/VocBase/compactor.c \ - arangod/VocBase/datafile.c \ - arangod/VocBase/document-collection.c \ - arangod/VocBase/edge-collection.c \ - arangod/VocBase/general-cursor.c arangod/VocBase/headers.c \ - arangod/VocBase/index.c arangod/VocBase/primary-collection.c \ - arangod/VocBase/shadow-data.c \ - arangod/VocBase/shape-collection.c \ - arangod/VocBase/synchroniser.c arangod/VocBase/voc-shaper.c \ - arangod/VocBase/vocbase.c arangod/MRServer/ApplicationMR.cpp \ - arangod/MRServer/mr-actions.cpp -@ENABLE_MRUBY_TRUE@am__objects_1 = arangod/MRServer/bin_arangod-ApplicationMR.$(OBJEXT) \ -@ENABLE_MRUBY_TRUE@ arangod/MRServer/bin_arangod-mr-actions.$(OBJEXT) -am_bin_arangod_OBJECTS = \ - arangod/Actions/bin_arangod-actions.$(OBJEXT) \ - arangod/Actions/bin_arangod-ActionDispatcherThread.$(OBJEXT) \ - arangod/Actions/bin_arangod-RestActionHandler.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-collections.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-context.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-error.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-explain.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-functions.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-index.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-node.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-parser.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-result.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-scope.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.$(OBJEXT) \ - arangod/Ahuacatl/bin_arangod-ahuacatl-variable.$(OBJEXT) \ - arangod/BitIndexes/bin_arangod-bitarray.$(OBJEXT) \ - arangod/BitIndexes/bin_arangod-bitarrayIndex.$(OBJEXT) \ - arangod/GeoIndex/bin_arangod-GeoIndex.$(OBJEXT) \ - arangod/HashIndex/bin_arangod-hasharray.$(OBJEXT) \ - arangod/HashIndex/bin_arangod-hashindex.$(OBJEXT) \ - arangod/IndexIterators/bin_arangod-index-iterator.$(OBJEXT) \ - arangod/IndexOperators/bin_arangod-index-operator.$(OBJEXT) \ - arangod/PriorityQueue/bin_arangod-pqueueindex.$(OBJEXT) \ - arangod/PriorityQueue/bin_arangod-priorityqueue.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-StatisticsBaseHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RequestStatisticsHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RestBatchHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RestDocumentHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RestEdgeHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RestImportHandler.$(OBJEXT) \ - arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.$(OBJEXT) \ - arangod/RestServer/bin_arangod-ArangoServer.$(OBJEXT) \ - arangod/RestServer/bin_arangod-arango.$(OBJEXT) \ - arangod/SkipLists/bin_arangod-skiplist.$(OBJEXT) \ - arangod/SkipLists/bin_arangod-skiplistIndex.$(OBJEXT) \ - arangod/V8Server/bin_arangod-ApplicationV8.$(OBJEXT) \ - arangod/V8Server/bin_arangod-v8-actions.$(OBJEXT) \ - arangod/V8Server/bin_arangod-v8-objects.$(OBJEXT) \ - arangod/V8Server/bin_arangod-v8-query.$(OBJEXT) \ - arangod/V8Server/bin_arangod-v8-vocbase.$(OBJEXT) \ - arangod/VocBase/bin_arangod-auth.$(OBJEXT) \ - arangod/VocBase/bin_arangod-barrier.$(OBJEXT) \ - arangod/VocBase/bin_arangod-cleanup.$(OBJEXT) \ - arangod/VocBase/bin_arangod-collection.$(OBJEXT) \ - arangod/VocBase/bin_arangod-compactor.$(OBJEXT) \ - arangod/VocBase/bin_arangod-datafile.$(OBJEXT) \ - arangod/VocBase/bin_arangod-document-collection.$(OBJEXT) \ - arangod/VocBase/bin_arangod-edge-collection.$(OBJEXT) \ - arangod/VocBase/bin_arangod-general-cursor.$(OBJEXT) \ - arangod/VocBase/bin_arangod-headers.$(OBJEXT) \ - arangod/VocBase/bin_arangod-index.$(OBJEXT) \ - arangod/VocBase/bin_arangod-primary-collection.$(OBJEXT) \ - arangod/VocBase/bin_arangod-shadow-data.$(OBJEXT) \ - arangod/VocBase/bin_arangod-shape-collection.$(OBJEXT) \ - arangod/VocBase/bin_arangod-synchroniser.$(OBJEXT) \ - arangod/VocBase/bin_arangod-voc-shaper.$(OBJEXT) \ - arangod/VocBase/bin_arangod-vocbase.$(OBJEXT) $(am__objects_1) -bin_arangod_OBJECTS = $(am_bin_arangod_OBJECTS) -@ENABLE_MRUBY_TRUE@am__DEPENDENCIES_3 = lib/libarango_mruby.a -bin_arangod_DEPENDENCIES = lib/libarango_fe.a lib/libarango_v8.a \ - lib/libarango.a $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) -am_bin_arangoimp_OBJECTS = \ - arangosh/ArangoShell/bin_arangoimp-ArangoClient.$(OBJEXT) \ - arangosh/V8Client/bin_arangoimp-ImportHelper.$(OBJEXT) \ - arangosh/V8Client/bin_arangoimp-V8ClientConnection.$(OBJEXT) \ - arangosh/V8Client/bin_arangoimp-arangoimp.$(OBJEXT) -bin_arangoimp_OBJECTS = $(am_bin_arangoimp_OBJECTS) -bin_arangoimp_DEPENDENCIES = lib/libarango_v8.a lib/libarango_client.a \ - lib/libarango.a $(am__DEPENDENCIES_2) -am__bin_arangoirb_SOURCES_DIST = \ - arangosh/ArangoShell/ArangoClient.cpp \ - arangoirb/MRClient/MRubyClientConnection.cpp \ - arangoirb/MRClient/arangoirb.cpp -@ENABLE_MRUBY_TRUE@am_bin_arangoirb_OBJECTS = arangosh/ArangoShell/bin_arangoirb-ArangoClient.$(OBJEXT) \ -@ENABLE_MRUBY_TRUE@ arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.$(OBJEXT) \ -@ENABLE_MRUBY_TRUE@ arangoirb/MRClient/bin_arangoirb-arangoirb.$(OBJEXT) -bin_arangoirb_OBJECTS = $(am_bin_arangoirb_OBJECTS) -@ENABLE_MRUBY_TRUE@bin_arangoirb_DEPENDENCIES = lib/libarango_mruby.a \ -@ENABLE_MRUBY_TRUE@ lib/libarango_client.a lib/libarango.a \ -@ENABLE_MRUBY_TRUE@ $(am__DEPENDENCIES_2) -am_bin_arangosh_OBJECTS = \ - arangosh/ArangoShell/bin_arangosh-ArangoClient.$(OBJEXT) \ - arangosh/V8Client/bin_arangosh-ImportHelper.$(OBJEXT) \ - arangosh/V8Client/bin_arangosh-V8ClientConnection.$(OBJEXT) \ - arangosh/V8Client/bin_arangosh-arangosh.$(OBJEXT) -bin_arangosh_OBJECTS = $(am_bin_arangosh_OBJECTS) -bin_arangosh_DEPENDENCIES = lib/libarango_v8.a lib/libarango_client.a \ - lib/libarango.a $(am__DEPENDENCIES_2) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/config -I$(top_builddir)/lib/BasicsC -depcomp = $(SHELL) $(top_srcdir)/config/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_@AM_V@) -am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) -am__v_CXX_0 = @echo " CXX " $@; -CXXLD = $(CXX) -CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ -AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) -am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(lib_libarango_a_SOURCES) $(lib_libarango_client_a_SOURCES) \ - $(lib_libarango_fe_a_SOURCES) $(lib_libarango_mruby_a_SOURCES) \ - $(lib_libarango_v8_a_SOURCES) \ - $(UnitTests_basics_suite_SOURCES) \ - $(UnitTests_geo_suite_SOURCES) $(bin_arango_dfdb_SOURCES) \ - $(bin_arango_password_SOURCES) $(bin_arango_upgrade_SOURCES) \ - $(bin_arangob_SOURCES) $(bin_arangod_SOURCES) \ - $(bin_arangoimp_SOURCES) $(bin_arangoirb_SOURCES) \ - $(bin_arangosh_SOURCES) -DIST_SOURCES = $(lib_libarango_a_SOURCES) \ - $(lib_libarango_client_a_SOURCES) \ - $(lib_libarango_fe_a_SOURCES) \ - $(am__lib_libarango_mruby_a_SOURCES_DIST) \ - $(lib_libarango_v8_a_SOURCES) \ - $(am__UnitTests_basics_suite_SOURCES_DIST) \ - $(am__UnitTests_geo_suite_SOURCES_DIST) \ - $(bin_arango_dfdb_SOURCES) $(bin_arango_password_SOURCES) \ - $(bin_arango_upgrade_SOURCES) $(am__bin_arangob_SOURCES_DIST) \ - $(am__bin_arangod_SOURCES_DIST) $(bin_arangoimp_SOURCES) \ - $(am__bin_arangoirb_SOURCES_DIST) $(bin_arangosh_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -man1dir = $(mandir)/man1 -man8dir = $(mandir)/man8 -NROFF = nroff -MANS = $(dist_man_MANS) -DATA = $(arangosysconf_DATA) $(nobase_pkgdata_DATA) -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope -AM_RECURSIVE_TARGETS = cscope -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__post_remove_distdir = $(am__remove_distdir) -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -DIST_TARGETS = dist-gzip -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@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BISON = @BISON@ -BUILD_H = @BUILD_H@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DOT_EXEC = @DOT_EXEC@ -DOT_PATH = @DOT_PATH@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -GCOV_CFLAGS = @GCOV_CFLAGS@ -GCOV_CXXFLAGS = @GCOV_CXXFLAGS@ -GCOV_LDFLAGS = @GCOV_LDFLAGS@ -GCOV_LIBS = @GCOV_LIBS@ -GREP = @GREP@ -HAVE_DOT = @HAVE_DOT@ -HTML2TEXT_EXEC = @HTML2TEXT_EXEC@ -ICU_CPPFLAGS = @ICU_CPPFLAGS@ -ICU_LDFLAGS = @ICU_LDFLAGS@ -ICU_LIBS = @ICU_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ -LIBEV_CPPFLAGS = @LIBEV_CPPFLAGS@ -LIBEV_LDFLAGS = @LIBEV_LDFLAGS@ -LIBEV_LIBS = @LIBEV_LIBS@ -LIBOBJS = @LIBOBJS@ - -################################################################################ -### @brief libraries -################################################################################ -LIBS = @LIBEV_LIBS@ @MATH_LIBS@ @OPENSSL_LIBS@ @ICU_LIBS@ \ - @READLINE_LIBS@ $(am__append_4) -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MARKDOWN_EXEC = @MARKDOWN_EXEC@ -MATH_CPPFLAGS = @MATH_CPPFLAGS@ -MATH_LDFLAGS = @MATH_LDFLAGS@ -MATH_LIBS = @MATH_LIBS@ -MKDIR_P = @MKDIR_P@ -MRUBY_CPPFLAGS = @MRUBY_CPPFLAGS@ -MRUBY_LDFLAGS = @MRUBY_LDFLAGS@ -MRUBY_LIBS = @MRUBY_LIBS@ -OBJEXT = @OBJEXT@ -OPENSSL_CPPFLAGS = @OPENSSL_CPPFLAGS@ -OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -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@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -READLINE_CPPFLAGS = @READLINE_CPPFLAGS@ -READLINE_LDFLAGS = @READLINE_LDFLAGS@ -READLINE_LIBS = @READLINE_LIBS@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -TRI_BITS = @TRI_BITS@ -V8_CPPFLAGS = @V8_CPPFLAGS@ -V8_LDFLAGS = @V8_LDFLAGS@ -V8_LIBS = @V8_LIBS@ -V8_TARGET = @V8_TARGET@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -acx_pthread_config = @acx_pthread_config@ -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 = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -BUILT_SOURCES = build.h $(JAVASCRIPT_HEADER) $(JAVASCRIPT_BROWSER) \ - $(MRUBY_HEADER) etc/arangodb/arangod.conf \ - etc/arangodb/arangoirb.conf etc/arangodb/arangosh.conf \ - $(am__append_13) Doxygen/.setup-directories \ - @builddir@/.setup-js-directories $(am__append_15) \ - $(am__append_17) $(am__append_18) $(am__append_20) \ - $(am__append_22) $(am__append_24) $(am__append_26) - -################################################################################ -### @brief man pages to install -################################################################################ - -################################################################################ -### @brief install man pages -################################################################################ -dist_man_MANS = Doxygen/man/man1/arangoimp.1 \ - Doxygen/man/man1/arangosh.1 Doxygen/man/man8/rcarangod.8 \ - Doxygen/man/man8/arangod.8 Doxygen/man/man8/arango-dfdb.8 \ - Doxygen/man/man8/arango-password.8 \ - Doxygen/man/man8/arango-upgrade.8 $(am__append_14) - -################################################################################ -### @brief files to cleanup -################################################################################ - -################################################################################ -### @brief cleanup -################################################################################ - -################################################################################ -### @brief cleanup -################################################################################ -CLEANUP = .setup-js-directories .setup-mr-directories $(am__append_11) \ - bin/arango-password bin/arango-upgrade bin/arango-dfdb \ - $(DOXYGEN) $(addsuffix .md,$(addprefix Doxygen/xml/,$(WIKI))) \ - $(addsuffix .md,$(addprefix Doxygen/wiki/,$(WIKI))) \ - Doxygen/.setup-directories $(JAVASCRIPT_HEADER) \ - .setup-js-directories $(am__append_16) $(am__append_19) \ - $(am__append_21) $(am__append_23) $(am__append_25) \ - $(am__append_27) - -################################################################################ -### @brief flex files -################################################################################ - -################################################################################ -################################################################################ - -################################################################################ -### @brief flex -################################################################################ - -################################################################################ -################################################################################ - -################################################################################ -### @brief flex -################################################################################ -FLEX_FILES = lib/JsonParser/json-parser.c \ - arangod/Ahuacatl/ahuacatl-tokens.c - -################################################################################ -### @brief flex++ files -################################################################################ - -################################################################################ -### @brief flex++ -################################################################################ -FLEXXX_FILES = lib/V8/v8-json.cpp - -################################################################################ -### @brief bison files -################################################################################ - -################################################################################ -### @brief bison -################################################################################ -BISON_FILES = arangod/Ahuacatl/ahuacatl-grammar.c - -################################################################################ -### @brief bison++ files -################################################################################ -BISONXX_FILES = -@ENABLE_RELATIVE_FALSE@TRI_DATABASEDIR = ${localstatedir}/lib/${PACKAGE_TARNAME} -@ENABLE_RELATIVE_TRUE@TRI_DATABASEDIR = -@ENABLE_RELATIVE_FALSE@TRI_LOGDIR = ${localstatedir}/log/${PACKAGE_TARNAME} -@ENABLE_RELATIVE_TRUE@TRI_LOGDIR = /tmp -@ENABLE_RELATIVE_FALSE@TRI_PKGDATADIR = ${pkgdatadir} -@ENABLE_RELATIVE_TRUE@TRI_PKGDATADIR = . -@ENABLE_RELATIVE_FALSE@TRI_SBINDIR = ${sbindir} -@ENABLE_RELATIVE_TRUE@TRI_SBINDIR = ${abs_builddir}/bin - -################################################################################ -### @brief m4 directory -################################################################################ -ACLOCAL_AMFLAGS = -I m4 - -################################################################################ -### @brief preprocessor flags -################################################################################ -AM_CPPFLAGS = -I@top_srcdir@/lib -I@top_builddir@/lib @LIBEV_CPPFLAGS@ \ - @MATH_CPPFLAGS@ @OPENSSL_CPPFLAGS@ @READLINE_CPPFLAGS@ \ - @ICU_CPPFLAGS@ @V8_CPPFLAGS@ $(am__append_1) $(am__append_2) \ - $(am__append_3) - -################################################################################ -### @brief linker flags -################################################################################ -AM_LDFLAGS = \ - @LIBEV_LDFLAGS@ \ - @MATH_LDFLAGS@ \ - @OPENSSL_LDFLAGS@ \ - @READLINE_LDFLAGS@ \ - @ICU_LDFLAGS@ \ - @V8_LDFLAGS@ - - -################################################################################ -### @brief auxiliary libraries -################################################################################ -noinst_LIBRARIES = lib/libarango.a lib/libarango_v8.a \ - lib/libarango_fe.a lib/libarango_client.a $(am__append_6) - -################################################################################ -### @brief /etc data -################################################################################ -arangosysconfdir = $(sysconfdir)/$(PACKAGE_TARNAME) -arangosysconf_DATA = $(shell find @builddir@/etc/arangodb -name "*.conf" -print) - -################################################################################ -### @brief /share data -################################################################################ -nobase_pkgdata_DATA = $(shell find @srcdir@/js/actions -name "*.js" \ - -print) $(shell find @srcdir@/js/common -name "*.js" -print) \ - $(shell find @srcdir@/js/server -name "*.js" -print) $(shell \ - find @srcdir@/js/client -name "*.js" -print) $(shell find \ - @srcdir@/html -name "*.css" -print) $(shell find @srcdir@/html \ - -name "*.gif" -print) $(shell find @srcdir@/html -name \ - "*.html" -print) $(shell find @srcdir@/html -name "*.ico" \ - -print) $(shell find @srcdir@/html -name "*.js" -print) \ - $(shell find @srcdir@/html -name "*.png" -print) \ - $(am__append_8) -JAVASCRIPT_HEADER = \ - js/common/bootstrap/js-errors.h \ - js/common/bootstrap/js-modules.h \ - js/common/bootstrap/js-print.h \ - js/client/js-client.h \ - js/server/js-server.h \ - js/server/js-ahuacatl.h - - -################################################################################ -### @brief JavaScript modules for browser -################################################################################ -JAVASCRIPT_BROWSER = \ - html/admin/js/modules/simple-query-basics.js \ - html/admin/js/modules/simple-query.js - - -################################################################################ -### @brief MRuby source code as header -################################################################################ -MRUBY_HEADER = \ - mr/common/bootstrap/mr-error.h \ - mr/server/mr-server.h - - -################################################################################ -### @brief JavaScript files -################################################################################ -DOXYGEN = \ - Doxygen/js/actions/system/api-collection.c \ - Doxygen/js/actions/system/api-cursor.c \ - Doxygen/js/actions/system/api-edges.c \ - Doxygen/js/actions/system/api-explain.c \ - Doxygen/js/actions/system/api-index.c \ - Doxygen/js/actions/system/api-query.c \ - Doxygen/js/actions/system/api-simple.c \ - Doxygen/js/actions/system/api-system.c \ - Doxygen/js/common/bootstrap/modules.c \ - Doxygen/js/common/bootstrap/print.c \ - Doxygen/js/common/modules/graph.c \ - Doxygen/js/common/modules/jsunity.c \ - Doxygen/js/common/modules/simple-query-basics.c \ - Doxygen/js/server/modules/org/arangodb/actions.c \ - Doxygen/js/server/modules/simple-query.c \ - Doxygen/js/server/server.c - - -################################################################################ -### @brief wiki pages -################################################################################ -WIKI = \ - ArangoErrors \ - CommandLine \ - Compiling \ - DbaManual \ - DbaManualBasics \ - DbaManualAuthentication \ - DbaManualDatafileDebugger \ - DefineAction \ - FirstStepsArangoDB \ - Glossary \ - Graphs \ - Home \ - HttpBatch \ - HttpCollection \ - HttpCursor \ - HttpImport \ - HttpIndex \ - HttpInterface \ - HttpMisc \ - HttpQueries \ - HttpSimple \ - HttpSystem \ - ImplementorManual \ - ImpManual \ - ImpManualBasics \ - IndexCap \ - IndexCapHttp \ - IndexGeo \ - IndexGeoHttp \ - IndexHash \ - IndexHashHttp \ - IndexSkiplist \ - IndexSkiplistHttp \ - InstallManual \ - Installing \ - JSModuleActions \ - JSModuleConsole \ - JSModuleFs \ - JSModuleGraph \ - JSModuleInternal \ - JSModules \ - Key-Value \ - RefManual \ - RestDocument \ - RestEdge \ - RestSystem \ - ShellCollection \ - ShellDocument \ - ShellEdge \ - ShellIndex \ - SimpleQueries \ - UserManual \ - UserManualBasics \ - UserManualArangosh \ - UserManualActions \ - Aql \ - AqlExamples \ - jsUnity - -lib_libarango_a_SOURCES = \ - lib/Basics/ConditionLocker.cpp \ - lib/Basics/ConditionVariable.cpp \ - lib/Basics/Exceptions.cpp \ - lib/Basics/FileUtils.cpp \ - lib/Basics/Initialise.cpp \ - lib/Basics/LibraryLoader.cpp \ - lib/Basics/Mutex.cpp \ - lib/Basics/MutexLocker.cpp \ - lib/Basics/ProgramOptions.cpp \ - lib/Basics/ProgramOptionsDescription.cpp \ - lib/Basics/Random.cpp \ - lib/Basics/ReadLocker.cpp \ - lib/Basics/ReadUnlocker.cpp \ - lib/Basics/ReadWriteLock.cpp \ - lib/Basics/StringUtils.cpp \ - lib/Basics/Thread.cpp \ - lib/Basics/Timing.cpp \ - lib/Basics/Utf8Helper.cpp \ - lib/Basics/WriteLocker.cpp \ - lib/Basics/WriteUnlocker.cpp \ - lib/Basics/ssl-helper.cpp \ - lib/BasicsC/associative-multi.c \ - lib/BasicsC/associative.c \ - lib/BasicsC/conversions.c \ - lib/BasicsC/csv.c \ - lib/BasicsC/error.c \ - lib/BasicsC/files.c \ - lib/BasicsC/hashes.c \ - lib/BasicsC/init.c \ - lib/BasicsC/json.c \ - lib/BasicsC/json-utilities.c \ - lib/BasicsC/linked-list.c \ - lib/BasicsC/locks-macos.c \ - lib/BasicsC/locks-posix.c \ - lib/BasicsC/logging.c \ - lib/BasicsC/memory.c \ - lib/BasicsC/memory-map-posix.c \ - lib/BasicsC/mersenne.c \ - lib/BasicsC/process-utils.c \ - lib/BasicsC/random.c \ - lib/BasicsC/socket-utils.c \ - lib/BasicsC/string-buffer.c \ - lib/BasicsC/strings.c \ - lib/BasicsC/structures.c \ - lib/BasicsC/system-functions.c \ - lib/BasicsC/terminal-utils-posix.c \ - lib/BasicsC/terminal-utils.c \ - lib/BasicsC/threads-posix.c \ - lib/BasicsC/utf8-helper.c \ - lib/BasicsC/vector.c \ - lib/BasicsC/voc-errors.c \ - lib/JsonParser/json-parser.c \ - lib/Logger/Logger.cpp \ - lib/Logger/LoggerData.cpp \ - lib/Logger/LoggerInfo.cpp \ - lib/Logger/LoggerStream.cpp \ - lib/Logger/LoggerTiming.cpp \ - lib/ProgramOptions/program-options.c \ - lib/Rest/AnyServer.cpp \ - lib/Rest/EndpointList.cpp \ - lib/Rest/Endpoint.cpp \ - lib/Rest/Handler.cpp \ - lib/Rest/HttpRequest.cpp \ - lib/Rest/HttpResponse.cpp \ - lib/Rest/Initialise.cpp \ - lib/Rest/JsonContainer.cpp \ - lib/Rest/SslInterface.cpp \ - lib/Rest/Url.cpp \ - lib/ShapedJson/json-shaper.c \ - lib/ShapedJson/shape-accessor.c \ - lib/ShapedJson/shaped-json.c \ - lib/Statistics/statistics.cpp \ - lib/Utilities/LineEditor.cpp \ - lib/Utilities/ScriptLoader.cpp \ - lib/Variant/VariantArray.cpp \ - lib/Variant/VariantBlob.cpp \ - lib/Variant/VariantBoolean.cpp \ - lib/Variant/VariantDate.cpp \ - lib/Variant/VariantDatetime.cpp \ - lib/Variant/VariantDouble.cpp \ - lib/Variant/VariantFloat.cpp \ - lib/Variant/VariantInt16.cpp \ - lib/Variant/VariantInt32.cpp \ - lib/Variant/VariantInt64.cpp \ - lib/Variant/VariantInt8.cpp \ - lib/Variant/VariantMatrix2.cpp \ - lib/Variant/VariantNull.cpp \ - lib/Variant/VariantObject.cpp \ - lib/Variant/VariantString.cpp \ - lib/Variant/VariantUInt16.cpp \ - lib/Variant/VariantUInt32.cpp \ - lib/Variant/VariantUInt64.cpp \ - lib/Variant/VariantUInt8.cpp \ - lib/Variant/VariantVector.cpp - - -################################################################################ -### @brief library "libarango.a", client part -################################################################################ -lib_libarango_client_a_SOURCES = \ - lib/SimpleHttpClient/GeneralClientConnection.cpp \ - lib/SimpleHttpClient/ClientConnection.cpp \ - lib/SimpleHttpClient/SslClientConnection.cpp \ - lib/SimpleHttpClient/SimpleClient.cpp \ - lib/SimpleHttpClient/SimpleHttpClient.cpp \ - lib/SimpleHttpClient/SimpleHttpResult.cpp - - -################################################################################ -### @brief library "libarango.a", front-end part -################################################################################ -lib_libarango_fe_a_SOURCES = \ - lib/Admin/ApplicationAdminServer.cpp \ - lib/Admin/RestAdminBaseHandler.cpp \ - lib/Admin/RestAdminFeConfigurationHandler.cpp \ - lib/Admin/RestAdminLogHandler.cpp \ - lib/Admin/RestBaseHandler.cpp \ - lib/Admin/RestVersionHandler.cpp \ - lib/ApplicationServer/ApplicationFeature.cpp \ - lib/ApplicationServer/ApplicationServer.cpp \ - lib/Dispatcher/ApplicationDispatcher.cpp \ - lib/Dispatcher/Dispatcher.cpp \ - lib/Dispatcher/DispatcherQueue.cpp \ - lib/Dispatcher/DispatcherThread.cpp \ - lib/Dispatcher/Job.cpp \ - lib/HttpServer/ApplicationEndpointServer.cpp \ - lib/HttpServer/HttpHandler.cpp \ - lib/HttpServer/HttpHandlerFactory.cpp \ - lib/HttpServer/PathHandler.cpp \ - lib/HttpServer/RedirectHandler.cpp \ - lib/HttpServer/ServiceUnavailableHandler.cpp \ - lib/ResultGenerator/HtmlResultGenerator.cpp \ - lib/ResultGenerator/Initialise.cpp \ - lib/ResultGenerator/JsonResultGenerator.cpp \ - lib/ResultGenerator/JsonXResultGenerator.cpp \ - lib/ResultGenerator/OutputGenerator.cpp \ - lib/ResultGenerator/PhpResultGenerator.cpp \ - lib/ResultGenerator/ResultGenerator.cpp \ - lib/ResultGenerator/XmlResultGenerator.cpp \ - lib/Scheduler/ApplicationScheduler.cpp \ - lib/Scheduler/AsyncTask.cpp \ - lib/Scheduler/ListenTask.cpp \ - lib/Scheduler/PeriodicTask.cpp \ - lib/Scheduler/Scheduler.cpp \ - lib/Scheduler/SchedulerLibev.cpp \ - lib/Scheduler/SchedulerThread.cpp \ - lib/Scheduler/SignalTask.cpp \ - lib/Scheduler/SocketTask.cpp \ - lib/Scheduler/Task.cpp \ - lib/Scheduler/TaskManager.cpp \ - lib/Scheduler/TimerTask.cpp - - -################################################################################ -### @brief library "libarango.a", JavaScript part -################################################################################ -lib_libarango_v8_a_SOURCES = \ - lib/V8/JSLoader.cpp \ - lib/V8/V8LineEditor.cpp \ - lib/V8/v8-conv.cpp \ - lib/V8/v8-execution.cpp \ - lib/V8/v8-json.cpp \ - lib/V8/v8-shell.cpp \ - lib/V8/v8-utils.cpp - - -################################################################################ -### @brief library "libarango.a", Ruby part -################################################################################ -@ENABLE_MRUBY_TRUE@lib_libarango_mruby_a_SOURCES = \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/MRLoader.cpp \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/MRLineEditor.cpp \ -@ENABLE_MRUBY_TRUE@ lib/MRuby/mr-utils.c - -bin_arangod_CPPFLAGS = \ - -I@top_srcdir@/arangod \ - $(AM_CPPFLAGS) - -bin_arangod_LDADD = lib/libarango_fe.a lib/libarango_v8.a \ - lib/libarango.a $(LIBS) @V8_LIBS@ $(am__append_9) -bin_arangod_SOURCES = arangod/Actions/actions.cpp \ - arangod/Actions/ActionDispatcherThread.cpp \ - arangod/Actions/RestActionHandler.cpp \ - arangod/Ahuacatl/ahuacatl-access-optimiser.c \ - arangod/Ahuacatl/ahuacatl-ast-node.c \ - arangod/Ahuacatl/ahuacatl-bind-parameter.c \ - arangod/Ahuacatl/ahuacatl-codegen.c \ - arangod/Ahuacatl/ahuacatl-collections.c \ - arangod/Ahuacatl/ahuacatl-context.c \ - arangod/Ahuacatl/ahuacatl-conversions.c \ - arangod/Ahuacatl/ahuacatl-error.c \ - arangod/Ahuacatl/ahuacatl-explain.c \ - arangod/Ahuacatl/ahuacatl-functions.c \ - arangod/Ahuacatl/ahuacatl-grammar.c \ - arangod/Ahuacatl/ahuacatl-index.c \ - arangod/Ahuacatl/ahuacatl-node.c \ - arangod/Ahuacatl/ahuacatl-optimiser.c \ - arangod/Ahuacatl/ahuacatl-parser-functions.c \ - arangod/Ahuacatl/ahuacatl-parser.c \ - arangod/Ahuacatl/ahuacatl-result.c \ - arangod/Ahuacatl/ahuacatl-scope.c \ - arangod/Ahuacatl/ahuacatl-statementlist.c \ - arangod/Ahuacatl/ahuacatl-statement-dump.c \ - arangod/Ahuacatl/ahuacatl-statement-walker.c \ - arangod/Ahuacatl/ahuacatl-tokens.c \ - arangod/Ahuacatl/ahuacatl-variable.c \ - arangod/BitIndexes/bitarray.c \ - arangod/BitIndexes/bitarrayIndex.c arangod/GeoIndex/GeoIndex.c \ - arangod/HashIndex/hasharray.c arangod/HashIndex/hashindex.c \ - arangod/IndexIterators/index-iterator.c \ - arangod/IndexOperators/index-operator.c \ - arangod/PriorityQueue/pqueueindex.c \ - arangod/PriorityQueue/priorityqueue.c \ - arangod/RestHandler/StatisticsBaseHandler.cpp \ - arangod/RestHandler/ConnectionStatisticsHandler.cpp \ - arangod/RestHandler/RequestStatisticsHandler.cpp \ - arangod/RestHandler/RestBatchHandler.cpp \ - arangod/RestHandler/RestDocumentHandler.cpp \ - arangod/RestHandler/RestEdgeHandler.cpp \ - arangod/RestHandler/RestImportHandler.cpp \ - arangod/RestHandler/RestVocbaseBaseHandler.cpp \ - arangod/RestServer/ArangoServer.cpp \ - arangod/RestServer/arango.cpp arangod/SkipLists/skiplist.c \ - arangod/SkipLists/skiplistIndex.c \ - arangod/V8Server/ApplicationV8.cpp \ - arangod/V8Server/v8-actions.cpp \ - arangod/V8Server/v8-objects.cpp arangod/V8Server/v8-query.cpp \ - arangod/V8Server/v8-vocbase.cpp arangod/VocBase/auth.c \ - arangod/VocBase/barrier.c arangod/VocBase/cleanup.c \ - arangod/VocBase/collection.c arangod/VocBase/compactor.c \ - arangod/VocBase/datafile.c \ - arangod/VocBase/document-collection.c \ - arangod/VocBase/edge-collection.c \ - arangod/VocBase/general-cursor.c arangod/VocBase/headers.c \ - arangod/VocBase/index.c arangod/VocBase/primary-collection.c \ - arangod/VocBase/shadow-data.c \ - arangod/VocBase/shape-collection.c \ - arangod/VocBase/synchroniser.c arangod/VocBase/voc-shaper.c \ - arangod/VocBase/vocbase.c $(am__append_10) -bin_arangosh_CPPFLAGS = \ - -I@top_srcdir@/arangosh \ - $(AM_CPPFLAGS) - -bin_arangosh_LDADD = \ - lib/libarango_v8.a \ - lib/libarango_client.a \ - lib/libarango.a \ - $(LIBS) \ - @V8_LIBS@ - -bin_arangosh_SOURCES = \ - arangosh/ArangoShell/ArangoClient.cpp \ - arangosh/V8Client/ImportHelper.cpp \ - arangosh/V8Client/V8ClientConnection.cpp \ - arangosh/V8Client/arangosh.cpp - - -################################################################################ -### @brief program "arangoimp" -################################################################################ -bin_arangoimp_CPPFLAGS = \ - -I@top_srcdir@/arangosh \ - $(AM_CPPFLAGS) - -bin_arangoimp_LDADD = \ - lib/libarango_v8.a \ - lib/libarango_client.a \ - lib/libarango.a \ - $(LIBS) \ - @V8_LIBS@ - -bin_arangoimp_SOURCES = \ - arangosh/ArangoShell/ArangoClient.cpp \ - arangosh/V8Client/ImportHelper.cpp \ - arangosh/V8Client/V8ClientConnection.cpp \ - arangosh/V8Client/arangoimp.cpp - - -################################################################################ -### @brief program "arangob" -################################################################################ -@ENABLE_ARANGOB_TRUE@bin_arangob_CPPFLAGS = \ -@ENABLE_ARANGOB_TRUE@ -I@top_srcdir@/arangosh \ -@ENABLE_ARANGOB_TRUE@ $(AM_CPPFLAGS) - -@ENABLE_ARANGOB_TRUE@bin_arangob_LDADD = \ -@ENABLE_ARANGOB_TRUE@ lib/libarango_v8.a \ -@ENABLE_ARANGOB_TRUE@ lib/libarango_client.a \ -@ENABLE_ARANGOB_TRUE@ lib/libarango.a \ -@ENABLE_ARANGOB_TRUE@ $(LIBS) \ -@ENABLE_ARANGOB_TRUE@ @V8_LIBS@ - -@ENABLE_ARANGOB_TRUE@bin_arangob_SOURCES = \ -@ENABLE_ARANGOB_TRUE@ arangosh/ArangoShell/ArangoClient.cpp \ -@ENABLE_ARANGOB_TRUE@ arangosh/Benchmark/arangob.cpp - - -################################################################################ -### @brief arango password -################################################################################ - -# exclude arango skripts from sources list -bin_arango_password_SOURCES = - -################################################################################ -### @brief arango upgrade -################################################################################ - -# exclude arango skripts from sources list -bin_arango_upgrade_SOURCES = - -################################################################################ -### @brief arango datafile debugger -################################################################################ - -# exclude arango skrips from sources list -bin_arango_dfdb_SOURCES = -@ENABLE_MRUBY_TRUE@bin_arangoirb_CPPFLAGS = \ -@ENABLE_MRUBY_TRUE@ -I@top_srcdir@/arangoirb \ -@ENABLE_MRUBY_TRUE@ -I@top_srcdir@/arangosh \ -@ENABLE_MRUBY_TRUE@ $(AM_CPPFLAGS) - -@ENABLE_MRUBY_TRUE@bin_arangoirb_LDADD = \ -@ENABLE_MRUBY_TRUE@ lib/libarango_mruby.a \ -@ENABLE_MRUBY_TRUE@ lib/libarango_client.a \ -@ENABLE_MRUBY_TRUE@ lib/libarango.a \ -@ENABLE_MRUBY_TRUE@ $(LIBS) \ -@ENABLE_MRUBY_TRUE@ @MRUBY_LIBS@ - -@ENABLE_MRUBY_TRUE@bin_arangoirb_SOURCES = \ -@ENABLE_MRUBY_TRUE@ arangosh/ArangoShell/ArangoClient.cpp \ -@ENABLE_MRUBY_TRUE@ arangoirb/MRClient/MRubyClientConnection.cpp \ -@ENABLE_MRUBY_TRUE@ arangoirb/MRClient/arangoirb.cpp - -FORCE = 0 -SKIP_BOOST = 0 -SKIP_GEO = 0 -SKIP_AHUACATL = 0 -SKIP_RANGES = 0 -VALGRIND = -USERNAME = root -PASSWORD = -PROTO = http - -################################################################################ -################################################################################ -PID := $(shell echo $$PPID) -PIDFILE := /tmp/arango.$(PID).pid -VOCDIR := /tmp/vocdir.$(PID) -VOCPORT := $(shell printf "3%04d" `expr $(PID) % 10000`) -VOCHOST := 127.0.0.1 -STARTFILE := $(VOCDIR)/startup -CURL := curl -CURL_OPT := --basic --user "$(USERNAME):$(PASSWORD)" -CERT_FILE := @top_srcdir@/UnitTests/server.pem -SERVER_START := -SERVER_OPT := \ - --configuration none \ - --database.maximal-journal-size 1048576 \ - --javascript.action-directory @top_srcdir@/js/actions/system \ - --javascript.gc-interval 1 \ - --javascript.modules-path @top_srcdir@/js/server/modules:@top_srcdir@/js/common/modules \ - --javascript.startup-directory @top_srcdir@/js \ - --ruby.action-directory @top_srcdir@/mr/actions/system \ - --ruby.modules-path @top_srcdir@/mr/server/modules:@top_srcdir@/mr/common/modules \ - --server.threads 4 \ - --server.admin-directory ./html/admin \ - $(SERVER_START) - -CLIENT_OPT := \ - --configuration none \ - --javascript.startup-directory @top_srcdir@/js \ - --javascript.modules-path @top_srcdir@/js/client/modules:@top_srcdir@/js/common/modules \ - --no-colors \ - --quiet - -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_basics_suite_LDADD = -L@top_builddir@/lib -larango -lboost_unit_test_framework -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_basics_suite_DEPENDENCIES = @top_builddir@/lib/libarango.a -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_basics_suite_SOURCES = \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Runner.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/csv-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/json-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/json-utilities-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/hashes-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/mersenne-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/associative-pointer-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-buffer-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-utf8-normalize-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-utf8-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/string-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/vector-pointer-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Philadelphia/vector-test.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/EndpointTest.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/StringBufferTest.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Jutland/StringUtilsTest.cpp - -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_geo_suite_CPPFLAGS = -I@top_srcdir@/arangod -I@top_builddir@/lib -I@top_srcdir@/lib -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_geo_suite_LDADD = -L@top_builddir@/lib -larango -lboost_unit_test_framework -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_geo_suite_DEPENDENCIES = @top_builddir@/lib/libarango.a -@ENABLE_MAINTAINER_MODE_TRUE@UnitTests_geo_suite_SOURCES = \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Cambridge/Runner.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ UnitTests/Cambridge/georeg.cpp \ -@ENABLE_MAINTAINER_MODE_TRUE@ arangod/GeoIndex/GeoIndex.c - - -################################################################################ -################################################################################ -SHELL_COMMON = @top_srcdir@/js/common/tests/shell-document.js \ - @top_srcdir@/js/common/tests/shell-edge.js \ - @top_srcdir@/js/common/tests/shell-compactor.js \ - @top_srcdir@/js/common/tests/shell-collection.js \ - @top_srcdir@/js/common/tests/shell-simple-query.js \ - @top_srcdir@/js/common/tests/shell-statement.js \ - @top_srcdir@/js/common/tests/shell-index.js \ - @top_srcdir@/js/common/tests/shell-index-geo.js \ - @top_srcdir@/js/common/tests/shell-cap-constraint.js \ - @top_srcdir@/js/common/tests/shell-unique-constraint.js \ - @top_srcdir@/js/common/tests/shell-hash-index.js - -SHELL_SERVER = $(SHELL_COMMON) \ - @top_srcdir@/js/common/tests/shell-graph.js \ - @top_srcdir@/js/common/tests/shell-graph-algorithms.js \ - @top_srcdir@/js/common/tests/shell-graph-measurement.js - -UNITTESTS_SERVER = $(addprefix --javascript.unit-tests ,$(SHELL_SERVER)) - -################################################################################ -################################################################################ -SHELL_SERVER_AHUACATL = @top_srcdir@/js/server/tests/ahuacatl-ranges.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-optimiser.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-optimiser-ref.js \ - @top_srcdir@/js/server/tests/ahuacatl-escaping.js \ - @top_srcdir@/js/server/tests/ahuacatl-functions.js \ - @top_srcdir@/js/server/tests/ahuacatl-variables.js \ - @top_srcdir@/js/server/tests/ahuacatl-bind.js \ - @top_srcdir@/js/server/tests/ahuacatl-complex.js \ - @top_srcdir@/js/server/tests/ahuacatl-logical.js \ - @top_srcdir@/js/server/tests/ahuacatl-arithmetic.js \ - @top_srcdir@/js/server/tests/ahuacatl-relational.js \ - @top_srcdir@/js/server/tests/ahuacatl-ternary.js \ - @top_srcdir@/js/server/tests/ahuacatl-parse.js \ - @top_srcdir@/js/server/tests/ahuacatl-hash.js \ - @top_srcdir@/js/server/tests/ahuacatl-skiplist.js \ - @top_srcdir@/js/server/tests/ahuacatl-refaccess-variable.js \ - @top_srcdir@/js/server/tests/ahuacatl-refaccess-attribute.js \ - @top_srcdir@/js/server/tests/ahuacatl-skiplist.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-simple.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-variables.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-geo.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-collection.js \ - @top_srcdir@/js/server/tests/ahuacatl-queries-noncollection.js \ - @top_srcdir@/js/server/tests/ahuacatl-operators.js - -SHELL_SERVER_AHUACATL_EXTENDED = \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-1.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-2.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-3.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-4.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-5.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-6.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-7.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-8.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-9.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-10.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-11.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-12.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-13.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-14.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-15.js \ - @top_srcdir@/js/server/tests/ahuacatl-ranges-combined-16.js - -UNITTESTS_SERVER_AHUACATL = $(addprefix --javascript.unit-tests ,$(SHELL_SERVER_AHUACATL)) -UNITTESTS_SERVER_AHUACATL_EXTENDED = $(addprefix --javascript.unit-tests ,$(SHELL_SERVER_AHUACATL_EXTENDED)) - -################################################################################ -################################################################################ -SHELL_CLIENT = $(SHELL_COMMON) @top_srcdir@/js/client/tests/client.js -UNITTESTS_CLIENT = $(addprefix --javascript.unit-tests ,$(SHELL_CLIENT)) - -################################################################################ -################################################################################ -BITARRAY_COMMON = @top_srcdir@/js/common/tests/shell-bitarray-index.js -UNITTESTS_SERVER_BITARRAY = $(addprefix --javascript.unit-tests ,$(BITARRAY_COMMON)) - -################################################################################ -### @brief tags file -################################################################################ -GTAGS_FILES = $(sort $(abspath $(SOURCES) $(HEADERS))) -@ENABLE_ALL_IN_ONE_ICU_TRUE@ICUDIR = @abs_top_srcdir@/3rdParty/icu/BUILD -all: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) all-am - -.SUFFIXES: -.SUFFIXES: .c .cpp .o .obj -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/Makefile.files $(srcdir)/lib/Makefile.files $(srcdir)/arangod/Makefile.files $(srcdir)/arangosh/Makefile.files $(srcdir)/etc/Makefile.files $(srcdir)/utils/Makefile.files $(srcdir)/arangoirb/Makefile.files $(srcdir)/UnitTests/Makefile.files $(srcdir)/Documentation/Makefile.doxygen $(srcdir)/js/Makefile.javascript $(srcdir)/mr/Makefile.mruby $(srcdir)/lib/Makefile.flex $(srcdir)/lib/Makefile.bison $(srcdir)/3rdParty/Makefile.all-in-one-libev $(srcdir)/3rdParty/Makefile.all-in-one-v8 $(srcdir)/3rdParty/Makefile.all-in-one-mruby $(srcdir)/3rdParty/Makefile.all-in-one-icu $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign 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; -$(srcdir)/Makefile.files $(srcdir)/lib/Makefile.files $(srcdir)/arangod/Makefile.files $(srcdir)/arangosh/Makefile.files $(srcdir)/etc/Makefile.files $(srcdir)/utils/Makefile.files $(srcdir)/arangoirb/Makefile.files $(srcdir)/UnitTests/Makefile.files $(srcdir)/Documentation/Makefile.doxygen $(srcdir)/js/Makefile.javascript $(srcdir)/mr/Makefile.mruby $(srcdir)/lib/Makefile.flex $(srcdir)/lib/Makefile.bison $(srcdir)/3rdParty/Makefile.all-in-one-libev $(srcdir)/3rdParty/Makefile.all-in-one-v8 $(srcdir)/3rdParty/Makefile.all-in-one-mruby $(srcdir)/3rdParty/Makefile.all-in-one-icu: - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config/config.h: config/stamp-h1 - @if test ! -f $@; then rm -f config/stamp-h1; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) config/stamp-h1; else :; fi - -config/stamp-h1: $(top_srcdir)/config/config.h.in $(top_builddir)/config.status - @rm -f config/stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config/config.h -$(top_srcdir)/config/config.h.in: $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f config/stamp-h1 - touch $@ - -lib/BasicsC/local-configuration.h: lib/BasicsC/stamp-h2 - @if test ! -f $@; then rm -f lib/BasicsC/stamp-h2; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) lib/BasicsC/stamp-h2; else :; fi - -lib/BasicsC/stamp-h2: $(top_srcdir)/lib/BasicsC/local-configuration.h.in $(top_builddir)/config.status - @rm -f lib/BasicsC/stamp-h2 - cd $(top_builddir) && $(SHELL) ./config.status lib/BasicsC/local-configuration.h - -distclean-hdr: - -rm -f config/config.h config/stamp-h1 lib/BasicsC/local-configuration.h lib/BasicsC/stamp-h2 -Documentation/arango.template: $(top_builddir)/config.status $(top_srcdir)/Documentation/arango.template.in - cd $(top_builddir) && $(SHELL) ./config.status $@ - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) -lib/Basics/$(am__dirstamp): - @$(MKDIR_P) lib/Basics - @: > lib/Basics/$(am__dirstamp) -lib/Basics/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Basics/$(DEPDIR) - @: > lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ConditionLocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ConditionVariable.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Exceptions.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/FileUtils.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Initialise.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/LibraryLoader.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Mutex.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/MutexLocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ProgramOptions.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ProgramOptionsDescription.$(OBJEXT): \ - lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Random.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ReadLocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ReadUnlocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ReadWriteLock.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/StringUtils.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Thread.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Timing.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/Utf8Helper.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/WriteLocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/WriteUnlocker.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/Basics/ssl-helper.$(OBJEXT): lib/Basics/$(am__dirstamp) \ - lib/Basics/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/$(am__dirstamp): - @$(MKDIR_P) lib/BasicsC - @: > lib/BasicsC/$(am__dirstamp) -lib/BasicsC/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/BasicsC/$(DEPDIR) - @: > lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/associative-multi.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/associative.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/conversions.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/csv.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/error.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/files.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/hashes.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/init.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/json.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/json-utilities.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/linked-list.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/locks-macos.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/locks-posix.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/logging.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/memory.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/memory-map-posix.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/mersenne.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/process-utils.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/random.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/socket-utils.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/string-buffer.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/strings.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/structures.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/system-functions.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/terminal-utils-posix.$(OBJEXT): \ - lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/terminal-utils.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/threads-posix.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/utf8-helper.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/vector.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/BasicsC/voc-errors.$(OBJEXT): lib/BasicsC/$(am__dirstamp) \ - lib/BasicsC/$(DEPDIR)/$(am__dirstamp) -lib/JsonParser/$(am__dirstamp): - @$(MKDIR_P) lib/JsonParser - @: > lib/JsonParser/$(am__dirstamp) -lib/JsonParser/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/JsonParser/$(DEPDIR) - @: > lib/JsonParser/$(DEPDIR)/$(am__dirstamp) -lib/JsonParser/json-parser.$(OBJEXT): lib/JsonParser/$(am__dirstamp) \ - lib/JsonParser/$(DEPDIR)/$(am__dirstamp) -lib/Logger/$(am__dirstamp): - @$(MKDIR_P) lib/Logger - @: > lib/Logger/$(am__dirstamp) -lib/Logger/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Logger/$(DEPDIR) - @: > lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/Logger/Logger.$(OBJEXT): lib/Logger/$(am__dirstamp) \ - lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/Logger/LoggerData.$(OBJEXT): lib/Logger/$(am__dirstamp) \ - lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/Logger/LoggerInfo.$(OBJEXT): lib/Logger/$(am__dirstamp) \ - lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/Logger/LoggerStream.$(OBJEXT): lib/Logger/$(am__dirstamp) \ - lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/Logger/LoggerTiming.$(OBJEXT): lib/Logger/$(am__dirstamp) \ - lib/Logger/$(DEPDIR)/$(am__dirstamp) -lib/ProgramOptions/$(am__dirstamp): - @$(MKDIR_P) lib/ProgramOptions - @: > lib/ProgramOptions/$(am__dirstamp) -lib/ProgramOptions/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/ProgramOptions/$(DEPDIR) - @: > lib/ProgramOptions/$(DEPDIR)/$(am__dirstamp) -lib/ProgramOptions/program-options.$(OBJEXT): \ - lib/ProgramOptions/$(am__dirstamp) \ - lib/ProgramOptions/$(DEPDIR)/$(am__dirstamp) -lib/Rest/$(am__dirstamp): - @$(MKDIR_P) lib/Rest - @: > lib/Rest/$(am__dirstamp) -lib/Rest/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Rest/$(DEPDIR) - @: > lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/AnyServer.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/EndpointList.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/Endpoint.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/Handler.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/HttpRequest.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/HttpResponse.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/Initialise.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/JsonContainer.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/SslInterface.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/Rest/Url.$(OBJEXT): lib/Rest/$(am__dirstamp) \ - lib/Rest/$(DEPDIR)/$(am__dirstamp) -lib/ShapedJson/$(am__dirstamp): - @$(MKDIR_P) lib/ShapedJson - @: > lib/ShapedJson/$(am__dirstamp) -lib/ShapedJson/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/ShapedJson/$(DEPDIR) - @: > lib/ShapedJson/$(DEPDIR)/$(am__dirstamp) -lib/ShapedJson/json-shaper.$(OBJEXT): lib/ShapedJson/$(am__dirstamp) \ - lib/ShapedJson/$(DEPDIR)/$(am__dirstamp) -lib/ShapedJson/shape-accessor.$(OBJEXT): \ - lib/ShapedJson/$(am__dirstamp) \ - lib/ShapedJson/$(DEPDIR)/$(am__dirstamp) -lib/ShapedJson/shaped-json.$(OBJEXT): lib/ShapedJson/$(am__dirstamp) \ - lib/ShapedJson/$(DEPDIR)/$(am__dirstamp) -lib/Statistics/$(am__dirstamp): - @$(MKDIR_P) lib/Statistics - @: > lib/Statistics/$(am__dirstamp) -lib/Statistics/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Statistics/$(DEPDIR) - @: > lib/Statistics/$(DEPDIR)/$(am__dirstamp) -lib/Statistics/statistics.$(OBJEXT): lib/Statistics/$(am__dirstamp) \ - lib/Statistics/$(DEPDIR)/$(am__dirstamp) -lib/Utilities/$(am__dirstamp): - @$(MKDIR_P) lib/Utilities - @: > lib/Utilities/$(am__dirstamp) -lib/Utilities/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Utilities/$(DEPDIR) - @: > lib/Utilities/$(DEPDIR)/$(am__dirstamp) -lib/Utilities/LineEditor.$(OBJEXT): lib/Utilities/$(am__dirstamp) \ - lib/Utilities/$(DEPDIR)/$(am__dirstamp) -lib/Utilities/ScriptLoader.$(OBJEXT): lib/Utilities/$(am__dirstamp) \ - lib/Utilities/$(DEPDIR)/$(am__dirstamp) -lib/Variant/$(am__dirstamp): - @$(MKDIR_P) lib/Variant - @: > lib/Variant/$(am__dirstamp) -lib/Variant/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Variant/$(DEPDIR) - @: > lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantArray.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantBlob.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantBoolean.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantDate.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantDatetime.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantDouble.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantFloat.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantInt16.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantInt32.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantInt64.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantInt8.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantMatrix2.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantNull.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantObject.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantString.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantUInt16.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantUInt32.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantUInt64.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantUInt8.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/Variant/VariantVector.$(OBJEXT): lib/Variant/$(am__dirstamp) \ - lib/Variant/$(DEPDIR)/$(am__dirstamp) -lib/$(am__dirstamp): - @$(MKDIR_P) lib - @: > lib/$(am__dirstamp) -lib/libarango.a: $(lib_libarango_a_OBJECTS) $(lib_libarango_a_DEPENDENCIES) $(EXTRA_lib_libarango_a_DEPENDENCIES) lib/$(am__dirstamp) - $(AM_V_at)-rm -f lib/libarango.a - $(AM_V_AR)$(lib_libarango_a_AR) lib/libarango.a $(lib_libarango_a_OBJECTS) $(lib_libarango_a_LIBADD) - $(AM_V_at)$(RANLIB) lib/libarango.a -lib/SimpleHttpClient/$(am__dirstamp): - @$(MKDIR_P) lib/SimpleHttpClient - @: > lib/SimpleHttpClient/$(am__dirstamp) -lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/SimpleHttpClient/$(DEPDIR) - @: > lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/GeneralClientConnection.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/ClientConnection.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/SslClientConnection.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/SimpleClient.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/SimpleHttpClient.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/SimpleHttpClient/SimpleHttpResult.$(OBJEXT): \ - lib/SimpleHttpClient/$(am__dirstamp) \ - lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) -lib/libarango_client.a: $(lib_libarango_client_a_OBJECTS) $(lib_libarango_client_a_DEPENDENCIES) $(EXTRA_lib_libarango_client_a_DEPENDENCIES) lib/$(am__dirstamp) - $(AM_V_at)-rm -f lib/libarango_client.a - $(AM_V_AR)$(lib_libarango_client_a_AR) lib/libarango_client.a $(lib_libarango_client_a_OBJECTS) $(lib_libarango_client_a_LIBADD) - $(AM_V_at)$(RANLIB) lib/libarango_client.a -lib/Admin/$(am__dirstamp): - @$(MKDIR_P) lib/Admin - @: > lib/Admin/$(am__dirstamp) -lib/Admin/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Admin/$(DEPDIR) - @: > lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/ApplicationAdminServer.$(OBJEXT): lib/Admin/$(am__dirstamp) \ - lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/RestAdminBaseHandler.$(OBJEXT): lib/Admin/$(am__dirstamp) \ - lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/RestAdminFeConfigurationHandler.$(OBJEXT): \ - lib/Admin/$(am__dirstamp) lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/RestAdminLogHandler.$(OBJEXT): lib/Admin/$(am__dirstamp) \ - lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/RestBaseHandler.$(OBJEXT): lib/Admin/$(am__dirstamp) \ - lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/Admin/RestVersionHandler.$(OBJEXT): lib/Admin/$(am__dirstamp) \ - lib/Admin/$(DEPDIR)/$(am__dirstamp) -lib/ApplicationServer/$(am__dirstamp): - @$(MKDIR_P) lib/ApplicationServer - @: > lib/ApplicationServer/$(am__dirstamp) -lib/ApplicationServer/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/ApplicationServer/$(DEPDIR) - @: > lib/ApplicationServer/$(DEPDIR)/$(am__dirstamp) -lib/ApplicationServer/ApplicationFeature.$(OBJEXT): \ - lib/ApplicationServer/$(am__dirstamp) \ - lib/ApplicationServer/$(DEPDIR)/$(am__dirstamp) -lib/ApplicationServer/ApplicationServer.$(OBJEXT): \ - lib/ApplicationServer/$(am__dirstamp) \ - lib/ApplicationServer/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/$(am__dirstamp): - @$(MKDIR_P) lib/Dispatcher - @: > lib/Dispatcher/$(am__dirstamp) -lib/Dispatcher/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Dispatcher/$(DEPDIR) - @: > lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/ApplicationDispatcher.$(OBJEXT): \ - lib/Dispatcher/$(am__dirstamp) \ - lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/Dispatcher.$(OBJEXT): lib/Dispatcher/$(am__dirstamp) \ - lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/DispatcherQueue.$(OBJEXT): \ - lib/Dispatcher/$(am__dirstamp) \ - lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/DispatcherThread.$(OBJEXT): \ - lib/Dispatcher/$(am__dirstamp) \ - lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/Dispatcher/Job.$(OBJEXT): lib/Dispatcher/$(am__dirstamp) \ - lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/$(am__dirstamp): - @$(MKDIR_P) lib/HttpServer - @: > lib/HttpServer/$(am__dirstamp) -lib/HttpServer/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/HttpServer/$(DEPDIR) - @: > lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/ApplicationEndpointServer.$(OBJEXT): \ - lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/HttpHandler.$(OBJEXT): lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/HttpHandlerFactory.$(OBJEXT): \ - lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/PathHandler.$(OBJEXT): lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/RedirectHandler.$(OBJEXT): \ - lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/HttpServer/ServiceUnavailableHandler.$(OBJEXT): \ - lib/HttpServer/$(am__dirstamp) \ - lib/HttpServer/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/$(am__dirstamp): - @$(MKDIR_P) lib/ResultGenerator - @: > lib/ResultGenerator/$(am__dirstamp) -lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/ResultGenerator/$(DEPDIR) - @: > lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/HtmlResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/Initialise.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/JsonResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/JsonXResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/OutputGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/PhpResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/ResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/ResultGenerator/XmlResultGenerator.$(OBJEXT): \ - lib/ResultGenerator/$(am__dirstamp) \ - lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/$(am__dirstamp): - @$(MKDIR_P) lib/Scheduler - @: > lib/Scheduler/$(am__dirstamp) -lib/Scheduler/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/Scheduler/$(DEPDIR) - @: > lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/ApplicationScheduler.$(OBJEXT): \ - lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/AsyncTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/ListenTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/PeriodicTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/Scheduler.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/SchedulerLibev.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/SchedulerThread.$(OBJEXT): \ - lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/SignalTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/SocketTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/Task.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/TaskManager.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/Scheduler/TimerTask.$(OBJEXT): lib/Scheduler/$(am__dirstamp) \ - lib/Scheduler/$(DEPDIR)/$(am__dirstamp) -lib/libarango_fe.a: $(lib_libarango_fe_a_OBJECTS) $(lib_libarango_fe_a_DEPENDENCIES) $(EXTRA_lib_libarango_fe_a_DEPENDENCIES) lib/$(am__dirstamp) - $(AM_V_at)-rm -f lib/libarango_fe.a - $(AM_V_AR)$(lib_libarango_fe_a_AR) lib/libarango_fe.a $(lib_libarango_fe_a_OBJECTS) $(lib_libarango_fe_a_LIBADD) - $(AM_V_at)$(RANLIB) lib/libarango_fe.a -lib/MRuby/$(am__dirstamp): - @$(MKDIR_P) lib/MRuby - @: > lib/MRuby/$(am__dirstamp) -lib/MRuby/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/MRuby/$(DEPDIR) - @: > lib/MRuby/$(DEPDIR)/$(am__dirstamp) -lib/MRuby/MRLoader.$(OBJEXT): lib/MRuby/$(am__dirstamp) \ - lib/MRuby/$(DEPDIR)/$(am__dirstamp) -lib/MRuby/MRLineEditor.$(OBJEXT): lib/MRuby/$(am__dirstamp) \ - lib/MRuby/$(DEPDIR)/$(am__dirstamp) -lib/MRuby/mr-utils.$(OBJEXT): lib/MRuby/$(am__dirstamp) \ - lib/MRuby/$(DEPDIR)/$(am__dirstamp) -lib/libarango_mruby.a: $(lib_libarango_mruby_a_OBJECTS) $(lib_libarango_mruby_a_DEPENDENCIES) $(EXTRA_lib_libarango_mruby_a_DEPENDENCIES) lib/$(am__dirstamp) - $(AM_V_at)-rm -f lib/libarango_mruby.a - $(AM_V_AR)$(lib_libarango_mruby_a_AR) lib/libarango_mruby.a $(lib_libarango_mruby_a_OBJECTS) $(lib_libarango_mruby_a_LIBADD) - $(AM_V_at)$(RANLIB) lib/libarango_mruby.a -lib/V8/$(am__dirstamp): - @$(MKDIR_P) lib/V8 - @: > lib/V8/$(am__dirstamp) -lib/V8/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/V8/$(DEPDIR) - @: > lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/JSLoader.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/V8LineEditor.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/v8-conv.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/v8-execution.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/v8-json.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/v8-shell.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/V8/v8-utils.$(OBJEXT): lib/V8/$(am__dirstamp) \ - lib/V8/$(DEPDIR)/$(am__dirstamp) -lib/libarango_v8.a: $(lib_libarango_v8_a_OBJECTS) $(lib_libarango_v8_a_DEPENDENCIES) $(EXTRA_lib_libarango_v8_a_DEPENDENCIES) lib/$(am__dirstamp) - $(AM_V_at)-rm -f lib/libarango_v8.a - $(AM_V_AR)$(lib_libarango_v8_a_AR) lib/libarango_v8.a $(lib_libarango_v8_a_OBJECTS) $(lib_libarango_v8_a_LIBADD) - $(AM_V_at)$(RANLIB) lib/libarango_v8.a -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p; \ - then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) - -clean-noinstPROGRAMS: - -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) -install-sbinPROGRAMS: $(sbin_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p; \ - then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-sbinPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(sbindir)" && rm -f $$files - -clean-sbinPROGRAMS: - -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS) -UnitTests/$(am__dirstamp): - @$(MKDIR_P) UnitTests - @: > UnitTests/$(am__dirstamp) -UnitTests/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) UnitTests/$(DEPDIR) - @: > UnitTests/$(DEPDIR)/$(am__dirstamp) -UnitTests/Runner.$(OBJEXT): UnitTests/$(am__dirstamp) \ - UnitTests/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Philadelphia - @: > UnitTests/Philadelphia/$(am__dirstamp) -UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Philadelphia/$(DEPDIR) - @: > UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/csv-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/json-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/json-utilities-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/hashes-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/mersenne-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/associative-pointer-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/string-buffer-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/string-utf8-normalize-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/string-utf8-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/string-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/vector-pointer-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Philadelphia/vector-test.$(OBJEXT): \ - UnitTests/Philadelphia/$(am__dirstamp) \ - UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) -UnitTests/Jutland/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Jutland - @: > UnitTests/Jutland/$(am__dirstamp) -UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Jutland/$(DEPDIR) - @: > UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp) -UnitTests/Jutland/EndpointTest.$(OBJEXT): \ - UnitTests/Jutland/$(am__dirstamp) \ - UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp) -UnitTests/Jutland/StringBufferTest.$(OBJEXT): \ - UnitTests/Jutland/$(am__dirstamp) \ - UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp) -UnitTests/Jutland/StringUtilsTest.$(OBJEXT): \ - UnitTests/Jutland/$(am__dirstamp) \ - UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp) -UnitTests/basics_suite$(EXEEXT): $(UnitTests_basics_suite_OBJECTS) $(UnitTests_basics_suite_DEPENDENCIES) $(EXTRA_UnitTests_basics_suite_DEPENDENCIES) UnitTests/$(am__dirstamp) - @rm -f UnitTests/basics_suite$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(UnitTests_basics_suite_OBJECTS) $(UnitTests_basics_suite_LDADD) $(LIBS) -UnitTests/Cambridge/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Cambridge - @: > UnitTests/Cambridge/$(am__dirstamp) -UnitTests/Cambridge/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) UnitTests/Cambridge/$(DEPDIR) - @: > UnitTests/Cambridge/$(DEPDIR)/$(am__dirstamp) -UnitTests/Cambridge/UnitTests_geo_suite-Runner.$(OBJEXT): \ - UnitTests/Cambridge/$(am__dirstamp) \ - UnitTests/Cambridge/$(DEPDIR)/$(am__dirstamp) -UnitTests/Cambridge/UnitTests_geo_suite-georeg.$(OBJEXT): \ - UnitTests/Cambridge/$(am__dirstamp) \ - UnitTests/Cambridge/$(DEPDIR)/$(am__dirstamp) -arangod/GeoIndex/$(am__dirstamp): - @$(MKDIR_P) arangod/GeoIndex - @: > arangod/GeoIndex/$(am__dirstamp) -arangod/GeoIndex/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/GeoIndex/$(DEPDIR) - @: > arangod/GeoIndex/$(DEPDIR)/$(am__dirstamp) -arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.$(OBJEXT): \ - arangod/GeoIndex/$(am__dirstamp) \ - arangod/GeoIndex/$(DEPDIR)/$(am__dirstamp) -UnitTests/geo_suite$(EXEEXT): $(UnitTests_geo_suite_OBJECTS) $(UnitTests_geo_suite_DEPENDENCIES) $(EXTRA_UnitTests_geo_suite_DEPENDENCIES) UnitTests/$(am__dirstamp) - @rm -f UnitTests/geo_suite$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(UnitTests_geo_suite_OBJECTS) $(UnitTests_geo_suite_LDADD) $(LIBS) -bin/$(am__dirstamp): - @$(MKDIR_P) bin - @: > bin/$(am__dirstamp) -arangosh/ArangoShell/$(am__dirstamp): - @$(MKDIR_P) arangosh/ArangoShell - @: > arangosh/ArangoShell/$(am__dirstamp) -arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangosh/ArangoShell/$(DEPDIR) - @: > arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) -arangosh/ArangoShell/bin_arangob-ArangoClient.$(OBJEXT): \ - arangosh/ArangoShell/$(am__dirstamp) \ - arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) -arangosh/Benchmark/$(am__dirstamp): - @$(MKDIR_P) arangosh/Benchmark - @: > arangosh/Benchmark/$(am__dirstamp) -arangosh/Benchmark/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangosh/Benchmark/$(DEPDIR) - @: > arangosh/Benchmark/$(DEPDIR)/$(am__dirstamp) -arangosh/Benchmark/bin_arangob-arangob.$(OBJEXT): \ - arangosh/Benchmark/$(am__dirstamp) \ - arangosh/Benchmark/$(DEPDIR)/$(am__dirstamp) -bin/arangob$(EXEEXT): $(bin_arangob_OBJECTS) $(bin_arangob_DEPENDENCIES) $(EXTRA_bin_arangob_DEPENDENCIES) bin/$(am__dirstamp) - @rm -f bin/arangob$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(bin_arangob_OBJECTS) $(bin_arangob_LDADD) $(LIBS) -arangod/Actions/$(am__dirstamp): - @$(MKDIR_P) arangod/Actions - @: > arangod/Actions/$(am__dirstamp) -arangod/Actions/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/Actions/$(DEPDIR) - @: > arangod/Actions/$(DEPDIR)/$(am__dirstamp) -arangod/Actions/bin_arangod-actions.$(OBJEXT): \ - arangod/Actions/$(am__dirstamp) \ - arangod/Actions/$(DEPDIR)/$(am__dirstamp) -arangod/Actions/bin_arangod-ActionDispatcherThread.$(OBJEXT): \ - arangod/Actions/$(am__dirstamp) \ - arangod/Actions/$(DEPDIR)/$(am__dirstamp) -arangod/Actions/bin_arangod-RestActionHandler.$(OBJEXT): \ - arangod/Actions/$(am__dirstamp) \ - arangod/Actions/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/$(am__dirstamp): - @$(MKDIR_P) arangod/Ahuacatl - @: > arangod/Ahuacatl/$(am__dirstamp) -arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/Ahuacatl/$(DEPDIR) - @: > arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-collections.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-context.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-error.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-explain.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-functions.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-index.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-node.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-parser.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-result.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-scope.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/Ahuacatl/bin_arangod-ahuacatl-variable.$(OBJEXT): \ - arangod/Ahuacatl/$(am__dirstamp) \ - arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) -arangod/BitIndexes/$(am__dirstamp): - @$(MKDIR_P) arangod/BitIndexes - @: > arangod/BitIndexes/$(am__dirstamp) -arangod/BitIndexes/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/BitIndexes/$(DEPDIR) - @: > arangod/BitIndexes/$(DEPDIR)/$(am__dirstamp) -arangod/BitIndexes/bin_arangod-bitarray.$(OBJEXT): \ - arangod/BitIndexes/$(am__dirstamp) \ - arangod/BitIndexes/$(DEPDIR)/$(am__dirstamp) -arangod/BitIndexes/bin_arangod-bitarrayIndex.$(OBJEXT): \ - arangod/BitIndexes/$(am__dirstamp) \ - arangod/BitIndexes/$(DEPDIR)/$(am__dirstamp) -arangod/GeoIndex/bin_arangod-GeoIndex.$(OBJEXT): \ - arangod/GeoIndex/$(am__dirstamp) \ - arangod/GeoIndex/$(DEPDIR)/$(am__dirstamp) -arangod/HashIndex/$(am__dirstamp): - @$(MKDIR_P) arangod/HashIndex - @: > arangod/HashIndex/$(am__dirstamp) -arangod/HashIndex/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/HashIndex/$(DEPDIR) - @: > arangod/HashIndex/$(DEPDIR)/$(am__dirstamp) -arangod/HashIndex/bin_arangod-hasharray.$(OBJEXT): \ - arangod/HashIndex/$(am__dirstamp) \ - arangod/HashIndex/$(DEPDIR)/$(am__dirstamp) -arangod/HashIndex/bin_arangod-hashindex.$(OBJEXT): \ - arangod/HashIndex/$(am__dirstamp) \ - arangod/HashIndex/$(DEPDIR)/$(am__dirstamp) -arangod/IndexIterators/$(am__dirstamp): - @$(MKDIR_P) arangod/IndexIterators - @: > arangod/IndexIterators/$(am__dirstamp) -arangod/IndexIterators/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/IndexIterators/$(DEPDIR) - @: > arangod/IndexIterators/$(DEPDIR)/$(am__dirstamp) -arangod/IndexIterators/bin_arangod-index-iterator.$(OBJEXT): \ - arangod/IndexIterators/$(am__dirstamp) \ - arangod/IndexIterators/$(DEPDIR)/$(am__dirstamp) -arangod/IndexOperators/$(am__dirstamp): - @$(MKDIR_P) arangod/IndexOperators - @: > arangod/IndexOperators/$(am__dirstamp) -arangod/IndexOperators/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/IndexOperators/$(DEPDIR) - @: > arangod/IndexOperators/$(DEPDIR)/$(am__dirstamp) -arangod/IndexOperators/bin_arangod-index-operator.$(OBJEXT): \ - arangod/IndexOperators/$(am__dirstamp) \ - arangod/IndexOperators/$(DEPDIR)/$(am__dirstamp) -arangod/PriorityQueue/$(am__dirstamp): - @$(MKDIR_P) arangod/PriorityQueue - @: > arangod/PriorityQueue/$(am__dirstamp) -arangod/PriorityQueue/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/PriorityQueue/$(DEPDIR) - @: > arangod/PriorityQueue/$(DEPDIR)/$(am__dirstamp) -arangod/PriorityQueue/bin_arangod-pqueueindex.$(OBJEXT): \ - arangod/PriorityQueue/$(am__dirstamp) \ - arangod/PriorityQueue/$(DEPDIR)/$(am__dirstamp) -arangod/PriorityQueue/bin_arangod-priorityqueue.$(OBJEXT): \ - arangod/PriorityQueue/$(am__dirstamp) \ - arangod/PriorityQueue/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/$(am__dirstamp): - @$(MKDIR_P) arangod/RestHandler - @: > arangod/RestHandler/$(am__dirstamp) -arangod/RestHandler/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/RestHandler/$(DEPDIR) - @: > arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-StatisticsBaseHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RequestStatisticsHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RestBatchHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RestDocumentHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RestEdgeHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RestImportHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.$(OBJEXT): \ - arangod/RestHandler/$(am__dirstamp) \ - arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) -arangod/RestServer/$(am__dirstamp): - @$(MKDIR_P) arangod/RestServer - @: > arangod/RestServer/$(am__dirstamp) -arangod/RestServer/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/RestServer/$(DEPDIR) - @: > arangod/RestServer/$(DEPDIR)/$(am__dirstamp) -arangod/RestServer/bin_arangod-ArangoServer.$(OBJEXT): \ - arangod/RestServer/$(am__dirstamp) \ - arangod/RestServer/$(DEPDIR)/$(am__dirstamp) -arangod/RestServer/bin_arangod-arango.$(OBJEXT): \ - arangod/RestServer/$(am__dirstamp) \ - arangod/RestServer/$(DEPDIR)/$(am__dirstamp) -arangod/SkipLists/$(am__dirstamp): - @$(MKDIR_P) arangod/SkipLists - @: > arangod/SkipLists/$(am__dirstamp) -arangod/SkipLists/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/SkipLists/$(DEPDIR) - @: > arangod/SkipLists/$(DEPDIR)/$(am__dirstamp) -arangod/SkipLists/bin_arangod-skiplist.$(OBJEXT): \ - arangod/SkipLists/$(am__dirstamp) \ - arangod/SkipLists/$(DEPDIR)/$(am__dirstamp) -arangod/SkipLists/bin_arangod-skiplistIndex.$(OBJEXT): \ - arangod/SkipLists/$(am__dirstamp) \ - arangod/SkipLists/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/$(am__dirstamp): - @$(MKDIR_P) arangod/V8Server - @: > arangod/V8Server/$(am__dirstamp) -arangod/V8Server/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/V8Server/$(DEPDIR) - @: > arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/bin_arangod-ApplicationV8.$(OBJEXT): \ - arangod/V8Server/$(am__dirstamp) \ - arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/bin_arangod-v8-actions.$(OBJEXT): \ - arangod/V8Server/$(am__dirstamp) \ - arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/bin_arangod-v8-objects.$(OBJEXT): \ - arangod/V8Server/$(am__dirstamp) \ - arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/bin_arangod-v8-query.$(OBJEXT): \ - arangod/V8Server/$(am__dirstamp) \ - arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/V8Server/bin_arangod-v8-vocbase.$(OBJEXT): \ - arangod/V8Server/$(am__dirstamp) \ - arangod/V8Server/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/$(am__dirstamp): - @$(MKDIR_P) arangod/VocBase - @: > arangod/VocBase/$(am__dirstamp) -arangod/VocBase/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/VocBase/$(DEPDIR) - @: > arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-auth.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-barrier.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-cleanup.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-collection.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-compactor.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-datafile.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-document-collection.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-edge-collection.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-general-cursor.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-headers.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-index.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-primary-collection.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-shadow-data.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-shape-collection.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-synchroniser.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-voc-shaper.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/VocBase/bin_arangod-vocbase.$(OBJEXT): \ - arangod/VocBase/$(am__dirstamp) \ - arangod/VocBase/$(DEPDIR)/$(am__dirstamp) -arangod/MRServer/$(am__dirstamp): - @$(MKDIR_P) arangod/MRServer - @: > arangod/MRServer/$(am__dirstamp) -arangod/MRServer/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangod/MRServer/$(DEPDIR) - @: > arangod/MRServer/$(DEPDIR)/$(am__dirstamp) -arangod/MRServer/bin_arangod-ApplicationMR.$(OBJEXT): \ - arangod/MRServer/$(am__dirstamp) \ - arangod/MRServer/$(DEPDIR)/$(am__dirstamp) -arangod/MRServer/bin_arangod-mr-actions.$(OBJEXT): \ - arangod/MRServer/$(am__dirstamp) \ - arangod/MRServer/$(DEPDIR)/$(am__dirstamp) -bin/arangod$(EXEEXT): $(bin_arangod_OBJECTS) $(bin_arangod_DEPENDENCIES) $(EXTRA_bin_arangod_DEPENDENCIES) bin/$(am__dirstamp) - @rm -f bin/arangod$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(bin_arangod_OBJECTS) $(bin_arangod_LDADD) $(LIBS) -arangosh/ArangoShell/bin_arangoimp-ArangoClient.$(OBJEXT): \ - arangosh/ArangoShell/$(am__dirstamp) \ - arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/$(am__dirstamp): - @$(MKDIR_P) arangosh/V8Client - @: > arangosh/V8Client/$(am__dirstamp) -arangosh/V8Client/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangosh/V8Client/$(DEPDIR) - @: > arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangoimp-ImportHelper.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangoimp-V8ClientConnection.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangoimp-arangoimp.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -bin/arangoimp$(EXEEXT): $(bin_arangoimp_OBJECTS) $(bin_arangoimp_DEPENDENCIES) $(EXTRA_bin_arangoimp_DEPENDENCIES) bin/$(am__dirstamp) - @rm -f bin/arangoimp$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(bin_arangoimp_OBJECTS) $(bin_arangoimp_LDADD) $(LIBS) -arangosh/ArangoShell/bin_arangoirb-ArangoClient.$(OBJEXT): \ - arangosh/ArangoShell/$(am__dirstamp) \ - arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) -arangoirb/MRClient/$(am__dirstamp): - @$(MKDIR_P) arangoirb/MRClient - @: > arangoirb/MRClient/$(am__dirstamp) -arangoirb/MRClient/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) arangoirb/MRClient/$(DEPDIR) - @: > arangoirb/MRClient/$(DEPDIR)/$(am__dirstamp) -arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.$(OBJEXT): \ - arangoirb/MRClient/$(am__dirstamp) \ - arangoirb/MRClient/$(DEPDIR)/$(am__dirstamp) -arangoirb/MRClient/bin_arangoirb-arangoirb.$(OBJEXT): \ - arangoirb/MRClient/$(am__dirstamp) \ - arangoirb/MRClient/$(DEPDIR)/$(am__dirstamp) -bin/arangoirb$(EXEEXT): $(bin_arangoirb_OBJECTS) $(bin_arangoirb_DEPENDENCIES) $(EXTRA_bin_arangoirb_DEPENDENCIES) bin/$(am__dirstamp) - @rm -f bin/arangoirb$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(bin_arangoirb_OBJECTS) $(bin_arangoirb_LDADD) $(LIBS) -arangosh/ArangoShell/bin_arangosh-ArangoClient.$(OBJEXT): \ - arangosh/ArangoShell/$(am__dirstamp) \ - arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangosh-ImportHelper.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangosh-V8ClientConnection.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -arangosh/V8Client/bin_arangosh-arangosh.$(OBJEXT): \ - arangosh/V8Client/$(am__dirstamp) \ - arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) -bin/arangosh$(EXEEXT): $(bin_arangosh_OBJECTS) $(bin_arangosh_DEPENDENCIES) $(EXTRA_bin_arangosh_DEPENDENCIES) bin/$(am__dirstamp) - @rm -f bin/arangosh$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(bin_arangosh_OBJECTS) $(bin_arangosh_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -rm -f UnitTests/Cambridge/UnitTests_geo_suite-Runner.$(OBJEXT) - -rm -f UnitTests/Cambridge/UnitTests_geo_suite-georeg.$(OBJEXT) - -rm -f UnitTests/Jutland/EndpointTest.$(OBJEXT) - -rm -f UnitTests/Jutland/StringBufferTest.$(OBJEXT) - -rm -f UnitTests/Jutland/StringUtilsTest.$(OBJEXT) - -rm -f UnitTests/Philadelphia/associative-pointer-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/csv-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/hashes-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/json-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/json-utilities-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/mersenne-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/string-buffer-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/string-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/string-utf8-normalize-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/string-utf8-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/vector-pointer-test.$(OBJEXT) - -rm -f UnitTests/Philadelphia/vector-test.$(OBJEXT) - -rm -f UnitTests/Runner.$(OBJEXT) - -rm -f arangod/Actions/bin_arangod-ActionDispatcherThread.$(OBJEXT) - -rm -f arangod/Actions/bin_arangod-RestActionHandler.$(OBJEXT) - -rm -f arangod/Actions/bin_arangod-actions.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-collections.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-context.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-error.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-explain.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-functions.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-index.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-node.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-parser.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-result.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-scope.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.$(OBJEXT) - -rm -f arangod/Ahuacatl/bin_arangod-ahuacatl-variable.$(OBJEXT) - -rm -f arangod/BitIndexes/bin_arangod-bitarray.$(OBJEXT) - -rm -f arangod/BitIndexes/bin_arangod-bitarrayIndex.$(OBJEXT) - -rm -f arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.$(OBJEXT) - -rm -f arangod/GeoIndex/bin_arangod-GeoIndex.$(OBJEXT) - -rm -f arangod/HashIndex/bin_arangod-hasharray.$(OBJEXT) - -rm -f arangod/HashIndex/bin_arangod-hashindex.$(OBJEXT) - -rm -f arangod/IndexIterators/bin_arangod-index-iterator.$(OBJEXT) - -rm -f arangod/IndexOperators/bin_arangod-index-operator.$(OBJEXT) - -rm -f arangod/MRServer/bin_arangod-ApplicationMR.$(OBJEXT) - -rm -f arangod/MRServer/bin_arangod-mr-actions.$(OBJEXT) - -rm -f arangod/PriorityQueue/bin_arangod-pqueueindex.$(OBJEXT) - -rm -f arangod/PriorityQueue/bin_arangod-priorityqueue.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RequestStatisticsHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RestBatchHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RestDocumentHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RestEdgeHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RestImportHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.$(OBJEXT) - -rm -f arangod/RestHandler/bin_arangod-StatisticsBaseHandler.$(OBJEXT) - -rm -f arangod/RestServer/bin_arangod-ArangoServer.$(OBJEXT) - -rm -f arangod/RestServer/bin_arangod-arango.$(OBJEXT) - -rm -f arangod/SkipLists/bin_arangod-skiplist.$(OBJEXT) - -rm -f arangod/SkipLists/bin_arangod-skiplistIndex.$(OBJEXT) - -rm -f arangod/V8Server/bin_arangod-ApplicationV8.$(OBJEXT) - -rm -f arangod/V8Server/bin_arangod-v8-actions.$(OBJEXT) - -rm -f arangod/V8Server/bin_arangod-v8-objects.$(OBJEXT) - -rm -f arangod/V8Server/bin_arangod-v8-query.$(OBJEXT) - -rm -f arangod/V8Server/bin_arangod-v8-vocbase.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-auth.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-barrier.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-cleanup.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-collection.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-compactor.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-datafile.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-document-collection.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-edge-collection.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-general-cursor.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-headers.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-index.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-primary-collection.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-shadow-data.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-shape-collection.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-synchroniser.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-voc-shaper.$(OBJEXT) - -rm -f arangod/VocBase/bin_arangod-vocbase.$(OBJEXT) - -rm -f arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.$(OBJEXT) - -rm -f arangoirb/MRClient/bin_arangoirb-arangoirb.$(OBJEXT) - -rm -f arangosh/ArangoShell/bin_arangob-ArangoClient.$(OBJEXT) - -rm -f arangosh/ArangoShell/bin_arangoimp-ArangoClient.$(OBJEXT) - -rm -f arangosh/ArangoShell/bin_arangoirb-ArangoClient.$(OBJEXT) - -rm -f arangosh/ArangoShell/bin_arangosh-ArangoClient.$(OBJEXT) - -rm -f arangosh/Benchmark/bin_arangob-arangob.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangoimp-ImportHelper.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangoimp-V8ClientConnection.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangoimp-arangoimp.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangosh-ImportHelper.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangosh-V8ClientConnection.$(OBJEXT) - -rm -f arangosh/V8Client/bin_arangosh-arangosh.$(OBJEXT) - -rm -f lib/Admin/ApplicationAdminServer.$(OBJEXT) - -rm -f lib/Admin/RestAdminBaseHandler.$(OBJEXT) - -rm -f lib/Admin/RestAdminFeConfigurationHandler.$(OBJEXT) - -rm -f lib/Admin/RestAdminLogHandler.$(OBJEXT) - -rm -f lib/Admin/RestBaseHandler.$(OBJEXT) - -rm -f lib/Admin/RestVersionHandler.$(OBJEXT) - -rm -f lib/ApplicationServer/ApplicationFeature.$(OBJEXT) - -rm -f lib/ApplicationServer/ApplicationServer.$(OBJEXT) - -rm -f lib/Basics/ConditionLocker.$(OBJEXT) - -rm -f lib/Basics/ConditionVariable.$(OBJEXT) - -rm -f lib/Basics/Exceptions.$(OBJEXT) - -rm -f lib/Basics/FileUtils.$(OBJEXT) - -rm -f lib/Basics/Initialise.$(OBJEXT) - -rm -f lib/Basics/LibraryLoader.$(OBJEXT) - -rm -f lib/Basics/Mutex.$(OBJEXT) - -rm -f lib/Basics/MutexLocker.$(OBJEXT) - -rm -f lib/Basics/ProgramOptions.$(OBJEXT) - -rm -f lib/Basics/ProgramOptionsDescription.$(OBJEXT) - -rm -f lib/Basics/Random.$(OBJEXT) - -rm -f lib/Basics/ReadLocker.$(OBJEXT) - -rm -f lib/Basics/ReadUnlocker.$(OBJEXT) - -rm -f lib/Basics/ReadWriteLock.$(OBJEXT) - -rm -f lib/Basics/StringUtils.$(OBJEXT) - -rm -f lib/Basics/Thread.$(OBJEXT) - -rm -f lib/Basics/Timing.$(OBJEXT) - -rm -f lib/Basics/Utf8Helper.$(OBJEXT) - -rm -f lib/Basics/WriteLocker.$(OBJEXT) - -rm -f lib/Basics/WriteUnlocker.$(OBJEXT) - -rm -f lib/Basics/ssl-helper.$(OBJEXT) - -rm -f lib/BasicsC/associative-multi.$(OBJEXT) - -rm -f lib/BasicsC/associative.$(OBJEXT) - -rm -f lib/BasicsC/conversions.$(OBJEXT) - -rm -f lib/BasicsC/csv.$(OBJEXT) - -rm -f lib/BasicsC/error.$(OBJEXT) - -rm -f lib/BasicsC/files.$(OBJEXT) - -rm -f lib/BasicsC/hashes.$(OBJEXT) - -rm -f lib/BasicsC/init.$(OBJEXT) - -rm -f lib/BasicsC/json-utilities.$(OBJEXT) - -rm -f lib/BasicsC/json.$(OBJEXT) - -rm -f lib/BasicsC/linked-list.$(OBJEXT) - -rm -f lib/BasicsC/locks-macos.$(OBJEXT) - -rm -f lib/BasicsC/locks-posix.$(OBJEXT) - -rm -f lib/BasicsC/logging.$(OBJEXT) - -rm -f lib/BasicsC/memory-map-posix.$(OBJEXT) - -rm -f lib/BasicsC/memory.$(OBJEXT) - -rm -f lib/BasicsC/mersenne.$(OBJEXT) - -rm -f lib/BasicsC/process-utils.$(OBJEXT) - -rm -f lib/BasicsC/random.$(OBJEXT) - -rm -f lib/BasicsC/socket-utils.$(OBJEXT) - -rm -f lib/BasicsC/string-buffer.$(OBJEXT) - -rm -f lib/BasicsC/strings.$(OBJEXT) - -rm -f lib/BasicsC/structures.$(OBJEXT) - -rm -f lib/BasicsC/system-functions.$(OBJEXT) - -rm -f lib/BasicsC/terminal-utils-posix.$(OBJEXT) - -rm -f lib/BasicsC/terminal-utils.$(OBJEXT) - -rm -f lib/BasicsC/threads-posix.$(OBJEXT) - -rm -f lib/BasicsC/utf8-helper.$(OBJEXT) - -rm -f lib/BasicsC/vector.$(OBJEXT) - -rm -f lib/BasicsC/voc-errors.$(OBJEXT) - -rm -f lib/Dispatcher/ApplicationDispatcher.$(OBJEXT) - -rm -f lib/Dispatcher/Dispatcher.$(OBJEXT) - -rm -f lib/Dispatcher/DispatcherQueue.$(OBJEXT) - -rm -f lib/Dispatcher/DispatcherThread.$(OBJEXT) - -rm -f lib/Dispatcher/Job.$(OBJEXT) - -rm -f lib/HttpServer/ApplicationEndpointServer.$(OBJEXT) - -rm -f lib/HttpServer/HttpHandler.$(OBJEXT) - -rm -f lib/HttpServer/HttpHandlerFactory.$(OBJEXT) - -rm -f lib/HttpServer/PathHandler.$(OBJEXT) - -rm -f lib/HttpServer/RedirectHandler.$(OBJEXT) - -rm -f lib/HttpServer/ServiceUnavailableHandler.$(OBJEXT) - -rm -f lib/JsonParser/json-parser.$(OBJEXT) - -rm -f lib/Logger/Logger.$(OBJEXT) - -rm -f lib/Logger/LoggerData.$(OBJEXT) - -rm -f lib/Logger/LoggerInfo.$(OBJEXT) - -rm -f lib/Logger/LoggerStream.$(OBJEXT) - -rm -f lib/Logger/LoggerTiming.$(OBJEXT) - -rm -f lib/MRuby/MRLineEditor.$(OBJEXT) - -rm -f lib/MRuby/MRLoader.$(OBJEXT) - -rm -f lib/MRuby/mr-utils.$(OBJEXT) - -rm -f lib/ProgramOptions/program-options.$(OBJEXT) - -rm -f lib/Rest/AnyServer.$(OBJEXT) - -rm -f lib/Rest/Endpoint.$(OBJEXT) - -rm -f lib/Rest/EndpointList.$(OBJEXT) - -rm -f lib/Rest/Handler.$(OBJEXT) - -rm -f lib/Rest/HttpRequest.$(OBJEXT) - -rm -f lib/Rest/HttpResponse.$(OBJEXT) - -rm -f lib/Rest/Initialise.$(OBJEXT) - -rm -f lib/Rest/JsonContainer.$(OBJEXT) - -rm -f lib/Rest/SslInterface.$(OBJEXT) - -rm -f lib/Rest/Url.$(OBJEXT) - -rm -f lib/ResultGenerator/HtmlResultGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/Initialise.$(OBJEXT) - -rm -f lib/ResultGenerator/JsonResultGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/JsonXResultGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/OutputGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/PhpResultGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/ResultGenerator.$(OBJEXT) - -rm -f lib/ResultGenerator/XmlResultGenerator.$(OBJEXT) - -rm -f lib/Scheduler/ApplicationScheduler.$(OBJEXT) - -rm -f lib/Scheduler/AsyncTask.$(OBJEXT) - -rm -f lib/Scheduler/ListenTask.$(OBJEXT) - -rm -f lib/Scheduler/PeriodicTask.$(OBJEXT) - -rm -f lib/Scheduler/Scheduler.$(OBJEXT) - -rm -f lib/Scheduler/SchedulerLibev.$(OBJEXT) - -rm -f lib/Scheduler/SchedulerThread.$(OBJEXT) - -rm -f lib/Scheduler/SignalTask.$(OBJEXT) - -rm -f lib/Scheduler/SocketTask.$(OBJEXT) - -rm -f lib/Scheduler/Task.$(OBJEXT) - -rm -f lib/Scheduler/TaskManager.$(OBJEXT) - -rm -f lib/Scheduler/TimerTask.$(OBJEXT) - -rm -f lib/ShapedJson/json-shaper.$(OBJEXT) - -rm -f lib/ShapedJson/shape-accessor.$(OBJEXT) - -rm -f lib/ShapedJson/shaped-json.$(OBJEXT) - -rm -f lib/SimpleHttpClient/ClientConnection.$(OBJEXT) - -rm -f lib/SimpleHttpClient/GeneralClientConnection.$(OBJEXT) - -rm -f lib/SimpleHttpClient/SimpleClient.$(OBJEXT) - -rm -f lib/SimpleHttpClient/SimpleHttpClient.$(OBJEXT) - -rm -f lib/SimpleHttpClient/SimpleHttpResult.$(OBJEXT) - -rm -f lib/SimpleHttpClient/SslClientConnection.$(OBJEXT) - -rm -f lib/Statistics/statistics.$(OBJEXT) - -rm -f lib/Utilities/LineEditor.$(OBJEXT) - -rm -f lib/Utilities/ScriptLoader.$(OBJEXT) - -rm -f lib/V8/JSLoader.$(OBJEXT) - -rm -f lib/V8/V8LineEditor.$(OBJEXT) - -rm -f lib/V8/v8-conv.$(OBJEXT) - -rm -f lib/V8/v8-execution.$(OBJEXT) - -rm -f lib/V8/v8-json.$(OBJEXT) - -rm -f lib/V8/v8-shell.$(OBJEXT) - -rm -f lib/V8/v8-utils.$(OBJEXT) - -rm -f lib/Variant/VariantArray.$(OBJEXT) - -rm -f lib/Variant/VariantBlob.$(OBJEXT) - -rm -f lib/Variant/VariantBoolean.$(OBJEXT) - -rm -f lib/Variant/VariantDate.$(OBJEXT) - -rm -f lib/Variant/VariantDatetime.$(OBJEXT) - -rm -f lib/Variant/VariantDouble.$(OBJEXT) - -rm -f lib/Variant/VariantFloat.$(OBJEXT) - -rm -f lib/Variant/VariantInt16.$(OBJEXT) - -rm -f lib/Variant/VariantInt32.$(OBJEXT) - -rm -f lib/Variant/VariantInt64.$(OBJEXT) - -rm -f lib/Variant/VariantInt8.$(OBJEXT) - -rm -f lib/Variant/VariantMatrix2.$(OBJEXT) - -rm -f lib/Variant/VariantNull.$(OBJEXT) - -rm -f lib/Variant/VariantObject.$(OBJEXT) - -rm -f lib/Variant/VariantString.$(OBJEXT) - -rm -f lib/Variant/VariantUInt16.$(OBJEXT) - -rm -f lib/Variant/VariantUInt32.$(OBJEXT) - -rm -f lib/Variant/VariantUInt64.$(OBJEXT) - -rm -f lib/Variant/VariantUInt8.$(OBJEXT) - -rm -f lib/Variant/VariantVector.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/$(DEPDIR)/Runner.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Jutland/$(DEPDIR)/EndpointTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Jutland/$(DEPDIR)/StringBufferTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Jutland/$(DEPDIR)/StringUtilsTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/associative-pointer-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/csv-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/hashes-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/json-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/json-utilities-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/mersenne-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/string-buffer-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/string-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/string-utf8-normalize-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/string-utf8-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/vector-pointer-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@UnitTests/Philadelphia/$(DEPDIR)/vector-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Actions/$(DEPDIR)/bin_arangod-actions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-index.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/ApplicationAdminServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/RestAdminBaseHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/RestAdminFeConfigurationHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/RestAdminLogHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/RestBaseHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Admin/$(DEPDIR)/RestVersionHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ApplicationServer/$(DEPDIR)/ApplicationFeature.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ApplicationServer/$(DEPDIR)/ApplicationServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ConditionLocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ConditionVariable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Exceptions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/FileUtils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Initialise.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/LibraryLoader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Mutex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/MutexLocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ProgramOptions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ProgramOptionsDescription.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Random.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ReadLocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ReadUnlocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ReadWriteLock.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/StringUtils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Thread.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Timing.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/Utf8Helper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/WriteLocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/WriteUnlocker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Basics/$(DEPDIR)/ssl-helper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/associative-multi.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/associative.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/conversions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/csv.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/error.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/files.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/hashes.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/init.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/json-utilities.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/json.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/linked-list.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/locks-macos.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/locks-posix.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/logging.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/memory-map-posix.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/memory.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/mersenne.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/process-utils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/random.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/socket-utils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/string-buffer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/strings.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/structures.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/system-functions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/terminal-utils-posix.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/terminal-utils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/threads-posix.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/utf8-helper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/vector.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/BasicsC/$(DEPDIR)/voc-errors.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Dispatcher/$(DEPDIR)/ApplicationDispatcher.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Dispatcher/$(DEPDIR)/Dispatcher.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Dispatcher/$(DEPDIR)/DispatcherQueue.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Dispatcher/$(DEPDIR)/DispatcherThread.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Dispatcher/$(DEPDIR)/Job.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/ApplicationEndpointServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/HttpHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/HttpHandlerFactory.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/PathHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/RedirectHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/HttpServer/$(DEPDIR)/ServiceUnavailableHandler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/JsonParser/$(DEPDIR)/json-parser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Logger/$(DEPDIR)/Logger.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Logger/$(DEPDIR)/LoggerData.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Logger/$(DEPDIR)/LoggerInfo.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Logger/$(DEPDIR)/LoggerStream.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Logger/$(DEPDIR)/LoggerTiming.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/MRuby/$(DEPDIR)/MRLineEditor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/MRuby/$(DEPDIR)/MRLoader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/MRuby/$(DEPDIR)/mr-utils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ProgramOptions/$(DEPDIR)/program-options.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/AnyServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/Endpoint.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/EndpointList.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/Handler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/HttpRequest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/HttpResponse.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/Initialise.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/JsonContainer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/SslInterface.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Rest/$(DEPDIR)/Url.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/HtmlResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/Initialise.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/JsonResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/JsonXResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/OutputGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/PhpResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/ResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ResultGenerator/$(DEPDIR)/XmlResultGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/ApplicationScheduler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/AsyncTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/ListenTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/PeriodicTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/Scheduler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/SchedulerLibev.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/SchedulerThread.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/SignalTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/SocketTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/Task.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/TaskManager.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Scheduler/$(DEPDIR)/TimerTask.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ShapedJson/$(DEPDIR)/json-shaper.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ShapedJson/$(DEPDIR)/shape-accessor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/ShapedJson/$(DEPDIR)/shaped-json.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/ClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/GeneralClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/SimpleClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/SimpleHttpClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/SimpleHttpResult.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/SimpleHttpClient/$(DEPDIR)/SslClientConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Statistics/$(DEPDIR)/statistics.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Utilities/$(DEPDIR)/LineEditor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Utilities/$(DEPDIR)/ScriptLoader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/JSLoader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/V8LineEditor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/v8-conv.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/v8-execution.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/v8-json.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/v8-shell.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/V8/$(DEPDIR)/v8-utils.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantArray.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantBlob.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantBoolean.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantDate.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantDatetime.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantDouble.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantFloat.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantInt16.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantInt32.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantInt64.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantInt8.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantMatrix2.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantNull.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantObject.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantString.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantUInt16.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantUInt32.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantUInt64.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantUInt8.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/Variant/$(DEPDIR)/VariantVector.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.o: arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.o -MD -MP -MF arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Tpo -c -o arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.o `test -f 'arangod/GeoIndex/GeoIndex.c' || echo '$(srcdir)/'`arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Tpo arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/GeoIndex/GeoIndex.c' object='arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.o `test -f 'arangod/GeoIndex/GeoIndex.c' || echo '$(srcdir)/'`arangod/GeoIndex/GeoIndex.c - -arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.obj: arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.obj -MD -MP -MF arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Tpo -c -o arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.obj `if test -f 'arangod/GeoIndex/GeoIndex.c'; then $(CYGPATH_W) 'arangod/GeoIndex/GeoIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/GeoIndex/GeoIndex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Tpo arangod/GeoIndex/$(DEPDIR)/UnitTests_geo_suite-GeoIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/GeoIndex/GeoIndex.c' object='arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/GeoIndex/UnitTests_geo_suite-GeoIndex.obj `if test -f 'arangod/GeoIndex/GeoIndex.c'; then $(CYGPATH_W) 'arangod/GeoIndex/GeoIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/GeoIndex/GeoIndex.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.o: arangod/Ahuacatl/ahuacatl-access-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.o `test -f 'arangod/Ahuacatl/ahuacatl-access-optimiser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-access-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-access-optimiser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.o `test -f 'arangod/Ahuacatl/ahuacatl-access-optimiser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-access-optimiser.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.obj: arangod/Ahuacatl/ahuacatl-access-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-access-optimiser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-access-optimiser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-access-optimiser.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-access-optimiser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-access-optimiser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-access-optimiser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-access-optimiser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-access-optimiser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-access-optimiser.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.o: arangod/Ahuacatl/ahuacatl-ast-node.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.o `test -f 'arangod/Ahuacatl/ahuacatl-ast-node.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-ast-node.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-ast-node.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.o `test -f 'arangod/Ahuacatl/ahuacatl-ast-node.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-ast-node.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.obj: arangod/Ahuacatl/ahuacatl-ast-node.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.obj `if test -f 'arangod/Ahuacatl/ahuacatl-ast-node.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-ast-node.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-ast-node.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-ast-node.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-ast-node.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-ast-node.obj `if test -f 'arangod/Ahuacatl/ahuacatl-ast-node.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-ast-node.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-ast-node.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.o: arangod/Ahuacatl/ahuacatl-bind-parameter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.o `test -f 'arangod/Ahuacatl/ahuacatl-bind-parameter.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-bind-parameter.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-bind-parameter.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.o `test -f 'arangod/Ahuacatl/ahuacatl-bind-parameter.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-bind-parameter.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.obj: arangod/Ahuacatl/ahuacatl-bind-parameter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.obj `if test -f 'arangod/Ahuacatl/ahuacatl-bind-parameter.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-bind-parameter.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-bind-parameter.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-bind-parameter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-bind-parameter.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-bind-parameter.obj `if test -f 'arangod/Ahuacatl/ahuacatl-bind-parameter.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-bind-parameter.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-bind-parameter.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.o: arangod/Ahuacatl/ahuacatl-codegen.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.o `test -f 'arangod/Ahuacatl/ahuacatl-codegen.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-codegen.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-codegen.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.o `test -f 'arangod/Ahuacatl/ahuacatl-codegen.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-codegen.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.obj: arangod/Ahuacatl/ahuacatl-codegen.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.obj `if test -f 'arangod/Ahuacatl/ahuacatl-codegen.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-codegen.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-codegen.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-codegen.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-codegen.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-codegen.obj `if test -f 'arangod/Ahuacatl/ahuacatl-codegen.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-codegen.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-codegen.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-collections.o: arangod/Ahuacatl/ahuacatl-collections.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-collections.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-collections.o `test -f 'arangod/Ahuacatl/ahuacatl-collections.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-collections.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-collections.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-collections.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-collections.o `test -f 'arangod/Ahuacatl/ahuacatl-collections.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-collections.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-collections.obj: arangod/Ahuacatl/ahuacatl-collections.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-collections.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-collections.obj `if test -f 'arangod/Ahuacatl/ahuacatl-collections.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-collections.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-collections.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-collections.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-collections.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-collections.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-collections.obj `if test -f 'arangod/Ahuacatl/ahuacatl-collections.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-collections.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-collections.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-context.o: arangod/Ahuacatl/ahuacatl-context.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-context.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-context.o `test -f 'arangod/Ahuacatl/ahuacatl-context.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-context.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-context.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-context.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-context.o `test -f 'arangod/Ahuacatl/ahuacatl-context.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-context.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-context.obj: arangod/Ahuacatl/ahuacatl-context.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-context.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-context.obj `if test -f 'arangod/Ahuacatl/ahuacatl-context.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-context.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-context.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-context.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-context.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-context.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-context.obj `if test -f 'arangod/Ahuacatl/ahuacatl-context.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-context.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-context.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.o: arangod/Ahuacatl/ahuacatl-conversions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.o `test -f 'arangod/Ahuacatl/ahuacatl-conversions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-conversions.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-conversions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.o `test -f 'arangod/Ahuacatl/ahuacatl-conversions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-conversions.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.obj: arangod/Ahuacatl/ahuacatl-conversions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-conversions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-conversions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-conversions.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-conversions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-conversions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-conversions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-conversions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-conversions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-conversions.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-error.o: arangod/Ahuacatl/ahuacatl-error.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-error.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-error.o `test -f 'arangod/Ahuacatl/ahuacatl-error.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-error.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-error.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-error.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-error.o `test -f 'arangod/Ahuacatl/ahuacatl-error.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-error.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-error.obj: arangod/Ahuacatl/ahuacatl-error.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-error.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-error.obj `if test -f 'arangod/Ahuacatl/ahuacatl-error.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-error.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-error.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-error.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-error.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-error.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-error.obj `if test -f 'arangod/Ahuacatl/ahuacatl-error.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-error.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-error.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-explain.o: arangod/Ahuacatl/ahuacatl-explain.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-explain.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-explain.o `test -f 'arangod/Ahuacatl/ahuacatl-explain.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-explain.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-explain.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-explain.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-explain.o `test -f 'arangod/Ahuacatl/ahuacatl-explain.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-explain.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-explain.obj: arangod/Ahuacatl/ahuacatl-explain.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-explain.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-explain.obj `if test -f 'arangod/Ahuacatl/ahuacatl-explain.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-explain.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-explain.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-explain.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-explain.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-explain.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-explain.obj `if test -f 'arangod/Ahuacatl/ahuacatl-explain.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-explain.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-explain.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-functions.o: arangod/Ahuacatl/ahuacatl-functions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-functions.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-functions.o `test -f 'arangod/Ahuacatl/ahuacatl-functions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-functions.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-functions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-functions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-functions.o `test -f 'arangod/Ahuacatl/ahuacatl-functions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-functions.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-functions.obj: arangod/Ahuacatl/ahuacatl-functions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-functions.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-functions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-functions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-functions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-functions.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-functions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-functions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-functions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-functions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-functions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-functions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-functions.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.o: arangod/Ahuacatl/ahuacatl-grammar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.o `test -f 'arangod/Ahuacatl/ahuacatl-grammar.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-grammar.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-grammar.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.o `test -f 'arangod/Ahuacatl/ahuacatl-grammar.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-grammar.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.obj: arangod/Ahuacatl/ahuacatl-grammar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.obj `if test -f 'arangod/Ahuacatl/ahuacatl-grammar.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-grammar.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-grammar.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-grammar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-grammar.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-grammar.obj `if test -f 'arangod/Ahuacatl/ahuacatl-grammar.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-grammar.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-grammar.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-index.o: arangod/Ahuacatl/ahuacatl-index.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-index.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-index.o `test -f 'arangod/Ahuacatl/ahuacatl-index.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-index.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-index.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-index.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-index.o `test -f 'arangod/Ahuacatl/ahuacatl-index.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-index.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-index.obj: arangod/Ahuacatl/ahuacatl-index.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-index.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-index.obj `if test -f 'arangod/Ahuacatl/ahuacatl-index.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-index.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-index.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-index.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-index.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-index.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-index.obj `if test -f 'arangod/Ahuacatl/ahuacatl-index.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-index.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-index.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-node.o: arangod/Ahuacatl/ahuacatl-node.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-node.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-node.o `test -f 'arangod/Ahuacatl/ahuacatl-node.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-node.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-node.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-node.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-node.o `test -f 'arangod/Ahuacatl/ahuacatl-node.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-node.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-node.obj: arangod/Ahuacatl/ahuacatl-node.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-node.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-node.obj `if test -f 'arangod/Ahuacatl/ahuacatl-node.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-node.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-node.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-node.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-node.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-node.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-node.obj `if test -f 'arangod/Ahuacatl/ahuacatl-node.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-node.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-node.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.o: arangod/Ahuacatl/ahuacatl-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.o `test -f 'arangod/Ahuacatl/ahuacatl-optimiser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-optimiser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.o `test -f 'arangod/Ahuacatl/ahuacatl-optimiser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-optimiser.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.obj: arangod/Ahuacatl/ahuacatl-optimiser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-optimiser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-optimiser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-optimiser.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-optimiser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-optimiser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-optimiser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-optimiser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-optimiser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-optimiser.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.o: arangod/Ahuacatl/ahuacatl-parser-functions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.o `test -f 'arangod/Ahuacatl/ahuacatl-parser-functions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-parser-functions.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-parser-functions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.o `test -f 'arangod/Ahuacatl/ahuacatl-parser-functions.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-parser-functions.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.obj: arangod/Ahuacatl/ahuacatl-parser-functions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-parser-functions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-parser-functions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-parser-functions.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser-functions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-parser-functions.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser-functions.obj `if test -f 'arangod/Ahuacatl/ahuacatl-parser-functions.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-parser-functions.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-parser-functions.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-parser.o: arangod/Ahuacatl/ahuacatl-parser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-parser.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser.o `test -f 'arangod/Ahuacatl/ahuacatl-parser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-parser.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-parser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-parser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser.o `test -f 'arangod/Ahuacatl/ahuacatl-parser.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-parser.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-parser.obj: arangod/Ahuacatl/ahuacatl-parser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-parser.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-parser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-parser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-parser.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-parser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-parser.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-parser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-parser.obj `if test -f 'arangod/Ahuacatl/ahuacatl-parser.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-parser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-parser.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-result.o: arangod/Ahuacatl/ahuacatl-result.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-result.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-result.o `test -f 'arangod/Ahuacatl/ahuacatl-result.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-result.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-result.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-result.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-result.o `test -f 'arangod/Ahuacatl/ahuacatl-result.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-result.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-result.obj: arangod/Ahuacatl/ahuacatl-result.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-result.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-result.obj `if test -f 'arangod/Ahuacatl/ahuacatl-result.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-result.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-result.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-result.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-result.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-result.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-result.obj `if test -f 'arangod/Ahuacatl/ahuacatl-result.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-result.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-result.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-scope.o: arangod/Ahuacatl/ahuacatl-scope.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-scope.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-scope.o `test -f 'arangod/Ahuacatl/ahuacatl-scope.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-scope.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-scope.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-scope.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-scope.o `test -f 'arangod/Ahuacatl/ahuacatl-scope.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-scope.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-scope.obj: arangod/Ahuacatl/ahuacatl-scope.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-scope.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-scope.obj `if test -f 'arangod/Ahuacatl/ahuacatl-scope.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-scope.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-scope.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-scope.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-scope.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-scope.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-scope.obj `if test -f 'arangod/Ahuacatl/ahuacatl-scope.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-scope.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-scope.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.o: arangod/Ahuacatl/ahuacatl-statementlist.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.o `test -f 'arangod/Ahuacatl/ahuacatl-statementlist.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statementlist.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statementlist.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.o `test -f 'arangod/Ahuacatl/ahuacatl-statementlist.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statementlist.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.obj: arangod/Ahuacatl/ahuacatl-statementlist.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statementlist.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statementlist.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statementlist.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statementlist.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statementlist.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statementlist.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statementlist.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statementlist.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statementlist.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.o: arangod/Ahuacatl/ahuacatl-statement-dump.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.o `test -f 'arangod/Ahuacatl/ahuacatl-statement-dump.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statement-dump.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statement-dump.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.o `test -f 'arangod/Ahuacatl/ahuacatl-statement-dump.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statement-dump.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.obj: arangod/Ahuacatl/ahuacatl-statement-dump.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statement-dump.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statement-dump.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statement-dump.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-dump.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statement-dump.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-dump.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statement-dump.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statement-dump.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statement-dump.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.o: arangod/Ahuacatl/ahuacatl-statement-walker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.o `test -f 'arangod/Ahuacatl/ahuacatl-statement-walker.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statement-walker.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statement-walker.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.o `test -f 'arangod/Ahuacatl/ahuacatl-statement-walker.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-statement-walker.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.obj: arangod/Ahuacatl/ahuacatl-statement-walker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statement-walker.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statement-walker.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statement-walker.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-statement-walker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-statement-walker.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-statement-walker.obj `if test -f 'arangod/Ahuacatl/ahuacatl-statement-walker.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-statement-walker.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-statement-walker.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.o: arangod/Ahuacatl/ahuacatl-tokens.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.o `test -f 'arangod/Ahuacatl/ahuacatl-tokens.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-tokens.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-tokens.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.o `test -f 'arangod/Ahuacatl/ahuacatl-tokens.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-tokens.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.obj: arangod/Ahuacatl/ahuacatl-tokens.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.obj `if test -f 'arangod/Ahuacatl/ahuacatl-tokens.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-tokens.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-tokens.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-tokens.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-tokens.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-tokens.obj `if test -f 'arangod/Ahuacatl/ahuacatl-tokens.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-tokens.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-tokens.c'; fi` - -arangod/Ahuacatl/bin_arangod-ahuacatl-variable.o: arangod/Ahuacatl/ahuacatl-variable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-variable.o -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-variable.o `test -f 'arangod/Ahuacatl/ahuacatl-variable.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-variable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-variable.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-variable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-variable.o `test -f 'arangod/Ahuacatl/ahuacatl-variable.c' || echo '$(srcdir)/'`arangod/Ahuacatl/ahuacatl-variable.c - -arangod/Ahuacatl/bin_arangod-ahuacatl-variable.obj: arangod/Ahuacatl/ahuacatl-variable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/Ahuacatl/bin_arangod-ahuacatl-variable.obj -MD -MP -MF arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Tpo -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-variable.obj `if test -f 'arangod/Ahuacatl/ahuacatl-variable.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-variable.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-variable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Tpo arangod/Ahuacatl/$(DEPDIR)/bin_arangod-ahuacatl-variable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/Ahuacatl/ahuacatl-variable.c' object='arangod/Ahuacatl/bin_arangod-ahuacatl-variable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/Ahuacatl/bin_arangod-ahuacatl-variable.obj `if test -f 'arangod/Ahuacatl/ahuacatl-variable.c'; then $(CYGPATH_W) 'arangod/Ahuacatl/ahuacatl-variable.c'; else $(CYGPATH_W) '$(srcdir)/arangod/Ahuacatl/ahuacatl-variable.c'; fi` - -arangod/BitIndexes/bin_arangod-bitarray.o: arangod/BitIndexes/bitarray.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/BitIndexes/bin_arangod-bitarray.o -MD -MP -MF arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Tpo -c -o arangod/BitIndexes/bin_arangod-bitarray.o `test -f 'arangod/BitIndexes/bitarray.c' || echo '$(srcdir)/'`arangod/BitIndexes/bitarray.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Tpo arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/BitIndexes/bitarray.c' object='arangod/BitIndexes/bin_arangod-bitarray.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/BitIndexes/bin_arangod-bitarray.o `test -f 'arangod/BitIndexes/bitarray.c' || echo '$(srcdir)/'`arangod/BitIndexes/bitarray.c - -arangod/BitIndexes/bin_arangod-bitarray.obj: arangod/BitIndexes/bitarray.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/BitIndexes/bin_arangod-bitarray.obj -MD -MP -MF arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Tpo -c -o arangod/BitIndexes/bin_arangod-bitarray.obj `if test -f 'arangod/BitIndexes/bitarray.c'; then $(CYGPATH_W) 'arangod/BitIndexes/bitarray.c'; else $(CYGPATH_W) '$(srcdir)/arangod/BitIndexes/bitarray.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Tpo arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarray.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/BitIndexes/bitarray.c' object='arangod/BitIndexes/bin_arangod-bitarray.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/BitIndexes/bin_arangod-bitarray.obj `if test -f 'arangod/BitIndexes/bitarray.c'; then $(CYGPATH_W) 'arangod/BitIndexes/bitarray.c'; else $(CYGPATH_W) '$(srcdir)/arangod/BitIndexes/bitarray.c'; fi` - -arangod/BitIndexes/bin_arangod-bitarrayIndex.o: arangod/BitIndexes/bitarrayIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/BitIndexes/bin_arangod-bitarrayIndex.o -MD -MP -MF arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Tpo -c -o arangod/BitIndexes/bin_arangod-bitarrayIndex.o `test -f 'arangod/BitIndexes/bitarrayIndex.c' || echo '$(srcdir)/'`arangod/BitIndexes/bitarrayIndex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Tpo arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/BitIndexes/bitarrayIndex.c' object='arangod/BitIndexes/bin_arangod-bitarrayIndex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/BitIndexes/bin_arangod-bitarrayIndex.o `test -f 'arangod/BitIndexes/bitarrayIndex.c' || echo '$(srcdir)/'`arangod/BitIndexes/bitarrayIndex.c - -arangod/BitIndexes/bin_arangod-bitarrayIndex.obj: arangod/BitIndexes/bitarrayIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/BitIndexes/bin_arangod-bitarrayIndex.obj -MD -MP -MF arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Tpo -c -o arangod/BitIndexes/bin_arangod-bitarrayIndex.obj `if test -f 'arangod/BitIndexes/bitarrayIndex.c'; then $(CYGPATH_W) 'arangod/BitIndexes/bitarrayIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/BitIndexes/bitarrayIndex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Tpo arangod/BitIndexes/$(DEPDIR)/bin_arangod-bitarrayIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/BitIndexes/bitarrayIndex.c' object='arangod/BitIndexes/bin_arangod-bitarrayIndex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/BitIndexes/bin_arangod-bitarrayIndex.obj `if test -f 'arangod/BitIndexes/bitarrayIndex.c'; then $(CYGPATH_W) 'arangod/BitIndexes/bitarrayIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/BitIndexes/bitarrayIndex.c'; fi` - -arangod/GeoIndex/bin_arangod-GeoIndex.o: arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/GeoIndex/bin_arangod-GeoIndex.o -MD -MP -MF arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Tpo -c -o arangod/GeoIndex/bin_arangod-GeoIndex.o `test -f 'arangod/GeoIndex/GeoIndex.c' || echo '$(srcdir)/'`arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Tpo arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/GeoIndex/GeoIndex.c' object='arangod/GeoIndex/bin_arangod-GeoIndex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/GeoIndex/bin_arangod-GeoIndex.o `test -f 'arangod/GeoIndex/GeoIndex.c' || echo '$(srcdir)/'`arangod/GeoIndex/GeoIndex.c - -arangod/GeoIndex/bin_arangod-GeoIndex.obj: arangod/GeoIndex/GeoIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/GeoIndex/bin_arangod-GeoIndex.obj -MD -MP -MF arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Tpo -c -o arangod/GeoIndex/bin_arangod-GeoIndex.obj `if test -f 'arangod/GeoIndex/GeoIndex.c'; then $(CYGPATH_W) 'arangod/GeoIndex/GeoIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/GeoIndex/GeoIndex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Tpo arangod/GeoIndex/$(DEPDIR)/bin_arangod-GeoIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/GeoIndex/GeoIndex.c' object='arangod/GeoIndex/bin_arangod-GeoIndex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/GeoIndex/bin_arangod-GeoIndex.obj `if test -f 'arangod/GeoIndex/GeoIndex.c'; then $(CYGPATH_W) 'arangod/GeoIndex/GeoIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/GeoIndex/GeoIndex.c'; fi` - -arangod/HashIndex/bin_arangod-hasharray.o: arangod/HashIndex/hasharray.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/HashIndex/bin_arangod-hasharray.o -MD -MP -MF arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Tpo -c -o arangod/HashIndex/bin_arangod-hasharray.o `test -f 'arangod/HashIndex/hasharray.c' || echo '$(srcdir)/'`arangod/HashIndex/hasharray.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Tpo arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/HashIndex/hasharray.c' object='arangod/HashIndex/bin_arangod-hasharray.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/HashIndex/bin_arangod-hasharray.o `test -f 'arangod/HashIndex/hasharray.c' || echo '$(srcdir)/'`arangod/HashIndex/hasharray.c - -arangod/HashIndex/bin_arangod-hasharray.obj: arangod/HashIndex/hasharray.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/HashIndex/bin_arangod-hasharray.obj -MD -MP -MF arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Tpo -c -o arangod/HashIndex/bin_arangod-hasharray.obj `if test -f 'arangod/HashIndex/hasharray.c'; then $(CYGPATH_W) 'arangod/HashIndex/hasharray.c'; else $(CYGPATH_W) '$(srcdir)/arangod/HashIndex/hasharray.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Tpo arangod/HashIndex/$(DEPDIR)/bin_arangod-hasharray.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/HashIndex/hasharray.c' object='arangod/HashIndex/bin_arangod-hasharray.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/HashIndex/bin_arangod-hasharray.obj `if test -f 'arangod/HashIndex/hasharray.c'; then $(CYGPATH_W) 'arangod/HashIndex/hasharray.c'; else $(CYGPATH_W) '$(srcdir)/arangod/HashIndex/hasharray.c'; fi` - -arangod/HashIndex/bin_arangod-hashindex.o: arangod/HashIndex/hashindex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/HashIndex/bin_arangod-hashindex.o -MD -MP -MF arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Tpo -c -o arangod/HashIndex/bin_arangod-hashindex.o `test -f 'arangod/HashIndex/hashindex.c' || echo '$(srcdir)/'`arangod/HashIndex/hashindex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Tpo arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/HashIndex/hashindex.c' object='arangod/HashIndex/bin_arangod-hashindex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/HashIndex/bin_arangod-hashindex.o `test -f 'arangod/HashIndex/hashindex.c' || echo '$(srcdir)/'`arangod/HashIndex/hashindex.c - -arangod/HashIndex/bin_arangod-hashindex.obj: arangod/HashIndex/hashindex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/HashIndex/bin_arangod-hashindex.obj -MD -MP -MF arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Tpo -c -o arangod/HashIndex/bin_arangod-hashindex.obj `if test -f 'arangod/HashIndex/hashindex.c'; then $(CYGPATH_W) 'arangod/HashIndex/hashindex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/HashIndex/hashindex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Tpo arangod/HashIndex/$(DEPDIR)/bin_arangod-hashindex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/HashIndex/hashindex.c' object='arangod/HashIndex/bin_arangod-hashindex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/HashIndex/bin_arangod-hashindex.obj `if test -f 'arangod/HashIndex/hashindex.c'; then $(CYGPATH_W) 'arangod/HashIndex/hashindex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/HashIndex/hashindex.c'; fi` - -arangod/IndexIterators/bin_arangod-index-iterator.o: arangod/IndexIterators/index-iterator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/IndexIterators/bin_arangod-index-iterator.o -MD -MP -MF arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Tpo -c -o arangod/IndexIterators/bin_arangod-index-iterator.o `test -f 'arangod/IndexIterators/index-iterator.c' || echo '$(srcdir)/'`arangod/IndexIterators/index-iterator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Tpo arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/IndexIterators/index-iterator.c' object='arangod/IndexIterators/bin_arangod-index-iterator.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/IndexIterators/bin_arangod-index-iterator.o `test -f 'arangod/IndexIterators/index-iterator.c' || echo '$(srcdir)/'`arangod/IndexIterators/index-iterator.c - -arangod/IndexIterators/bin_arangod-index-iterator.obj: arangod/IndexIterators/index-iterator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/IndexIterators/bin_arangod-index-iterator.obj -MD -MP -MF arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Tpo -c -o arangod/IndexIterators/bin_arangod-index-iterator.obj `if test -f 'arangod/IndexIterators/index-iterator.c'; then $(CYGPATH_W) 'arangod/IndexIterators/index-iterator.c'; else $(CYGPATH_W) '$(srcdir)/arangod/IndexIterators/index-iterator.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Tpo arangod/IndexIterators/$(DEPDIR)/bin_arangod-index-iterator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/IndexIterators/index-iterator.c' object='arangod/IndexIterators/bin_arangod-index-iterator.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/IndexIterators/bin_arangod-index-iterator.obj `if test -f 'arangod/IndexIterators/index-iterator.c'; then $(CYGPATH_W) 'arangod/IndexIterators/index-iterator.c'; else $(CYGPATH_W) '$(srcdir)/arangod/IndexIterators/index-iterator.c'; fi` - -arangod/IndexOperators/bin_arangod-index-operator.o: arangod/IndexOperators/index-operator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/IndexOperators/bin_arangod-index-operator.o -MD -MP -MF arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Tpo -c -o arangod/IndexOperators/bin_arangod-index-operator.o `test -f 'arangod/IndexOperators/index-operator.c' || echo '$(srcdir)/'`arangod/IndexOperators/index-operator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Tpo arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/IndexOperators/index-operator.c' object='arangod/IndexOperators/bin_arangod-index-operator.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/IndexOperators/bin_arangod-index-operator.o `test -f 'arangod/IndexOperators/index-operator.c' || echo '$(srcdir)/'`arangod/IndexOperators/index-operator.c - -arangod/IndexOperators/bin_arangod-index-operator.obj: arangod/IndexOperators/index-operator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/IndexOperators/bin_arangod-index-operator.obj -MD -MP -MF arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Tpo -c -o arangod/IndexOperators/bin_arangod-index-operator.obj `if test -f 'arangod/IndexOperators/index-operator.c'; then $(CYGPATH_W) 'arangod/IndexOperators/index-operator.c'; else $(CYGPATH_W) '$(srcdir)/arangod/IndexOperators/index-operator.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Tpo arangod/IndexOperators/$(DEPDIR)/bin_arangod-index-operator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/IndexOperators/index-operator.c' object='arangod/IndexOperators/bin_arangod-index-operator.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/IndexOperators/bin_arangod-index-operator.obj `if test -f 'arangod/IndexOperators/index-operator.c'; then $(CYGPATH_W) 'arangod/IndexOperators/index-operator.c'; else $(CYGPATH_W) '$(srcdir)/arangod/IndexOperators/index-operator.c'; fi` - -arangod/PriorityQueue/bin_arangod-pqueueindex.o: arangod/PriorityQueue/pqueueindex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/PriorityQueue/bin_arangod-pqueueindex.o -MD -MP -MF arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Tpo -c -o arangod/PriorityQueue/bin_arangod-pqueueindex.o `test -f 'arangod/PriorityQueue/pqueueindex.c' || echo '$(srcdir)/'`arangod/PriorityQueue/pqueueindex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Tpo arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/PriorityQueue/pqueueindex.c' object='arangod/PriorityQueue/bin_arangod-pqueueindex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/PriorityQueue/bin_arangod-pqueueindex.o `test -f 'arangod/PriorityQueue/pqueueindex.c' || echo '$(srcdir)/'`arangod/PriorityQueue/pqueueindex.c - -arangod/PriorityQueue/bin_arangod-pqueueindex.obj: arangod/PriorityQueue/pqueueindex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/PriorityQueue/bin_arangod-pqueueindex.obj -MD -MP -MF arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Tpo -c -o arangod/PriorityQueue/bin_arangod-pqueueindex.obj `if test -f 'arangod/PriorityQueue/pqueueindex.c'; then $(CYGPATH_W) 'arangod/PriorityQueue/pqueueindex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/PriorityQueue/pqueueindex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Tpo arangod/PriorityQueue/$(DEPDIR)/bin_arangod-pqueueindex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/PriorityQueue/pqueueindex.c' object='arangod/PriorityQueue/bin_arangod-pqueueindex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/PriorityQueue/bin_arangod-pqueueindex.obj `if test -f 'arangod/PriorityQueue/pqueueindex.c'; then $(CYGPATH_W) 'arangod/PriorityQueue/pqueueindex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/PriorityQueue/pqueueindex.c'; fi` - -arangod/PriorityQueue/bin_arangod-priorityqueue.o: arangod/PriorityQueue/priorityqueue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/PriorityQueue/bin_arangod-priorityqueue.o -MD -MP -MF arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Tpo -c -o arangod/PriorityQueue/bin_arangod-priorityqueue.o `test -f 'arangod/PriorityQueue/priorityqueue.c' || echo '$(srcdir)/'`arangod/PriorityQueue/priorityqueue.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Tpo arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/PriorityQueue/priorityqueue.c' object='arangod/PriorityQueue/bin_arangod-priorityqueue.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/PriorityQueue/bin_arangod-priorityqueue.o `test -f 'arangod/PriorityQueue/priorityqueue.c' || echo '$(srcdir)/'`arangod/PriorityQueue/priorityqueue.c - -arangod/PriorityQueue/bin_arangod-priorityqueue.obj: arangod/PriorityQueue/priorityqueue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/PriorityQueue/bin_arangod-priorityqueue.obj -MD -MP -MF arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Tpo -c -o arangod/PriorityQueue/bin_arangod-priorityqueue.obj `if test -f 'arangod/PriorityQueue/priorityqueue.c'; then $(CYGPATH_W) 'arangod/PriorityQueue/priorityqueue.c'; else $(CYGPATH_W) '$(srcdir)/arangod/PriorityQueue/priorityqueue.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Tpo arangod/PriorityQueue/$(DEPDIR)/bin_arangod-priorityqueue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/PriorityQueue/priorityqueue.c' object='arangod/PriorityQueue/bin_arangod-priorityqueue.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/PriorityQueue/bin_arangod-priorityqueue.obj `if test -f 'arangod/PriorityQueue/priorityqueue.c'; then $(CYGPATH_W) 'arangod/PriorityQueue/priorityqueue.c'; else $(CYGPATH_W) '$(srcdir)/arangod/PriorityQueue/priorityqueue.c'; fi` - -arangod/SkipLists/bin_arangod-skiplist.o: arangod/SkipLists/skiplist.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/SkipLists/bin_arangod-skiplist.o -MD -MP -MF arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Tpo -c -o arangod/SkipLists/bin_arangod-skiplist.o `test -f 'arangod/SkipLists/skiplist.c' || echo '$(srcdir)/'`arangod/SkipLists/skiplist.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Tpo arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/SkipLists/skiplist.c' object='arangod/SkipLists/bin_arangod-skiplist.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/SkipLists/bin_arangod-skiplist.o `test -f 'arangod/SkipLists/skiplist.c' || echo '$(srcdir)/'`arangod/SkipLists/skiplist.c - -arangod/SkipLists/bin_arangod-skiplist.obj: arangod/SkipLists/skiplist.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/SkipLists/bin_arangod-skiplist.obj -MD -MP -MF arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Tpo -c -o arangod/SkipLists/bin_arangod-skiplist.obj `if test -f 'arangod/SkipLists/skiplist.c'; then $(CYGPATH_W) 'arangod/SkipLists/skiplist.c'; else $(CYGPATH_W) '$(srcdir)/arangod/SkipLists/skiplist.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Tpo arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplist.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/SkipLists/skiplist.c' object='arangod/SkipLists/bin_arangod-skiplist.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/SkipLists/bin_arangod-skiplist.obj `if test -f 'arangod/SkipLists/skiplist.c'; then $(CYGPATH_W) 'arangod/SkipLists/skiplist.c'; else $(CYGPATH_W) '$(srcdir)/arangod/SkipLists/skiplist.c'; fi` - -arangod/SkipLists/bin_arangod-skiplistIndex.o: arangod/SkipLists/skiplistIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/SkipLists/bin_arangod-skiplistIndex.o -MD -MP -MF arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Tpo -c -o arangod/SkipLists/bin_arangod-skiplistIndex.o `test -f 'arangod/SkipLists/skiplistIndex.c' || echo '$(srcdir)/'`arangod/SkipLists/skiplistIndex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Tpo arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/SkipLists/skiplistIndex.c' object='arangod/SkipLists/bin_arangod-skiplistIndex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/SkipLists/bin_arangod-skiplistIndex.o `test -f 'arangod/SkipLists/skiplistIndex.c' || echo '$(srcdir)/'`arangod/SkipLists/skiplistIndex.c - -arangod/SkipLists/bin_arangod-skiplistIndex.obj: arangod/SkipLists/skiplistIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/SkipLists/bin_arangod-skiplistIndex.obj -MD -MP -MF arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Tpo -c -o arangod/SkipLists/bin_arangod-skiplistIndex.obj `if test -f 'arangod/SkipLists/skiplistIndex.c'; then $(CYGPATH_W) 'arangod/SkipLists/skiplistIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/SkipLists/skiplistIndex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Tpo arangod/SkipLists/$(DEPDIR)/bin_arangod-skiplistIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/SkipLists/skiplistIndex.c' object='arangod/SkipLists/bin_arangod-skiplistIndex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/SkipLists/bin_arangod-skiplistIndex.obj `if test -f 'arangod/SkipLists/skiplistIndex.c'; then $(CYGPATH_W) 'arangod/SkipLists/skiplistIndex.c'; else $(CYGPATH_W) '$(srcdir)/arangod/SkipLists/skiplistIndex.c'; fi` - -arangod/VocBase/bin_arangod-auth.o: arangod/VocBase/auth.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-auth.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Tpo -c -o arangod/VocBase/bin_arangod-auth.o `test -f 'arangod/VocBase/auth.c' || echo '$(srcdir)/'`arangod/VocBase/auth.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/auth.c' object='arangod/VocBase/bin_arangod-auth.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-auth.o `test -f 'arangod/VocBase/auth.c' || echo '$(srcdir)/'`arangod/VocBase/auth.c - -arangod/VocBase/bin_arangod-auth.obj: arangod/VocBase/auth.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-auth.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Tpo -c -o arangod/VocBase/bin_arangod-auth.obj `if test -f 'arangod/VocBase/auth.c'; then $(CYGPATH_W) 'arangod/VocBase/auth.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/auth.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-auth.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/auth.c' object='arangod/VocBase/bin_arangod-auth.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-auth.obj `if test -f 'arangod/VocBase/auth.c'; then $(CYGPATH_W) 'arangod/VocBase/auth.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/auth.c'; fi` - -arangod/VocBase/bin_arangod-barrier.o: arangod/VocBase/barrier.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-barrier.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Tpo -c -o arangod/VocBase/bin_arangod-barrier.o `test -f 'arangod/VocBase/barrier.c' || echo '$(srcdir)/'`arangod/VocBase/barrier.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/barrier.c' object='arangod/VocBase/bin_arangod-barrier.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-barrier.o `test -f 'arangod/VocBase/barrier.c' || echo '$(srcdir)/'`arangod/VocBase/barrier.c - -arangod/VocBase/bin_arangod-barrier.obj: arangod/VocBase/barrier.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-barrier.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Tpo -c -o arangod/VocBase/bin_arangod-barrier.obj `if test -f 'arangod/VocBase/barrier.c'; then $(CYGPATH_W) 'arangod/VocBase/barrier.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/barrier.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-barrier.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/barrier.c' object='arangod/VocBase/bin_arangod-barrier.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-barrier.obj `if test -f 'arangod/VocBase/barrier.c'; then $(CYGPATH_W) 'arangod/VocBase/barrier.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/barrier.c'; fi` - -arangod/VocBase/bin_arangod-cleanup.o: arangod/VocBase/cleanup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-cleanup.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Tpo -c -o arangod/VocBase/bin_arangod-cleanup.o `test -f 'arangod/VocBase/cleanup.c' || echo '$(srcdir)/'`arangod/VocBase/cleanup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/cleanup.c' object='arangod/VocBase/bin_arangod-cleanup.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-cleanup.o `test -f 'arangod/VocBase/cleanup.c' || echo '$(srcdir)/'`arangod/VocBase/cleanup.c - -arangod/VocBase/bin_arangod-cleanup.obj: arangod/VocBase/cleanup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-cleanup.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Tpo -c -o arangod/VocBase/bin_arangod-cleanup.obj `if test -f 'arangod/VocBase/cleanup.c'; then $(CYGPATH_W) 'arangod/VocBase/cleanup.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/cleanup.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-cleanup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/cleanup.c' object='arangod/VocBase/bin_arangod-cleanup.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-cleanup.obj `if test -f 'arangod/VocBase/cleanup.c'; then $(CYGPATH_W) 'arangod/VocBase/cleanup.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/cleanup.c'; fi` - -arangod/VocBase/bin_arangod-collection.o: arangod/VocBase/collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-collection.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Tpo -c -o arangod/VocBase/bin_arangod-collection.o `test -f 'arangod/VocBase/collection.c' || echo '$(srcdir)/'`arangod/VocBase/collection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/collection.c' object='arangod/VocBase/bin_arangod-collection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-collection.o `test -f 'arangod/VocBase/collection.c' || echo '$(srcdir)/'`arangod/VocBase/collection.c - -arangod/VocBase/bin_arangod-collection.obj: arangod/VocBase/collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-collection.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Tpo -c -o arangod/VocBase/bin_arangod-collection.obj `if test -f 'arangod/VocBase/collection.c'; then $(CYGPATH_W) 'arangod/VocBase/collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/collection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/collection.c' object='arangod/VocBase/bin_arangod-collection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-collection.obj `if test -f 'arangod/VocBase/collection.c'; then $(CYGPATH_W) 'arangod/VocBase/collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/collection.c'; fi` - -arangod/VocBase/bin_arangod-compactor.o: arangod/VocBase/compactor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-compactor.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Tpo -c -o arangod/VocBase/bin_arangod-compactor.o `test -f 'arangod/VocBase/compactor.c' || echo '$(srcdir)/'`arangod/VocBase/compactor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/compactor.c' object='arangod/VocBase/bin_arangod-compactor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-compactor.o `test -f 'arangod/VocBase/compactor.c' || echo '$(srcdir)/'`arangod/VocBase/compactor.c - -arangod/VocBase/bin_arangod-compactor.obj: arangod/VocBase/compactor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-compactor.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Tpo -c -o arangod/VocBase/bin_arangod-compactor.obj `if test -f 'arangod/VocBase/compactor.c'; then $(CYGPATH_W) 'arangod/VocBase/compactor.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/compactor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-compactor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/compactor.c' object='arangod/VocBase/bin_arangod-compactor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-compactor.obj `if test -f 'arangod/VocBase/compactor.c'; then $(CYGPATH_W) 'arangod/VocBase/compactor.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/compactor.c'; fi` - -arangod/VocBase/bin_arangod-datafile.o: arangod/VocBase/datafile.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-datafile.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Tpo -c -o arangod/VocBase/bin_arangod-datafile.o `test -f 'arangod/VocBase/datafile.c' || echo '$(srcdir)/'`arangod/VocBase/datafile.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/datafile.c' object='arangod/VocBase/bin_arangod-datafile.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-datafile.o `test -f 'arangod/VocBase/datafile.c' || echo '$(srcdir)/'`arangod/VocBase/datafile.c - -arangod/VocBase/bin_arangod-datafile.obj: arangod/VocBase/datafile.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-datafile.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Tpo -c -o arangod/VocBase/bin_arangod-datafile.obj `if test -f 'arangod/VocBase/datafile.c'; then $(CYGPATH_W) 'arangod/VocBase/datafile.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/datafile.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-datafile.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/datafile.c' object='arangod/VocBase/bin_arangod-datafile.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-datafile.obj `if test -f 'arangod/VocBase/datafile.c'; then $(CYGPATH_W) 'arangod/VocBase/datafile.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/datafile.c'; fi` - -arangod/VocBase/bin_arangod-document-collection.o: arangod/VocBase/document-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-document-collection.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Tpo -c -o arangod/VocBase/bin_arangod-document-collection.o `test -f 'arangod/VocBase/document-collection.c' || echo '$(srcdir)/'`arangod/VocBase/document-collection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/document-collection.c' object='arangod/VocBase/bin_arangod-document-collection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-document-collection.o `test -f 'arangod/VocBase/document-collection.c' || echo '$(srcdir)/'`arangod/VocBase/document-collection.c - -arangod/VocBase/bin_arangod-document-collection.obj: arangod/VocBase/document-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-document-collection.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Tpo -c -o arangod/VocBase/bin_arangod-document-collection.obj `if test -f 'arangod/VocBase/document-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/document-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/document-collection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-document-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/document-collection.c' object='arangod/VocBase/bin_arangod-document-collection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-document-collection.obj `if test -f 'arangod/VocBase/document-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/document-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/document-collection.c'; fi` - -arangod/VocBase/bin_arangod-edge-collection.o: arangod/VocBase/edge-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-edge-collection.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Tpo -c -o arangod/VocBase/bin_arangod-edge-collection.o `test -f 'arangod/VocBase/edge-collection.c' || echo '$(srcdir)/'`arangod/VocBase/edge-collection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/edge-collection.c' object='arangod/VocBase/bin_arangod-edge-collection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-edge-collection.o `test -f 'arangod/VocBase/edge-collection.c' || echo '$(srcdir)/'`arangod/VocBase/edge-collection.c - -arangod/VocBase/bin_arangod-edge-collection.obj: arangod/VocBase/edge-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-edge-collection.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Tpo -c -o arangod/VocBase/bin_arangod-edge-collection.obj `if test -f 'arangod/VocBase/edge-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/edge-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/edge-collection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-edge-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/edge-collection.c' object='arangod/VocBase/bin_arangod-edge-collection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-edge-collection.obj `if test -f 'arangod/VocBase/edge-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/edge-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/edge-collection.c'; fi` - -arangod/VocBase/bin_arangod-general-cursor.o: arangod/VocBase/general-cursor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-general-cursor.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Tpo -c -o arangod/VocBase/bin_arangod-general-cursor.o `test -f 'arangod/VocBase/general-cursor.c' || echo '$(srcdir)/'`arangod/VocBase/general-cursor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/general-cursor.c' object='arangod/VocBase/bin_arangod-general-cursor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-general-cursor.o `test -f 'arangod/VocBase/general-cursor.c' || echo '$(srcdir)/'`arangod/VocBase/general-cursor.c - -arangod/VocBase/bin_arangod-general-cursor.obj: arangod/VocBase/general-cursor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-general-cursor.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Tpo -c -o arangod/VocBase/bin_arangod-general-cursor.obj `if test -f 'arangod/VocBase/general-cursor.c'; then $(CYGPATH_W) 'arangod/VocBase/general-cursor.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/general-cursor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-general-cursor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/general-cursor.c' object='arangod/VocBase/bin_arangod-general-cursor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-general-cursor.obj `if test -f 'arangod/VocBase/general-cursor.c'; then $(CYGPATH_W) 'arangod/VocBase/general-cursor.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/general-cursor.c'; fi` - -arangod/VocBase/bin_arangod-headers.o: arangod/VocBase/headers.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-headers.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Tpo -c -o arangod/VocBase/bin_arangod-headers.o `test -f 'arangod/VocBase/headers.c' || echo '$(srcdir)/'`arangod/VocBase/headers.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/headers.c' object='arangod/VocBase/bin_arangod-headers.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-headers.o `test -f 'arangod/VocBase/headers.c' || echo '$(srcdir)/'`arangod/VocBase/headers.c - -arangod/VocBase/bin_arangod-headers.obj: arangod/VocBase/headers.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-headers.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Tpo -c -o arangod/VocBase/bin_arangod-headers.obj `if test -f 'arangod/VocBase/headers.c'; then $(CYGPATH_W) 'arangod/VocBase/headers.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/headers.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-headers.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/headers.c' object='arangod/VocBase/bin_arangod-headers.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-headers.obj `if test -f 'arangod/VocBase/headers.c'; then $(CYGPATH_W) 'arangod/VocBase/headers.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/headers.c'; fi` - -arangod/VocBase/bin_arangod-index.o: arangod/VocBase/index.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-index.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-index.Tpo -c -o arangod/VocBase/bin_arangod-index.o `test -f 'arangod/VocBase/index.c' || echo '$(srcdir)/'`arangod/VocBase/index.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-index.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-index.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/index.c' object='arangod/VocBase/bin_arangod-index.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-index.o `test -f 'arangod/VocBase/index.c' || echo '$(srcdir)/'`arangod/VocBase/index.c - -arangod/VocBase/bin_arangod-index.obj: arangod/VocBase/index.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-index.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-index.Tpo -c -o arangod/VocBase/bin_arangod-index.obj `if test -f 'arangod/VocBase/index.c'; then $(CYGPATH_W) 'arangod/VocBase/index.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/index.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-index.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-index.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/index.c' object='arangod/VocBase/bin_arangod-index.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-index.obj `if test -f 'arangod/VocBase/index.c'; then $(CYGPATH_W) 'arangod/VocBase/index.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/index.c'; fi` - -arangod/VocBase/bin_arangod-primary-collection.o: arangod/VocBase/primary-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-primary-collection.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Tpo -c -o arangod/VocBase/bin_arangod-primary-collection.o `test -f 'arangod/VocBase/primary-collection.c' || echo '$(srcdir)/'`arangod/VocBase/primary-collection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/primary-collection.c' object='arangod/VocBase/bin_arangod-primary-collection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-primary-collection.o `test -f 'arangod/VocBase/primary-collection.c' || echo '$(srcdir)/'`arangod/VocBase/primary-collection.c - -arangod/VocBase/bin_arangod-primary-collection.obj: arangod/VocBase/primary-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-primary-collection.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Tpo -c -o arangod/VocBase/bin_arangod-primary-collection.obj `if test -f 'arangod/VocBase/primary-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/primary-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/primary-collection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-primary-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/primary-collection.c' object='arangod/VocBase/bin_arangod-primary-collection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-primary-collection.obj `if test -f 'arangod/VocBase/primary-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/primary-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/primary-collection.c'; fi` - -arangod/VocBase/bin_arangod-shadow-data.o: arangod/VocBase/shadow-data.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-shadow-data.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Tpo -c -o arangod/VocBase/bin_arangod-shadow-data.o `test -f 'arangod/VocBase/shadow-data.c' || echo '$(srcdir)/'`arangod/VocBase/shadow-data.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/shadow-data.c' object='arangod/VocBase/bin_arangod-shadow-data.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-shadow-data.o `test -f 'arangod/VocBase/shadow-data.c' || echo '$(srcdir)/'`arangod/VocBase/shadow-data.c - -arangod/VocBase/bin_arangod-shadow-data.obj: arangod/VocBase/shadow-data.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-shadow-data.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Tpo -c -o arangod/VocBase/bin_arangod-shadow-data.obj `if test -f 'arangod/VocBase/shadow-data.c'; then $(CYGPATH_W) 'arangod/VocBase/shadow-data.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/shadow-data.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-shadow-data.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/shadow-data.c' object='arangod/VocBase/bin_arangod-shadow-data.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-shadow-data.obj `if test -f 'arangod/VocBase/shadow-data.c'; then $(CYGPATH_W) 'arangod/VocBase/shadow-data.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/shadow-data.c'; fi` - -arangod/VocBase/bin_arangod-shape-collection.o: arangod/VocBase/shape-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-shape-collection.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Tpo -c -o arangod/VocBase/bin_arangod-shape-collection.o `test -f 'arangod/VocBase/shape-collection.c' || echo '$(srcdir)/'`arangod/VocBase/shape-collection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/shape-collection.c' object='arangod/VocBase/bin_arangod-shape-collection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-shape-collection.o `test -f 'arangod/VocBase/shape-collection.c' || echo '$(srcdir)/'`arangod/VocBase/shape-collection.c - -arangod/VocBase/bin_arangod-shape-collection.obj: arangod/VocBase/shape-collection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-shape-collection.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Tpo -c -o arangod/VocBase/bin_arangod-shape-collection.obj `if test -f 'arangod/VocBase/shape-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/shape-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/shape-collection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-shape-collection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/shape-collection.c' object='arangod/VocBase/bin_arangod-shape-collection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-shape-collection.obj `if test -f 'arangod/VocBase/shape-collection.c'; then $(CYGPATH_W) 'arangod/VocBase/shape-collection.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/shape-collection.c'; fi` - -arangod/VocBase/bin_arangod-synchroniser.o: arangod/VocBase/synchroniser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-synchroniser.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Tpo -c -o arangod/VocBase/bin_arangod-synchroniser.o `test -f 'arangod/VocBase/synchroniser.c' || echo '$(srcdir)/'`arangod/VocBase/synchroniser.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/synchroniser.c' object='arangod/VocBase/bin_arangod-synchroniser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-synchroniser.o `test -f 'arangod/VocBase/synchroniser.c' || echo '$(srcdir)/'`arangod/VocBase/synchroniser.c - -arangod/VocBase/bin_arangod-synchroniser.obj: arangod/VocBase/synchroniser.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-synchroniser.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Tpo -c -o arangod/VocBase/bin_arangod-synchroniser.obj `if test -f 'arangod/VocBase/synchroniser.c'; then $(CYGPATH_W) 'arangod/VocBase/synchroniser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/synchroniser.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-synchroniser.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/synchroniser.c' object='arangod/VocBase/bin_arangod-synchroniser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-synchroniser.obj `if test -f 'arangod/VocBase/synchroniser.c'; then $(CYGPATH_W) 'arangod/VocBase/synchroniser.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/synchroniser.c'; fi` - -arangod/VocBase/bin_arangod-voc-shaper.o: arangod/VocBase/voc-shaper.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-voc-shaper.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Tpo -c -o arangod/VocBase/bin_arangod-voc-shaper.o `test -f 'arangod/VocBase/voc-shaper.c' || echo '$(srcdir)/'`arangod/VocBase/voc-shaper.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/voc-shaper.c' object='arangod/VocBase/bin_arangod-voc-shaper.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-voc-shaper.o `test -f 'arangod/VocBase/voc-shaper.c' || echo '$(srcdir)/'`arangod/VocBase/voc-shaper.c - -arangod/VocBase/bin_arangod-voc-shaper.obj: arangod/VocBase/voc-shaper.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-voc-shaper.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Tpo -c -o arangod/VocBase/bin_arangod-voc-shaper.obj `if test -f 'arangod/VocBase/voc-shaper.c'; then $(CYGPATH_W) 'arangod/VocBase/voc-shaper.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/voc-shaper.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-voc-shaper.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/voc-shaper.c' object='arangod/VocBase/bin_arangod-voc-shaper.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-voc-shaper.obj `if test -f 'arangod/VocBase/voc-shaper.c'; then $(CYGPATH_W) 'arangod/VocBase/voc-shaper.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/voc-shaper.c'; fi` - -arangod/VocBase/bin_arangod-vocbase.o: arangod/VocBase/vocbase.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-vocbase.o -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Tpo -c -o arangod/VocBase/bin_arangod-vocbase.o `test -f 'arangod/VocBase/vocbase.c' || echo '$(srcdir)/'`arangod/VocBase/vocbase.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/vocbase.c' object='arangod/VocBase/bin_arangod-vocbase.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-vocbase.o `test -f 'arangod/VocBase/vocbase.c' || echo '$(srcdir)/'`arangod/VocBase/vocbase.c - -arangod/VocBase/bin_arangod-vocbase.obj: arangod/VocBase/vocbase.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT arangod/VocBase/bin_arangod-vocbase.obj -MD -MP -MF arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Tpo -c -o arangod/VocBase/bin_arangod-vocbase.obj `if test -f 'arangod/VocBase/vocbase.c'; then $(CYGPATH_W) 'arangod/VocBase/vocbase.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/vocbase.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Tpo arangod/VocBase/$(DEPDIR)/bin_arangod-vocbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arangod/VocBase/vocbase.c' object='arangod/VocBase/bin_arangod-vocbase.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o arangod/VocBase/bin_arangod-vocbase.obj `if test -f 'arangod/VocBase/vocbase.c'; then $(CYGPATH_W) 'arangod/VocBase/vocbase.c'; else $(CYGPATH_W) '$(srcdir)/arangod/VocBase/vocbase.c'; fi` - -.cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -UnitTests/Cambridge/UnitTests_geo_suite-Runner.o: UnitTests/Cambridge/Runner.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT UnitTests/Cambridge/UnitTests_geo_suite-Runner.o -MD -MP -MF UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Tpo -c -o UnitTests/Cambridge/UnitTests_geo_suite-Runner.o `test -f 'UnitTests/Cambridge/Runner.cpp' || echo '$(srcdir)/'`UnitTests/Cambridge/Runner.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Tpo UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='UnitTests/Cambridge/Runner.cpp' object='UnitTests/Cambridge/UnitTests_geo_suite-Runner.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o UnitTests/Cambridge/UnitTests_geo_suite-Runner.o `test -f 'UnitTests/Cambridge/Runner.cpp' || echo '$(srcdir)/'`UnitTests/Cambridge/Runner.cpp - -UnitTests/Cambridge/UnitTests_geo_suite-Runner.obj: UnitTests/Cambridge/Runner.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT UnitTests/Cambridge/UnitTests_geo_suite-Runner.obj -MD -MP -MF UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Tpo -c -o UnitTests/Cambridge/UnitTests_geo_suite-Runner.obj `if test -f 'UnitTests/Cambridge/Runner.cpp'; then $(CYGPATH_W) 'UnitTests/Cambridge/Runner.cpp'; else $(CYGPATH_W) '$(srcdir)/UnitTests/Cambridge/Runner.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Tpo UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-Runner.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='UnitTests/Cambridge/Runner.cpp' object='UnitTests/Cambridge/UnitTests_geo_suite-Runner.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o UnitTests/Cambridge/UnitTests_geo_suite-Runner.obj `if test -f 'UnitTests/Cambridge/Runner.cpp'; then $(CYGPATH_W) 'UnitTests/Cambridge/Runner.cpp'; else $(CYGPATH_W) '$(srcdir)/UnitTests/Cambridge/Runner.cpp'; fi` - -UnitTests/Cambridge/UnitTests_geo_suite-georeg.o: UnitTests/Cambridge/georeg.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT UnitTests/Cambridge/UnitTests_geo_suite-georeg.o -MD -MP -MF UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Tpo -c -o UnitTests/Cambridge/UnitTests_geo_suite-georeg.o `test -f 'UnitTests/Cambridge/georeg.cpp' || echo '$(srcdir)/'`UnitTests/Cambridge/georeg.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Tpo UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='UnitTests/Cambridge/georeg.cpp' object='UnitTests/Cambridge/UnitTests_geo_suite-georeg.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o UnitTests/Cambridge/UnitTests_geo_suite-georeg.o `test -f 'UnitTests/Cambridge/georeg.cpp' || echo '$(srcdir)/'`UnitTests/Cambridge/georeg.cpp - -UnitTests/Cambridge/UnitTests_geo_suite-georeg.obj: UnitTests/Cambridge/georeg.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT UnitTests/Cambridge/UnitTests_geo_suite-georeg.obj -MD -MP -MF UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Tpo -c -o UnitTests/Cambridge/UnitTests_geo_suite-georeg.obj `if test -f 'UnitTests/Cambridge/georeg.cpp'; then $(CYGPATH_W) 'UnitTests/Cambridge/georeg.cpp'; else $(CYGPATH_W) '$(srcdir)/UnitTests/Cambridge/georeg.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Tpo UnitTests/Cambridge/$(DEPDIR)/UnitTests_geo_suite-georeg.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='UnitTests/Cambridge/georeg.cpp' object='UnitTests/Cambridge/UnitTests_geo_suite-georeg.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(UnitTests_geo_suite_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o UnitTests/Cambridge/UnitTests_geo_suite-georeg.obj `if test -f 'UnitTests/Cambridge/georeg.cpp'; then $(CYGPATH_W) 'UnitTests/Cambridge/georeg.cpp'; else $(CYGPATH_W) '$(srcdir)/UnitTests/Cambridge/georeg.cpp'; fi` - -arangosh/ArangoShell/bin_arangob-ArangoClient.o: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangob-ArangoClient.o -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangob-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangob-ArangoClient.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangob-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp - -arangosh/ArangoShell/bin_arangob-ArangoClient.obj: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangob-ArangoClient.obj -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangob-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangob-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangob-ArangoClient.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangob-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` - -arangosh/Benchmark/bin_arangob-arangob.o: arangosh/Benchmark/arangob.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/Benchmark/bin_arangob-arangob.o -MD -MP -MF arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Tpo -c -o arangosh/Benchmark/bin_arangob-arangob.o `test -f 'arangosh/Benchmark/arangob.cpp' || echo '$(srcdir)/'`arangosh/Benchmark/arangob.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Tpo arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/Benchmark/arangob.cpp' object='arangosh/Benchmark/bin_arangob-arangob.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/Benchmark/bin_arangob-arangob.o `test -f 'arangosh/Benchmark/arangob.cpp' || echo '$(srcdir)/'`arangosh/Benchmark/arangob.cpp - -arangosh/Benchmark/bin_arangob-arangob.obj: arangosh/Benchmark/arangob.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/Benchmark/bin_arangob-arangob.obj -MD -MP -MF arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Tpo -c -o arangosh/Benchmark/bin_arangob-arangob.obj `if test -f 'arangosh/Benchmark/arangob.cpp'; then $(CYGPATH_W) 'arangosh/Benchmark/arangob.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/Benchmark/arangob.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Tpo arangosh/Benchmark/$(DEPDIR)/bin_arangob-arangob.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/Benchmark/arangob.cpp' object='arangosh/Benchmark/bin_arangob-arangob.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangob_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/Benchmark/bin_arangob-arangob.obj `if test -f 'arangosh/Benchmark/arangob.cpp'; then $(CYGPATH_W) 'arangosh/Benchmark/arangob.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/Benchmark/arangob.cpp'; fi` - -arangod/Actions/bin_arangod-actions.o: arangod/Actions/actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-actions.o -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-actions.Tpo -c -o arangod/Actions/bin_arangod-actions.o `test -f 'arangod/Actions/actions.cpp' || echo '$(srcdir)/'`arangod/Actions/actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-actions.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/actions.cpp' object='arangod/Actions/bin_arangod-actions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-actions.o `test -f 'arangod/Actions/actions.cpp' || echo '$(srcdir)/'`arangod/Actions/actions.cpp - -arangod/Actions/bin_arangod-actions.obj: arangod/Actions/actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-actions.obj -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-actions.Tpo -c -o arangod/Actions/bin_arangod-actions.obj `if test -f 'arangod/Actions/actions.cpp'; then $(CYGPATH_W) 'arangod/Actions/actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/actions.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-actions.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/actions.cpp' object='arangod/Actions/bin_arangod-actions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-actions.obj `if test -f 'arangod/Actions/actions.cpp'; then $(CYGPATH_W) 'arangod/Actions/actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/actions.cpp'; fi` - -arangod/Actions/bin_arangod-ActionDispatcherThread.o: arangod/Actions/ActionDispatcherThread.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-ActionDispatcherThread.o -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Tpo -c -o arangod/Actions/bin_arangod-ActionDispatcherThread.o `test -f 'arangod/Actions/ActionDispatcherThread.cpp' || echo '$(srcdir)/'`arangod/Actions/ActionDispatcherThread.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/ActionDispatcherThread.cpp' object='arangod/Actions/bin_arangod-ActionDispatcherThread.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-ActionDispatcherThread.o `test -f 'arangod/Actions/ActionDispatcherThread.cpp' || echo '$(srcdir)/'`arangod/Actions/ActionDispatcherThread.cpp - -arangod/Actions/bin_arangod-ActionDispatcherThread.obj: arangod/Actions/ActionDispatcherThread.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-ActionDispatcherThread.obj -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Tpo -c -o arangod/Actions/bin_arangod-ActionDispatcherThread.obj `if test -f 'arangod/Actions/ActionDispatcherThread.cpp'; then $(CYGPATH_W) 'arangod/Actions/ActionDispatcherThread.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/ActionDispatcherThread.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-ActionDispatcherThread.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/ActionDispatcherThread.cpp' object='arangod/Actions/bin_arangod-ActionDispatcherThread.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-ActionDispatcherThread.obj `if test -f 'arangod/Actions/ActionDispatcherThread.cpp'; then $(CYGPATH_W) 'arangod/Actions/ActionDispatcherThread.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/ActionDispatcherThread.cpp'; fi` - -arangod/Actions/bin_arangod-RestActionHandler.o: arangod/Actions/RestActionHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-RestActionHandler.o -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Tpo -c -o arangod/Actions/bin_arangod-RestActionHandler.o `test -f 'arangod/Actions/RestActionHandler.cpp' || echo '$(srcdir)/'`arangod/Actions/RestActionHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/RestActionHandler.cpp' object='arangod/Actions/bin_arangod-RestActionHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-RestActionHandler.o `test -f 'arangod/Actions/RestActionHandler.cpp' || echo '$(srcdir)/'`arangod/Actions/RestActionHandler.cpp - -arangod/Actions/bin_arangod-RestActionHandler.obj: arangod/Actions/RestActionHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/Actions/bin_arangod-RestActionHandler.obj -MD -MP -MF arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Tpo -c -o arangod/Actions/bin_arangod-RestActionHandler.obj `if test -f 'arangod/Actions/RestActionHandler.cpp'; then $(CYGPATH_W) 'arangod/Actions/RestActionHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/RestActionHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Tpo arangod/Actions/$(DEPDIR)/bin_arangod-RestActionHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/Actions/RestActionHandler.cpp' object='arangod/Actions/bin_arangod-RestActionHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/Actions/bin_arangod-RestActionHandler.obj `if test -f 'arangod/Actions/RestActionHandler.cpp'; then $(CYGPATH_W) 'arangod/Actions/RestActionHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/Actions/RestActionHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-StatisticsBaseHandler.o: arangod/RestHandler/StatisticsBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-StatisticsBaseHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Tpo -c -o arangod/RestHandler/bin_arangod-StatisticsBaseHandler.o `test -f 'arangod/RestHandler/StatisticsBaseHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/StatisticsBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/StatisticsBaseHandler.cpp' object='arangod/RestHandler/bin_arangod-StatisticsBaseHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-StatisticsBaseHandler.o `test -f 'arangod/RestHandler/StatisticsBaseHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/StatisticsBaseHandler.cpp - -arangod/RestHandler/bin_arangod-StatisticsBaseHandler.obj: arangod/RestHandler/StatisticsBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-StatisticsBaseHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Tpo -c -o arangod/RestHandler/bin_arangod-StatisticsBaseHandler.obj `if test -f 'arangod/RestHandler/StatisticsBaseHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/StatisticsBaseHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/StatisticsBaseHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-StatisticsBaseHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/StatisticsBaseHandler.cpp' object='arangod/RestHandler/bin_arangod-StatisticsBaseHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-StatisticsBaseHandler.obj `if test -f 'arangod/RestHandler/StatisticsBaseHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/StatisticsBaseHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/StatisticsBaseHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.o: arangod/RestHandler/ConnectionStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Tpo -c -o arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.o `test -f 'arangod/RestHandler/ConnectionStatisticsHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/ConnectionStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/ConnectionStatisticsHandler.cpp' object='arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.o `test -f 'arangod/RestHandler/ConnectionStatisticsHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/ConnectionStatisticsHandler.cpp - -arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.obj: arangod/RestHandler/ConnectionStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Tpo -c -o arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.obj `if test -f 'arangod/RestHandler/ConnectionStatisticsHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/ConnectionStatisticsHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/ConnectionStatisticsHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-ConnectionStatisticsHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/ConnectionStatisticsHandler.cpp' object='arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-ConnectionStatisticsHandler.obj `if test -f 'arangod/RestHandler/ConnectionStatisticsHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/ConnectionStatisticsHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/ConnectionStatisticsHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RequestStatisticsHandler.o: arangod/RestHandler/RequestStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RequestStatisticsHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RequestStatisticsHandler.o `test -f 'arangod/RestHandler/RequestStatisticsHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RequestStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RequestStatisticsHandler.cpp' object='arangod/RestHandler/bin_arangod-RequestStatisticsHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RequestStatisticsHandler.o `test -f 'arangod/RestHandler/RequestStatisticsHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RequestStatisticsHandler.cpp - -arangod/RestHandler/bin_arangod-RequestStatisticsHandler.obj: arangod/RestHandler/RequestStatisticsHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RequestStatisticsHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RequestStatisticsHandler.obj `if test -f 'arangod/RestHandler/RequestStatisticsHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RequestStatisticsHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RequestStatisticsHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RequestStatisticsHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RequestStatisticsHandler.cpp' object='arangod/RestHandler/bin_arangod-RequestStatisticsHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RequestStatisticsHandler.obj `if test -f 'arangod/RestHandler/RequestStatisticsHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RequestStatisticsHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RequestStatisticsHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RestBatchHandler.o: arangod/RestHandler/RestBatchHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestBatchHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestBatchHandler.o `test -f 'arangod/RestHandler/RestBatchHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestBatchHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestBatchHandler.cpp' object='arangod/RestHandler/bin_arangod-RestBatchHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestBatchHandler.o `test -f 'arangod/RestHandler/RestBatchHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestBatchHandler.cpp - -arangod/RestHandler/bin_arangod-RestBatchHandler.obj: arangod/RestHandler/RestBatchHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestBatchHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestBatchHandler.obj `if test -f 'arangod/RestHandler/RestBatchHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestBatchHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestBatchHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestBatchHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestBatchHandler.cpp' object='arangod/RestHandler/bin_arangod-RestBatchHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestBatchHandler.obj `if test -f 'arangod/RestHandler/RestBatchHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestBatchHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestBatchHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RestDocumentHandler.o: arangod/RestHandler/RestDocumentHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestDocumentHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestDocumentHandler.o `test -f 'arangod/RestHandler/RestDocumentHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestDocumentHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestDocumentHandler.cpp' object='arangod/RestHandler/bin_arangod-RestDocumentHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestDocumentHandler.o `test -f 'arangod/RestHandler/RestDocumentHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestDocumentHandler.cpp - -arangod/RestHandler/bin_arangod-RestDocumentHandler.obj: arangod/RestHandler/RestDocumentHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestDocumentHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestDocumentHandler.obj `if test -f 'arangod/RestHandler/RestDocumentHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestDocumentHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestDocumentHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestDocumentHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestDocumentHandler.cpp' object='arangod/RestHandler/bin_arangod-RestDocumentHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestDocumentHandler.obj `if test -f 'arangod/RestHandler/RestDocumentHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestDocumentHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestDocumentHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RestEdgeHandler.o: arangod/RestHandler/RestEdgeHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestEdgeHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestEdgeHandler.o `test -f 'arangod/RestHandler/RestEdgeHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestEdgeHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestEdgeHandler.cpp' object='arangod/RestHandler/bin_arangod-RestEdgeHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestEdgeHandler.o `test -f 'arangod/RestHandler/RestEdgeHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestEdgeHandler.cpp - -arangod/RestHandler/bin_arangod-RestEdgeHandler.obj: arangod/RestHandler/RestEdgeHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestEdgeHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestEdgeHandler.obj `if test -f 'arangod/RestHandler/RestEdgeHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestEdgeHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestEdgeHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestEdgeHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestEdgeHandler.cpp' object='arangod/RestHandler/bin_arangod-RestEdgeHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestEdgeHandler.obj `if test -f 'arangod/RestHandler/RestEdgeHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestEdgeHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestEdgeHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RestImportHandler.o: arangod/RestHandler/RestImportHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestImportHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestImportHandler.o `test -f 'arangod/RestHandler/RestImportHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestImportHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestImportHandler.cpp' object='arangod/RestHandler/bin_arangod-RestImportHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestImportHandler.o `test -f 'arangod/RestHandler/RestImportHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestImportHandler.cpp - -arangod/RestHandler/bin_arangod-RestImportHandler.obj: arangod/RestHandler/RestImportHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestImportHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestImportHandler.obj `if test -f 'arangod/RestHandler/RestImportHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestImportHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestImportHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestImportHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestImportHandler.cpp' object='arangod/RestHandler/bin_arangod-RestImportHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestImportHandler.obj `if test -f 'arangod/RestHandler/RestImportHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestImportHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestImportHandler.cpp'; fi` - -arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.o: arangod/RestHandler/RestVocbaseBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.o -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.o `test -f 'arangod/RestHandler/RestVocbaseBaseHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestVocbaseBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestVocbaseBaseHandler.cpp' object='arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.o `test -f 'arangod/RestHandler/RestVocbaseBaseHandler.cpp' || echo '$(srcdir)/'`arangod/RestHandler/RestVocbaseBaseHandler.cpp - -arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.obj: arangod/RestHandler/RestVocbaseBaseHandler.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.obj -MD -MP -MF arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Tpo -c -o arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.obj `if test -f 'arangod/RestHandler/RestVocbaseBaseHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestVocbaseBaseHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestVocbaseBaseHandler.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Tpo arangod/RestHandler/$(DEPDIR)/bin_arangod-RestVocbaseBaseHandler.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestHandler/RestVocbaseBaseHandler.cpp' object='arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestHandler/bin_arangod-RestVocbaseBaseHandler.obj `if test -f 'arangod/RestHandler/RestVocbaseBaseHandler.cpp'; then $(CYGPATH_W) 'arangod/RestHandler/RestVocbaseBaseHandler.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestHandler/RestVocbaseBaseHandler.cpp'; fi` - -arangod/RestServer/bin_arangod-ArangoServer.o: arangod/RestServer/ArangoServer.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestServer/bin_arangod-ArangoServer.o -MD -MP -MF arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Tpo -c -o arangod/RestServer/bin_arangod-ArangoServer.o `test -f 'arangod/RestServer/ArangoServer.cpp' || echo '$(srcdir)/'`arangod/RestServer/ArangoServer.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Tpo arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestServer/ArangoServer.cpp' object='arangod/RestServer/bin_arangod-ArangoServer.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestServer/bin_arangod-ArangoServer.o `test -f 'arangod/RestServer/ArangoServer.cpp' || echo '$(srcdir)/'`arangod/RestServer/ArangoServer.cpp - -arangod/RestServer/bin_arangod-ArangoServer.obj: arangod/RestServer/ArangoServer.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestServer/bin_arangod-ArangoServer.obj -MD -MP -MF arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Tpo -c -o arangod/RestServer/bin_arangod-ArangoServer.obj `if test -f 'arangod/RestServer/ArangoServer.cpp'; then $(CYGPATH_W) 'arangod/RestServer/ArangoServer.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestServer/ArangoServer.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Tpo arangod/RestServer/$(DEPDIR)/bin_arangod-ArangoServer.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestServer/ArangoServer.cpp' object='arangod/RestServer/bin_arangod-ArangoServer.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestServer/bin_arangod-ArangoServer.obj `if test -f 'arangod/RestServer/ArangoServer.cpp'; then $(CYGPATH_W) 'arangod/RestServer/ArangoServer.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestServer/ArangoServer.cpp'; fi` - -arangod/RestServer/bin_arangod-arango.o: arangod/RestServer/arango.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestServer/bin_arangod-arango.o -MD -MP -MF arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Tpo -c -o arangod/RestServer/bin_arangod-arango.o `test -f 'arangod/RestServer/arango.cpp' || echo '$(srcdir)/'`arangod/RestServer/arango.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Tpo arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestServer/arango.cpp' object='arangod/RestServer/bin_arangod-arango.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestServer/bin_arangod-arango.o `test -f 'arangod/RestServer/arango.cpp' || echo '$(srcdir)/'`arangod/RestServer/arango.cpp - -arangod/RestServer/bin_arangod-arango.obj: arangod/RestServer/arango.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/RestServer/bin_arangod-arango.obj -MD -MP -MF arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Tpo -c -o arangod/RestServer/bin_arangod-arango.obj `if test -f 'arangod/RestServer/arango.cpp'; then $(CYGPATH_W) 'arangod/RestServer/arango.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestServer/arango.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Tpo arangod/RestServer/$(DEPDIR)/bin_arangod-arango.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/RestServer/arango.cpp' object='arangod/RestServer/bin_arangod-arango.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/RestServer/bin_arangod-arango.obj `if test -f 'arangod/RestServer/arango.cpp'; then $(CYGPATH_W) 'arangod/RestServer/arango.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/RestServer/arango.cpp'; fi` - -arangod/V8Server/bin_arangod-ApplicationV8.o: arangod/V8Server/ApplicationV8.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-ApplicationV8.o -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Tpo -c -o arangod/V8Server/bin_arangod-ApplicationV8.o `test -f 'arangod/V8Server/ApplicationV8.cpp' || echo '$(srcdir)/'`arangod/V8Server/ApplicationV8.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/ApplicationV8.cpp' object='arangod/V8Server/bin_arangod-ApplicationV8.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-ApplicationV8.o `test -f 'arangod/V8Server/ApplicationV8.cpp' || echo '$(srcdir)/'`arangod/V8Server/ApplicationV8.cpp - -arangod/V8Server/bin_arangod-ApplicationV8.obj: arangod/V8Server/ApplicationV8.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-ApplicationV8.obj -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Tpo -c -o arangod/V8Server/bin_arangod-ApplicationV8.obj `if test -f 'arangod/V8Server/ApplicationV8.cpp'; then $(CYGPATH_W) 'arangod/V8Server/ApplicationV8.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/ApplicationV8.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-ApplicationV8.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/ApplicationV8.cpp' object='arangod/V8Server/bin_arangod-ApplicationV8.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-ApplicationV8.obj `if test -f 'arangod/V8Server/ApplicationV8.cpp'; then $(CYGPATH_W) 'arangod/V8Server/ApplicationV8.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/ApplicationV8.cpp'; fi` - -arangod/V8Server/bin_arangod-v8-actions.o: arangod/V8Server/v8-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-actions.o -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Tpo -c -o arangod/V8Server/bin_arangod-v8-actions.o `test -f 'arangod/V8Server/v8-actions.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-actions.cpp' object='arangod/V8Server/bin_arangod-v8-actions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-actions.o `test -f 'arangod/V8Server/v8-actions.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-actions.cpp - -arangod/V8Server/bin_arangod-v8-actions.obj: arangod/V8Server/v8-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-actions.obj -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Tpo -c -o arangod/V8Server/bin_arangod-v8-actions.obj `if test -f 'arangod/V8Server/v8-actions.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-actions.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-actions.cpp' object='arangod/V8Server/bin_arangod-v8-actions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-actions.obj `if test -f 'arangod/V8Server/v8-actions.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-actions.cpp'; fi` - -arangod/V8Server/bin_arangod-v8-objects.o: arangod/V8Server/v8-objects.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-objects.o -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Tpo -c -o arangod/V8Server/bin_arangod-v8-objects.o `test -f 'arangod/V8Server/v8-objects.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-objects.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-objects.cpp' object='arangod/V8Server/bin_arangod-v8-objects.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-objects.o `test -f 'arangod/V8Server/v8-objects.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-objects.cpp - -arangod/V8Server/bin_arangod-v8-objects.obj: arangod/V8Server/v8-objects.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-objects.obj -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Tpo -c -o arangod/V8Server/bin_arangod-v8-objects.obj `if test -f 'arangod/V8Server/v8-objects.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-objects.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-objects.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-objects.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-objects.cpp' object='arangod/V8Server/bin_arangod-v8-objects.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-objects.obj `if test -f 'arangod/V8Server/v8-objects.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-objects.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-objects.cpp'; fi` - -arangod/V8Server/bin_arangod-v8-query.o: arangod/V8Server/v8-query.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-query.o -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Tpo -c -o arangod/V8Server/bin_arangod-v8-query.o `test -f 'arangod/V8Server/v8-query.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-query.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-query.cpp' object='arangod/V8Server/bin_arangod-v8-query.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-query.o `test -f 'arangod/V8Server/v8-query.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-query.cpp - -arangod/V8Server/bin_arangod-v8-query.obj: arangod/V8Server/v8-query.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-query.obj -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Tpo -c -o arangod/V8Server/bin_arangod-v8-query.obj `if test -f 'arangod/V8Server/v8-query.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-query.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-query.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-query.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-query.cpp' object='arangod/V8Server/bin_arangod-v8-query.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-query.obj `if test -f 'arangod/V8Server/v8-query.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-query.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-query.cpp'; fi` - -arangod/V8Server/bin_arangod-v8-vocbase.o: arangod/V8Server/v8-vocbase.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-vocbase.o -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Tpo -c -o arangod/V8Server/bin_arangod-v8-vocbase.o `test -f 'arangod/V8Server/v8-vocbase.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-vocbase.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-vocbase.cpp' object='arangod/V8Server/bin_arangod-v8-vocbase.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-vocbase.o `test -f 'arangod/V8Server/v8-vocbase.cpp' || echo '$(srcdir)/'`arangod/V8Server/v8-vocbase.cpp - -arangod/V8Server/bin_arangod-v8-vocbase.obj: arangod/V8Server/v8-vocbase.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/V8Server/bin_arangod-v8-vocbase.obj -MD -MP -MF arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Tpo -c -o arangod/V8Server/bin_arangod-v8-vocbase.obj `if test -f 'arangod/V8Server/v8-vocbase.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-vocbase.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-vocbase.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Tpo arangod/V8Server/$(DEPDIR)/bin_arangod-v8-vocbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/V8Server/v8-vocbase.cpp' object='arangod/V8Server/bin_arangod-v8-vocbase.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/V8Server/bin_arangod-v8-vocbase.obj `if test -f 'arangod/V8Server/v8-vocbase.cpp'; then $(CYGPATH_W) 'arangod/V8Server/v8-vocbase.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/V8Server/v8-vocbase.cpp'; fi` - -arangod/MRServer/bin_arangod-ApplicationMR.o: arangod/MRServer/ApplicationMR.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/MRServer/bin_arangod-ApplicationMR.o -MD -MP -MF arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Tpo -c -o arangod/MRServer/bin_arangod-ApplicationMR.o `test -f 'arangod/MRServer/ApplicationMR.cpp' || echo '$(srcdir)/'`arangod/MRServer/ApplicationMR.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Tpo arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/MRServer/ApplicationMR.cpp' object='arangod/MRServer/bin_arangod-ApplicationMR.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/MRServer/bin_arangod-ApplicationMR.o `test -f 'arangod/MRServer/ApplicationMR.cpp' || echo '$(srcdir)/'`arangod/MRServer/ApplicationMR.cpp - -arangod/MRServer/bin_arangod-ApplicationMR.obj: arangod/MRServer/ApplicationMR.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/MRServer/bin_arangod-ApplicationMR.obj -MD -MP -MF arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Tpo -c -o arangod/MRServer/bin_arangod-ApplicationMR.obj `if test -f 'arangod/MRServer/ApplicationMR.cpp'; then $(CYGPATH_W) 'arangod/MRServer/ApplicationMR.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/MRServer/ApplicationMR.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Tpo arangod/MRServer/$(DEPDIR)/bin_arangod-ApplicationMR.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/MRServer/ApplicationMR.cpp' object='arangod/MRServer/bin_arangod-ApplicationMR.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/MRServer/bin_arangod-ApplicationMR.obj `if test -f 'arangod/MRServer/ApplicationMR.cpp'; then $(CYGPATH_W) 'arangod/MRServer/ApplicationMR.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/MRServer/ApplicationMR.cpp'; fi` - -arangod/MRServer/bin_arangod-mr-actions.o: arangod/MRServer/mr-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/MRServer/bin_arangod-mr-actions.o -MD -MP -MF arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Tpo -c -o arangod/MRServer/bin_arangod-mr-actions.o `test -f 'arangod/MRServer/mr-actions.cpp' || echo '$(srcdir)/'`arangod/MRServer/mr-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Tpo arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/MRServer/mr-actions.cpp' object='arangod/MRServer/bin_arangod-mr-actions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/MRServer/bin_arangod-mr-actions.o `test -f 'arangod/MRServer/mr-actions.cpp' || echo '$(srcdir)/'`arangod/MRServer/mr-actions.cpp - -arangod/MRServer/bin_arangod-mr-actions.obj: arangod/MRServer/mr-actions.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangod/MRServer/bin_arangod-mr-actions.obj -MD -MP -MF arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Tpo -c -o arangod/MRServer/bin_arangod-mr-actions.obj `if test -f 'arangod/MRServer/mr-actions.cpp'; then $(CYGPATH_W) 'arangod/MRServer/mr-actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/MRServer/mr-actions.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Tpo arangod/MRServer/$(DEPDIR)/bin_arangod-mr-actions.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangod/MRServer/mr-actions.cpp' object='arangod/MRServer/bin_arangod-mr-actions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangod_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangod/MRServer/bin_arangod-mr-actions.obj `if test -f 'arangod/MRServer/mr-actions.cpp'; then $(CYGPATH_W) 'arangod/MRServer/mr-actions.cpp'; else $(CYGPATH_W) '$(srcdir)/arangod/MRServer/mr-actions.cpp'; fi` - -arangosh/ArangoShell/bin_arangoimp-ArangoClient.o: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangoimp-ArangoClient.o -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangoimp-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangoimp-ArangoClient.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangoimp-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp - -arangosh/ArangoShell/bin_arangoimp-ArangoClient.obj: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangoimp-ArangoClient.obj -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangoimp-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangoimp-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangoimp-ArangoClient.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangoimp-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` - -arangosh/V8Client/bin_arangoimp-ImportHelper.o: arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-ImportHelper.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Tpo -c -o arangosh/V8Client/bin_arangoimp-ImportHelper.o `test -f 'arangosh/V8Client/ImportHelper.cpp' || echo '$(srcdir)/'`arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/ImportHelper.cpp' object='arangosh/V8Client/bin_arangoimp-ImportHelper.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-ImportHelper.o `test -f 'arangosh/V8Client/ImportHelper.cpp' || echo '$(srcdir)/'`arangosh/V8Client/ImportHelper.cpp - -arangosh/V8Client/bin_arangoimp-ImportHelper.obj: arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-ImportHelper.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Tpo -c -o arangosh/V8Client/bin_arangoimp-ImportHelper.obj `if test -f 'arangosh/V8Client/ImportHelper.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/ImportHelper.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/ImportHelper.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-ImportHelper.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/ImportHelper.cpp' object='arangosh/V8Client/bin_arangoimp-ImportHelper.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-ImportHelper.obj `if test -f 'arangosh/V8Client/ImportHelper.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/ImportHelper.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/ImportHelper.cpp'; fi` - -arangosh/V8Client/bin_arangoimp-V8ClientConnection.o: arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-V8ClientConnection.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Tpo -c -o arangosh/V8Client/bin_arangoimp-V8ClientConnection.o `test -f 'arangosh/V8Client/V8ClientConnection.cpp' || echo '$(srcdir)/'`arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/V8ClientConnection.cpp' object='arangosh/V8Client/bin_arangoimp-V8ClientConnection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-V8ClientConnection.o `test -f 'arangosh/V8Client/V8ClientConnection.cpp' || echo '$(srcdir)/'`arangosh/V8Client/V8ClientConnection.cpp - -arangosh/V8Client/bin_arangoimp-V8ClientConnection.obj: arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-V8ClientConnection.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Tpo -c -o arangosh/V8Client/bin_arangoimp-V8ClientConnection.obj `if test -f 'arangosh/V8Client/V8ClientConnection.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/V8ClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/V8ClientConnection.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-V8ClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/V8ClientConnection.cpp' object='arangosh/V8Client/bin_arangoimp-V8ClientConnection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-V8ClientConnection.obj `if test -f 'arangosh/V8Client/V8ClientConnection.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/V8ClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/V8ClientConnection.cpp'; fi` - -arangosh/V8Client/bin_arangoimp-arangoimp.o: arangosh/V8Client/arangoimp.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-arangoimp.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Tpo -c -o arangosh/V8Client/bin_arangoimp-arangoimp.o `test -f 'arangosh/V8Client/arangoimp.cpp' || echo '$(srcdir)/'`arangosh/V8Client/arangoimp.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/arangoimp.cpp' object='arangosh/V8Client/bin_arangoimp-arangoimp.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-arangoimp.o `test -f 'arangosh/V8Client/arangoimp.cpp' || echo '$(srcdir)/'`arangosh/V8Client/arangoimp.cpp - -arangosh/V8Client/bin_arangoimp-arangoimp.obj: arangosh/V8Client/arangoimp.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangoimp-arangoimp.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Tpo -c -o arangosh/V8Client/bin_arangoimp-arangoimp.obj `if test -f 'arangosh/V8Client/arangoimp.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/arangoimp.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/arangoimp.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangoimp-arangoimp.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/arangoimp.cpp' object='arangosh/V8Client/bin_arangoimp-arangoimp.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoimp_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangoimp-arangoimp.obj `if test -f 'arangosh/V8Client/arangoimp.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/arangoimp.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/arangoimp.cpp'; fi` - -arangosh/ArangoShell/bin_arangoirb-ArangoClient.o: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangoirb-ArangoClient.o -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangoirb-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangoirb-ArangoClient.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangoirb-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp - -arangosh/ArangoShell/bin_arangoirb-ArangoClient.obj: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangoirb-ArangoClient.obj -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangoirb-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangoirb-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangoirb-ArangoClient.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangoirb-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` - -arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.o: arangoirb/MRClient/MRubyClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.o -MD -MP -MF arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Tpo -c -o arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.o `test -f 'arangoirb/MRClient/MRubyClientConnection.cpp' || echo '$(srcdir)/'`arangoirb/MRClient/MRubyClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Tpo arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangoirb/MRClient/MRubyClientConnection.cpp' object='arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.o `test -f 'arangoirb/MRClient/MRubyClientConnection.cpp' || echo '$(srcdir)/'`arangoirb/MRClient/MRubyClientConnection.cpp - -arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.obj: arangoirb/MRClient/MRubyClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.obj -MD -MP -MF arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Tpo -c -o arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.obj `if test -f 'arangoirb/MRClient/MRubyClientConnection.cpp'; then $(CYGPATH_W) 'arangoirb/MRClient/MRubyClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangoirb/MRClient/MRubyClientConnection.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Tpo arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-MRubyClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangoirb/MRClient/MRubyClientConnection.cpp' object='arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangoirb/MRClient/bin_arangoirb-MRubyClientConnection.obj `if test -f 'arangoirb/MRClient/MRubyClientConnection.cpp'; then $(CYGPATH_W) 'arangoirb/MRClient/MRubyClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangoirb/MRClient/MRubyClientConnection.cpp'; fi` - -arangoirb/MRClient/bin_arangoirb-arangoirb.o: arangoirb/MRClient/arangoirb.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangoirb/MRClient/bin_arangoirb-arangoirb.o -MD -MP -MF arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Tpo -c -o arangoirb/MRClient/bin_arangoirb-arangoirb.o `test -f 'arangoirb/MRClient/arangoirb.cpp' || echo '$(srcdir)/'`arangoirb/MRClient/arangoirb.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Tpo arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangoirb/MRClient/arangoirb.cpp' object='arangoirb/MRClient/bin_arangoirb-arangoirb.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangoirb/MRClient/bin_arangoirb-arangoirb.o `test -f 'arangoirb/MRClient/arangoirb.cpp' || echo '$(srcdir)/'`arangoirb/MRClient/arangoirb.cpp - -arangoirb/MRClient/bin_arangoirb-arangoirb.obj: arangoirb/MRClient/arangoirb.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangoirb/MRClient/bin_arangoirb-arangoirb.obj -MD -MP -MF arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Tpo -c -o arangoirb/MRClient/bin_arangoirb-arangoirb.obj `if test -f 'arangoirb/MRClient/arangoirb.cpp'; then $(CYGPATH_W) 'arangoirb/MRClient/arangoirb.cpp'; else $(CYGPATH_W) '$(srcdir)/arangoirb/MRClient/arangoirb.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Tpo arangoirb/MRClient/$(DEPDIR)/bin_arangoirb-arangoirb.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangoirb/MRClient/arangoirb.cpp' object='arangoirb/MRClient/bin_arangoirb-arangoirb.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangoirb_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangoirb/MRClient/bin_arangoirb-arangoirb.obj `if test -f 'arangoirb/MRClient/arangoirb.cpp'; then $(CYGPATH_W) 'arangoirb/MRClient/arangoirb.cpp'; else $(CYGPATH_W) '$(srcdir)/arangoirb/MRClient/arangoirb.cpp'; fi` - -arangosh/ArangoShell/bin_arangosh-ArangoClient.o: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangosh-ArangoClient.o -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangosh-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangosh-ArangoClient.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangosh-ArangoClient.o `test -f 'arangosh/ArangoShell/ArangoClient.cpp' || echo '$(srcdir)/'`arangosh/ArangoShell/ArangoClient.cpp - -arangosh/ArangoShell/bin_arangosh-ArangoClient.obj: arangosh/ArangoShell/ArangoClient.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/ArangoShell/bin_arangosh-ArangoClient.obj -MD -MP -MF arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Tpo -c -o arangosh/ArangoShell/bin_arangosh-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Tpo arangosh/ArangoShell/$(DEPDIR)/bin_arangosh-ArangoClient.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/ArangoShell/ArangoClient.cpp' object='arangosh/ArangoShell/bin_arangosh-ArangoClient.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/ArangoShell/bin_arangosh-ArangoClient.obj `if test -f 'arangosh/ArangoShell/ArangoClient.cpp'; then $(CYGPATH_W) 'arangosh/ArangoShell/ArangoClient.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/ArangoShell/ArangoClient.cpp'; fi` - -arangosh/V8Client/bin_arangosh-ImportHelper.o: arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-ImportHelper.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Tpo -c -o arangosh/V8Client/bin_arangosh-ImportHelper.o `test -f 'arangosh/V8Client/ImportHelper.cpp' || echo '$(srcdir)/'`arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/ImportHelper.cpp' object='arangosh/V8Client/bin_arangosh-ImportHelper.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-ImportHelper.o `test -f 'arangosh/V8Client/ImportHelper.cpp' || echo '$(srcdir)/'`arangosh/V8Client/ImportHelper.cpp - -arangosh/V8Client/bin_arangosh-ImportHelper.obj: arangosh/V8Client/ImportHelper.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-ImportHelper.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Tpo -c -o arangosh/V8Client/bin_arangosh-ImportHelper.obj `if test -f 'arangosh/V8Client/ImportHelper.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/ImportHelper.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/ImportHelper.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-ImportHelper.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/ImportHelper.cpp' object='arangosh/V8Client/bin_arangosh-ImportHelper.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-ImportHelper.obj `if test -f 'arangosh/V8Client/ImportHelper.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/ImportHelper.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/ImportHelper.cpp'; fi` - -arangosh/V8Client/bin_arangosh-V8ClientConnection.o: arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-V8ClientConnection.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Tpo -c -o arangosh/V8Client/bin_arangosh-V8ClientConnection.o `test -f 'arangosh/V8Client/V8ClientConnection.cpp' || echo '$(srcdir)/'`arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/V8ClientConnection.cpp' object='arangosh/V8Client/bin_arangosh-V8ClientConnection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-V8ClientConnection.o `test -f 'arangosh/V8Client/V8ClientConnection.cpp' || echo '$(srcdir)/'`arangosh/V8Client/V8ClientConnection.cpp - -arangosh/V8Client/bin_arangosh-V8ClientConnection.obj: arangosh/V8Client/V8ClientConnection.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-V8ClientConnection.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Tpo -c -o arangosh/V8Client/bin_arangosh-V8ClientConnection.obj `if test -f 'arangosh/V8Client/V8ClientConnection.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/V8ClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/V8ClientConnection.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-V8ClientConnection.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/V8ClientConnection.cpp' object='arangosh/V8Client/bin_arangosh-V8ClientConnection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-V8ClientConnection.obj `if test -f 'arangosh/V8Client/V8ClientConnection.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/V8ClientConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/V8ClientConnection.cpp'; fi` - -arangosh/V8Client/bin_arangosh-arangosh.o: arangosh/V8Client/arangosh.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-arangosh.o -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Tpo -c -o arangosh/V8Client/bin_arangosh-arangosh.o `test -f 'arangosh/V8Client/arangosh.cpp' || echo '$(srcdir)/'`arangosh/V8Client/arangosh.cpp -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/arangosh.cpp' object='arangosh/V8Client/bin_arangosh-arangosh.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-arangosh.o `test -f 'arangosh/V8Client/arangosh.cpp' || echo '$(srcdir)/'`arangosh/V8Client/arangosh.cpp - -arangosh/V8Client/bin_arangosh-arangosh.obj: arangosh/V8Client/arangosh.cpp -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arangosh/V8Client/bin_arangosh-arangosh.obj -MD -MP -MF arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Tpo -c -o arangosh/V8Client/bin_arangosh-arangosh.obj `if test -f 'arangosh/V8Client/arangosh.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/arangosh.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/arangosh.cpp'; fi` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Tpo arangosh/V8Client/$(DEPDIR)/bin_arangosh-arangosh.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arangosh/V8Client/arangosh.cpp' object='arangosh/V8Client/bin_arangosh-arangosh.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bin_arangosh_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arangosh/V8Client/bin_arangosh-arangosh.obj `if test -f 'arangosh/V8Client/arangosh.cpp'; then $(CYGPATH_W) 'arangosh/V8Client/arangosh.cpp'; else $(CYGPATH_W) '$(srcdir)/arangosh/V8Client/arangosh.cpp'; fi` -install-man1: $(dist_man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(dist_man_MANS)'; \ - test -n "$(man1dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.1[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ - done; } - -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man1dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.1[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) -install-man8: $(dist_man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(dist_man_MANS)'; \ - test -n "$(man8dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.8[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ - done; } - -uninstall-man8: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man8dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.8[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) -install-arangosysconfDATA: $(arangosysconf_DATA) - @$(NORMAL_INSTALL) - @list='$(arangosysconf_DATA)'; test -n "$(arangosysconfdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(arangosysconfdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(arangosysconfdir)" || 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)$(arangosysconfdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(arangosysconfdir)" || exit $$?; \ - done - -uninstall-arangosysconfDATA: - @$(NORMAL_UNINSTALL) - @list='$(arangosysconf_DATA)'; test -n "$(arangosysconfdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(arangosysconfdir)'; $(am__uninstall_files_from_dir) -install-nobase_pkgdataDATA: $(nobase_pkgdata_DATA) - @$(NORMAL_INSTALL) - @list='$(nobase_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ - fi; \ - $(am__nobase_list) | while read dir files; do \ - xfiles=; for file in $$files; do \ - if test -f "$$file"; then xfiles="$$xfiles $$file"; \ - else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ - test -z "$$xfiles" || { \ - test "x$$dir" = x. || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)/$$dir'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)/$$dir"; }; \ - echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(pkgdatadir)/$$dir'"; \ - $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(pkgdatadir)/$$dir" || exit $$?; }; \ - done - -uninstall-nobase_pkgdataDATA: - @$(NORMAL_UNINSTALL) - @list='$(nobase_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ - dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) - -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: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - 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: $(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 - -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) - -clean-cscope: - -rm -f cscope.files - -cscope.files: clean-cscope cscopelist - -cscopelist: $(HEADERS) $(SOURCES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - -distdir: $(DISTFILES) - @list='$(MANS)'; if test -n "$$list"; then \ - list=`for p in $$list; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ - if test -n "$$list" && \ - grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ - echo "error: found man pages containing the 'missing help2man' replacement text:" >&2; \ - grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ - echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ - echo " typically 'make maintainer-clean' will remove them" >&2; \ - exit 1; \ - else :; fi; \ - else :; fi - $(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 - -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__post_remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__post_remove_distdir) - -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__post_remove_distdir) - -dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__post_remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__post_remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__post_remove_distdir) - -dist dist-all: - $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' - $(am__post_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.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 a+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__post_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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) check-am -all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(arangosysconfdir)" "$(DESTDIR)$(pkgdatadir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) 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) - -rm -f UnitTests/$(DEPDIR)/$(am__dirstamp) - -rm -f UnitTests/$(am__dirstamp) - -rm -f UnitTests/Cambridge/$(DEPDIR)/$(am__dirstamp) - -rm -f UnitTests/Cambridge/$(am__dirstamp) - -rm -f UnitTests/Jutland/$(DEPDIR)/$(am__dirstamp) - -rm -f UnitTests/Jutland/$(am__dirstamp) - -rm -f UnitTests/Philadelphia/$(DEPDIR)/$(am__dirstamp) - -rm -f UnitTests/Philadelphia/$(am__dirstamp) - -rm -f arangod/Actions/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/Actions/$(am__dirstamp) - -rm -f arangod/Ahuacatl/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/Ahuacatl/$(am__dirstamp) - -rm -f arangod/BitIndexes/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/BitIndexes/$(am__dirstamp) - -rm -f arangod/GeoIndex/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/GeoIndex/$(am__dirstamp) - -rm -f arangod/HashIndex/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/HashIndex/$(am__dirstamp) - -rm -f arangod/IndexIterators/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/IndexIterators/$(am__dirstamp) - -rm -f arangod/IndexOperators/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/IndexOperators/$(am__dirstamp) - -rm -f arangod/MRServer/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/MRServer/$(am__dirstamp) - -rm -f arangod/PriorityQueue/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/PriorityQueue/$(am__dirstamp) - -rm -f arangod/RestHandler/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/RestHandler/$(am__dirstamp) - -rm -f arangod/RestServer/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/RestServer/$(am__dirstamp) - -rm -f arangod/SkipLists/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/SkipLists/$(am__dirstamp) - -rm -f arangod/V8Server/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/V8Server/$(am__dirstamp) - -rm -f arangod/VocBase/$(DEPDIR)/$(am__dirstamp) - -rm -f arangod/VocBase/$(am__dirstamp) - -rm -f arangoirb/MRClient/$(DEPDIR)/$(am__dirstamp) - -rm -f arangoirb/MRClient/$(am__dirstamp) - -rm -f arangosh/ArangoShell/$(DEPDIR)/$(am__dirstamp) - -rm -f arangosh/ArangoShell/$(am__dirstamp) - -rm -f arangosh/Benchmark/$(DEPDIR)/$(am__dirstamp) - -rm -f arangosh/Benchmark/$(am__dirstamp) - -rm -f arangosh/V8Client/$(DEPDIR)/$(am__dirstamp) - -rm -f arangosh/V8Client/$(am__dirstamp) - -rm -f bin/$(am__dirstamp) - -rm -f lib/$(am__dirstamp) - -rm -f lib/Admin/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Admin/$(am__dirstamp) - -rm -f lib/ApplicationServer/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/ApplicationServer/$(am__dirstamp) - -rm -f lib/Basics/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Basics/$(am__dirstamp) - -rm -f lib/BasicsC/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/BasicsC/$(am__dirstamp) - -rm -f lib/Dispatcher/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Dispatcher/$(am__dirstamp) - -rm -f lib/HttpServer/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/HttpServer/$(am__dirstamp) - -rm -f lib/JsonParser/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/JsonParser/$(am__dirstamp) - -rm -f lib/Logger/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Logger/$(am__dirstamp) - -rm -f lib/MRuby/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/MRuby/$(am__dirstamp) - -rm -f lib/ProgramOptions/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/ProgramOptions/$(am__dirstamp) - -rm -f lib/Rest/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Rest/$(am__dirstamp) - -rm -f lib/ResultGenerator/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/ResultGenerator/$(am__dirstamp) - -rm -f lib/Scheduler/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Scheduler/$(am__dirstamp) - -rm -f lib/ShapedJson/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/ShapedJson/$(am__dirstamp) - -rm -f lib/SimpleHttpClient/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/SimpleHttpClient/$(am__dirstamp) - -rm -f lib/Statistics/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Statistics/$(am__dirstamp) - -rm -f lib/Utilities/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Utilities/$(am__dirstamp) - -rm -f lib/V8/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/V8/$(am__dirstamp) - -rm -f lib/Variant/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/Variant/$(am__dirstamp) - -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 "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic clean-local \ - clean-noinstLIBRARIES clean-noinstPROGRAMS clean-sbinPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf UnitTests/$(DEPDIR) UnitTests/Cambridge/$(DEPDIR) UnitTests/Jutland/$(DEPDIR) UnitTests/Philadelphia/$(DEPDIR) arangod/Actions/$(DEPDIR) arangod/Ahuacatl/$(DEPDIR) arangod/BitIndexes/$(DEPDIR) arangod/GeoIndex/$(DEPDIR) arangod/HashIndex/$(DEPDIR) arangod/IndexIterators/$(DEPDIR) arangod/IndexOperators/$(DEPDIR) arangod/MRServer/$(DEPDIR) arangod/PriorityQueue/$(DEPDIR) arangod/RestHandler/$(DEPDIR) arangod/RestServer/$(DEPDIR) arangod/SkipLists/$(DEPDIR) arangod/V8Server/$(DEPDIR) arangod/VocBase/$(DEPDIR) arangoirb/MRClient/$(DEPDIR) arangosh/ArangoShell/$(DEPDIR) arangosh/Benchmark/$(DEPDIR) arangosh/V8Client/$(DEPDIR) lib/Admin/$(DEPDIR) lib/ApplicationServer/$(DEPDIR) lib/Basics/$(DEPDIR) lib/BasicsC/$(DEPDIR) lib/Dispatcher/$(DEPDIR) lib/HttpServer/$(DEPDIR) lib/JsonParser/$(DEPDIR) lib/Logger/$(DEPDIR) lib/MRuby/$(DEPDIR) lib/ProgramOptions/$(DEPDIR) lib/Rest/$(DEPDIR) lib/ResultGenerator/$(DEPDIR) lib/Scheduler/$(DEPDIR) lib/ShapedJson/$(DEPDIR) lib/SimpleHttpClient/$(DEPDIR) lib/Statistics/$(DEPDIR) lib/Utilities/$(DEPDIR) lib/V8/$(DEPDIR) lib/Variant/$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-arangosysconfDATA install-data-local \ - install-man install-nobase_pkgdataDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-binPROGRAMS install-sbinPROGRAMS - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 install-man8 - -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 $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf UnitTests/$(DEPDIR) UnitTests/Cambridge/$(DEPDIR) UnitTests/Jutland/$(DEPDIR) UnitTests/Philadelphia/$(DEPDIR) arangod/Actions/$(DEPDIR) arangod/Ahuacatl/$(DEPDIR) arangod/BitIndexes/$(DEPDIR) arangod/GeoIndex/$(DEPDIR) arangod/HashIndex/$(DEPDIR) arangod/IndexIterators/$(DEPDIR) arangod/IndexOperators/$(DEPDIR) arangod/MRServer/$(DEPDIR) arangod/PriorityQueue/$(DEPDIR) arangod/RestHandler/$(DEPDIR) arangod/RestServer/$(DEPDIR) arangod/SkipLists/$(DEPDIR) arangod/V8Server/$(DEPDIR) arangod/VocBase/$(DEPDIR) arangoirb/MRClient/$(DEPDIR) arangosh/ArangoShell/$(DEPDIR) arangosh/Benchmark/$(DEPDIR) arangosh/V8Client/$(DEPDIR) lib/Admin/$(DEPDIR) lib/ApplicationServer/$(DEPDIR) lib/Basics/$(DEPDIR) lib/BasicsC/$(DEPDIR) lib/Dispatcher/$(DEPDIR) lib/HttpServer/$(DEPDIR) lib/JsonParser/$(DEPDIR) lib/Logger/$(DEPDIR) lib/MRuby/$(DEPDIR) lib/ProgramOptions/$(DEPDIR) lib/Rest/$(DEPDIR) lib/ResultGenerator/$(DEPDIR) lib/Scheduler/$(DEPDIR) lib/ShapedJson/$(DEPDIR) lib/SimpleHttpClient/$(DEPDIR) lib/Statistics/$(DEPDIR) lib/Utilities/$(DEPDIR) lib/V8/$(DEPDIR) lib/Variant/$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-arangosysconfDATA uninstall-binPROGRAMS \ - uninstall-man uninstall-nobase_pkgdataDATA \ - uninstall-sbinPROGRAMS - -uninstall-man: uninstall-man1 uninstall-man8 - -.MAKE: all check install install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-cscope clean-generic clean-local \ - clean-noinstLIBRARIES clean-noinstPROGRAMS clean-sbinPROGRAMS \ - cscope cscopelist ctags dist dist-all dist-bzip2 dist-gzip \ - dist-lzip dist-shar dist-tarZ dist-xz dist-zip distcheck \ - distclean distclean-compile distclean-generic distclean-hdr \ - distclean-tags distcleancheck distdir distuninstallcheck dvi \ - dvi-am html html-am info info-am install install-am \ - install-arangosysconfDATA install-binPROGRAMS install-data \ - install-data-am install-data-local install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-man1 \ - install-man8 install-nobase_pkgdataDATA install-pdf \ - install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-arangosysconfDATA \ - uninstall-binPROGRAMS uninstall-man uninstall-man1 \ - uninstall-man8 uninstall-nobase_pkgdataDATA \ - uninstall-sbinPROGRAMS - - -################################################################################ -### @brief /var data -################################################################################ - -#if ENABLE_RELATIVE -#else - -install-data-local: - test -d $(DESTDIR)$(TRI_DATABASEDIR) || mkdir -p $(DESTDIR)$(TRI_DATABASEDIR) - test -d $(DESTDIR)$(TRI_LOGDIR) || mkdir -p $(DESTDIR)$(TRI_LOGDIR) - -#endif - -################################################################################ -### @brief version number -################################################################################ - -build.h: configure.ac - @echo '#define TRIAGENS_VERSION "@PACKAGE_VERSION@"' > build.h - -################################################################################ -### @brief local modifications -################################################################################ - --include Installation/Makefile.local - -################################################################################ -################################################################################ - -################################################################################ -################################################################################ - -################################################################################ -### @brief config -################################################################################ - -etc/arangodb/%.conf: etc/arangodb/%.conf.in Makefile - @test -d etc/arangodb || mkdir -p etc/arangodb - sed \ - -e 's%@DATABASEDIR@%${TRI_DATABASEDIR}%g' \ - -e 's%@LOGDIR@%${TRI_LOGDIR}%g' \ - -e 's%@PKGDATADIR@%${TRI_PKGDATADIR}%g' \ - $< > $@ - -bin/arango-password: utils/arango-password.in - sed \ - -e 's%@SBINDIR@%${TRI_SBINDIR}%g' \ - -e 's%@DATABASEDIR@%${TRI_DATABASEDIR}%g' \ - -e 's%@PKGDATADIR@%${TRI_PKGDATADIR}%g' \ - $< > $@ - chmod 755 $@ - -bin/arango-upgrade: utils/arango-upgrade.in - sed \ - -e 's%@SBINDIR@%${TRI_SBINDIR}%g' \ - -e 's%@DATABASEDIR@%${TRI_DATABASEDIR}%g' \ - -e 's%@PKGDATADIR@%${TRI_PKGDATADIR}%g' \ - $< > $@ - chmod 755 $@ - -bin/arango-dfdb: utils/arango-dfdb.in - sed \ - -e 's%@SBINDIR@%${TRI_SBINDIR}%g' \ - -e 's%@DATABASEDIR@%${TRI_DATABASEDIR}%g' \ - -e 's%@PKGDATADIR@%${TRI_PKGDATADIR}%g' \ - $< > $@ - chmod 755 $@ - -################################################################################ -################################################################################ - -################################################################################ -################################################################################ - -.PHONY: unittests unittests-brief unittests-verbose - -unittests: all unittests-verbose unittests-brief - -unittests-brief: \ - unittests-make \ - unittests-boost \ - unittests-shell-server \ - unittests-shell-server-ahuacatl \ - unittests-http-server \ - unittests-ssl-server \ - unittests-shell-client \ - unittests-arangob \ - unittests-import - -unittests-verbose: - @echo "################################################################################" - @echo "## ##" - @echo "## ArangoDB Unit-Tests ##" - @echo "## ##" - @echo "## > make unittests ##" - @echo "## > make unittests FORCE=1 ##" - @echo "## > make unittests SKIP_BOOST=1 ##" - @echo "## > make unittests SKIP_GEO=1 ##" - @echo "## > make unittests SKIP_AHUACATL=1 ##" - @echo "## > make unittests SKIP_RANGES=1 ##" - @echo "## > make unittests VALGRIND=valgrind ##" - @echo "## ##" - @echo "################################################################################" - @echo - - @sleep 1 - -.PHONY: start-server - -start-server: - @echo - @echo "================================================================================" - @(test "$(PROTO)" == "http" && echo "<< STARTING SERVER ON TCP ENDPOINT >>") || true - @(test "$(PROTO)" == "https" && echo "<< STARTING SERVER ON SSL ENDPOINT >>") || true - @(test "$(PROTO)" == "unix" && echo "<< STARTING SERVER ON UNIX SOCKET ENDPOINT >>") || true - @echo "================================================================================" - @echo - @echo "Server Options: $(SERVER_OPT)" - @echo - - rm -f "$(PIDFILE)" - rm -rf "$(VOCDIR)" - mkdir -p "$(VOCDIR)" - - @test -d "$(VOCDIR)" - - $(VALGRIND) @builddir@/bin/arango-upgrade --database.directory "$(VOCDIR)" - ($(VALGRIND) @builddir@/bin/arangod "$(VOCDIR)" $(SERVER_OPT) --pid-file $(PIDFILE) --watch-process $(PID) && rm -rf "$(VOCDIR)") & - - @test "$(PROTO)" == "unix" || (rm -f "$(STARTFILE)"; while [ ! -s "$(STARTFILE)" ]; do $(CURL) $(CURL_OPT) --insecure -X GET -s "$(PROTO)://$(VOCHOST):$(VOCPORT)/_api/version" > "$(STARTFILE)" || sleep 2; done) - @(test "$(PROTO)" == "unix" && sleep 2) || true - @rm -f "$(STARTFILE)" - @echo "server has been started." - @if [ "$(VALGRIND)" != "" ]; then echo "adding valgrind memorial time..."; sleep 75; else sleep 2; fi - @echo - -################################################################################ -################################################################################ - -.PHONY: unittests-make - -unittests-make: - @(ctags --version > /dev/null 2> /dev/null && make tags > /dev/null || test "x$(FORCE)" == "x1") || true - -################################################################################ -################################################################################ - -.PHONY: unittests-boost - -@ENABLE_MAINTAINER_MODE_TRUE@unittests-boost: UnitTests/basics_suite UnitTests/geo_suite -@ENABLE_MAINTAINER_MODE_TRUE@ @echo -@ENABLE_MAINTAINER_MODE_TRUE@ @echo "================================================================================" -@ENABLE_MAINTAINER_MODE_TRUE@ @echo "<< BOOST TESTS >>" -@ENABLE_MAINTAINER_MODE_TRUE@ @echo "================================================================================" -@ENABLE_MAINTAINER_MODE_TRUE@ @echo - -@ENABLE_MAINTAINER_MODE_TRUE@ test "x$(SKIP_BOOST)" == "x1" || $(VALGRIND) @builddir@/UnitTests/basics_suite --show_progress || test "x$(FORCE)" == "x1" -@ENABLE_MAINTAINER_MODE_TRUE@ test "x$(SKIP_GEO)" == "x1" || $(VALGRIND) @builddir@/UnitTests/geo_suite --show_progress || test "x$(FORCE)" == "x1" - -@ENABLE_MAINTAINER_MODE_TRUE@ @echo - -@ENABLE_MAINTAINER_MODE_FALSE@unittests-boost: -@ENABLE_MAINTAINER_MODE_FALSE@ @echo -@ENABLE_MAINTAINER_MODE_FALSE@ @echo "================================================================================" -@ENABLE_MAINTAINER_MODE_FALSE@ @echo "<< BOOST TESTS >>" -@ENABLE_MAINTAINER_MODE_FALSE@ @echo "================================================================================" -@ENABLE_MAINTAINER_MODE_FALSE@ @echo - -@ENABLE_MAINTAINER_MODE_FALSE@ @echo "to enable unit-testing, configure with --enable-maintainer-mode" - -@ENABLE_MAINTAINER_MODE_FALSE@ @echo - -.PHONY: unittests-shell-server - -unittests-shell-server: - @echo - @echo "================================================================================" - @echo "<< SHELL SERVER TESTS (BASICS) >>" - @echo "================================================================================" - @echo - - @rm -rf "$(VOCDIR)" - @mkdir "$(VOCDIR)" - - $(VALGRIND) @builddir@/bin/arango-upgrade --database.directory "$(VOCDIR)" - $(VALGRIND) @builddir@/bin/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER) || test "x$(FORCE)" == "x1" - - @rm -rf "$(VOCDIR)" - @echo - -.PHONY: unittests-shell-server-ahuacatl - -unittests-shell-server-ahuacatl: - @echo - @echo "================================================================================" - @echo "<< SHELL SERVER TESTS (AHUACATL) >>" - @echo "================================================================================" - @echo - - @rm -rf "$(VOCDIR)" - @mkdir "$(VOCDIR)" - - @test "x$(SKIP_AHUACATL)" == "x1" || $(VALGRIND) @builddir@/bin/arango-upgrade --database.directory "$(VOCDIR)" - @test "x$(SKIP_AHUACATL)" == "x1" || $(VALGRIND) @builddir@/bin/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL) || test "x$(FORCE)" == "x1" - @test "x$(SKIP_AHUACATL)" == "x1" || test "x$(SKIP_RANGES)" == "x1" || $(VALGRIND) @builddir@/bin/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL_EXTENDED) || test "x$(FORCE)" == "x1" - - @rm -rf "$(VOCDIR)" - @echo - -.PHONY: unittests-shell-client - -unittests-shell-client: - $(MAKE) start-server PID=$(PID) SERVER_START="--server.endpoint unix://$(VOCDIR)/arango.sock --server.disable-authentication true" PROTO=unix - - @echo - @echo "================================================================================" - @echo "<< SHELL CLIENT TESTS >>" - @echo "================================================================================" - @echo - - $(VALGRIND) @builddir@/bin/arangosh $(CLIENT_OPT) --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock $(UNITTESTS_CLIENT) || test "x$(FORCE)" == "x1" - - kill `cat $(PIDFILE)` - - while test -f $(PIDFILE); do sleep 1; done - @if [ "$(VALGRIND)" != "" ]; then sleep 60; fi - - @rm -rf "$(VOCDIR)" - @echo - -################################################################################ -################################################################################ - -.PHONY: unittests-http-server - -unittests-http-server: - $(MAKE) start-server PID=$(PID) SERVER_START="--server.endpoint tcp://$(VOCHOST):$(VOCPORT) --server.disable-auth true" PROTO=http - - @echo - @echo "================================================================================" - @echo "<< HTTP SERVER TESTS >>" - @echo "================================================================================" - @echo - - cd @top_srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ARANGO_SSL=0 ARANGO_USER="$(USERNAME)" ARANGO_PASSWORD="$(PASSWORD)" ./run-tests || test "x$(FORCE)" == "x1" - - kill `cat $(PIDFILE)` - - while test -f $(PIDFILE); do sleep 1; done - @if [ "$(VALGRIND)" != "" ]; then sleep 60; fi - - @rm -rf "$(VOCDIR)" - @echo - -################################################################################ -################################################################################ - -.PHONY: unittests-ssl-server - -unittests-ssl-server: - $(MAKE) start-server PID=$(PID) SERVER_START="--server.endpoint ssl://$(VOCHOST):$(VOCPORT) --server.keyfile $(CERT_FILE) --server.disable-auth true" PROTO=https - - @echo - @echo "================================================================================" - @echo "<< SSL SERVER TESTS (same as HTTP SERVER TESTS but using SSL) >>" - @echo "================================================================================" - @echo - - cd @top_srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ARANGO_SSL=1 ARANGO_USER="$(USERNAME)" ARANGO_PASSWORD="$(PASSWORD)" ./run-tests || test "x$(FORCE)" == "x1" - - kill `cat $(PIDFILE)` - - while test -f $(PIDFILE); do sleep 1; done - @if [ "$(VALGRIND)" != "" ]; then sleep 60; fi - - @rm -rf "$(VOCDIR)" - @echo - -################################################################################ -################################################################################ - -.PHONY: unittests-import - -unittests-import: - $(MAKE) start-server PID=$(PID) SERVER_START="--server.endpoint unix://$(VOCDIR)/arango.sock --server.disable-authentication true" PROTO=unix - - @echo - @echo "================================================================================" - @echo "<< IMPORT TESTS >>" - @echo "================================================================================" - @echo - - $(VALGRIND) @builddir@/bin/arangosh $(CLIENT_OPT) --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --javascript.unit-tests @top_srcdir@/js/server/tests/import-setup.js || test "x$(FORCE)" == "x1" - for i in 1 2; do $(VALGRIND) @builddir@/bin/arangoimp --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --file UnitTests/import-$$i.json --collection UnitTestsImportJson$$i --type json || test "x$(FORCE)" == "x1"; done - for i in 1 2; do $(VALGRIND) @builddir@/bin/arangoimp --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --file UnitTests/import-$$i.csv --collection UnitTestsImportCsv$$i --create-collection true --type csv || test "x$(FORCE)" == "x1"; done - for i in 1 2; do $(VALGRIND) @builddir@/bin/arangoimp --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --file UnitTests/import-$$i.tsv --collection UnitTestsImportTsv$$i --create-collection true --type tsv --eol "\r\n" || test "x$(FORCE)" == "x1"; done - $(VALGRIND) @builddir@/bin/arangosh $(CLIENT_OPT) --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --javascript.unit-tests @top_srcdir@/js/server/tests/import.js || test "x$(FORCE)" == "x1" - $(VALGRIND) @builddir@/bin/arangosh $(CLIENT_OPT) --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --javascript.unit-tests @top_srcdir@/js/server/tests/import-teardown.js || test "x$(FORCE)" == "x1" - - kill `cat $(PIDFILE)` - - while test -f $(PIDFILE); do sleep 1; done - @if [ "$(VALGRIND)" != "" ]; then sleep 60; fi - - @rm -rf "$(VOCDIR)" - @echo - -.PHONY: unittests-bitarray-index - -unittests-bitarray-index: - @echo - @echo "================================================================================" - @echo "<< BITARRAY INDEX TESTS >>" - @echo "================================================================================" - @echo - - @rm -rf "$(VOCDIR)" - @mkdir "$(VOCDIR)" - - $(VALGRIND) @builddir@/bin/arango-upgrade --database.directory "$(VOCDIR)" - $(VALGRIND) @builddir@/bin/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_BITARRAY) || test "x$(FORCE)" == "x1" - - @ rm -rf "$(VOCDIR)" - @echo - -################################################################################ -################################################################################ - -.PHONY: unittests-arangob - -@ENABLE_ARANGOB_TRUE@unittests-arangob: -@ENABLE_ARANGOB_TRUE@ $(MAKE) start-server PID=$(PID) SERVER_START="--server.endpoint unix://$(VOCDIR)/arango.sock --server.disable-authentication true" PROTO=unix - -@ENABLE_ARANGOB_TRUE@ @echo -@ENABLE_ARANGOB_TRUE@ @echo "================================================================================" -@ENABLE_ARANGOB_TRUE@ @echo "<< ARANGOB TESTS >>" -@ENABLE_ARANGOB_TRUE@ @echo "================================================================================" -@ENABLE_ARANGOB_TRUE@ @echo - -@ENABLE_ARANGOB_TRUE@ $(VALGRIND) @builddir@/bin/arangob --configuration none --quiet --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --requests 1000 --batch-size 16 --concurrency 2 --test version || test "x$(FORCE)" == "x1" -@ENABLE_ARANGOB_TRUE@ $(VALGRIND) @builddir@/bin/arangob --configuration none --quiet --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --requests 100 --batch-size 0 --concurrency 1 --test version || test "x$(FORCE)" == "x1" -@ENABLE_ARANGOB_TRUE@ $(VALGRIND) @builddir@/bin/arangob --configuration none --quiet --server.username "$(USERNAME)" --server.password "$(PASSWORD)" --server.endpoint unix://$(VOCDIR)/arango.sock --requests 100 --batch-size 10 --concurrency 2 --test document --complexity 1 || test "x$(FORCE)" == "x1" - -@ENABLE_ARANGOB_TRUE@ kill `cat $(PIDFILE)` - -@ENABLE_ARANGOB_TRUE@ while test -f $(PIDFILE); do sleep 1; done -@ENABLE_ARANGOB_TRUE@ @if [ "$(VALGRIND)" != "" ]; then sleep 60; fi - -@ENABLE_ARANGOB_TRUE@ @rm -rf "$(VOCDIR)" -@ENABLE_ARANGOB_TRUE@ @echo - -@ENABLE_ARANGOB_FALSE@unittests-arangob: -@ENABLE_ARANGOB_FALSE@ @echo - -################################################################################ -### @brief source files -################################################################################ - -################################################################################ -### @brief unit tests -################################################################################ - -################################################################################ -### @brief error code file -################################################################################ - -.PHONY: errorfiles - -@ENABLE_MAINTAINER_MODE_TRUE@errorfiles: lib/BasicsC/errors.dat -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/build_errorfile.sh @top_srcdir@/config/generateErrorfile.py lib/BasicsC/errors.dat lib/BasicsC/voc-errors.h -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/build_errorfile.sh @top_srcdir@/config/generateErrorfile.py lib/BasicsC/errors.dat lib/BasicsC/voc-errors.c -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/build_errorfile.sh @top_srcdir@/config/generateErrorfile.py lib/BasicsC/errors.dat js/common/bootstrap/errors.js - -################################################################################ -################################################################################ - -clean-local: - rm -f $(CLEANUP); - -################################################################################ -### @brief generated files -################################################################################ - -.PHONY: built-sources - -built-sources: build.h errorfiles $(JAVASCRIPT_HEADER) - -GTAGS: - echo $(GTAGS_FILES) | tr " " "\n" | gtags -i -f - - -.PHONY: Doxygen/js Doxygen/js/system Doxygen/js/modules - -Doxygen/.setup-directories: - @test -d Doxygen || mkdir Doxygen - @test -d Doxygen/doc || mkdir Doxygen/doc - @test -d Doxygen/doc/images || mkdir Doxygen/doc/images - @test -d Doxygen/js || mkdir Doxygen/js - @test -d Doxygen/js/actions || mkdir Doxygen/js/actions - @test -d Doxygen/js/actions/system || mkdir Doxygen/js/actions/system - @test -d Doxygen/js/common || mkdir Doxygen/js/common - @test -d Doxygen/js/common/bootstrap || mkdir Doxygen/js/common/bootstrap - @test -d Doxygen/js/common/modules || mkdir Doxygen/js/common/modules - @test -d Doxygen/js/server/modules/org/arangodb || mkdir -p Doxygen/js/server/modules/org/arangodb - @test -d Doxygen/js/client || mkdir Doxygen/js/client - @test -d Doxygen/latex || mkdir Doxygen/latex - @test -d Doxygen/latex/images || mkdir Doxygen/latex/images - @test -d Doxygen/man || mkdir Doxygen/man - @test -d Doxygen/man/man1 || mkdir Doxygen/man/man1 - @test -d Doxygen/man/man8 || mkdir Doxygen/man/man8 - @test -d Doxygen/wiki || mkdir Doxygen/wiki - @test -d Doxygen/xml || mkdir Doxygen/xml - @touch $@ - -Doxygen/js/actions/system/%.c: @srcdir@/js/actions/system/%.js Doxygen/.setup-directories - @python @top_srcdir@/Documentation/Scripts/js2doxy.py $< > $@ - -Doxygen/js/common/bootstrap/%.c: @srcdir@/js/common/bootstrap/%.js Doxygen/.setup-directories - @python @top_srcdir@/Documentation/Scripts/js2doxy.py $< > $@ - -Doxygen/js/common/modules/%.c: @srcdir@/js/common/modules/%.js Doxygen/.setup-directories - @python @top_srcdir@/Documentation/Scripts/js2doxy.py $< > $@ - -Doxygen/js/server/%.c: @srcdir@/js/server/%.js Doxygen/.setup-directories - @python @top_srcdir@/Documentation/Scripts/js2doxy.py $< > $@ - -Doxygen/js/server/modules/%.c: @srcdir@/js/server/modules/%.js Doxygen/.setup-directories - @python @top_srcdir@/Documentation/Scripts/js2doxy.py $< > $@ - -Doxygen/xml/%.md: Doxygen/xml/%.xml - @python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@ - -################################################################################ -### @brief doxygen -################################################################################ - -.PHONY: doxygen - -Doxygen/arango-html.doxy: Documentation/arango.template - sed -e 's:GENERATE_HTML *= *NO:GENERATE_HTML = YES:' -e 's:ENABLED_SECTIONS *=:ENABLED_SECTIONS = HTML:' < $< > $@ - $(MAKE) lib/BasicsC/voc-errors.h - -doxygen: Doxygen/.setup-directories Doxygen/arango-html.doxy $(DOXYGEN) - doxygen Doxygen/arango-html.doxy > /dev/null - @for w in $(WIKI); do @top_srcdir@/Documentation/Scripts/html2html.sh Doxygen/html/$$w.html Doxygen/doc/$$w.html; done - cp -R @top_srcdir@/Documentation/images/* Doxygen/doc/images - -################################################################################ -### @brief wiki -################################################################################ - -.PHONY: wiki wiki2 - -Doxygen/arango-xml.doxy: Documentation/arango.template - sed -e 's:GENERATE_XML *= *NO:GENERATE_XML = YES:' -e 's:ENABLED_SECTIONS *=:ENABLED_SECTIONS = XML:' < $< > $@ - $(MAKE) lib/BasicsC/voc-errors.h - -wiki: wiki2 - @test -d Doxygen/wiki || mkdir Doxygen/wiki - @for w in $(WIKI); do python @top_srcdir@/Documentation/Scripts/xml2md.py Doxygen/xml/$$w.xml > Doxygen/xml/$$w.md; done - @for w in $(WIKI); do @top_srcdir@/Documentation/Scripts/fixmd.sh Doxygen/xml/$$w.md; done - -wiki2: Doxygen/arango-xml.doxy $(DOXYGEN) - doxygen Doxygen/arango-xml.doxy > /dev/null - -################################################################################ -### @brief latex -################################################################################ - -.PHONY: latex - -Doxygen/arango-latex.doxy: Documentation/arango.template - sed -e 's:GENERATE_LATEX *= *NO:GENERATE_LATEX = YES:' -e 's:ENABLED_SECTIONS *=:ENABLED_SECTIONS = LATEX:' < $< > $@ - $(MAKE) lib/BasicsC/voc-errors.h - -latex: Doxygen/.setup-directories Doxygen/arango-latex.doxy $(DOXYGEN) - doxygen Doxygen/arango-latex.doxy > /dev/null - - echo "\def\arangodbversion{@PACKAGE_VERSION@}" > Doxygen/latex/version.tex - - cp -R Documentation/latex/*.tex Doxygen/latex - cp -R Documentation/images Doxygen/latex/images - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/InstallManual.tex > Doxygen/latex/InstallManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode install-manual.tex || true - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/UserManual.tex > Doxygen/latex/UserManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode user-manual.tex || true - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/ImplementorManual.tex > Doxygen/latex/ImplementorManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode implementor-manual.tex || true - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/RefManual.tex > Doxygen/latex/RefManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode ref-manual.tex || true - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/DbaManual.tex > Doxygen/latex/DbaManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode dba-manual.tex || true - - python @top_srcdir@/Documentation/Scripts/tex2tex.py Doxygen/latex/ImpManual.tex > Doxygen/latex/ImpManual.inc.tex - cd Doxygen/latex && pdflatex -interaction batchmode imp-manual.tex || true - -################################################################################ -### @brief man pages -################################################################################ - -.PHONY: man - -man: Doxygen/.setup-directories - for section in 1 8; do for i in `ls Documentation/man$$section`; do sed -f Documentation/Scripts/man.sed -e "s/\/$$section/" -e "s/\/$$i/g" -e "s/DATE/`date`/g" Documentation/man$$section/$$i > Doxygen/man/man$$section/$$i.$$section; done; done - -################################################################################ -################################################################################ - -@builddir@/.setup-js-directories: - @test -d html/admin/js/modules || mkdir -p html/admin/js/modules - @test -d js/common/bootstrap || mkdir -p js/common/bootstrap - @test -d js/client || mkdir -p js/client - @test -d js/server || mkdir -p js/server - @touch $@ - -################################################################################ -### @brief converts JavaScript files to header files -################################################################################ - -html/admin/js/modules/%.js: @srcdir@/js/common/modules/%.js .setup-js-directories - (echo "module.define(\"`basename $< .js`\", function(exports, module) {" && cat $< && echo "});") > $@ - -html/admin/js/modules/%.js: @srcdir@/js/client/modules/%.js .setup-js-directories - (echo "module.define(\"`basename $< .js`\", function(exports, module) {" && cat $< && echo "});") > $@ - -js/js-%.h: @srcdir@/js/%.js .setup-js-directories - @top_srcdir@/config/js2c.sh $< > $@ - -js/client/js-%.h: @srcdir@/js/client/%.js .setup-js-directories - @top_srcdir@/config/js2c.sh $< > $@ - -js/common/bootstrap/js-%.h: @srcdir@/js/common/bootstrap/%.js .setup-js-directories - @top_srcdir@/config/js2c.sh $< > $@ - -js/server/js-%.h: @srcdir@/js/server/%.js .setup-js-directories - @top_srcdir@/config/js2c.sh $< > $@ - -@ENABLE_MRUBY_TRUE@@builddir@/.setup-mr-directories: -@ENABLE_MRUBY_TRUE@ @test -d mr/common/bootstrap || mkdir -p mr/common/bootstrap -@ENABLE_MRUBY_TRUE@ @test -d mr/server || mkdir -p mr/server -@ENABLE_MRUBY_TRUE@ @touch $@ - -@ENABLE_MRUBY_TRUE@mr/common/bootstrap/mr-%.h: @srcdir@/mr/common/bootstrap/%.rb .setup-mr-directories -@ENABLE_MRUBY_TRUE@ @top_srcdir@/config/mr2c.sh $< > $@ - -@ENABLE_MRUBY_TRUE@mr/server/mr-%.h: @srcdir@/mr/server/%.rb .setup-mr-directories -@ENABLE_MRUBY_TRUE@ @top_srcdir@/config/mr2c.sh $< > $@ - -@ENABLE_HTML2TEXT_TRUE@@ENABLE_MARKDOWN_TRUE@README: README.md -@ENABLE_HTML2TEXT_TRUE@@ENABLE_MARKDOWN_TRUE@ @MARKDOWN_EXEC@ -o html $< | @HTML2TEXT_EXEC@ -style pretty | fgrep -v _Build_Status_ > $@.tmp -@ENABLE_HTML2TEXT_TRUE@@ENABLE_MARKDOWN_TRUE@ mv $@.tmp $@ - -################################################################################ -### @brief flex -################################################################################ - -@ENABLE_MAINTAINER_MODE_TRUE@%.c: %.l -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/flex-c.sh $(LEX) $@ $< - -################################################################################ -### @brief flex++ -################################################################################ - -@ENABLE_MAINTAINER_MODE_TRUE@%.cpp: %.ll -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/flex-c++.sh $(LEX) $@ $< - -################################################################################ -### @brief BISON -################################################################################ - -@ENABLE_MAINTAINER_MODE_TRUE@%.c: %.y -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/bison-c.sh $(BISON) $@ $< - -################################################################################ -### @brief BISON++ -################################################################################ - -@ENABLE_MAINTAINER_MODE_TRUE@%.cpp: %.yy -@ENABLE_MAINTAINER_MODE_TRUE@ @top_srcdir@/config/bison-c++.sh $(BISON) $@ $< - -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@@LIBEV_LIBS@: @srcdir@/.libev-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@@srcdir@/.libev-build-@TRI_BITS@: -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "BUILDING libev" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo - -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ mkdir @top_srcdir@/3rdParty/libev/BUILD || true -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ cd @top_srcdir@/3rdParty/libev/BUILD && ../configure --disable-shared -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ cd @top_srcdir@/3rdParty/libev/BUILD && $(MAKE) - -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ touch @srcdir@/.libev-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "BUILD libev FINISHED" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_LIBEV_TRUE@ @echo - -@ENABLE_ALL_IN_ONE_V8_TRUE@@V8_LIBS@: @srcdir@/.v8-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_V8_TRUE@@srcdir@/.v8-build-@TRI_BITS@: -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "BUILDING V8" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo - -@ENABLE_ALL_IN_ONE_V8_TRUE@ cd @top_srcdir@/3rdParty/V8 && $(MAKE) library=static snapshot=off @V8_TARGET@ - -@ENABLE_ALL_IN_ONE_V8_TRUE@ touch @srcdir@/.v8-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "BUILD V8 FINISHED" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_V8_TRUE@ @echo - -@ENABLE_MRUBY_TRUE@@MRUBY_LIBS@: @srcdir@/.mruby-build-@TRI_BITS@ - -@ENABLE_MRUBY_TRUE@@srcdir@/.mruby-build-@TRI_BITS@: -@ENABLE_MRUBY_TRUE@ @echo -@ENABLE_MRUBY_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_MRUBY_TRUE@ @echo "BUILDING mruby" -@ENABLE_MRUBY_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_MRUBY_TRUE@ @echo - -@ENABLE_MRUBY_TRUE@ cd @top_srcdir@/3rdParty/mruby && $(MAKE) -j1 - -@ENABLE_MRUBY_TRUE@ touch @srcdir@/.mruby-build-@TRI_BITS@ - -@ENABLE_MRUBY_TRUE@ @echo -@ENABLE_MRUBY_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_MRUBY_TRUE@ @echo "BUILD mruby FINISHED" -@ENABLE_MRUBY_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_MRUBY_TRUE@ @echo - -@ENABLE_ALL_IN_ONE_ICU_TRUE@@ICU_LIBS@: @srcdir@/.icu-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_ICU_TRUE@@srcdir@/.icu-build-@TRI_BITS@: -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "BUILDING ICU" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo - -@ENABLE_ALL_IN_ONE_ICU_TRUE@ cd @top_srcdir@/3rdParty/icu/source \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ && ./configure \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --enable-static \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --disable-shared \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --disable-tests \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --disable-samples \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --disable-extras \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --prefix=$(ICUDIR) \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ --libdir=$(ICUDIR)/libs \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ CC=${CC} \ -@ENABLE_ALL_IN_ONE_ICU_TRUE@ CXX=${CXX} - -@ENABLE_ALL_IN_ONE_ICU_TRUE@ cd @top_srcdir@/3rdParty/icu/source && $(MAKE) install - -@ENABLE_ALL_IN_ONE_ICU_TRUE@ touch @srcdir@/.icu-build-@TRI_BITS@ - -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "BUILD ICU FINISHED" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo "--------------------------------------------------------------------------------" -@ENABLE_ALL_IN_ONE_ICU_TRUE@ @echo - -################################################################################ -### @brief generate all flex files -################################################################################ - -################################################################################ -### @brief generate all bison files -################################################################################ - -################################################################################ -### @brief libev -################################################################################ - -################################################################################ -### @brief V8 -################################################################################ - -################################################################################ -### @brief mruby -################################################################################ - -################################################################################ -### @brief ICU -################################################################################ - -# 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: diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index 36b8ebe1f3..0000000000 --- a/aclocal.m4 +++ /dev/null @@ -1,1084 +0,0 @@ -# generated automatically by aclocal 1.12 -*- 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'.])]) - -# Copyright (C) 2002-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 8 - -# 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.12' -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.12], [], - [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.12])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-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 - -# 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-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 10 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$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-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 16 - -# 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 - -m4_if([$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 10 /bin/sh. - echo '/* dummy */' > 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], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -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-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 6 - -# _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"` - # 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'`; 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-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 18 - -# 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], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [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-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 8 - -# 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-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 - -# 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])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-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 5 - -# 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-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 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-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 7 - -# 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-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_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-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 6 - -# _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-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 9 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# 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 ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - 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 - 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 - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - 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]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-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 3 - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-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_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-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 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-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 3 - -# _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 - -m4_include([m4/acx_pthread.m4]) -m4_include([m4/ax_cxx_check_lib.m4]) diff --git a/arangod/Ahuacatl/ahuacatl-grammar.c b/arangod/Ahuacatl/ahuacatl-grammar.c deleted file mode 100644 index f8f036f7ca..0000000000 --- a/arangod/Ahuacatl/ahuacatl-grammar.c +++ /dev/null @@ -1,3193 +0,0 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ - -/* Skeleton implementation for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - 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 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* C LALR(1) parser skeleton written by Richard Stallman, by - simplifying the original so-called "semantic" parser. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ - -/* Identify Bison output. */ -#define YYBISON 1 - -/* Bison version. */ -#define YYBISON_VERSION "2.4.1" - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 1 - -/* Push parsers. */ -#define YYPUSH 0 - -/* Pull parsers. */ -#define YYPULL 1 - -/* Using locations. */ -#define YYLSP_NEEDED 1 - -/* Substitute the variable and function names. */ -#define yyparse Ahuacatlparse -#define yylex Ahuacatllex -#define yyerror Ahuacatlerror -#define yylval Ahuacatllval -#define yychar Ahuacatlchar -#define yydebug Ahuacatldebug -#define yynerrs Ahuacatlnerrs -#define yylloc Ahuacatllloc - -/* Copy the first part of user declarations. */ - -/* Line 189 of yacc.c */ -#line 10 "arangod/Ahuacatl/ahuacatl-grammar.y" - -#include -#include - -#include -#include -#include - -#include "Ahuacatl/ahuacatl-ast-node.h" -#include "Ahuacatl/ahuacatl-context.h" -#include "Ahuacatl/ahuacatl-error.h" -#include "Ahuacatl/ahuacatl-parser.h" -#include "Ahuacatl/ahuacatl-parser-functions.h" -#include "Ahuacatl/ahuacatl-scope.h" - - -/* Line 189 of yacc.c */ -#line 98 "arangod/Ahuacatl/ahuacatl-grammar.c" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif - -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 1 -#endif - -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 -#endif - - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - T_END = 0, - T_FOR = 258, - T_LET = 259, - T_FILTER = 260, - T_RETURN = 261, - T_COLLECT = 262, - T_SORT = 263, - T_LIMIT = 264, - T_ASC = 265, - T_DESC = 266, - T_IN = 267, - T_INTO = 268, - T_NULL = 269, - T_TRUE = 270, - T_FALSE = 271, - T_STRING = 272, - T_QUOTED_STRING = 273, - T_NUMBER = 274, - T_PARAMETER = 275, - T_ASSIGN = 276, - T_NOT = 277, - T_AND = 278, - T_OR = 279, - T_EQ = 280, - T_NE = 281, - T_LT = 282, - T_GT = 283, - T_LE = 284, - T_GE = 285, - T_PLUS = 286, - T_MINUS = 287, - T_TIMES = 288, - T_DIV = 289, - T_MOD = 290, - T_EXPAND = 291, - T_QUESTION = 292, - T_COLON = 293, - T_COMMA = 294, - T_OPEN = 295, - T_CLOSE = 296, - T_DOC_OPEN = 297, - T_DOC_CLOSE = 298, - T_LIST_OPEN = 299, - T_LIST_CLOSE = 300, - UPLUS = 301, - UMINUS = 302, - FUNCCALL = 303, - REFERENCE = 304, - INDEXED = 305 - }; -#endif - - - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ - -/* Line 214 of yacc.c */ -#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y" - - TRI_aql_node_t* node; - char* strval; - bool boolval; - int64_t intval; - - - -/* Line 214 of yacc.c */ -#line 194 "arangod/Ahuacatl/ahuacatl-grammar.c" -} YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -#endif - -#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED -typedef struct YYLTYPE -{ - int first_line; - int first_column; - int last_line; - int last_column; -} YYLTYPE; -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ -# define YYLTYPE_IS_DECLARED 1 -# define YYLTYPE_IS_TRIVIAL 1 -#endif - - -/* Copy the second part of user declarations. */ - -/* Line 264 of yacc.c */ -#line 33 "arangod/Ahuacatl/ahuacatl-grammar.y" - - -//////////////////////////////////////////////////////////////////////////////// -/// @brief forward for lexer function defined in ahuacatl-tokens.l -//////////////////////////////////////////////////////////////////////////////// - -int Ahuacatllex (YYSTYPE*, YYLTYPE*, void*); - -//////////////////////////////////////////////////////////////////////////////// -/// @brief register parse error -//////////////////////////////////////////////////////////////////////////////// - -void Ahuacatlerror (YYLTYPE* locp, TRI_aql_context_t* const context, const char* err) { - TRI_SetErrorParseAql(context, err, locp->first_line, locp->first_column); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief shortcut macro for signalling out of memory -//////////////////////////////////////////////////////////////////////////////// - -#define ABORT_OOM \ - TRI_SetErrorContextAql(context, TRI_ERROR_OUT_OF_MEMORY, NULL); \ - YYABORT; - -#define scanner context->_parser->_scanner - - - -/* Line 264 of yacc.c */ -#line 248 "arangod/Ahuacatl/ahuacatl-grammar.c" - -#ifdef short -# undef short -#endif - -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; -#else -typedef unsigned char yytype_uint8; -#endif - -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; -#elif (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -typedef signed char yytype_int8; -#else -typedef short int yytype_int8; -#endif - -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; -#else -typedef unsigned short int yytype_uint16; -#endif - -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; -#else -typedef short int yytype_int16; -#endif - -#ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned int -# endif -#endif - -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) - -#ifndef YY_ -# if YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) -# endif -# endif -# ifndef YY_ -# define YY_(msgid) msgid -# endif -#endif - -/* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) -#else -# define YYUSE(e) /* empty */ -#endif - -/* Identity function, used to suppress warnings about constant conditions. */ -#ifndef lint -# define YYID(n) (n) -#else -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static int -YYID (int yyi) -#else -static int -YYID (yyi) - int yyi; -#endif -{ - return yyi; -} -#endif - -#if ! defined yyoverflow || YYERROR_VERBOSE - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 -# endif -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if (defined __cplusplus && ! defined _STDLIB_H \ - && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \ - && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) - -/* A type that is properly aligned for any stack member. */ -union yyalloc -{ - yytype_int16 yyss_alloc; - YYSTYPE yyvs_alloc; - YYLTYPE yyls_alloc; -}; - -/* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) - -/* The size of an array large to enough to hold all stacks, each with - N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ - + 2 * YYSTACK_GAP_MAXIMUM) - -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (YYID (0)) -# endif -# endif - -/* Relocate STACK from its old location to the new one. The - local variables YYSIZE and YYSTACKSIZE give the old and new number of - elements in the stack, and YYPTR gives the new location of the - stack. Advance YYPTR to a properly aligned location for the next - stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (YYID (0)) - -#endif - -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 3 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 311 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 53 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 47 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 102 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 163 - -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ -#define YYUNDEFTOK 2 -#define YYMAXUTOK 305 - -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) - -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const yytype_uint8 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 52, 51, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50 -}; - -#if YYDEBUG -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in - YYRHS. */ -static const yytype_uint16 yyprhs[] = -{ - 0, 0, 3, 6, 7, 10, 12, 14, 16, 18, - 20, 22, 27, 30, 35, 36, 41, 43, 47, 51, - 52, 55, 56, 60, 62, 66, 69, 70, 72, 74, - 77, 82, 85, 89, 90, 95, 97, 99, 101, 102, - 108, 110, 112, 114, 117, 120, 123, 127, 131, 135, - 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, - 179, 185, 186, 188, 190, 194, 196, 198, 199, 204, - 205, 207, 209, 213, 214, 219, 220, 222, 224, 228, - 232, 234, 235, 240, 242, 246, 251, 254, 258, 262, - 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, - 287, 289, 291 -}; - -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yytype_int8 yyrhs[] = -{ - 54, 0, -1, 55, 71, -1, -1, 55, 56, -1, - 57, -1, 59, -1, 58, -1, 60, -1, 65, -1, - 70, -1, 3, 98, 12, 72, -1, 5, 72, -1, - 4, 98, 21, 72, -1, -1, 7, 61, 62, 64, - -1, 63, -1, 62, 39, 63, -1, 98, 21, 72, - -1, -1, 13, 98, -1, -1, 8, 66, 67, -1, - 68, -1, 67, 39, 68, -1, 72, 69, -1, -1, - 10, -1, 11, -1, 9, 99, -1, 9, 99, 39, - 99, -1, 6, 72, -1, 40, 72, 41, -1, -1, - 40, 73, 54, 41, -1, 75, -1, 76, -1, 77, - -1, -1, 17, 74, 40, 78, 41, -1, 80, -1, - 94, -1, 90, -1, 31, 72, -1, 32, 72, -1, - 22, 72, -1, 72, 24, 72, -1, 72, 23, 72, - -1, 72, 31, 72, -1, 72, 32, 72, -1, 72, - 33, 72, -1, 72, 34, 72, -1, 72, 35, 72, - -1, 72, 25, 72, -1, 72, 26, 72, -1, 72, - 27, 72, -1, 72, 28, 72, -1, 72, 29, 72, - -1, 72, 30, 72, -1, 72, 12, 72, -1, 72, - 37, 72, 38, 72, -1, -1, 79, -1, 72, -1, - 79, 39, 72, -1, 81, -1, 85, -1, -1, 44, - 82, 83, 45, -1, -1, 84, -1, 72, -1, 84, - 39, 72, -1, -1, 42, 86, 87, 43, -1, -1, - 88, -1, 89, -1, 88, 39, 89, -1, 97, 38, - 72, -1, 92, -1, -1, 90, 91, 36, 93, -1, - 17, -1, 92, 51, 17, -1, 92, 44, 72, 45, - -1, 51, 17, -1, 44, 72, 45, -1, 93, 51, - 17, -1, 93, 44, 72, 45, -1, 95, -1, 96, - -1, 18, -1, 19, -1, 14, -1, 15, -1, 16, - -1, 20, -1, 17, -1, 18, -1, 17, -1, 19, - -1, 52, 19, -1 -}; - -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 176, 176, 181, 183, 188, 190, 192, 194, 196, - 198, 203, 222, 235, 248, 248, 269, 271, 276, 289, - 292, 298, 298, 320, 325, 333, 344, 347, 350, 356, - 370, 383, 403, 406, 406, 442, 445, 448, 451, 451, - 473, 476, 479, 485, 493, 501, 512, 520, 528, 536, - 544, 552, 560, 568, 576, 584, 592, 600, 608, 616, - 627, 638, 640, 645, 648, 654, 657, 663, 663, 676, - 678, 683, 688, 696, 696, 709, 711, 716, 718, 723, - 732, 736, 736, 789, 806, 814, 825, 835, 845, 852, - 862, 865, 871, 879, 893, 901, 909, 920, 931, 938, - 947, 953, 960 -}; -#endif - -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE -/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "\"end of query string\"", "error", "$undefined", "\"FOR declaration\"", - "\"LET declaration\"", "\"FILTER declaration\"", - "\"RETURN declaration\"", "\"COLLECT declaration\"", - "\"SORT declaration\"", "\"LIMIT declaration\"", "\"ASC keyword\"", - "\"DESC keyword\"", "\"IN keyword\"", "\"INTO keyword\"", "\"null\"", - "\"true\"", "\"false\"", "\"identifier\"", "\"quoted string\"", - "\"number\"", "\"bind parameter\"", "\"assignment\"", "\"not operator\"", - "\"and operator\"", "\"or operator\"", "\"== operator\"", - "\"!= operator\"", "\"< operator\"", "\"> operator\"", "\"<= operator\"", - "\">= operator\"", "\"+ operator\"", "\"- operator\"", "\"* operator\"", - "\"/ operator\"", "\"% operator\"", "\"[*] operator\"", "\"?\"", "\":\"", - "\",\"", "\"(\"", "\")\"", "\"{\"", "\"}\"", "\"[\"", "\"]\"", "UPLUS", - "UMINUS", "FUNCCALL", "REFERENCE", "INDEXED", "'.'", "'-'", "$accept", - "query", "optional_statement_block_statements", - "statement_block_statement", "for_statement", "filter_statement", - "let_statement", "collect_statement", "$@1", "collect_list", - "collect_element", "optional_into", "sort_statement", "$@2", "sort_list", - "sort_element", "sort_direction", "limit_statement", "return_statement", - "expression", "$@3", "$@4", "operator_unary", "operator_binary", - "operator_ternary", "optional_function_call_arguments", - "function_arguments_list", "compound_type", "list", "$@5", - "optional_list_elements", "list_elements_list", "array", "$@6", - "optional_array_elements", "array_elements_list", "array_element", - "reference", "$@7", "single_reference", "expansion", "atomic_value", - "value_literal", "bind_parameter", "array_element_name", "variable_name", - "signed_number", 0 -}; -#endif - -# ifdef YYPRINT -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to - token YYLEX-NUM. */ -static const yytype_uint16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, - 305, 46, 45 -}; -# endif - -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = -{ - 0, 53, 54, 55, 55, 56, 56, 56, 56, 56, - 56, 57, 58, 59, 61, 60, 62, 62, 63, 64, - 64, 66, 65, 67, 67, 68, 69, 69, 69, 70, - 70, 71, 72, 73, 72, 72, 72, 72, 74, 72, - 72, 72, 72, 75, 75, 75, 76, 76, 76, 76, - 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, - 77, 78, 78, 79, 79, 80, 80, 82, 81, 83, - 83, 84, 84, 86, 85, 87, 87, 88, 88, 89, - 90, 91, 90, 92, 92, 92, 93, 93, 93, 93, - 94, 94, 95, 95, 95, 95, 95, 96, 97, 97, - 98, 99, 99 -}; - -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 2, 0, 2, 1, 1, 1, 1, 1, - 1, 4, 2, 4, 0, 4, 1, 3, 3, 0, - 2, 0, 3, 1, 3, 2, 0, 1, 1, 2, - 4, 2, 3, 0, 4, 1, 1, 1, 0, 5, - 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 5, 0, 1, 1, 3, 1, 1, 0, 4, 0, - 1, 1, 3, 0, 4, 0, 1, 1, 3, 3, - 1, 0, 4, 1, 3, 4, 2, 3, 3, 4, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 2 -}; - -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state - STATE-NUM when YYTABLE doesn't specify something else to do. Zero - means the default is an error. */ -static const yytype_uint8 yydefact[] = -{ - 3, 0, 0, 1, 0, 0, 0, 0, 14, 21, - 0, 4, 5, 7, 6, 8, 9, 10, 2, 100, - 0, 0, 94, 95, 96, 83, 92, 93, 97, 0, - 0, 0, 33, 73, 67, 12, 35, 36, 37, 40, - 65, 66, 42, 80, 41, 90, 91, 31, 0, 0, - 101, 0, 29, 0, 0, 0, 45, 43, 44, 0, - 3, 75, 69, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 19, 16, 0, 22, 23, 26, 102, 0, 11, - 13, 61, 32, 0, 98, 99, 0, 76, 77, 0, - 71, 0, 70, 59, 47, 46, 53, 54, 55, 56, - 57, 58, 48, 49, 50, 51, 52, 0, 0, 0, - 84, 0, 0, 15, 0, 0, 27, 28, 25, 30, - 63, 0, 62, 34, 74, 0, 0, 68, 0, 0, - 0, 0, 82, 85, 20, 17, 18, 24, 39, 0, - 78, 79, 72, 60, 0, 86, 0, 0, 64, 87, - 0, 88, 89 -}; - -/* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int16 yydefgoto[] = -{ - -1, 1, 2, 11, 12, 13, 14, 15, 48, 81, - 82, 123, 16, 49, 84, 85, 128, 17, 18, 86, - 60, 55, 36, 37, 38, 131, 132, 39, 40, 62, - 101, 102, 41, 61, 96, 97, 98, 42, 78, 43, - 142, 44, 45, 46, 99, 83, 52 -}; - -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -#define YYPACT_NINF -41 -static const yytype_int16 yypact[] = -{ - -41, 17, 98, -41, 2, 2, 95, 95, -41, -41, - -12, -41, -41, -41, -41, -41, -41, -41, -41, -41, - 8, 0, -41, -41, -41, -18, -41, -41, -41, 95, - 95, 95, 95, -41, -41, 228, -41, -41, -41, -41, - -41, -41, 6, -40, -41, -41, -41, 228, 2, 95, - -41, 24, 7, 95, 95, 15, -41, -41, -41, 152, - -41, -3, 95, 95, 95, 95, 95, 95, 95, 95, - 95, 95, 95, 95, 95, 95, 95, 95, 9, 95, - 55, 5, -41, 53, 60, -41, 180, -41, -12, 228, - 228, 95, -41, 75, -41, -41, 77, 82, -41, 84, - 228, 78, 85, 49, 264, 252, 276, 276, 19, 19, - 19, 19, -25, -25, -41, -41, -41, 204, -39, 4, - -41, 2, 2, -41, 95, 95, -41, -41, -41, -41, - 228, 87, 86, -41, -41, -3, 95, -41, 95, 95, - 95, 112, -38, -41, -41, -41, 228, -41, -41, 95, - -41, 228, 228, 228, 63, -41, 95, 114, 228, -41, - 128, -41, -41 -}; - -/* YYPGOTO[NTERM-NUM]. */ -static const yytype_int8 yypgoto[] = -{ - -41, 76, -41, -41, -41, -41, -41, -41, -41, -41, - 16, -41, -41, -41, -41, 20, -41, -41, -41, -6, - -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, - -41, -41, -41, -41, -41, -41, 11, -41, -41, -41, - -41, -41, -41, -41, -41, -2, 54 -}; - -/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule which - number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -82 -static const yytype_int16 yytable[] = -{ - 35, 47, 20, 21, 79, 140, 156, 50, 74, 75, - 76, 80, 141, 157, 94, 95, 63, 3, 121, 19, - 53, 54, -38, 56, 57, 58, 59, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 51, 77, -81, 87, 122, 118, 88, 89, 90, 143, - 72, 73, 74, 75, 76, 91, 100, 103, 104, 105, - 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, - 116, 117, 120, 119, 124, 63, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 130, 64, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 125, - 77, 4, 5, 6, 7, 8, 9, 10, 159, 22, - 23, 24, 25, 26, 27, 28, 133, 29, 146, 144, - 134, 135, 136, 137, 138, 149, 30, 31, 148, 155, - 151, 161, 152, 153, 154, 32, 93, 33, 145, 34, - 63, 0, 129, 158, 0, 147, 150, 0, 0, 0, - 160, 64, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 63, 77, 0, 0, 0, 0, - 0, 0, 0, 162, 0, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 0, 77, - 126, 127, 63, 92, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 64, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 63, 77, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 63, 77, 139, 0, 0, 0, 0, 0, 0, 0, - 0, 64, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 63, 77, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 64, 63, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 63, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 0, 0, 0, 68, 69, 70, 71, 72, 73, 74, - 75, 76 -}; - -static const yytype_int16 yycheck[] = -{ - 6, 7, 4, 5, 44, 44, 44, 19, 33, 34, - 35, 51, 51, 51, 17, 18, 12, 0, 13, 17, - 12, 21, 40, 29, 30, 31, 32, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 52, 37, 36, 19, 39, 36, 39, 53, 54, 45, - 31, 32, 33, 34, 35, 40, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 17, 79, 21, 12, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 91, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 39, - 37, 3, 4, 5, 6, 7, 8, 9, 45, 14, - 15, 16, 17, 18, 19, 20, 41, 22, 124, 121, - 43, 39, 38, 45, 39, 39, 31, 32, 41, 17, - 136, 17, 138, 139, 140, 40, 60, 42, 122, 44, - 12, -1, 88, 149, -1, 125, 135, -1, -1, -1, - 156, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 12, 37, -1, -1, -1, -1, - -1, -1, -1, 45, -1, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, -1, 37, - 10, 11, 12, 41, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 12, 37, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 12, 37, 38, -1, -1, -1, -1, -1, -1, -1, - -1, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 12, 37, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 23, 12, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 12, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - -1, -1, -1, 27, 28, 29, 30, 31, 32, 33, - 34, 35 -}; - -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = -{ - 0, 54, 55, 0, 3, 4, 5, 6, 7, 8, - 9, 56, 57, 58, 59, 60, 65, 70, 71, 17, - 98, 98, 14, 15, 16, 17, 18, 19, 20, 22, - 31, 32, 40, 42, 44, 72, 75, 76, 77, 80, - 81, 85, 90, 92, 94, 95, 96, 72, 61, 66, - 19, 52, 99, 12, 21, 74, 72, 72, 72, 72, - 73, 86, 82, 12, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 37, 91, 44, - 51, 62, 63, 98, 67, 68, 72, 19, 39, 72, - 72, 40, 41, 54, 17, 18, 87, 88, 89, 97, - 72, 83, 84, 72, 72, 72, 72, 72, 72, 72, - 72, 72, 72, 72, 72, 72, 72, 72, 36, 72, - 17, 13, 39, 64, 21, 39, 10, 11, 69, 99, - 72, 78, 79, 41, 43, 39, 38, 45, 39, 38, - 44, 51, 93, 45, 98, 63, 72, 68, 41, 39, - 89, 72, 72, 72, 72, 17, 44, 51, 72, 45, - 72, 17, 45 -}; - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab - - -/* Like YYERROR except do call yyerror. This remains here temporarily - to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ - -#define YYFAIL goto yyerrlab - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (&yylloc, context, YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ -while (YYID (0)) - - -#define YYTERROR 1 -#define YYERRCODE 256 - - -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ - while (YYID (0)) -#endif - - -/* YY_LOCATION_PRINT -- Print the location on the stream. - This macro was not mandated originally: define only if we know - we won't break user code: when these are the locations we know. */ - -#ifndef YY_LOCATION_PRINT -# if YYLTYPE_IS_TRIVIAL -# define YY_LOCATION_PRINT(File, Loc) \ - fprintf (File, "%d.%d-%d.%d", \ - (Loc).first_line, (Loc).first_column, \ - (Loc).last_line, (Loc).last_column) -# else -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif -#endif - - -/* YYLEX -- calling `yylex' with the right arguments. */ - -#ifdef YYLEX_PARAM -# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) -#else -# define YYLEX yylex (&yylval, &yylloc, scanner) -#endif - -/* Enable debugging if requested. */ -#if YYDEBUG - -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif - -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (YYID (0)) - -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value, Location, context); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (YYID (0)) - - -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ - -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, TRI_aql_context_t* const context) -#else -static void -yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, context) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; - YYLTYPE const * const yylocationp; - TRI_aql_context_t* const context; -#endif -{ - if (!yyvaluep) - return; - YYUSE (yylocationp); - YYUSE (context); -# ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# else - YYUSE (yyoutput); -# endif - switch (yytype) - { - default: - break; - } -} - - -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, TRI_aql_context_t* const context) -#else -static void -yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp, context) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; - YYLTYPE const * const yylocationp; - TRI_aql_context_t* const context; -#endif -{ - if (yytype < YYNTOKENS) - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); - else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - YY_LOCATION_PRINT (yyoutput, *yylocationp); - YYFPRINTF (yyoutput, ": "); - yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, context); - YYFPRINTF (yyoutput, ")"); -} - -/*------------------------------------------------------------------. -| yy_stack_print -- Print the state stack from its BOTTOM up to its | -| TOP (included). | -`------------------------------------------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) -#else -static void -yy_stack_print (yybottom, yytop) - yytype_int16 *yybottom; - yytype_int16 *yytop; -#endif -{ - YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) - { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); - } - YYFPRINTF (stderr, "\n"); -} - -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (YYID (0)) - - -/*------------------------------------------------. -| Report that the YYRULE is going to be reduced. | -`------------------------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, TRI_aql_context_t* const context) -#else -static void -yy_reduce_print (yyvsp, yylsp, yyrule, context) - YYSTYPE *yyvsp; - YYLTYPE *yylsp; - int yyrule; - TRI_aql_context_t* const context; -#endif -{ - int yynrhs = yyr2[yyrule]; - int yyi; - unsigned long int yylno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) - { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], - &(yyvsp[(yyi + 1) - (yynrhs)]) - , &(yylsp[(yyi + 1) - (yynrhs)]) , context); - YYFPRINTF (stderr, "\n"); - } -} - -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyvsp, yylsp, Rule, context); \ -} while (YYID (0)) - -/* Nonzero means print parse trace. It is left uninitialized so that - multiple parsers can coexist. */ -int yydebug; -#else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) -#endif /* !YYDEBUG */ - - -/* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH -# define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only - if the built-in stack extension method is used). - - Do not make this value too large; the results are undefined if - YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) - evaluated with infinite-precision integer arithmetic. */ - -#ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 -#endif - - - -#if YYERROR_VERBOSE - -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else -/* Return the length of YYSTR. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static YYSIZE_T -yystrlen (const char *yystr) -#else -static YYSIZE_T -yystrlen (yystr) - const char *yystr; -#endif -{ - YYSIZE_T yylen; - for (yylen = 0; yystr[yylen]; yylen++) - continue; - return yylen; -} -# endif -# endif - -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else -/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in - YYDEST. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static char * -yystpcpy (char *yydest, const char *yysrc) -#else -static char * -yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -#endif -{ - char *yyd = yydest; - const char *yys = yysrc; - - while ((*yyd++ = *yys++) != '\0') - continue; - - return yyd - 1; -} -# endif -# endif - -# ifndef yytnamerr -/* Copy to YYRES the contents of YYSTR after stripping away unnecessary - quotes and backslashes, so that it's suitable for yyerror. The - heuristic is that double-quoting is unnecessary unless the string - contains an apostrophe, a comma, or backslash (other than - backslash-backslash). YYSTR is taken from yytname. If YYRES is - null, do not copy; instead, return the length of what the result - would have been. */ -static YYSIZE_T -yytnamerr (char *yyres, const char *yystr) -{ - if (*yystr == '"') - { - YYSIZE_T yyn = 0; - char const *yyp = yystr; - - for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; - - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - /* Fall through. */ - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; - - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } - do_not_strip_quotes: ; - } - - if (! yyres) - return yystrlen (yystr); - - return yystpcpy (yyres, yystr) - yyres; -} -# endif - -/* Copy into YYRESULT an error message about the unexpected token - YYCHAR while in state YYSTATE. Return the number of bytes copied, - including the terminating null byte. If YYRESULT is null, do not - copy anything; just return the number of bytes that would be - copied. As a special case, return 0 if an ordinary "syntax error" - message will do. Return YYSIZE_MAXIMUM if overflow occurs during - size calculation. */ -static YYSIZE_T -yysyntax_error (char *yyresult, int yystate, int yychar) -{ - int yyn = yypact[yystate]; - - if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) - return 0; - else - { - int yytype = YYTRANSLATE (yychar); - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); - YYSIZE_T yysize = yysize0; - YYSIZE_T yysize1; - int yysize_overflow = 0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - int yyx; - -# if 0 - /* This is so xgettext sees the translatable formats that are - constructed on the fly. */ - YY_("syntax error, unexpected %s"); - YY_("syntax error, unexpected %s, expecting %s"); - YY_("syntax error, unexpected %s, expecting %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); -# endif - char *yyfmt; - char const *yyf; - static char const yyunexpected[] = "syntax error, unexpected %s"; - static char const yyexpecting[] = ", expecting %s"; - static char const yyor[] = " or %s"; - char yyformat[sizeof yyunexpected - + sizeof yyexpecting - 1 - + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) - * (sizeof yyor - 1))]; - char const *yyprefix = yyexpecting; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 1; - - yyarg[0] = yytname[yytype]; - yyfmt = yystpcpy (yyformat, yyunexpected); - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - yyformat[sizeof yyunexpected - 1] = '\0'; - break; - } - yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - yyfmt = yystpcpy (yyfmt, yyprefix); - yyprefix = yyor; - } - - yyf = YY_(yyformat); - yysize1 = yysize + yystrlen (yyf); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - - if (yysize_overflow) - return YYSIZE_MAXIMUM; - - if (yyresult) - { - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - char *yyp = yyresult; - int yyi = 0; - while ((*yyp = *yyf) != '\0') - { - if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyf += 2; - } - else - { - yyp++; - yyf++; - } - } - } - return yysize; - } -} -#endif /* YYERROR_VERBOSE */ - - -/*-----------------------------------------------. -| Release the memory associated to this symbol. | -`-----------------------------------------------*/ - -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, TRI_aql_context_t* const context) -#else -static void -yydestruct (yymsg, yytype, yyvaluep, yylocationp, context) - const char *yymsg; - int yytype; - YYSTYPE *yyvaluep; - YYLTYPE *yylocationp; - TRI_aql_context_t* const context; -#endif -{ - YYUSE (yyvaluep); - YYUSE (yylocationp); - YYUSE (context); - - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); - - switch (yytype) - { - - default: - break; - } -} - -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (TRI_aql_context_t* const context); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ - - - - - -/*-------------------------. -| yyparse or yypush_parse. | -`-------------------------*/ - -#ifdef YYPARSE_PARAM -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -int -yyparse (void *YYPARSE_PARAM) -#else -int -yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -#endif -#else /* ! YYPARSE_PARAM */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -int -yyparse (TRI_aql_context_t* const context) -#else -int -yyparse (context) - TRI_aql_context_t* const context; -#endif -#endif -{ -/* The lookahead symbol. */ -int yychar; - -/* The semantic value of the lookahead symbol. */ -YYSTYPE yylval; - -/* Location data for the lookahead symbol. */ -YYLTYPE yylloc; - - /* Number of syntax errors so far. */ - int yynerrs; - - int yystate; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - `yyss': related to states. - `yyvs': related to semantic values. - `yyls': related to locations. - - Refer to the stacks thru separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; - - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; - - /* The location stack. */ - YYLTYPE yylsa[YYINITDEPTH]; - YYLTYPE *yyls; - YYLTYPE *yylsp; - - /* The locations where the error started and ended. */ - YYLTYPE yyerror_range[2]; - - YYSIZE_T yystacksize; - - int yyn; - int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - YYLTYPE yyloc; - -#if YYERROR_VERBOSE - /* Buffer for error messages, and its allocated size. */ - char yymsgbuf[128]; - char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif - -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) - - /* The number of symbols on the RHS of the reduced rule. - Keep to zero when no symbol should be popped. */ - int yylen = 0; - - yytoken = 0; - yyss = yyssa; - yyvs = yyvsa; - yyls = yylsa; - yystacksize = YYINITDEPTH; - - YYDPRINTF ((stderr, "Starting parse\n")); - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - yyssp = yyss; - yyvsp = yyvs; - yylsp = yyls; - -#if YYLTYPE_IS_TRIVIAL - /* Initialize the default location before parsing starts. */ - yylloc.first_line = yylloc.last_line = 1; - yylloc.first_column = yylloc.last_column = 1; -#endif - - goto yysetstate; - -/*------------------------------------------------------------. -| yynewstate -- Push a new state, which is found in yystate. | -`------------------------------------------------------------*/ - yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; - - yysetstate: - *yyssp = yystate; - - if (yyss + yystacksize - 1 <= yyssp) - { - /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = yyssp - yyss + 1; - -#ifdef yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; - YYLTYPE *yyls1 = yyls; - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yyls1, yysize * sizeof (*yylsp), - &yystacksize); - - yyls = yyls1; - yyss = yyss1; - yyvs = yyvs1; - } -#else /* no yyoverflow */ -# ifndef YYSTACK_RELOCATE - goto yyexhaustedlab; -# else - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); - YYSTACK_RELOCATE (yyls_alloc, yyls); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif -#endif /* no yyoverflow */ - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - yylsp = yyls + yysize - 1; - - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; - } - - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); - - if (yystate == YYFINAL) - YYACCEPT; - - goto yybackup; - -/*-----------. -| yybackup. | -`-----------*/ -yybackup: - - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ - - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ - if (yychar == YYEMPTY) - { - YYDPRINTF ((stderr, "Reading a token: ")); - yychar = YYLEX; - } - - if (yychar <= YYEOF) - { - yychar = yytoken = YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); - } - else - { - yytoken = YYTRANSLATE (yychar); - YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); - } - - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) - { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; - - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - - yystate = yyn; - *++yyvsp = yylval; - *++yylsp = yylloc; - goto yynewstate; - - -/*-----------------------------------------------------------. -| yydefault -- do the default action for the current state. | -`-----------------------------------------------------------*/ -yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - - -/*-----------------------------. -| yyreduce -- Do a reduction. | -`-----------------------------*/ -yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; - - /* If YYLEN is nonzero, implement the default value of the action: - `$$ = $1'. - - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; - - /* Default location. */ - YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); - YY_REDUCE_PRINT (yyn); - switch (yyn) - { - case 2: - -/* Line 1455 of yacc.c */ -#line 176 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 3: - -/* Line 1455 of yacc.c */ -#line 181 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 4: - -/* Line 1455 of yacc.c */ -#line 183 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 5: - -/* Line 1455 of yacc.c */ -#line 188 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 6: - -/* Line 1455 of yacc.c */ -#line 190 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 7: - -/* Line 1455 of yacc.c */ -#line 192 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 8: - -/* Line 1455 of yacc.c */ -#line 194 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 9: - -/* Line 1455 of yacc.c */ -#line 196 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 10: - -/* Line 1455 of yacc.c */ -#line 198 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 11: - -/* Line 1455 of yacc.c */ -#line 203 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node; - - if (!TRI_StartScopeAql(context, TRI_AQL_SCOPE_FOR)) { - ABORT_OOM - } - - node = TRI_CreateNodeForAql(context, (yyvsp[(2) - (4)].strval), (yyvsp[(4) - (4)].node)); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 12: - -/* Line 1455 of yacc.c */ -#line 222 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeFilterAql(context, (yyvsp[(2) - (2)].node)); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 13: - -/* Line 1455 of yacc.c */ -#line 235 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeLetAql(context, (yyvsp[(2) - (4)].strval), (yyvsp[(4) - (4)].node)); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 14: - -/* Line 1455 of yacc.c */ -#line 248 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeListAql(context); - - if (!node) { - ABORT_OOM - } - - TRI_PushStackParseAql(context, node); - ;} - break; - - case 15: - -/* Line 1455 of yacc.c */ -#line 256 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeCollectAql(context, TRI_PopStackParseAql(context), (yyvsp[(4) - (4)].strval)); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 16: - -/* Line 1455 of yacc.c */ -#line 269 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 17: - -/* Line 1455 of yacc.c */ -#line 271 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 18: - -/* Line 1455 of yacc.c */ -#line 276 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeAssignAql(context, (yyvsp[(1) - (3)].strval), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - if (!TRI_PushListAql(context, node)) { - ABORT_OOM - } - ;} - break; - - case 19: - -/* Line 1455 of yacc.c */ -#line 289 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.strval) = NULL; - ;} - break; - - case 20: - -/* Line 1455 of yacc.c */ -#line 292 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.strval) = (yyvsp[(2) - (2)].strval); - ;} - break; - - case 21: - -/* Line 1455 of yacc.c */ -#line 298 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeListAql(context); - - if (!node) { - ABORT_OOM - } - - TRI_PushStackParseAql(context, node); - ;} - break; - - case 22: - -/* Line 1455 of yacc.c */ -#line 306 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* list = TRI_PopStackParseAql(context); - TRI_aql_node_t* node = TRI_CreateNodeSortAql(context, list); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 23: - -/* Line 1455 of yacc.c */ -#line 320 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_PushListAql(context, (yyvsp[(1) - (1)].node))) { - ABORT_OOM - } - ;} - break; - - case 24: - -/* Line 1455 of yacc.c */ -#line 325 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_PushListAql(context, (yyvsp[(3) - (3)].node))) { - ABORT_OOM - } - ;} - break; - - case 25: - -/* Line 1455 of yacc.c */ -#line 333 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeSortElementAql(context, (yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].boolval)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 26: - -/* Line 1455 of yacc.c */ -#line 344 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.boolval) = true; - ;} - break; - - case 27: - -/* Line 1455 of yacc.c */ -#line 347 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.boolval) = true; - ;} - break; - - case 28: - -/* Line 1455 of yacc.c */ -#line 350 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.boolval) = false; - ;} - break; - - case 29: - -/* Line 1455 of yacc.c */ -#line 356 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeLimitAql(context, TRI_CreateNodeValueIntAql(context, 0), TRI_CreateNodeValueIntAql(context, (yyvsp[(2) - (2)].intval))); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 30: - -/* Line 1455 of yacc.c */ -#line 370 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeLimitAql(context, TRI_CreateNodeValueIntAql(context, (yyvsp[(2) - (4)].intval)), TRI_CreateNodeValueIntAql(context, (yyvsp[(4) - (4)].intval))); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - ;} - break; - - case 31: - -/* Line 1455 of yacc.c */ -#line 383 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeReturnAql(context, (yyvsp[(2) - (2)].node)); - if (!node) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, node)) { - ABORT_OOM - } - - if (!TRI_EndScopeByReturnAql(context)) { - ABORT_OOM - } - - // $$ = node; - ;} - break; - - case 32: - -/* Line 1455 of yacc.c */ -#line 403 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(2) - (3)].node); - ;} - break; - - case 33: - -/* Line 1455 of yacc.c */ -#line 406 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_StartScopeAql(context, TRI_AQL_SCOPE_SUBQUERY)) { - ABORT_OOM - } - - ;} - break; - - case 34: - -/* Line 1455 of yacc.c */ -#line 411 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* result; - TRI_aql_node_t* subQuery; - TRI_aql_node_t* nameNode; - - if (!TRI_EndScopeAql(context)) { - ABORT_OOM - } - - subQuery = TRI_CreateNodeSubqueryAql(context); - if (!subQuery) { - ABORT_OOM - } - - if (!TRI_AddStatementListAql(context->_statements, subQuery)) { - ABORT_OOM - } - - nameNode = TRI_AQL_NODE_MEMBER(subQuery, 0); - if (!nameNode) { - ABORT_OOM - } - - result = TRI_CreateNodeReferenceAql(context, TRI_AQL_NODE_STRING(nameNode)); - if (!result) { - ABORT_OOM - } - - // return the result - (yyval.node) = result; - ;} - break; - - case 35: - -/* Line 1455 of yacc.c */ -#line 442 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 36: - -/* Line 1455 of yacc.c */ -#line 445 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 37: - -/* Line 1455 of yacc.c */ -#line 448 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 38: - -/* Line 1455 of yacc.c */ -#line 451 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node; - - if (!TRI_PushStackParseAql(context, (yyvsp[(1) - (1)].strval))) { - ABORT_OOM - } - - node = TRI_CreateNodeListAql(context); - if (!node) { - ABORT_OOM - } - - TRI_PushStackParseAql(context, node); - ;} - break; - - case 39: - -/* Line 1455 of yacc.c */ -#line 464 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* list = TRI_PopStackParseAql(context); - TRI_aql_node_t* node = TRI_CreateNodeFcallAql(context, TRI_PopStackParseAql(context), list); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 40: - -/* Line 1455 of yacc.c */ -#line 473 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 41: - -/* Line 1455 of yacc.c */ -#line 476 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 42: - -/* Line 1455 of yacc.c */ -#line 479 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 43: - -/* Line 1455 of yacc.c */ -#line 485 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorUnaryPlusAql(context, (yyvsp[(2) - (2)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 44: - -/* Line 1455 of yacc.c */ -#line 493 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorUnaryMinusAql(context, (yyvsp[(2) - (2)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 45: - -/* Line 1455 of yacc.c */ -#line 501 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorUnaryNotAql(context, (yyvsp[(2) - (2)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 46: - -/* Line 1455 of yacc.c */ -#line 512 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryOrAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 47: - -/* Line 1455 of yacc.c */ -#line 520 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryAndAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 48: - -/* Line 1455 of yacc.c */ -#line 528 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryPlusAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 49: - -/* Line 1455 of yacc.c */ -#line 536 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryMinusAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 50: - -/* Line 1455 of yacc.c */ -#line 544 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryTimesAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 51: - -/* Line 1455 of yacc.c */ -#line 552 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryDivAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 52: - -/* Line 1455 of yacc.c */ -#line 560 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryModAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 53: - -/* Line 1455 of yacc.c */ -#line 568 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryEqAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 54: - -/* Line 1455 of yacc.c */ -#line 576 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryNeAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 55: - -/* Line 1455 of yacc.c */ -#line 584 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryLtAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 56: - -/* Line 1455 of yacc.c */ -#line 592 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryGtAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 57: - -/* Line 1455 of yacc.c */ -#line 600 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryLeAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 58: - -/* Line 1455 of yacc.c */ -#line 608 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryGeAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 59: - -/* Line 1455 of yacc.c */ -#line 616 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorBinaryInAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 60: - -/* Line 1455 of yacc.c */ -#line 627 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeOperatorTernaryAql(context, (yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].node), (yyvsp[(5) - (5)].node)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 61: - -/* Line 1455 of yacc.c */ -#line 638 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 62: - -/* Line 1455 of yacc.c */ -#line 640 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 63: - -/* Line 1455 of yacc.c */ -#line 645 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_PushListAql(context, (yyvsp[(1) - (1)].node)); - ;} - break; - - case 64: - -/* Line 1455 of yacc.c */ -#line 648 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_PushListAql(context, (yyvsp[(3) - (3)].node)); - ;} - break; - - case 65: - -/* Line 1455 of yacc.c */ -#line 654 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 66: - -/* Line 1455 of yacc.c */ -#line 657 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 67: - -/* Line 1455 of yacc.c */ -#line 663 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeListAql(context); - if (!node) { - ABORT_OOM - } - - TRI_PushStackParseAql(context, node); - ;} - break; - - case 68: - -/* Line 1455 of yacc.c */ -#line 670 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = TRI_PopStackParseAql(context); - ;} - break; - - case 69: - -/* Line 1455 of yacc.c */ -#line 676 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 70: - -/* Line 1455 of yacc.c */ -#line 678 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 71: - -/* Line 1455 of yacc.c */ -#line 683 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_PushListAql(context, (yyvsp[(1) - (1)].node))) { - ABORT_OOM - } - ;} - break; - - case 72: - -/* Line 1455 of yacc.c */ -#line 688 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_PushListAql(context, (yyvsp[(3) - (3)].node))) { - ABORT_OOM - } - ;} - break; - - case 73: - -/* Line 1455 of yacc.c */ -#line 696 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeArrayAql(context); - if (!node) { - ABORT_OOM - } - - TRI_PushStackParseAql(context, node); - ;} - break; - - case 74: - -/* Line 1455 of yacc.c */ -#line 703 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = TRI_PopStackParseAql(context); - ;} - break; - - case 75: - -/* Line 1455 of yacc.c */ -#line 709 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 76: - -/* Line 1455 of yacc.c */ -#line 711 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 77: - -/* Line 1455 of yacc.c */ -#line 716 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 78: - -/* Line 1455 of yacc.c */ -#line 718 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - ;} - break; - - case 79: - -/* Line 1455 of yacc.c */ -#line 723 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!TRI_PushArrayAql(context, (yyvsp[(1) - (3)].strval), (yyvsp[(3) - (3)].node))) { - ABORT_OOM - } - ;} - break; - - case 80: - -/* Line 1455 of yacc.c */ -#line 732 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // start of reference (collection or variable name) - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 81: - -/* Line 1455 of yacc.c */ -#line 736 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // expanded variable access, e.g. variable[*] - TRI_aql_node_t* node; - char* varname = TRI_GetNameParseAql(context); - - if (!varname) { - ABORT_OOM - } - - // push the varname onto the stack - TRI_PushStackParseAql(context, varname); - - // push on the stack what's going to be expanded (will be popped when we come back) - TRI_PushStackParseAql(context, (yyvsp[(1) - (1)].node)); - - // create a temporary variable for the row iterator (will be popped by "expansion" rule") - node = TRI_CreateNodeReferenceAql(context, varname); - - if (!node) { - ABORT_OOM - } - - // push the variable - TRI_PushStackParseAql(context, node); - ;} - break; - - case 82: - -/* Line 1455 of yacc.c */ -#line 760 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // return from the "expansion" subrule - TRI_aql_node_t* expanded = TRI_PopStackParseAql(context); - TRI_aql_node_t* expand; - TRI_aql_node_t* nameNode; - char* varname = TRI_PopStackParseAql(context); - - // push the actual expand node into the statement list - expand = TRI_CreateNodeExpandAql(context, varname, expanded, (yyvsp[(4) - (4)].node)); - - if (!TRI_AddStatementListAql(context->_statements, expand)) { - ABORT_OOM - } - - nameNode = TRI_AQL_NODE_MEMBER(expand, 1); - if (!nameNode) { - ABORT_OOM - } - - // return a reference only - (yyval.node) = TRI_CreateNodeReferenceAql(context, TRI_AQL_NODE_STRING(nameNode)); - - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 83: - -/* Line 1455 of yacc.c */ -#line 789 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // variable or collection - TRI_aql_node_t* node; - - if (TRI_VariableExistsScopeAql(context, (yyvsp[(1) - (1)].strval))) { - node = TRI_CreateNodeReferenceAql(context, (yyvsp[(1) - (1)].strval)); - } - else { - node = TRI_CreateNodeCollectionAql(context, (yyvsp[(1) - (1)].strval)); - } - - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 84: - -/* Line 1455 of yacc.c */ -#line 806 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // named variable access, e.g. variable.reference - (yyval.node) = TRI_CreateNodeAttributeAccessAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].strval)); - - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 85: - -/* Line 1455 of yacc.c */ -#line 814 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // indexed variable access, e.g. variable[index] - (yyval.node) = TRI_CreateNodeIndexedAql(context, (yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node)); - - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 86: - -/* Line 1455 of yacc.c */ -#line 825 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // named variable access, continuation from * expansion, e.g. [*].variable.reference - TRI_aql_node_t* node = TRI_PopStackParseAql(context); - - (yyval.node) = TRI_CreateNodeAttributeAccessAql(context, node, (yyvsp[(2) - (2)].strval)); - - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 87: - -/* Line 1455 of yacc.c */ -#line 835 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // indexed variable access, continuation from * expansion, e.g. [*].variable[index] - TRI_aql_node_t* node = TRI_PopStackParseAql(context); - - (yyval.node) = TRI_CreateNodeIndexedAql(context, node, (yyvsp[(2) - (3)].node)); - - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 88: - -/* Line 1455 of yacc.c */ -#line 845 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // named variable access, continuation from * expansion, e.g. [*].variable.xx.reference - (yyval.node) = TRI_CreateNodeAttributeAccessAql(context, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].strval)); - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 89: - -/* Line 1455 of yacc.c */ -#line 852 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - // indexed variable access, continuation from * expansion, e.g. [*].variable.xx.[index] - (yyval.node) = TRI_CreateNodeIndexedAql(context, (yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node)); - if (!(yyval.node)) { - ABORT_OOM - } - ;} - break; - - case 90: - -/* Line 1455 of yacc.c */ -#line 862 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 91: - -/* Line 1455 of yacc.c */ -#line 865 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.node) = (yyvsp[(1) - (1)].node); - ;} - break; - - case 92: - -/* Line 1455 of yacc.c */ -#line 871 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeValueStringAql(context, (yyvsp[(1) - (1)].strval)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 93: - -/* Line 1455 of yacc.c */ -#line 879 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node; - - if (!(yyvsp[(1) - (1)].strval)) { - ABORT_OOM - } - - node = TRI_CreateNodeValueDoubleAql(context, TRI_DoubleString((yyvsp[(1) - (1)].strval))); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 94: - -/* Line 1455 of yacc.c */ -#line 893 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeValueNullAql(context); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 95: - -/* Line 1455 of yacc.c */ -#line 901 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeValueBoolAql(context, true); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 96: - -/* Line 1455 of yacc.c */ -#line 909 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeValueBoolAql(context, false); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 97: - -/* Line 1455 of yacc.c */ -#line 920 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - TRI_aql_node_t* node = TRI_CreateNodeParameterAql(context, (yyvsp[(1) - (1)].strval)); - if (!node) { - ABORT_OOM - } - - (yyval.node) = node; - ;} - break; - - case 98: - -/* Line 1455 of yacc.c */ -#line 931 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!(yyvsp[(1) - (1)].strval)) { - ABORT_OOM - } - - (yyval.strval) = (yyvsp[(1) - (1)].strval); - ;} - break; - - case 99: - -/* Line 1455 of yacc.c */ -#line 938 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!(yyvsp[(1) - (1)].strval)) { - ABORT_OOM - } - - (yyval.strval) = (yyvsp[(1) - (1)].strval); - ;} - break; - - case 100: - -/* Line 1455 of yacc.c */ -#line 947 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - (yyval.strval) = (yyvsp[(1) - (1)].strval); - ;} - break; - - case 101: - -/* Line 1455 of yacc.c */ -#line 953 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!(yyvsp[(1) - (1)].strval)) { - ABORT_OOM - } - - (yyval.intval) = TRI_Int64String((yyvsp[(1) - (1)].strval)); - ;} - break; - - case 102: - -/* Line 1455 of yacc.c */ -#line 960 "arangod/Ahuacatl/ahuacatl-grammar.y" - { - if (!(yyvsp[(2) - (2)].strval)) { - ABORT_OOM - } - - (yyval.intval) = - TRI_Int64String((yyvsp[(2) - (2)].strval)); - ;} - break; - - - -/* Line 1455 of yacc.c */ -#line 2977 "arangod/Ahuacatl/ahuacatl-grammar.c" - default: break; - } - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); - - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - - *++yyvsp = yyval; - *++yylsp = yyloc; - - /* Now `shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; - if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTOKENS]; - - goto yynewstate; - - -/*------------------------------------. -| yyerrlab -- here on detecting error | -`------------------------------------*/ -yyerrlab: - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) - { - ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (&yylloc, context, YY_("syntax error")); -#else - { - YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); - if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) - { - YYSIZE_T yyalloc = 2 * yysize; - if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) - yyalloc = YYSTACK_ALLOC_MAXIMUM; - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yyalloc); - if (yymsg) - yymsg_alloc = yyalloc; - else - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - } - } - - if (0 < yysize && yysize <= yymsg_alloc) - { - (void) yysyntax_error (yymsg, yystate, yychar); - yyerror (&yylloc, context, yymsg); - } - else - { - yyerror (&yylloc, context, YY_("syntax error")); - if (yysize != 0) - goto yyexhaustedlab; - } - } -#endif - } - - yyerror_range[0] = yylloc; - - if (yyerrstatus == 3) - { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ - - if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } - else - { - yydestruct ("Error: discarding", - yytoken, &yylval, &yylloc, context); - yychar = YYEMPTY; - } - } - - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - - -/*---------------------------------------------------. -| yyerrorlab -- error raised explicitly by YYERROR. | -`---------------------------------------------------*/ -yyerrorlab: - - /* Pacify compilers like GCC when the user code never invokes - YYERROR and the label yyerrorlab therefore never appears in user - code. */ - if (/*CONSTCOND*/ 0) - goto yyerrorlab; - - yyerror_range[0] = yylsp[1-yylen]; - /* Do not reclaim the symbols of the rule which action triggered - this YYERROR. */ - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; - - -/*-------------------------------------------------------------. -| yyerrlab1 -- common code for both syntax error and YYERROR. | -`-------------------------------------------------------------*/ -yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ - - for (;;) - { - yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } - - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; - - yyerror_range[0] = *yylsp; - yydestruct ("Error: popping", - yystos[yystate], yyvsp, yylsp, context); - YYPOPSTACK (1); - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); - } - - *++yyvsp = yylval; - - yyerror_range[1] = yylloc; - /* Using YYLLOC is tempting, but would change the location of - the lookahead. YYLOC is available though. */ - YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2); - *++yylsp = yyloc; - - /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); - - yystate = yyn; - goto yynewstate; - - -/*-------------------------------------. -| yyacceptlab -- YYACCEPT comes here. | -`-------------------------------------*/ -yyacceptlab: - yyresult = 0; - goto yyreturn; - -/*-----------------------------------. -| yyabortlab -- YYABORT comes here. | -`-----------------------------------*/ -yyabortlab: - yyresult = 1; - goto yyreturn; - -#if !defined(yyoverflow) || YYERROR_VERBOSE -/*-------------------------------------------------. -| yyexhaustedlab -- memory exhaustion comes here. | -`-------------------------------------------------*/ -yyexhaustedlab: - yyerror (&yylloc, context, YY_("memory exhausted")); - yyresult = 2; - /* Fall through. */ -#endif - -yyreturn: - if (yychar != YYEMPTY) - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval, &yylloc, context); - /* Do not reclaim the symbols of the rule which action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK (yylen); - YY_STACK_PRINT (yyss, yyssp); - while (yyssp != yyss) - { - yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yylsp, context); - YYPOPSTACK (1); - } -#ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); -#endif -#if YYERROR_VERBOSE - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); -#endif - /* Make sure YYID is used. */ - return YYID (yyresult); -} - - - diff --git a/arangod/Ahuacatl/ahuacatl-grammar.h b/arangod/Ahuacatl/ahuacatl-grammar.h deleted file mode 100644 index a47c8c24d2..0000000000 --- a/arangod/Ahuacatl/ahuacatl-grammar.h +++ /dev/null @@ -1,134 +0,0 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ - -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - 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 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - T_END = 0, - T_FOR = 258, - T_LET = 259, - T_FILTER = 260, - T_RETURN = 261, - T_COLLECT = 262, - T_SORT = 263, - T_LIMIT = 264, - T_ASC = 265, - T_DESC = 266, - T_IN = 267, - T_INTO = 268, - T_NULL = 269, - T_TRUE = 270, - T_FALSE = 271, - T_STRING = 272, - T_QUOTED_STRING = 273, - T_NUMBER = 274, - T_PARAMETER = 275, - T_ASSIGN = 276, - T_NOT = 277, - T_AND = 278, - T_OR = 279, - T_EQ = 280, - T_NE = 281, - T_LT = 282, - T_GT = 283, - T_LE = 284, - T_GE = 285, - T_PLUS = 286, - T_MINUS = 287, - T_TIMES = 288, - T_DIV = 289, - T_MOD = 290, - T_EXPAND = 291, - T_QUESTION = 292, - T_COLON = 293, - T_COMMA = 294, - T_OPEN = 295, - T_CLOSE = 296, - T_DOC_OPEN = 297, - T_DOC_CLOSE = 298, - T_LIST_OPEN = 299, - T_LIST_CLOSE = 300, - UPLUS = 301, - UMINUS = 302, - FUNCCALL = 303, - REFERENCE = 304, - INDEXED = 305 - }; -#endif - - - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ - -/* Line 1676 of yacc.c */ -#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y" - - TRI_aql_node_t* node; - char* strval; - bool boolval; - int64_t intval; - - - -/* Line 1676 of yacc.c */ -#line 112 "arangod/Ahuacatl/ahuacatl-grammar.h" -} YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -#endif - - - -#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED -typedef struct YYLTYPE -{ - int first_line; - int first_column; - int last_line; - int last_column; -} YYLTYPE; -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ -# define YYLTYPE_IS_DECLARED 1 -# define YYLTYPE_IS_TRIVIAL 1 -#endif - - - diff --git a/arangod/Ahuacatl/ahuacatl-tokens.c b/arangod/Ahuacatl/ahuacatl-tokens.c deleted file mode 100644 index e5da74e95f..0000000000 --- a/arangod/Ahuacatl/ahuacatl-tokens.c +++ /dev/null @@ -1,2447 +0,0 @@ - -#line 3 "arangod/Ahuacatl/ahuacatl-tokens.c" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) - -#define YY_USE_CONST - -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* An opaque pointer. */ -#ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; -#endif - -/* For convenience, these vars (plus the bison vars far below) - are macros in the reentrant scanner. */ -#define yyin yyg->yyin_r -#define yyout yyg->yyout_r -#define yyextra yyg->yyextra_r -#define yyleng yyg->yyleng_r -#define yytext yyg->yytext_r -#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) -#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) -#define yy_flex_debug yyg->yy_flex_debug_r - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yyg->yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yyg->yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE Ahuacatlrestart(yyin ,yyscanner ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires - * access to the local variable yy_act. Since yyless() is a macro, it would break - * existing scanners that call yyless() from OUTSIDE Ahuacatllex. - * One obvious solution it to make yy_act a global. I tried that, and saw - * a 5% performance hit in a non-yylineno scanner, because yy_act is - * normally declared as a register variable-- so it is not worth it. - */ - #define YY_LESS_LINENO(n) \ - do { \ - int yyl;\ - for ( yyl = n; yyl < yyleng; ++yyl )\ - if ( yytext[yyl] == '\n' )\ - --yylineno;\ - }while(0) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via Ahuacatlrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] - -void Ahuacatlrestart (FILE *input_file ,yyscan_t yyscanner ); -void Ahuacatl_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE Ahuacatl_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void Ahuacatl_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void Ahuacatl_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void Ahuacatlpush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void Ahuacatlpop_buffer_state (yyscan_t yyscanner ); - -static void Ahuacatlensure_buffer_stack (yyscan_t yyscanner ); -static void Ahuacatl_load_buffer_state (yyscan_t yyscanner ); -static void Ahuacatl_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); - -#define YY_FLUSH_BUFFER Ahuacatl_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) - -YY_BUFFER_STATE Ahuacatl_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE Ahuacatl_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE Ahuacatl_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); - -void *Ahuacatlalloc (yy_size_t ,yyscan_t yyscanner ); -void *Ahuacatlrealloc (void *,yy_size_t ,yyscan_t yyscanner ); -void Ahuacatlfree (void * ,yyscan_t yyscanner ); - -#define yy_new_buffer Ahuacatl_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - Ahuacatlensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - Ahuacatl_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - Ahuacatlensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - Ahuacatl_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -#define Ahuacatlwrap(n) 1 -#define YY_SKIP_YYWRAP - -typedef unsigned char YY_CHAR; - -typedef int yy_state_type; - -#define yytext_ptr yytext_r - -static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); -static int yy_get_next_buffer (yyscan_t yyscanner ); -static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 54 -#define YY_END_OF_BUFFER 55 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[133] = - { 0, - 0, 0, 0, 0, 55, 53, 46, 46, 22, 53, - 29, 53, 53, 34, 35, 27, 25, 33, 26, 28, - 44, 44, 31, 20, 21, 18, 30, 53, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 38, - 39, 53, 53, 36, 53, 37, 49, 51, 52, 50, - 46, 16, 0, 42, 0, 23, 0, 43, 0, 47, - 0, 44, 19, 15, 17, 45, 0, 40, 40, 40, - 40, 40, 40, 40, 10, 40, 40, 40, 40, 40, - 40, 0, 40, 0, 0, 0, 41, 24, 49, 51, - 48, 44, 45, 8, 40, 40, 40, 40, 1, 40, - - 2, 40, 40, 40, 40, 40, 32, 40, 40, 0, - 40, 9, 40, 40, 11, 40, 12, 40, 6, 13, - 0, 44, 40, 14, 40, 7, 40, 40, 3, 4, - 5, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 5, 6, 1, 1, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 20, 1, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 27, 27, 32, 27, 27, 33, 34, 35, 36, 27, - 27, 37, 38, 39, 40, 27, 27, 27, 27, 27, - 41, 42, 43, 1, 44, 45, 46, 27, 47, 48, - - 49, 50, 27, 27, 51, 27, 27, 52, 53, 54, - 55, 27, 27, 56, 57, 58, 59, 27, 27, 27, - 27, 27, 60, 61, 62, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[63] = - { 0, - 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 1, 1, 1, 1, 3, 3, 1, - 1, 1, 1, 1, 4, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, - 1, 1, 1, 6, 1, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, - 1, 1 - } ; - -static yyconst flex_int16_t yy_base[144] = - { 0, - 0, 0, 60, 62, 266, 273, 65, 73, 240, 64, - 273, 248, 62, 273, 273, 273, 273, 273, 273, 232, - 203, 62, 273, 196, 195, 194, 273, 190, 35, 0, - 43, 52, 57, 51, 58, 51, 64, 59, 59, 201, - 273, 167, 42, 273, 149, 273, 0, 273, 206, 191, - 114, 273, 79, 273, 204, 273, 88, 273, 202, 273, - 81, 104, 273, 273, 273, 0, 179, 0, 91, 91, - 87, 93, 94, 91, 90, 92, 98, 100, 95, 98, - 96, 94, 121, 67, 114, 99, 273, 273, 0, 273, - 273, 139, 0, 0, 108, 114, 111, 123, 0, 127, - - 0, 132, 133, 127, 131, 141, 273, 0, 154, 161, - 145, 0, 147, 148, 0, 145, 0, 150, 0, 0, - 173, 181, 165, 0, 158, 0, 166, 163, 0, 0, - 0, 273, 221, 227, 233, 237, 240, 242, 248, 254, - 258, 262, 266 - } ; - -static yyconst flex_int16_t yy_def[144] = - { 0, - 132, 1, 133, 133, 132, 132, 132, 132, 132, 134, - 132, 132, 135, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 136, 137, 137, - 137, 137, 137, 137, 137, 137, 137, 137, 137, 132, - 132, 138, 139, 132, 132, 132, 140, 132, 132, 132, - 132, 132, 134, 132, 134, 132, 135, 132, 135, 132, - 132, 132, 132, 132, 132, 141, 136, 137, 137, 137, - 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, - 137, 132, 142, 138, 139, 139, 132, 132, 140, 132, - 132, 132, 141, 137, 137, 137, 137, 137, 137, 137, - - 137, 137, 137, 137, 137, 137, 132, 143, 142, 132, - 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, - 132, 132, 137, 137, 137, 137, 137, 137, 137, 137, - 137, 0, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132 - } ; - -static yyconst flex_int16_t yy_nxt[336] = - { 0, - 6, 7, 8, 7, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 6, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 30, - 33, 34, 35, 30, 36, 30, 37, 38, 39, 30, - 40, 6, 41, 42, 43, 29, 31, 32, 30, 33, - 34, 35, 30, 36, 30, 37, 38, 39, 30, 44, - 45, 46, 48, 49, 48, 49, 51, 51, 51, 54, - 58, 50, 69, 50, 51, 51, 51, 61, 70, 62, - 62, 71, 72, 86, 54, 75, 87, 76, 73, 77, - 78, 69, 74, 79, 80, 81, 58, 70, 92, 92, - - 71, 132, 72, 59, 75, 55, 76, 73, 77, 78, - 84, 74, 79, 80, 81, 51, 51, 51, 94, 61, - 55, 62, 62, 95, 96, 97, 98, 99, 100, 59, - 101, 102, 103, 104, 105, 106, 107, 94, 108, 108, - 111, 112, 95, 96, 97, 98, 99, 100, 113, 101, - 102, 103, 104, 105, 106, 86, 92, 92, 87, 111, - 112, 114, 115, 116, 108, 117, 118, 113, 110, 119, - 120, 108, 108, 121, 123, 121, 124, 125, 122, 122, - 114, 115, 116, 126, 117, 118, 127, 110, 119, 120, - 122, 122, 128, 123, 129, 124, 125, 108, 122, 122, - - 130, 131, 126, 132, 132, 127, 132, 91, 90, 88, - 84, 128, 82, 129, 67, 65, 64, 63, 61, 130, - 131, 47, 47, 47, 47, 47, 47, 53, 53, 53, - 53, 53, 53, 57, 57, 57, 57, 57, 57, 66, - 66, 66, 68, 60, 68, 68, 83, 83, 85, 85, - 85, 85, 85, 85, 89, 56, 89, 89, 89, 89, - 93, 52, 93, 93, 109, 132, 109, 109, 108, 132, - 108, 108, 5, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132 - } ; - -static yyconst flex_int16_t yy_chk[336] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 3, 3, 4, 4, 7, 7, 7, 10, - 13, 3, 29, 4, 8, 8, 8, 22, 31, 22, - 22, 32, 33, 43, 53, 34, 43, 35, 33, 35, - 36, 29, 33, 37, 38, 39, 57, 31, 61, 61, - - 32, 86, 33, 13, 34, 10, 35, 33, 35, 36, - 84, 33, 37, 38, 39, 51, 51, 51, 69, 62, - 53, 62, 62, 70, 71, 72, 73, 74, 75, 57, - 76, 77, 78, 79, 80, 81, 82, 69, 83, 83, - 95, 96, 70, 71, 72, 73, 74, 75, 97, 76, - 77, 78, 79, 80, 81, 85, 92, 92, 85, 95, - 96, 98, 100, 102, 83, 103, 104, 97, 92, 105, - 106, 109, 109, 110, 111, 110, 113, 114, 110, 110, - 98, 100, 102, 116, 103, 104, 118, 92, 105, 106, - 121, 121, 123, 111, 125, 113, 114, 109, 122, 122, - - 127, 128, 116, 67, 59, 118, 55, 50, 49, 45, - 42, 123, 40, 125, 28, 26, 25, 24, 21, 127, - 128, 133, 133, 133, 133, 133, 133, 134, 134, 134, - 134, 134, 134, 135, 135, 135, 135, 135, 135, 136, - 136, 136, 137, 20, 137, 137, 138, 138, 139, 139, - 139, 139, 139, 139, 140, 12, 140, 140, 140, 140, - 141, 9, 141, 141, 142, 5, 142, 142, 143, 0, - 143, 143, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132 - } ; - -/* Table of booleans, true if rule could match eol. */ -static yyconst flex_int32_t yy_rule_can_match_eol[55] = - { 0, -0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, }; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET - -#include -#include - -#include "Ahuacatl/ahuacatl-ast-node.h" -#include "Ahuacatl/ahuacatl-context.h" -#include "Ahuacatl/ahuacatl-grammar.h" -#include "Ahuacatl/ahuacatl-parser.h" - -#define YY_EXTRA_TYPE TRI_aql_context_t* - -#define YY_USER_ACTION yylloc->first_line = yylineno; yylloc->first_column = yycolumn; yylloc->last_column = yycolumn + yyleng - 1; yycolumn += yyleng; - -#define YY_NO_INPUT 1 - -#define YY_INPUT(resultBuffer, resultState, maxBytesToRead) { \ - TRI_aql_parser_t* parser = (TRI_aql_parser_t*) (yyextra)->_parser; \ - int length = parser->_length; \ - if (length > maxBytesToRead) { \ - length = maxBytesToRead; \ - } \ - if (length > 0) { \ - memcpy(resultBuffer, parser->_buffer, length); \ - parser->_buffer += length; \ - parser->_length -= length; \ - resultState = length; \ - } \ - else { \ - resultState = YY_NULL; \ - } \ -} - -#define INITIAL 0 -#define COMMENT 1 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif - -/* Holds the entire state of the reentrant scanner. */ -struct yyguts_t - { - - /* User-defined. Not touched by flex. */ - YY_EXTRA_TYPE yyextra_r; - - /* The rest are the same as the globals declared in the non-reentrant scanner. */ - FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ - char yy_hold_char; - int yy_n_chars; - int yyleng_r; - char *yy_c_buf_p; - int yy_init; - int yy_start; - int yy_did_buffer_switch_on_eof; - int yy_start_stack_ptr; - int yy_start_stack_depth; - int *yy_start_stack; - yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; - - int yylineno_r; - int yy_flex_debug_r; - - char *yytext_r; - int yy_more_flag; - int yy_more_len; - - YYSTYPE * yylval_r; - - YYLTYPE * yylloc_r; - - }; /* end struct yyguts_t */ - -static int yy_init_globals (yyscan_t yyscanner ); - - /* This must go here because YYSTYPE and YYLTYPE are included - * from bison output in section 1.*/ - # define yylval yyg->yylval_r - - # define yylloc yyg->yylloc_r - -int Ahuacatllex_init (yyscan_t* scanner); - -int Ahuacatllex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int Ahuacatllex_destroy (yyscan_t yyscanner ); - -int Ahuacatlget_debug (yyscan_t yyscanner ); - -void Ahuacatlset_debug (int debug_flag ,yyscan_t yyscanner ); - -YY_EXTRA_TYPE Ahuacatlget_extra (yyscan_t yyscanner ); - -void Ahuacatlset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); - -FILE *Ahuacatlget_in (yyscan_t yyscanner ); - -void Ahuacatlset_in (FILE * in_str ,yyscan_t yyscanner ); - -FILE *Ahuacatlget_out (yyscan_t yyscanner ); - -void Ahuacatlset_out (FILE * out_str ,yyscan_t yyscanner ); - -int Ahuacatlget_leng (yyscan_t yyscanner ); - -char *Ahuacatlget_text (yyscan_t yyscanner ); - -int Ahuacatlget_lineno (yyscan_t yyscanner ); - -void Ahuacatlset_lineno (int line_number ,yyscan_t yyscanner ); - -YYSTYPE * Ahuacatlget_lval (yyscan_t yyscanner ); - -void Ahuacatlset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); - - YYLTYPE *Ahuacatlget_lloc (yyscan_t yyscanner ); - - void Ahuacatlset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int Ahuacatlwrap (yyscan_t yyscanner ); -#else -extern int Ahuacatlwrap (yyscan_t yyscanner ); -#endif -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (yyscan_t yyscanner ); -#else -static int input (yyscan_t yyscanner ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int Ahuacatllex \ - (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner); - -#define YY_DECL int Ahuacatllex \ - (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* --------------------------------------------------------------------------- - * language keywords - * --------------------------------------------------------------------------- */ - - yylval = yylval_param; - - yylloc = yylloc_param; - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - Ahuacatlensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - Ahuacatl_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - Ahuacatl_load_buffer_state(yyscanner ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 133 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_current_state != 132 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - - if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) - { - int yyl; - for ( yyl = 0; yyl < yyleng; ++yyl ) - if ( yytext[yyl] == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; - } - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -{ - return T_FOR; -} - YY_BREAK -case 2: -YY_RULE_SETUP -{ - return T_LET; -} - YY_BREAK -case 3: -YY_RULE_SETUP -{ - return T_FILTER; -} - YY_BREAK -case 4: -YY_RULE_SETUP -{ - return T_RETURN; -} - YY_BREAK -case 5: -YY_RULE_SETUP -{ - return T_COLLECT; -} - YY_BREAK -case 6: -YY_RULE_SETUP -{ - return T_SORT; -} - YY_BREAK -case 7: -YY_RULE_SETUP -{ - return T_LIMIT; -} - YY_BREAK -case 8: -YY_RULE_SETUP -{ - return T_ASC; -} - YY_BREAK -case 9: -YY_RULE_SETUP -{ - return T_DESC; -} - YY_BREAK -case 10: -YY_RULE_SETUP -{ - return T_IN; -} - YY_BREAK -case 11: -YY_RULE_SETUP -{ - return T_INTO; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * predefined type literals - * --------------------------------------------------------------------------- */ -case 12: -YY_RULE_SETUP -{ - return T_NULL; -} - YY_BREAK -case 13: -YY_RULE_SETUP -{ - return T_TRUE; -} - YY_BREAK -case 14: -YY_RULE_SETUP -{ - return T_FALSE; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * operators - * --------------------------------------------------------------------------- */ -case 15: -YY_RULE_SETUP -{ - return T_EQ; -} - YY_BREAK -case 16: -YY_RULE_SETUP -{ - return T_NE; -} - YY_BREAK -case 17: -YY_RULE_SETUP -{ - return T_GE; -} - YY_BREAK -case 18: -YY_RULE_SETUP -{ - return T_GT; -} - YY_BREAK -case 19: -YY_RULE_SETUP -{ - return T_LE; -} - YY_BREAK -case 20: -YY_RULE_SETUP -{ - return T_LT; -} - YY_BREAK -case 21: -YY_RULE_SETUP -{ - return T_ASSIGN; -} - YY_BREAK -case 22: -YY_RULE_SETUP -{ - return T_NOT; -} - YY_BREAK -case 23: -YY_RULE_SETUP -{ - return T_AND; -} - YY_BREAK -case 24: -YY_RULE_SETUP -{ - return T_OR; -} - YY_BREAK -case 25: -YY_RULE_SETUP -{ - return T_PLUS; -} - YY_BREAK -case 26: -YY_RULE_SETUP -{ - return T_MINUS; -} - YY_BREAK -case 27: -YY_RULE_SETUP -{ - return T_TIMES; -} - YY_BREAK -case 28: -YY_RULE_SETUP -{ - return T_DIV; -} - YY_BREAK -case 29: -YY_RULE_SETUP -{ - return T_MOD; -} - YY_BREAK -case 30: -YY_RULE_SETUP -{ - return T_QUESTION; -} - YY_BREAK -case 31: -YY_RULE_SETUP -{ - return T_COLON; -} - YY_BREAK -case 32: -YY_RULE_SETUP -{ - return T_EXPAND; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * punctuation - * --------------------------------------------------------------------------- */ -case 33: -YY_RULE_SETUP -{ - return T_COMMA; -} - YY_BREAK -case 34: -YY_RULE_SETUP -{ - return T_OPEN; -} - YY_BREAK -case 35: -YY_RULE_SETUP -{ - return T_CLOSE; -} - YY_BREAK -case 36: -YY_RULE_SETUP -{ - return T_DOC_OPEN; -} - YY_BREAK -case 37: -YY_RULE_SETUP -{ - return T_DOC_CLOSE; -} - YY_BREAK -case 38: -YY_RULE_SETUP -{ - return T_LIST_OPEN; -} - YY_BREAK -case 39: -YY_RULE_SETUP -{ - return T_LIST_CLOSE; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * literals - * --------------------------------------------------------------------------- */ -case 40: -YY_RULE_SETUP -{ - /* unquoted string */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext, yyleng, false); - return T_STRING; -} - YY_BREAK -case 41: -/* rule 41 can match eol */ -YY_RULE_SETUP -{ - /* string enclosed in backticks */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext + 1, yyleng - 2, true); - return T_STRING; -} - YY_BREAK -case 42: -/* rule 42 can match eol */ -YY_RULE_SETUP -{ - /* string enclosed in double quotes */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext + 1, yyleng - 2, true); - return T_QUOTED_STRING; -} - YY_BREAK -case 43: -/* rule 43 can match eol */ -YY_RULE_SETUP -{ - /* string enclosed in single quotes */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext + 1, yyleng - 2, true); - return T_QUOTED_STRING; -} - YY_BREAK -case 44: -YY_RULE_SETUP -{ - /* a numeric value */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext, yyleng, false); - return T_NUMBER; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * bind parameters - * --------------------------------------------------------------------------- */ -case 45: -YY_RULE_SETUP -{ - /* bind parameters must start with a @ - if followed by another @, this is a collection name parameter */ - yylval->strval = TRI_RegisterStringAql(yyextra, yytext + 1, yyleng - 1, false); - return T_PARAMETER; -} - YY_BREAK -/* --------------------------------------------------------------------------- - * whitespace etc. - * --------------------------------------------------------------------------- */ -case 46: -/* rule 46 can match eol */ -YY_RULE_SETUP -{ - /* whitespace is ignored */ -} - YY_BREAK -case 47: -YY_RULE_SETUP -{ - BEGIN(COMMENT); -} - YY_BREAK -case 48: -YY_RULE_SETUP -{ - BEGIN(INITIAL); -} - YY_BREAK -case 49: -YY_RULE_SETUP -{ - // eat comment in chunks -} - YY_BREAK -case 50: -YY_RULE_SETUP -{ - // eat the lone star -} - YY_BREAK -case 51: -/* rule 51 can match eol */ -YY_RULE_SETUP -{ - yylineno++; -} - YY_BREAK -case 52: -YY_RULE_SETUP -{ - yylineno++; -} - YY_BREAK -case 53: -YY_RULE_SETUP -{ - /* anything else is returned as it is */ - return (int) yytext[0]; -} - YY_BREAK -case 54: -YY_RULE_SETUP -ECHO; - YY_BREAK -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(COMMENT): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * Ahuacatllex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); - - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; - - if ( Ahuacatlwrap(yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of Ahuacatllex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = yyg->yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - Ahuacatlrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, (int) num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - Ahuacatlrestart(yyin ,yyscanner); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) Ahuacatlrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } - - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_current_state = yyg->yy_start; - - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 133 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) -{ - register int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - register char *yy_cp = yyg->yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 133 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 132); - - return yy_is_jam ? 0 : yy_current_state; -} - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif - -{ - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - *yyg->yy_c_buf_p = yyg->yy_hold_char; - - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; - ++yyg->yy_c_buf_p; - - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - Ahuacatlrestart(yyin ,yyscanner); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( Ahuacatlwrap(yyscanner ) ) - return EOF; - - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; - - if ( c == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * @param yyscanner The scanner object. - * @note This function does not reset the start condition to @c INITIAL . - */ - void Ahuacatlrestart (FILE * input_file , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! YY_CURRENT_BUFFER ){ - Ahuacatlensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - Ahuacatl_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - Ahuacatl_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); - Ahuacatl_load_buffer_state(yyscanner ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * @param yyscanner The scanner object. - */ - void Ahuacatl_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* TODO. We should be able to replace this entire function body - * with - * Ahuacatlpop_buffer_state(); - * Ahuacatlpush_buffer_state(new_buffer); - */ - Ahuacatlensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - Ahuacatl_load_buffer_state(yyscanner ); - - /* We don't actually know whether we did this switch during - * EOF (Ahuacatlwrap()) processing, but the only time this flag - * is looked at is after Ahuacatlwrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; -} - -static void Ahuacatl_load_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * @param yyscanner The scanner object. - * @return the allocated buffer state. - */ - YY_BUFFER_STATE Ahuacatl_create_buffer (FILE * file, int size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) Ahuacatlalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatl_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) Ahuacatlalloc(b->yy_buf_size + 2 ,yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatl_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - Ahuacatl_init_buffer(b,file ,yyscanner); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with Ahuacatl_create_buffer() - * @param yyscanner The scanner object. - */ - void Ahuacatl_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - Ahuacatlfree((void *) b->yy_ch_buf ,yyscanner ); - - Ahuacatlfree((void *) b ,yyscanner ); -} - -#ifndef __cplusplus -#ifndef _WIN32 -extern int isatty (int ); -#endif -#endif /* __cplusplus */ - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a Ahuacatlrestart() or at EOF. - */ - static void Ahuacatl_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) - -{ - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - Ahuacatl_flush_buffer(b ,yyscanner); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then Ahuacatl_init_buffer was _probably_ - * called from Ahuacatlrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * @param yyscanner The scanner object. - */ - void Ahuacatl_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - Ahuacatl_load_buffer_state(yyscanner ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * @param yyscanner The scanner object. - */ -void Ahuacatlpush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; - - Ahuacatlensure_buffer_stack(yyscanner); - - /* This block is copied from Ahuacatl_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from Ahuacatl_switch_to_buffer. */ - Ahuacatl_load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * @param yyscanner The scanner object. - */ -void Ahuacatlpop_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; - - Ahuacatl_delete_buffer(YY_CURRENT_BUFFER ,yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; - - if (YY_CURRENT_BUFFER) { - Ahuacatl_load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void Ahuacatlensure_buffer_stack (yyscan_t yyscanner) -{ - int num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (!yyg->yy_buffer_stack) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - yyg->yy_buffer_stack = (struct yy_buffer_state**)Ahuacatlalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatlensure_buffer_stack()" ); - - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } - - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)Ahuacatlrealloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatlensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE Ahuacatl_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) Ahuacatlalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatl_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - Ahuacatl_switch_to_buffer(b ,yyscanner ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to Ahuacatllex() will - * scan from a @e copy of @a str. - * @param yystr a NUL-terminated string to scan - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * Ahuacatl_scan_bytes() instead. - */ -YY_BUFFER_STATE Ahuacatl_scan_string (yyconst char * yystr , yyscan_t yyscanner) -{ - - return Ahuacatl_scan_bytes(yystr,strlen(yystr) ,yyscanner); -} - -/** Setup the input buffer state to scan the given bytes. The next call to Ahuacatllex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE Ahuacatl_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) Ahuacatlalloc(n ,yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in Ahuacatl_scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = Ahuacatl_scan_buffer(buf,n ,yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in Ahuacatl_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the user-defined data for this scanner. - * @param yyscanner The scanner object. - */ -YY_EXTRA_TYPE Ahuacatlget_extra (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyextra; -} - -/** Get the current line number. - * @param yyscanner The scanner object. - */ -int Ahuacatlget_lineno (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yylineno; -} - -/** Get the current column number. - * @param yyscanner The scanner object. - */ -int Ahuacatlget_column (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yycolumn; -} - -/** Get the input stream. - * @param yyscanner The scanner object. - */ -FILE *Ahuacatlget_in (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyin; -} - -/** Get the output stream. - * @param yyscanner The scanner object. - */ -FILE *Ahuacatlget_out (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyout; -} - -/** Get the length of the current token. - * @param yyscanner The scanner object. - */ -int Ahuacatlget_leng (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyleng; -} - -/** Get the current token. - * @param yyscanner The scanner object. - */ - -char *Ahuacatlget_text (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yytext; -} - -/** Set the user-defined data. This data is never touched by the scanner. - * @param user_defined The data to be associated with this scanner. - * @param yyscanner The scanner object. - */ -void Ahuacatlset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; -} - -/** Set the current line number. - * @param line_number - * @param yyscanner The scanner object. - */ -void Ahuacatlset_lineno (int line_number , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "Ahuacatlset_lineno called with no buffer" , yyscanner); - - yylineno = line_number; -} - -/** Set the current column. - * @param line_number - * @param yyscanner The scanner object. - */ -void Ahuacatlset_column (int column_no , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "Ahuacatlset_column called with no buffer" , yyscanner); - - yycolumn = column_no; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * @param yyscanner The scanner object. - * @see Ahuacatl_switch_to_buffer - */ -void Ahuacatlset_in (FILE * in_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = in_str ; -} - -void Ahuacatlset_out (FILE * out_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = out_str ; -} - -int Ahuacatlget_debug (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yy_flex_debug; -} - -void Ahuacatlset_debug (int bdebug , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = bdebug ; -} - -/* Accessor methods for yylval and yylloc */ - -YYSTYPE * Ahuacatlget_lval (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yylval; -} - -void Ahuacatlset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylval = yylval_param; -} - -YYLTYPE *Ahuacatlget_lloc (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yylloc; -} - -void Ahuacatlset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylloc = yylloc_param; -} - -/* User-visible API */ - -/* Ahuacatllex_init is special because it creates the scanner itself, so it is - * the ONLY reentrant function that doesn't take the scanner as the last argument. - * That's why we explicitly handle the declaration, instead of using our macros. - */ - -int Ahuacatllex_init(yyscan_t* ptr_yy_globals) - -{ - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) Ahuacatlalloc ( sizeof( struct yyguts_t ), NULL ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - return yy_init_globals ( *ptr_yy_globals ); -} - -/* Ahuacatllex_init_extra has the same functionality as Ahuacatllex_init, but follows the - * convention of taking the scanner as the last argument. Note however, that - * this is a *pointer* to a scanner, as it will be allocated by this call (and - * is the reason, too, why this function also must handle its own declaration). - * The user defined value in the first argument will be available to Ahuacatlalloc in - * the yyextra field. - */ - -int Ahuacatllex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) - -{ - struct yyguts_t dummy_yyguts; - - Ahuacatlset_extra (yy_user_defined, &dummy_yyguts); - - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) Ahuacatlalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in - yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - Ahuacatlset_extra (yy_user_defined, *ptr_yy_globals); - - return yy_init_globals ( *ptr_yy_globals ); -} - -static int yy_init_globals (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from Ahuacatllex_destroy(), so don't allocate here. - */ - - yyg->yy_buffer_stack = 0; - yyg->yy_buffer_stack_top = 0; - yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = (char *) 0; - yyg->yy_init = 0; - yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; - yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * Ahuacatllex_init() - */ - return 0; -} - -/* Ahuacatllex_destroy is for both reentrant and non-reentrant scanners. */ -int Ahuacatllex_destroy (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - Ahuacatl_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - Ahuacatlpop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - Ahuacatlfree(yyg->yy_buffer_stack ,yyscanner); - yyg->yy_buffer_stack = NULL; - - /* Destroy the start condition stack. */ - Ahuacatlfree(yyg->yy_start_stack ,yyscanner ); - yyg->yy_start_stack = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * Ahuacatllex() is called, initialization will occur. */ - yy_init_globals( yyscanner); - - /* Destroy the main struct (reentrant only). */ - Ahuacatlfree ( yyscanner , yyscanner ); - yyscanner = NULL; - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *Ahuacatlalloc (yy_size_t size , yyscan_t yyscanner) -{ - return (void *) malloc( size ); -} - -void *Ahuacatlrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void Ahuacatlfree (void * ptr , yyscan_t yyscanner) -{ - free( (char *) ptr ); /* see Ahuacatlrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - diff --git a/arangod/Documentation/user-manual.dox b/arangod/Documentation/user-manual.dox index 9f4caa000f..b6f2c0e014 100644 --- a/arangod/Documentation/user-manual.dox +++ b/arangod/Documentation/user-manual.dox @@ -384,10 +384,34 @@ ///
    ///
  • @ref UserManualActionsIntro
  • ///
  • @ref UserManualActionsHelloWorld
  • +///
  • @ref UserManualActionsMatches +///
      +///
    • @ref UserManualActionsMatchesExact
    • +///
    • @ref UserManualActionsMatchesPrefix
    • +///
    • @ref UserManualActionsMatchesParameterized
    • +///
    • @ref UserManualActionsMatchesConstraint
    • +///
    • @ref UserManualActionsMatchesOptional
    • +///
    • @ref UserManualActionsMatchesMethod
    • +///
    • @ref UserManualActionsMatching
    • +///
    +///
  • ///
  • @ref UserManualActionsHelloJson
  • -///
  • @ref UserManualActionsEcho
  • -///
  • @ref UserManualActionsDYO
  • -///
  • @ref UserManualActionsAdvanced
  • +///
  • @ref UserManualActionsContent +///
      +///
    • @ref UserManualActionsContentStatic
    • +///
    • @ref UserManualActionsContentAction
    • +///
    • @ref UserManualActionsContentController
    • +///
    • @ref UserManualActionsContentPrefix
    • +///
    +///
  • +///
  • @ref UserManualActionsReqRes
  • +///
  • @ref UserManualActionsAdvanced +///
      +///
    • @ref UserManualActionsAdvancedRedirects
    • +///
    • @ref UserManualActionsAdvancedBundles
    • +///
    • @ref UserManualActionsAdvancedMiddleware
    • +///
    +///
  • ///
/// /// @@ -488,8 +512,8 @@ /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello/world", -/// ........> callback: { +/// ........> url: { match: "/hello/world" }, +/// ........> content: { /// ........> contentType: "text/html", /// ........> body: "Hello World" }}); /// @endcode @@ -498,13 +522,186 @@ /// or call the internal reload function. /// /// @code -/// arangosh> require("internal").reloadRouting() +/// arangosh> require("org/arangodb/routing").reload() /// @endcode /// /// Now use the browser and access /// /// @LIT{http://localhost:8529/hello/world} /// +/// You should see the @LIT{Hello World} in our browser. +/// +/// @section UserManualActionsMatches Matching an URL +///////////////////////////////////////////////////// +/// +/// There are a lot of options for the @LIT{url} attribute. If you define +/// different routing for the same path, then the following simple rule is +/// applied in order to determine which match wins: If there are two matches, +/// then the more specific wins. I. e, if there is a wildcard match and an exact +/// match, the exact match is prefered. If there is a short and a long match, +/// the longer match wins. +/// +/// @subsection UserManualActionsMatchesExact Exact Match +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/world" } } +/// @endcode +/// +/// then the match must be exact. Only the request for @LIT{/hello/world} will +/// match, everything else, e. g. @LIT{/hello/world/my} or @LIT{/hello/world2}, +/// will not match. +/// +/// The following definition is a short-cut for an exact match. +/// +/// @code +/// { url: "/hello/world" } +/// @endcode +/// +/// @subsection UserManualActionsMatchesPrefix Prefix Match +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/world/*" } } +/// @endcode +/// +/// then the match can be a prefix match. The requests for @LIT{/hello/world}, +/// @LIT{/hello/world/my}, and @LIT{/hello/world/how/are/you} will all +/// match. However @LIT{/hello/world2} does not match. Prefix matches within an +/// URL part, i. e. @LIT{/hello/world*}, are not allowed. The wildcard must +/// occur at the end, i. e. +/// +/// @code +/// /hello/*/world +/// @endcode +/// +/// is also disallowed. +/// +/// If you define two routes +/// +/// @code +/// { url: { match: "/hello/world/*" } } +/// { url: { match: "/hello/world/emil" } } +/// @endcode +/// +/// then the second route will be used for @LIT{/hello/world/emil} because it is +/// more specific. +/// +/// @subsection UserManualActionsMatchesParameterized Parameterized Match +/// +/// A parameterized match is similar to a prefix match, but the parameters are +/// also allowed inside the URL path. +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/:name/world" } } +/// @endcode +/// +/// then the URL must have three parts, the first part being @LIT{hello} and the +/// third part @LIT{world}. For example, @LIT{/hello/emil/world} will match, +/// while @LIT{/hello/emil/meyer/world} will not. +/// +/// @subsection UserManualActionsMatchesConstraint Constraint Match +/// +/// A constraint match is similar to a parameterized match, but the parameters +/// carries a constraint. +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/:name/world", constraint: { name: "/[a-z]+/" } } +/// @endcode +/// +/// then the URL must have three parts, the first part being @LIT{hello} and the +/// third part @LIT{world}. The second part must be all lowercase. +/// +/// It is possible to use more then one constraint for the same URL part. +/// +/// @code +/// { url: { match: "/hello/:name|:id/world", +/// constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } } +/// @endcode +/// +/// @subsection UserManualActionsMatchesOptional Optional Match +/// +/// An optional match is similar to a parameterized match, but the last +/// parameter is optional. +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/:name?", constraint: { name: "/[a-z]+/" } } +/// @endcode +/// +/// then the URL @LIT{/hello} and @LIT{/hello/emil} will match. +/// +/// If the definitions are +/// +/// @code +/// { url: { match: "/hello/world" } } +/// { url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } } +/// { url: { match: "/hello/*" } } +/// @endcode +/// +/// then the URL @LIT{/hello/world} will be matched by the first route, because it +/// is the most specific. The URL @LIT{/hello/you} will be matched by the second +/// route, because it is more specific than the prefix match. +/// +/// @subsection UserManualActionsMatchesMethod Method Restriction +/// +/// You can restrict the match to specific methods. +/// +/// If the definition is +/// +/// @code +/// { url: { match: "/hello/world", methods: [ "post", "put" ] } +/// @endcode +/// +/// then only @LIT{POST} and @LIT{PUT} requests will match. +/// +/// @subsection UserManualActionsMatching More on Matching +/// +/// Remember that the more specific match wins. +/// +/// - A match without parameter or wildcard is more specific than a match with +/// parameters or wildcard. +/// - A match with parameter is more specific than a match with a wildcard. +/// - If there is more than one parameter, specificity is applied from left to +/// right. +/// +/// Consider the following definitions +/// +/// @code +/// (1) { url: { match: "/hello/world" } } +/// (2) { url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } } +/// (3) { url: { match: "/:something/world" } +/// (4) { url: { match: "/hello/*" } } +/// @endcode +/// +/// Then +/// +/// - @LIT{/hello/world} is match by (1) +/// - @LIT{/hello/emil} is match by (2) +/// - @LIT{/your/world} is match by (3) +/// - @LIT{/hello/you} is match by (4) +/// +/// You can write the following document into the @LIT{_routing} collection +/// to test the above examples. +/// +/// @code +/// { +/// routes: [ +/// { url: { match: "/hello/world" }, content: "route 1" }, +/// { url: { match: "/hello/:name|:id", constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } }, content: "route 2" }, +/// { url: { match: "/:something/world" }, content: "route 3" }, +/// { url: { match: "/hello/*" }, content: "route 4" }, +/// ] +/// } +/// @endcode +/// /// @section UserManualActionsHelloJson A Hello World Example for JSON ////////////////////////////////////////////////////////////////////// /// @@ -512,8 +709,8 @@ /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello/json", -/// ........> callback: { +/// ........> url: "/hello/json", +/// ........> content: { /// ........> contentType: "application/json", /// ........> body: "{ \"hello\" : \"world\" }" }}); /// arangosh> require("internal").reloadRouting() @@ -534,18 +731,165 @@ /// { "hello" : "world" } /// @endcode /// -/// @section UserManualActionsEcho A Dynamic Example -//////////////////////////////////////////////////// +/// @section UserManualActionsContent Delivering Content +//////////////////////////////////////////////////////// /// -/// The above examples deliver static content, which is fine for an example. -/// But the real power of actions lies in dynamic actions which use JavaScript -/// to construct the result. +/// There are a lot of different ways on how to deliver content. We have already +/// seen the simplest one, where static content is delivered. The fun, however, +/// starts when delivering dynamic content. +/// +/// @subsection UserManualActionsContentStatic Static Content +/// +/// You can specify a body and a content-type. +/// +/// @code +/// { content: { +/// contentType: "text/html", +/// body: "Hallo World" +/// } +/// } +/// @endcode +/// +/// If the content type is @LIT{text/plain} then you can use the short-cut +/// +/// @code +/// { content: "Hallo World" } +/// @endcode +/// +/// @subsection UserManualActionsContentAction A Simple Action +/// +/// The simplest dynamic action is: +/// +/// @code +/// { action: { controller: "org/arangodb/actions", do: "echoRequest" } } +/// @endcode +/// +/// It is not possible to store functions directly in the routing table, but you +/// can call functions defined in modules. In the above example the function can +/// be accessed from JavaScript as: +/// +/// @LIT{require("org/arangodb/actions").echoRequest} +/// +/// The function @LIT{echoRequest} is pre-defined. It takes the request objects +/// and echos it in the response. +/// +/// The signature of such a function must be +/// +/// @code +/// function (req, res, options, next) +/// @endcode +/// +/// For example +/// +/// @code +/// arangosh> db._routing.save({ +/// ........> url: "/hello/echo", +/// ........> action: "org/arangodb/actions/echoRequest" }); +/// @endcode +/// +/// Reload the routing and check +/// +/// @LIT{http://127.0.0.1:8529/hello/echo} +/// +/// You should see something like +/// +/// @code +/// { +/// "request": { +/// "path": "/hello/echo", +/// "headers": { +/// "accept-encoding": "gzip, deflate", +/// "accept-language": "de-de,de;q=0.8,en-us;q=0.5,en;q=0.3", +/// "connection": "keep-alive", +/// "content-length": "0", +/// "host": "localhost:8529", +/// "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0" +/// }, +/// "requestType": "GET", +/// "parameters": { } +/// }, +/// "options": { } +/// } +/// @endcode +/// +/// The request might contain @LIT{path}, @LIT{prefix}, @LIT{suffix}, and +/// @LIT{urlParameters} attributes. @LIT{path} is the complete path as supplied +/// by the user and always available. If a prefix was matched, then this prefix +/// is stored in the attribute @LIT{prefix} and the remaining URL parts are +/// stored as an array in @LIT{suffix}. If one or more parameters were matched, +/// then the parameter values are stored in @LIT{urlParameters}. +/// +/// For example, if the url description is +/// +/// @code +/// { url: { match: "/hello/:name/:action" } } +/// @endcode +/// +/// and you request the path @LIT{/hello/emil/jump}, then the request object +/// will contain the following attribute +/// +/// @code +/// urlParameters: { name: "emil", action: "jump" } } +/// @endcode +/// +/// @subsection UserManualActionsContentController Action Controller +/// +/// As an alternative to the simple action, you can use controllers. A +/// controller is a module, defines the function @LIT{get}, @LIT{put}, +/// @LIT{post}, @LIT{delete}, @LIT{head}, @LIT{patch}. If a request of +/// the corresponding type is matched, the function will be called. +/// +/// For example +/// +/// @code +/// arangosh> db._routing.save({ +/// ........> url: "/hello/echo", +/// ........> action: { controller: "org/arangodb/actions/echoController" } }); +/// @endcode +/// +/// @subsection UserManualActionsContentPrefix Prefix Action Controller +/// +/// The controller is selected when the definition is read. There is a +/// more flexible, but slower and maybe insecure variant, the prefix +/// controller. +/// +/// Assume that the url is a prefix match +/// +/// @code +/// { url: { match: /hello/*" } } +/// @endcode +/// +/// You can use +/// +/// @code +/// { action: { prefixController: "org/arangodb/actions" } } +/// @endcode +/// +/// to define a prefix controller. If the URL @LIT{/hello/echoController} is +/// given, then the module @LIT{org/arangodb/actions/echoController} is used. +/// +/// If you use an prefix controller, you should make certain that no unwanted +/// actions are available under the prefix. +/// +/// The definition +/// +/// @code +/// { action: "org/arangodb/actions" } +/// @endcode +/// +/// is a short-cut for a prefix controller definition. +/// +/// @section UserManualActionsReqRes Requests and Responses +/////////////////////////////////////////////////////////// +/// +/// The controller must define handler functions which take a request object and +/// fill the response object. /// /// A very simple example is the function @LIT{echoRequest} defined in /// the module @LIT{org/arangodb/actions}. /// /// @code -/// function (req, res, next, options) { +/// function (req, res, options, next) { /// var result; /// /// result = { request: req, options: options }; @@ -556,21 +900,12 @@ /// } /// @endcode /// -/// That functions accepts a request and returns this request as JSON object. -/// -/// It is not possible to store functions directly in the routing table, but you -/// can call functions defined in modules. In the above example the function can -/// be accessed from JavaScript as: -/// -/// @LIT{require("org/arangodb/actions").echoRequest} -/// -/// You can use it in the routing collection by specifying the name -/// @LIT{"org/arangodb/actions/echoRequest"}. +/// Install it as /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello/echo", -/// ........> callback: "org/arangodb/actions/echoRequest" }); +/// ........> url: "/echo", +/// ........> action: "org/arangodb/actions/echoRequest" }); /// @endcode /// /// Reload the routing and check @@ -603,30 +938,30 @@ /// } /// @endcode /// -/// Please note that +/// Note that /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello/echo", -/// ........> callback: "org/arangodb/actions/echoRequest" }); +/// ........> url: "/echo", +/// ........> action: "org/arangodb/actions/echoRequest" }); /// @endcode /// /// is a short-cut for /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello/echo-long", -/// ........> callback: { -/// ........> for: "org/arangodb/actions", -/// ........> do: "echoRequest" }}); +/// ........> url: "/echo", +/// ........> action: { do: "org/arangodb/actions/echoRequest" } }); /// @endcode /// -/// The verbose form allows you to pass options to the called function: +/// The latter form allows you to pass options to the called function: /// /// @code -/// arangosh> a = db._routing.firstExample({path: "/hello/echo-long"}); -/// arangosh> a.callback.options = { option: "my option1" }; -/// arangosh> db._replace(a, a); +/// arangosh> db._routing.save({ +/// ........> url: "/echo", +/// ........> action: { +/// ........> do: "org/arangodb/actions/echoRequest", +/// ........> options: { "Hallo": "World" } } }); /// @endcode /// /// You should now see the options in the result. @@ -643,98 +978,68 @@ /// } /// @endcode /// -/// @section UserManualActionsDYO Define Your Own Callback -////////////////////////////////////////////////////////// -/// -/// You can define your own callbacks by adding a new module to ArangoDB. In -/// order to avoid name clashes modules should be named -/// -/// @LIT{tld/domain/modulename} -/// -/// where @LIT{domain.tld} is your domain name. For development you can store -/// your code in files in the filesystem, see @ref MODULES_PATH and -/// @ref MODULES. -/// -/// However, when you are finished with the development, you can rollout the -/// module code by storing it inside the @LIT{_modules} collection. -/// -/// Create a file @LIT{hello-world.js} with the following content: -/// -/// @code -/// var actions = require("org/arangodb/actions"); -/// -/// exports.helloWorld = function (req, res) { -/// res.contentType = "text/html"; -/// res.responseCode = actions.HTTP_OK; -/// res.body = "Hello World!"; -/// }; -/// @endcode -/// -/// Load this file as new module @LIT{de/celler/hello-world} into the database -/// -/// @code -/// arangosh> require("internal").defineModule("de/celler/hello-world", "hello-world.js"); -/// @endcode -/// -/// Define a corresponding routing -/// -/// @code -/// arangosh> db._routing.save({ -/// ........> path: "/my/echo", -/// ........> callback: "de/celler/hello-world/helloWorld" }); -/// arangosh> require("internal").reloadRouting() -/// @endcode -/// -/// and check it -/// -/// @LIT{http://localhost:8529/my/echo} -/// /// @section UserManualActionsAdvanced Advanced Usages ////////////////////////////////////////////////////// /// /// For detailed information see the reference manual. /// -/// @subsection UserManualActionsAdvancedPrefix Using Prefixes -////////////////////////////////////////////////////////////// +/// @subsection UserManualActionsAdvancedRedirects Redirects /// -/// All the above definitions require an exact match. If you set the -/// @LIT{prefix} attribute to @LIT{true}, additional paths are ignored and the -/// URL also results in a match. +/// Use the following for a permanent redirect: /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/hello", -/// ........> prefix: true, -/// ........> callback: "org/arangodb/actions/echoRequest" }); +/// ........> url: "/", +/// ........> action: { +/// ........> do: "org/arangodb/actions/redirectRequest", +/// ........> options: { +/// ........> permanently: true, +/// ........> destination: "http://somewhere.else/" } } }); /// @endcode /// -/// Now try +/// @subsection UserManualActionsAdvancedBundles Routing Bundles /// -/// @LIT{http://localhost:8529/hello/this/is/ignored/but/available/in/path} -/// -/// The complete path is available in the @LIT{path} attribute, while the -/// matched prefix is available in the @LIT{prefix} attribute. +/// Instead of adding all routes for package separately, you can +/// specify a bundle. /// /// @code /// { -/// "request": { -/// "prefix": "/hello", -/// "path": "/hello/this/is/ignored/but/available/in/path", -/// ... -/// }, -/// "options": { } +/// routes: [ +/// { url: "/url1", content: "..." }, +/// { url: "/url2", content: "..." }, +/// { url: "/url3", content: "..." }, +/// ... +/// ] /// } /// @endcode /// +/// The advantage is, that you can put all your routes into one document +/// and use a common prefix. +/// +/// @code +/// { +/// urlPrefix: "/test", +/// +/// routes: [ +/// { url: "/url1", content: "..." }, +/// { url: "/url2", content: "..." }, +/// { url: "/url3", content: "..." }, +/// ... +/// ] +/// } +/// @endcode +/// +/// will define the URL @LIT{/test/url1}, @LIT{/test/url2}, and +/// @LIT{/test/url3}. +/// /// @subsection UserManualActionsAdvancedMiddleware Writing Middleware -////////////////////////////////////////////////////////////////////// /// /// Assume, you want to log every request. In this case you can easily define /// an action for the whole url-space @LIT{/}. This action simply logs /// the requests, calls the next in line, and logs the response. /// /// @code -/// exports.logRequest = function (req, res, next, options) { +/// exports.logRequest = function (req, res, options, next) { /// console.log("received request: %s", JSON.stringify(req)); /// next(); /// console.log("produced response: %s", JSON.stringify(res)); @@ -747,23 +1052,10 @@ /// /// @code /// arangosh> db._routing.save({ -/// ........> path: "/", -/// ........> topdown: true, -/// ........> prefix: true, -/// ........> callback: "org/arangodb/actions/logRequest" }); -/// @endcode -/// -/// @subsection UserManualActionsAdvancedeRedirect Redirects -//////////////////////////////////////////////////////////// -/// -/// Use the following for a permanent redirect: -/// -/// @code -/// arangosh> db._routing.save({ -/// ........> path: "/", -/// ........> topdown: true, -/// ........> prefix: true, -/// ........> callback: { redirect: "http://somewhere.else.org/hallo" }); +/// ........> middleware: [ +/// ........> { url: { match: "/*" }, action: "org/arangodb/actions/logRequest" } +/// ........> ] +/// ........> }); /// @endcode //////////////////////////////////////////////////////////////////////////////// @@ -774,5 +1066,5 @@ // Local Variables: // mode: c++ // mode: outline-minor -// outline-regexp: "^\\(/// @brief\\|/// {@inheritDoc}\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)" +// outline-regexp: "\\(/// @brief\\|/// {@inheritDoc}\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @section\\|/// @subsection\\|/// @\\}\\)" // End: diff --git a/config/config.guess b/config/config.guess deleted file mode 100755 index aa04f04bda..0000000000 --- a/config/config.guess +++ /dev/null @@ -1,1534 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2011, 2012 Free Software Foundation, Inc. - -timestamp='2012-06-17' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see . -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner. Please send patches (context -# diff format) to and include a ChangeLog -# entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH="x86_64" - fi - fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep -q __LP64__ - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-gnu - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - echo ${UNAME_MACHINE}-unknown-linux-gnueabi - else - echo ${UNAME_MACHINE}-unknown-linux-gnueabihf - fi - fi - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - i*86:Linux:*:*) - LIBC=gnu - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - or32:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-gnu - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu - exit ;; - x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. - # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - i386) - eval $set_cc_for_build - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - UNAME_PROCESSOR="x86_64" - fi - fi ;; - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NEO-?:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} - exit ;; - NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; - x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx - exit ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - c34*) - echo c34-convex-bsd - exit ;; - c38*) - echo c38-convex-bsd - exit ;; - c4*) - echo c4-convex-bsd - exit ;; - esac -fi - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/config/config.sub b/config/config.sub deleted file mode 100755 index aa2cf19b81..0000000000 --- a/config/config.sub +++ /dev/null @@ -1,1782 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2011, 2012 Free Software Foundation, Inc. - -timestamp='2012-06-17' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see . -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Please send patches to . Submit a context -# diff and a properly formatted GNU ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*178) - os=-lynxos178 - ;; - -lynx*5) - os=-lynxos5 - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | be32 | be64 \ - | bfin \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | epiphany \ - | fido | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 \ - | ns16k | ns32k \ - | open8 \ - | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pyramid \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | we32k \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - c54x) - basic_machine=tic54x-unknown - ;; - c55x) - basic_machine=tic55x-unknown - ;; - c6x) - basic_machine=tic6x-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - strongarm | thumb | xscale) - basic_machine=arm-unknown - ;; - xgate) - basic_machine=$basic_machine-unknown - os=-none - ;; - xscaleeb) - basic_machine=armeb-unknown - ;; - - xscaleel) - basic_machine=armel-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pyramid-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze) - basic_machine=microblaze-xilinx - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i386-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc | ppcbe) basic_machine=powerpc-unknown - ;; - ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tile*) - basic_machine=$basic_machine-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux - ;; - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -bitrig* | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-android* \ - | -linux-newlib* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -nacl*) - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - hexagon-*) - os=-elf - ;; - tic54x-*) - os=-coff - ;; - tic55x-*) - os=-coff - ;; - tic6x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -cnk*|-aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/config/depcomp b/config/depcomp deleted file mode 100755 index 0544c68351..0000000000 --- a/config/depcomp +++ /dev/null @@ -1,780 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2012-07-12.20; # UTC - -# Copyright (C) 1999-2012 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by 'PROGRAMS ARGS'. - object Object file output by 'PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -## The second -e expression handles DOS-style file names with drive letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the "deleted header file" problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. - tr ' ' "$nl" < "$tmpdepfile" | -## Some versions of gcc put a space before the ':'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like '#:fec' to the end of the - # dependency line. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ - tr "$nl" ' ' >> "$depfile" - echo >> "$depfile" - - # The second pass generates a dummy entry for each header file. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -xlc) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts '$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependent.h'. - # Do two passes, one to just change these to - # '$object: dependent.h' and one to simply 'dependent.h:'. - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -icc) - # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. - # However on - # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c - # ICC 7.0 will fill foo.d with something like - # foo.o: sub/foo.c - # foo.o: sub/foo.h - # which is wrong. We want - # sub/foo.o: sub/foo.c - # sub/foo.o: sub/foo.h - # sub/foo.c: - # sub/foo.h: - # ICC 7.1 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\': - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - # tcc 0.9.26 (FIXME still under development at the moment of writing) - # will emit a similar output, but also prepend the continuation lines - # with horizontal tabulation characters. - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form 'foo.o: dependent.h', - # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. - # Do two passes, one to just change these to - # '$object: dependent.h' and one to simply 'dependent.h:'. - sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ - < "$tmpdepfile" > "$depfile" - sed ' - s/[ '"$tab"'][ '"$tab"']*/ /g - s/^ *// - s/ *\\*$// - s/^[^:]*: *// - /^$/d - /:$/d - s/$/ :/ - ' < "$tmpdepfile" >> "$depfile" - rm -f "$tmpdepfile" - ;; - -## The order of this option in the case statement is important, since the -## shell code in configure will try each of these formats in the order -## listed in this file. A plain '-MD' option would be understood by many -## compilers, so we must ensure this comes after the gcc and icc options. -pgcc) - # Portland's C compiler understands '-MD'. - # Will always output deps to 'file.d' where file is the root name of the - # source file under compilation, even if file resides in a subdirectory. - # The object file name does not affect the name of the '.d' file. - # pgcc 10.2 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\' : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - # Use the source, not the object, to determine the base name, since - # that's sadly what pgcc will do too. - base=`echo "$source" | sed -e 's|^.*/||' -e 's/\.[-_a-zA-Z0-9]*$//'` - tmpdepfile="$base.d" - - # For projects that build the same source file twice into different object - # files, the pgcc approach of using the *source* file root name can cause - # problems in parallel builds. Use a locking strategy to avoid stomping on - # the same $tmpdepfile. - lockdir="$base.d-lock" - trap "echo '$0: caught signal, cleaning up...' >&2; rm -rf $lockdir" 1 2 13 15 - numtries=100 - i=$numtries - while test $i -gt 0 ; do - # mkdir is a portable test-and-set. - if mkdir $lockdir 2>/dev/null; then - # This process acquired the lock. - "$@" -MD - stat=$? - # Release the lock. - rm -rf $lockdir - break - else - ## the lock is being held by a different process, - ## wait until the winning process is done or we timeout - while test -d $lockdir && test $i -gt 0; do - sleep 1 - i=`expr $i - 1` - done - fi - i=`expr $i - 1` - done - trap - 1 2 13 15 - if test $i -le 0; then - echo "$0: failed to acquire lock after $numtries attempts" >&2 - echo "$0: check lockdir '$lockdir'" >&2 - exit 1 - fi - - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | - sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" - # Add 'dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in 'foo.d' instead, so we check for that too. - # Subdirectories are respected. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - - if test "$libtool" = yes; then - # With Tru64 cc, shared objects can also be used to make a - # static library. This mechanism is used in libtool 1.4 series to - # handle both shared and static libraries in a single compilation. - # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. - # - # With libtool 1.5 this exception was removed, and libtool now - # generates 2 separate objects for the 2 libraries. These two - # compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 - tmpdepfile2=$dir$base.o.d # libtool 1.5 - tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 - tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.o.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - tmpdepfile4=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test "$stat" = 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/'"$tab"'\1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/'"$tab"'/ - G - p -}' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for ':' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. - "$@" $dashmflag | - sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - tr ' ' "$nl" < "$tmpdepfile" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E | - sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | - sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" - echo "$tab" >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/js/actions/system/api-system.js b/js/actions/system/api-system.js index 558647f2c7..6fc5f99172 100644 --- a/js/actions/system/api-system.js +++ b/js/actions/system/api-system.js @@ -43,55 +43,74 @@ /// @brief routing function //////////////////////////////////////////////////////////////////////////////// -function Routing (req, res) { - var callbacks; - var current; - var i; - var next; + function Routing (req, res) { + var execute; + var next; + var path = req.suffix.join("/"); - callbacks = actions.routing(req.requestType, req.suffix); - current = 0; + action = actions.firstRouting(req.requestType, req.suffix); - next = function () { - var callback; + execute = function () { + if (action.route === undefined) { + actions.resultNotImplemented(req, res, "unknown path '" + path + "'"); + return; + } - if (callbacks.length <= current) { - actions.resultNotImplemented(req, res, - "unknown path '" + req.suffix.join("/") + "'"); - return; + if (action.route.path !== undefined) { + req.path = action.route.path; + } + else { + delete req.path; + } + + if (action.prefix !== undefined) { + req.prefix = action.prefix; + } + else { + delete req.prefix; + } + + if (action.suffix !== undefined) { + req.suffix = action.suffix; + } + else { + delete req.suffix; + } + + if (action.urlParameters !== undefined) { + req.urlParameters = action.urlParameters; + } + else { + req.urlParameters = {}; + } + + action.route.callback.controller(req, res, action.route.callback.options, next); } - callback = callbacks[current++]; + next = function () { + action = actions.nextRouting(action); + execute(); + } - if (callback == null) { - actions.resultNotImplemented(req, res, - "not implemented '" + req.suffix.join("/") + "'"); - } - else { - req.prefix = callback.path; - callback.func(req, res, next, callback.options); - } + execute(); } - next(); -} + actions.defineHttp({ + url : "", + prefix : true, + context : "admin", + callback : Routing + }); -actions.defineHttp({ - url : "", - prefix : true, - context : "admin", - callback : Routing -}); - -actions.defineHttp({ - url : "_admin/reloadRouting", - context : "admin", - prefix : false, - callback : function (req, res) { - internal.executeGlobalContextFunction("require(\"org/arangodb/actions\").reloadRouting()"); - actions.resultOk(req, res, actions.HTTP_OK); - } -}); + actions.defineHttp({ + url : "_admin/routing/reload", + context : "admin", + prefix : false, + callback : function (req, res) { + internal.executeGlobalContextFunction("require(\"org/arangodb/actions\").reloadRouting()"); + actions.resultOk(req, res, actions.HTTP_OK); + } + }); //////////////////////////////////////////////////////////////////////////////// /// @} @@ -106,39 +125,6 @@ actions.defineHttp({ /// @{ //////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/// @brief returns redirection to index page -//////////////////////////////////////////////////////////////////////////////// - - function AdminRedirect (req, res) { - var dest = "/_admin/html/index.html"; - - res.responseCode = actions.HTTP_MOVED_PERMANENTLY; - res.contentType = "text/html"; - - res.body = "Moved

Moved

This page has moved to " - + dest - + ".

"; - - res.headers = { location : dest }; - } - - actions.defineHttp({ - url : "", - context : "admin", - prefix : false, - callback : AdminRedirect - }); - - actions.defineHttp({ - url : "_admin", - context : "admin", - prefix : false, - callback : AdminRedirect - }); - //////////////////////////////////////////////////////////////////////////////// /// @fn JSF_GET_admin_time /// @brief returns the system time @@ -151,14 +137,14 @@ actions.defineHttp({ /// current system time as a Unix timestamp with microsecond precision. //////////////////////////////////////////////////////////////////////////////// -actions.defineHttp({ - url : "_admin/time", - context : "admin", - prefix : false, - callback : function (req, res) { - actions.resultOk(req, res, actions.HTTP_OK, { time : internal.time() }); - } -}); + actions.defineHttp({ + url : "_admin/time", + context : "admin", + prefix : false, + callback : function (req, res) { + actions.resultOk(req, res, actions.HTTP_OK, { time : internal.time() }); + } + }); //////////////////////////////////////////////////////////////////////////////// /// @fn JSF_GET_admin_echo @@ -177,16 +163,16 @@ actions.defineHttp({ /// - @LIT{parameters}: list of URL parameters received //////////////////////////////////////////////////////////////////////////////// -actions.defineHttp({ - url : "_admin/echo", - context : "admin", - prefix : true, - callback : function (req, res) { - res.responseCode = actions.HTTP_OK; - res.contentType = "application/json; charset=utf-8"; - res.body = JSON.stringify(req); - } -}); + actions.defineHttp({ + url : "_admin/echo", + context : "admin", + prefix : true, + callback : function (req, res) { + res.responseCode = actions.HTTP_OK; + res.contentType = "application/json; charset=utf-8"; + res.body = JSON.stringify(req); + } + }); //////////////////////////////////////////////////////////////////////////////// /// @fn JSF_GET_admin_status diff --git a/js/client/client.js b/js/client/client.js index dce8471314..7b3f16c7ab 100755 --- a/js/client/client.js +++ b/js/client/client.js @@ -406,10 +406,24 @@ function help () { internal.reloadRouting = function () { if (typeof arango !== 'undefined') { - arango.POST("/_admin/reloadRouting", ""); + arango.POST("/_admin/routing/reload", ""); } }; +//////////////////////////////////////////////////////////////////////////////// +/// @brief rebuilds the routing cache +//////////////////////////////////////////////////////////////////////////////// + + internal.routingCache = function () { + var result; + + if (typeof arango !== 'undefined') { + result = arango.GET("/_admin/routing/routes", ""); + } + + return result; + }; + //////////////////////////////////////////////////////////////////////////////// /// @} //////////////////////////////////////////////////////////////////////////////// diff --git a/js/client/js-client.h b/js/client/js-client.h deleted file mode 100644 index 9a43c78476..0000000000 --- a/js/client/js-client.h +++ /dev/null @@ -1,2634 +0,0 @@ -const char* JS_client_client[] = { - "/*jslint indent: 2,", - " nomen: true,", - " maxlen: 100,", - " sloppy: true,", - " vars: true,", - " white: true,", - " plusplus: true */", - "/*global require, arango, db, edges, ModuleCache, Module */", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief ArangoShell client API", - "///", - "/// @file", - "///", - "/// DISCLAIMER", - "///", - "/// Copyright 2012 triagens GmbH, Cologne, Germany", - "///", - "/// Licensed under the Apache License, Version 2.0 (the \"License\");", - "/// you may not use this file except in compliance with the License.", - "/// You may obtain a copy of the License at", - "///", - "/// http://www.apache.org/licenses/LICENSE-2.0", - "///", - "/// Unless required by applicable law or agreed to in writing, software", - "/// distributed under the License is distributed on an \"AS IS\" BASIS,", - "/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "/// See the License for the specific language governing permissions and", - "/// limitations under the License.", - "///", - "/// Copyright holder is triAGENS GmbH, Cologne, Germany", - "///", - "/// @author Achim Brandt", - "/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoError", - "// -----------------------------------------------------------------------------", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- constructors and destructors", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief constructor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function ArangoError (error) {", - " if (error !== undefined) {", - " this.error = error.error;", - " this.code = error.code;", - " this.errorNum = error.errorNum;", - " this.errorMessage = error.errorMessage;", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints an error", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoError.prototype._PRINT = function() {", - " internal.output(this.toString());", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief toString function", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoError.prototype.toString = function() {", - " var result = \"\";", - "", - " if (internal.COLOR_OUTPUT) {", - " result = internal.COLOR_BRIGHT + \"Error: \" + internal.COLOR_OUTPUT_RESET;", - " }", - " else {", - " result = \"Error: \";", - " }", - "", - " result += \"[\" + this.code + \":\" + this.errorNum + \"] \" + this.errorMessage;", - "", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints an error", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoError.prototype.toString = function() {", - " var errorNum = this.errorNum;", - " var errorMessage = this.errorMessage;", - "", - " return \"[ArangoError \" + errorNum + \": \" + errorMessage + \"]\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"arangosh\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleArangosh", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "ModuleCache[\"/arangosh\"] = new Module(\"/arangosh\");", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = ModuleCache[\"/arangosh\"].exports;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private variables", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief help texts", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.HELP = \"\";", - " client.helpQueries = \"\";", - " client.helpArangoDatabase = \"\";", - " client.helpArangoCollection = \"\";", - " client.helpArangoQueryCursor = \"\";", - " client.helpArangoStatement = \"\";", - " client.helpExtended = \"\";", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a formatted type string for object", - "/// ", - "/// If the object has an id, it will be included in the string.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.getIdString = function (object, typeName) {", - " var result = \"[object \" + typeName;", - " ", - " if (object._id) {", - " result += \":\" + object._id;", - " }", - " else if (object.data && object.data._id) {", - " result += \":\" + object.data._id;", - " }", - "", - " result += \"]\";", - "", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief handles error results", - "/// ", - "/// throws an exception in case of an an error", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.checkRequestResult = function (requestResult) {", - " if (requestResult === undefined) {", - " requestResult = {", - " \"error\" : true,", - " \"code\" : 0,", - " \"errorNum\" : 0,", - " \"errorMessage\" : \"Unknown error. Request result is empty\"", - " };", - " }", - " ", - " if (requestResult.error !== undefined && requestResult.error) { ", - " throw new ArangoError(requestResult);", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief create a formatted headline text ", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.createHelpHeadline = function (text) {", - " var i;", - " var p = \"\";", - " var x = parseInt(Math.abs(78 - text.length) / 2);", - "", - " for (i = 0; i < x; ++i) {", - " p += \"-\";", - " }", - " ", - " return \"\\n\" + p + \" \" + text + \" \" + p + \"\\n\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- public functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief turn off pretty printing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function print_plain (data) {", - " var internal = require(\"internal\");", - "", - " var p = internal.PRETTY_PRINT;", - " internal.PRETTY_PRINT = false;", - "", - " var c = internal.COLOR_OUTPUT;", - " internal.COLOR_OUTPUT = false;", - " ", - " try {", - " internal.print(data);", - "", - " internal.PRETTY_PRINT = p;", - " internal.COLOR_OUTPUT = c;", - " }", - " catch (e) {", - " internal.PRETTY_PRINT = p;", - " internal.COLOR_OUTPUT = c;", - "", - " throw e.message; ", - " } ", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief start pretty printing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function start_pretty_print () {", - " var internal = require(\"internal\");", - "", - " if (! internal.PRETTY_PRINT) {", - " internal.print(\"using pretty printing\");", - " internal.PRETTY_PRINT = true;", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief stop pretty printing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function stop_pretty_print () {", - " var internal = require(\"internal\");", - "", - " if (internal.PRETTY_PRINT) {", - " internal.PRETTY_PRINT = false;", - " internal.print(\"stop pretty printing\");", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief start paging", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function start_pager () {", - " var internal = require(\"internal\");", - "", - " internal.start_pager();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief stop paging", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function stop_pager () {", - " var internal = require(\"internal\");", - " ", - " internal.stop_pager();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief start pretty printing with optional color", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function start_color_print (color) {", - " var internal = require(\"internal\");", - "", - " if (typeof(color) === \"string\") {", - " internal.COLOR_OUTPUT_DEFAULT = color;", - " }", - " else {", - " internal.COLOR_OUTPUT_DEFAULT = internal.COLOR_BRIGHT;", - " }", - "", - " internal.COLOR_OUTPUT = true;", - "", - " internal.print(\"start \"", - " + internal.COLOR_OUTPUT_DEFAULT", - " + \"color\" ", - " + internal.COLOR_OUTPUT_RESET", - " + \" printing\");", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief stop pretty printing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function stop_color_print () {", - " var internal = require(\"internal\");", - "", - " internal.print(\"stop color printing\");", - " internal.COLOR_OUTPUT = false;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief print the overall help", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function help () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - "", - " internal.print(client.HELP);", - " internal.print(client.helpQueries);", - " internal.print(client.helpArangoDatabase);", - " internal.print(client.helpArangoCollection);", - " internal.print(client.helpArangoStatement);", - " internal.print(client.helpArangoQueryCursor);", - " internal.print(client.helpExtended);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"internal\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief be quiet", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.ARANGO_QUIET = ARANGO_QUIET;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief log function", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.log = function (level, msg) {", - " internal.output(level, \": \", msg, \"\\n\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief rebuilds the routing cache", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.reloadRouting = function () {", - " if (typeof arango !== 'undefined') {", - " arango.POST(\"/_admin/reloadRouting\", \"\");", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoQueryCursor", - "// -----------------------------------------------------------------------------", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- constructors and destructors", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief constructor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function ArangoQueryCursor (database, data) {", - " this._database = database;", - " this.data = data;", - " this._hasNext = false;", - " this._hasMore = false;", - " this._pos = 0;", - " this._count = 0;", - " this._total = 0;", - " ", - " if (data.result !== undefined) {", - " this._count = data.result.length;", - " ", - " if (this._pos < this._count) {", - " this._hasNext = true;", - " }", - " ", - " if (data.hasMore !== undefined && data.hasMore) {", - " this._hasMore = true;", - " } ", - " }", - "}", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief help for ArangoQueryCursor", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpArangoQueryCursor = client.createHelpHeadline(\"ArangoQueryCursor help\") +", - " 'ArangoQueryCursor constructor: ' + \"\\n\" +", - " ' > cu1 = qi1.execute(); ' + \"\\n\" +", - " 'Functions: ' + \"\\n\" +", - " ' hasNext(); returns true if there ' + \"\\n\" +", - " ' are more results ' + \"\\n\" +", - " ' next(); returns the next document ' + \"\\n\" +", - " ' elements(); returns all documents ' + \"\\n\" +", - " ' _help(); this help ' + \"\\n\" +", - " 'Attributes: ' + \"\\n\" +", - " ' _database database object ' + \"\\n\" +", - " 'Example: ' + \"\\n\" +", - " ' > st = db._createStatement({ \"query\" : \"for c in coll return c\" });' + \"\\n\" +", - " ' > c = st.execute(); ' + \"\\n\" +", - " ' > documents = c.elements(); ' + \"\\n\" +", - " ' > c = st.execute(); ' + \"\\n\" +", - " ' > while (c.hasNext()) { print( c.next() ); } ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief print the help for the cursor", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype._help = function () {", - " internal.print(client.helpArangoQueryCursor);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a string representation of the cursor", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.toString = function () { ", - " return client.getIdString(this, \"ArangoQueryCursor\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- public functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return whether there are more results available in the cursor", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.hasNext = function () {", - " return this._hasNext;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return the next result document from the cursor", - "///", - "/// If no more results are available locally but more results are available on", - "/// the server, this function will make a roundtrip to the server", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.next = function () {", - " if (!this._hasNext) {", - " throw \"No more results\";", - " }", - "", - " var result = this.data.result[this._pos];", - " this._pos++;", - "", - " // reached last result", - " if (this._pos === this._count) {", - " this._hasNext = false;", - " this._pos = 0;", - "", - " if (this._hasMore && this.data.id) {", - " this._hasMore = false;", - "", - " // load more results ", - " var requestResult = this._database._connection.PUT(", - " \"/_api/cursor/\"+ encodeURIComponent(this.data.id),", - " \"\");", - "", - " client.checkRequestResult(requestResult);", - "", - " this.data = requestResult;", - " this._count = requestResult.result.length;", - "", - " if (this._pos < this._count) {", - " this._hasNext = true;", - " }", - "", - " if (requestResult.hasMore !== undefined && requestResult.hasMore) {", - " this._hasMore = true;", - " } ", - " } ", - " }", - "", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return all remaining result documents from the cursor", - "///", - "/// If no more results are available locally but more results are available on", - "/// the server, this function will make one or multiple roundtrips to the ", - "/// server. Calling this function will also fully exhaust the cursor.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.elements = function () { ", - " var result = [];", - "", - " while (this.hasNext()) { ", - " result.push( this.next() ); ", - " }", - "", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief explicitly dispose the cursor", - "///", - "/// Calling this function will mark the cursor as deleted on the server. It will", - "/// therefore make a roundtrip to the server. Using a cursor after it has been", - "/// disposed is considered a user error", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.dispose = function () {", - " if (!this.data.id) {", - " // client side only cursor", - " return;", - " }", - "", - " var requestResult = this._database._connection.DELETE(", - " \"/_api/cursor/\"+ encodeURIComponent(this.data.id),", - " \"\");", - "", - " client.checkRequestResult(requestResult);", - "", - " this.data.id = undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return the total number of documents in the cursor", - "///", - "/// The number will remain the same regardless how much result documents have", - "/// already been fetched from the cursor.", - "///", - "/// This function will return the number only if the cursor was constructed ", - "/// with the \"doCount\" attribute. Otherwise it will return undefined.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoQueryCursor.prototype.count = function () {", - " if (!this.data.id) {", - " throw \"cursor has been disposed\";", - " }", - "", - " return this.data.count;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoStatement", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - "", - " var SB = require(\"statement-basics\");", - " internal.ArangoStatement = SB.ArangoStatement;", - " ArangoStatement = SB.ArangoStatement;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief parse a query and return the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.parse = function () {", - " var body = {", - " \"query\" : this._query,", - " };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/query\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " var result = { \"bindVars\" : requestResult.bindVars, \"collections\" : requestResult.collections };", - " return result;", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief explain a query and return the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.explain = function () {", - " var body = {", - " \"query\" : this._query,", - " };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/explain\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult.plan;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief execute the query", - "///", - "/// Invoking execute() will transfer the query and all bind parameters to the", - "/// server. It will return a cursor with the query results in case of success.", - "/// In case of an error, the error will be printed", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.execute = function () {", - " var body = {", - " \"query\" : this._query,", - " \"count\" : this._doCount,", - " \"bindVars\" : this._bindVars", - " };", - "", - " if (this._batchSize) {", - " body[\"batchSize\"] = this._batchSize;", - " }", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/cursor\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return new ArangoQueryCursor(this._database, requestResult);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief help for ArangoStatement", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpArangoStatement = client.createHelpHeadline(\"ArangoStatement help\") +", - " 'ArangoStatement constructor: ' + \"\\n\" +", - " ' > st = new ArangoStatement(db, { \"query\" : \"for ...\" }); ' + \"\\n\" +", - " ' > st = db._createStatement({ \"query\" : \"for ...\" }); ' + \"\\n\" +", - " 'Functions: ' + \"\\n\" +", - " ' bind(, ); bind single variable ' + \"\\n\" +", - " ' bind(); bind multiple variables ' + \"\\n\" +", - " ' setBatchSize(); set max. number of results ' + \"\\n\" +", - " ' to be transferred per roundtrip ' + \"\\n\" +", - " ' setCount(); set count flag (return number of ' + \"\\n\" +", - " ' results in \"count\" attribute) ' + \"\\n\" +", - " ' getBatchSize(); return max. number of results ' + \"\\n\" +", - " ' to be transferred per roundtrip ' + \"\\n\" +", - " ' getCount(); return count flag (return number of' + \"\\n\" +", - " ' results in \"count\" attribute) ' + \"\\n\" +", - " ' getQuery(); return query string ' + \"\\n\" +", - " ' execute(); execute query and return cursor ' + \"\\n\" +", - " ' _help(); this help ' + \"\\n\" +", - " 'Attributes: ' + \"\\n\" +", - " ' _database database object ' + \"\\n\" +", - " 'Example: ' + \"\\n\" +", - " ' > st = db._createStatement({ \"query\" : \"for c in coll filter ' + \"\\n\" +", - " ' c.x == @a && c.y == @b return c\" }); ' + \"\\n\" +", - " ' > st.bind(\"a\", \"hello\"); ' + \"\\n\" +", - " ' > st.bind(\"b\", \"world\"); ' + \"\\n\" +", - " ' > c = st.execute(); ' + \"\\n\" +", - " ' > print(c.elements()); ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief print the help for ArangoStatement", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype._help = function () {", - " internal.print(client.helpArangoStatement);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a string representation of the statement", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.toString = function () { ", - " return client.getIdString(this, \"ArangoStatement\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoCollection", - "// -----------------------------------------------------------------------------", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- constructors and destructors", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief constructor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function ArangoCollection (database, data) {", - " this._database = database;", - "", - " if (typeof data === \"string\") {", - " this._id = null;", - " this._name = data;", - " this._status = null;", - " this._type = null;", - " }", - " else if (data !== undefined) {", - " this._id = data.id;", - " this._name = data.name;", - " this._status = data.status;", - " this._type = data.type;", - " }", - " else {", - " this._id = null;", - " this._name = null;", - " this._status = null;", - " this._type = null;", - " }", - "}", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - "", - " internal.ArangoCollection = ArangoCollection;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- constants", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is corrupted", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_CORRUPTED = 0;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is new born", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_NEW_BORN = 1;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is unloaded", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_UNLOADED = 2;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is loaded", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_LOADED = 3;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is unloading", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_UNLOADING = 4;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is deleted", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_DELETED = 5;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief document collection", - "////////////////////////////////////////////////////////////////////////////////", - " ", - " ArangoCollection.TYPE_DOCUMENT = 2;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief edge collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.TYPE_EDGE = 3;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief attachment collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.TYPE_ATTACHMENT = 4;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief help for ArangoCollection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpArangoCollection = client.createHelpHeadline(\"ArangoCollection help\") +", - " 'ArangoCollection constructor: ' + \"\\n\" +", - " ' > col = db.mycoll; ' + \"\\n\" +", - " ' > col = db._create(\"mycoll\"); ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Administration Functions: ' + \"\\n\" +", - " ' name() collection name ' + \"\\n\" +", - " ' status() status of the collection ' + \"\\n\" +", - " ' type() type of the collection ' + \"\\n\" +", - " ' truncate() delete all documents ' + \"\\n\" +", - " ' properties() show collection properties ' + \"\\n\" +", - " ' drop() delete a collection ' + \"\\n\" +", - " ' load() load a collection into memeory ' + \"\\n\" +", - " ' unload() unload a collection from memory ' + \"\\n\" +", - " ' rename(new-name) renames a collection ' + \"\\n\" +", - " ' refresh() refreshes the status and name ' + \"\\n\" +", - " ' _help(); this help ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Document Functions: ' + \"\\n\" +", - " ' count() number of documents ' + \"\\n\" +", - " ' save() create document and return handle ' + \"\\n\" +", - " ' document() get document by handle ' + \"\\n\" +", - " ' replace(, , overwrite document ' + \"\\n\" +", - " ' ) ' + \"\\n\" +", - " ' update(, , partially update document ' + \"\\n\" +", - " ' , ) ' + \"\\n\" +", - " ' delete() delete document ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Attributes: ' + \"\\n\" +", - " ' _database database object ' + \"\\n\" +", - " ' _id collection identifier ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a string representation of the collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.toString = function () { ", - " return client.getIdString(this, \"ArangoCollection\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints the collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype._PRINT = function () { ", - " var status = type = \"unknown\";", - "", - " switch (this.status()) {", - " case ArangoCollection.STATUS_NEW_BORN: status = \"new born\"; break;", - " case ArangoCollection.STATUS_UNLOADED: status = \"unloaded\"; break;", - " case ArangoCollection.STATUS_UNLOADING: status = \"unloading\"; break;", - " case ArangoCollection.STATUS_LOADED: status = \"loaded\"; break;", - " case ArangoCollection.STATUS_CORRUPTED: status = \"corrupted\"; break;", - " case ArangoCollection.STATUS_DELETED: status = \"deleted\"; break;", - " }", - "", - " switch (this.type()) {", - " case ArangoCollection.TYPE_DOCUMENT: type = \"document\"; break;", - " case ArangoCollection.TYPE_EDGE: type = \"edge\"; break;", - " case ArangoCollection.TYPE_ATTACHMENT: type = \"attachment\"; break;", - " }", - "", - " internal.output(\"[ArangoCollection \",", - " this._id, ", - " \", \\\"\", ", - " this.name(), ", - " \"\\\" (type \",", - " type, \", status \",", - " status,", - " \")]\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief print the help for ArangoCollection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype._help = function () { ", - " internal.print(client.helpArangoCollection);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- public functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the name of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.name = function () {", - " if (this._name === null) {", - " this.refresh();", - " }", - "", - " return this._name;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the status of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.status = function () {", - " var result;", - "", - " if (this._status === null) {", - " this.refresh();", - " }", - "", - " // save original status", - " result = this._status;", - "", - " if (this._status == ArangoCollection.STATUS_UNLOADING) {", - " // if collection is currently unloading, we must not cache this info", - " this._status = null;", - " }", - "", - " // return the correct result", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the type of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.type = function () {", - " var result;", - "", - " if (this._type === null) {", - " this.refresh();", - " }", - "", - " return this._type;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief gets or sets the properties of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.properties = function (properties) {", - " var requestResult;", - "", - " if (properties === undefined) {", - " requestResult = this._database._connection.GET(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/properties\");", - "", - " client.checkRequestResult(requestResult);", - " }", - " else {", - " var body = {};", - "", - " if (properties.hasOwnProperty(\"waitForSync\")) {", - " body.waitForSync = properties.waitForSync;", - " }", - "", - " requestResult = this._database._connection.PUT(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/properties\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - " }", - "", - " return { ", - " waitForSync : requestResult.waitForSync,", - " journalSize : requestResult.journalSize", - " };", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief gets the figures of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.figures = function () {", - " var requestResult = this._database._connection.GET(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/figures\");", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult.figures;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief drops a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.drop = function () {", - " var requestResult = this._database._connection.DELETE(", - " \"/_api/collection/\" + encodeURIComponent(this._id));", - "", - " client.checkRequestResult(requestResult);", - "", - " this._status = ArangoCollection.STATUS_DELETED;", - "", - " var database = this._database;", - " var name;", - "", - " for (name in database) {", - " if (database.hasOwnProperty(name)) {", - " var collection = database[name];", - "", - " if (collection instanceof ArangoCollection) {", - " if (collection._id === this._id) {", - " delete database[name];", - " }", - " }", - " }", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns all documents", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.toArray = function () {", - " return this.all().toArray();", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns all indexes", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.getIndexes = function () {", - " var requestResult = this._database._connection.GET(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult.indexes;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns one index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.index = function (id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var requestResult;", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult = {", - " errorNum: internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.code,", - " errorMessage: internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.message", - " };", - "", - " throw new ArangoError(requestResult);", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult = {", - " errorNum: internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code,", - " errorMessage: ", - " internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.message", - " };", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " requestResult = this._database._connection.GET(\"/_api/index/\" + id);", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief deletes one index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.dropIndex = function (id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var requestResult;", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult = {", - " errorNum: internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.code,", - " errorMessage: internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.message", - " };", - "", - " throw new ArangoError(requestResult);", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult = {", - " errorNum: internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code,", - " errorMessage:", - " internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.message", - " };", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " requestResult = this._database._connection.DELETE(\"/_api/index/\" + id);", - "", - " if (requestResult !== null", - " && requestResult.error === true ", - " && requestResult.errorNum", - " === internal.errors.ERROR_ARANGO_INDEX_NOT_FOUND.code) {", - " return false;", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return true;", - " };", - "", - " ", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a bitarray index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureBitarray = function () {", - " var i;", - " var body;", - " var fields = [];", - "", - " for (i = 0; i < arguments.length; ++i) {", - " fields.push(arguments[i]);", - " }", - "", - " body = { type : \"bitarray\", unique : false, fields : fields };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - " ", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a cap constraint", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureCapConstraint = function (size) {", - " var body;", - "", - " body = { type : \"cap\", size : size };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a unique skip-list index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureUniqueSkiplist = function () {", - " var i;", - " var body;", - " var fields = [];", - "", - " for (i = 0; i < arguments.length; ++i) {", - " fields.push(arguments[i]);", - " }", - "", - " body = { type : \"skiplist\", unique : true, fields : fields };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a skip-list index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureSkiplist = function () {", - " var i;", - " var body;", - " var fields = [];", - "", - " for (i = 0; i < arguments.length; ++i) {", - " fields.push(arguments[i]);", - " }", - "", - " body = { type : \"skiplist\", unique : false, fields : fields };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a unique constraint", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureUniqueConstraint = function () {", - " var i;", - " var body;", - " var fields = [];", - "", - " for (i = 0; i < arguments.length; ++i) {", - " fields.push(arguments[i]);", - " }", - "", - " body = { type : \"hash\", unique : true, fields : fields };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds a hash index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureHashIndex = function () {", - " var i;", - " var body;", - " var fields = [];", - "", - " for (i = 0; i < arguments.length; ++i) {", - " fields.push(arguments[i]);", - " }", - "", - " body = { type : \"hash\", unique : false, fields : fields };", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds an geo index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureGeoIndex = function (lat, lon) {", - " var body;", - "", - " if (typeof lat !== \"string\") {", - " throw \"usage: ensureGeoIndex(, ) or ensureGeoIndex([, ])\";", - " }", - "", - " if (typeof lon === \"boolean\") {", - " body = { ", - " type : \"geo\", ", - " fields : [ lat ], ", - " geoJson : lon, ", - " constraint : false", - " };", - " }", - " else if (lon === undefined) {", - " body = {", - " type : \"geo\", ", - " fields : [ lat ],", - " geoJson : false, ", - " constraint : false ", - " };", - " }", - " else {", - " body = {", - " type : \"geo\",", - " fields : [ lat, lon ],", - " constraint : false", - " };", - " }", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id), ", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief adds an geo constraint", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.ensureGeoConstraint = function (lat, lon, ignoreNull) {", - " var body;", - "", - " // only two parameter", - " if (ignoreNull === undefined) {", - " ignoreNull = lon;", - "", - " if (typeof ignoreNull !== \"boolean\") {", - " throw \"usage: ensureGeoConstraint(, , )\"", - " + \" or ensureGeoConstraint(, , )\";", - " }", - "", - " body = {", - " type : \"geo\",", - " fields : [ lat ],", - " geoJson : false, ", - " constraint : true,", - " ignoreNull : ignoreNull ", - " };", - " }", - "", - " // three parameter", - " else {", - " if (typeof lon === \"boolean\") {", - " body = {", - " type : \"geo\",", - " fields : [ lat ],", - " geoJson : lon,", - " constraint : true,", - " ignoreNull : ignoreNull", - " };", - " }", - " else {", - " body = {", - " type : \"geo\",", - " fields : [ lat, lon ],", - " constraint : true,", - " ignoreNull : ignoreNull", - " };", - " }", - " }", - "", - " var requestResult = this._database._connection.POST(", - " \"/_api/index?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief queries by example", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.BY_EXAMPLE_HASH = function (index, example, skip, limit) {", - " var key;", - " var body;", - "", - " limit = limit || null;", - " skip = skip || null;", - "", - " if (index.hasOwnProperty(\"id\")) {", - " index = index.id;", - " }", - "", - " body = {", - " collection : this._id,", - " index : index,", - " skip : skip,", - " limit : limit,", - " example : {} ", - " };", - "", - " for (key in example) {", - " if (example.hasOwnProperty(key)) {", - " body.example[key] = example[key];", - " }", - " }", - "", - " var requestResult = this._database._connection.PUT(", - " \"/_api/simple/BY-EXAMPLE-HASH\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief truncates a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.truncate = function () {", - " var requestResult = this._database._connection.PUT(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/truncate\", \"\");", - "", - " client.checkRequestResult(requestResult);", - "", - " this._status = null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief loads a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.load = function () {", - " var requestResult = this._database._connection.PUT(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/load\",", - " \"\");", - "", - " client.checkRequestResult(requestResult);", - "", - " this._status = null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief unloads a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.unload = function () {", - " var requestResult = this._database._connection.PUT(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/unload\",", - " \"\");", - "", - " client.checkRequestResult(requestResult);", - "", - " this._status = null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief renames a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.rename = function (name) {", - " var body = { name : name };", - " var requestResult = this._database._connection.PUT(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/rename\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " delete this._database[this._name];", - " this._database[name] = this;", - "", - " this._status = null;", - " this._name = null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief refreshes a collection status and name", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.refresh = function () {", - " var requestResult = this._database._connection.GET(", - " \"/_api/collection/\" + encodeURIComponent(this._id));", - "", - " client.checkRequestResult(requestResult);", - "", - " this._name = requestResult['name'];", - " this._status = requestResult['status'];", - " this._type = requestResult['type'];", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- document functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the number of documents", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.count = function () {", - " var requestResult = this._database._connection.GET(", - " \"/_api/collection/\" + encodeURIComponent(this._id) + \"/count\");", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult[\"count\"];", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a single document from the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.document = function (id) {", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " if (rev === null) {", - " requestResult = this._database._connection.GET(\"/_api/document/\" + id);", - " }", - " else {", - " requestResult = this._database._connection.GET(", - " \"/_api/document/\" + id,", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null", - " && requestResult.error === true ", - " && requestResult.errorNum === internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief save a document in the collection, return its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.save = function () {", - " var requestResult;", - " var type = this.type();", - " ", - " if (type == undefined) {", - " type = ArangoCollection.TYPE_DOCUMENT;", - " }", - "", - " if (type == ArangoCollection.TYPE_DOCUMENT) { ", - " var data = arguments[0];", - "", - " requestResult = this._database._connection.POST(", - " \"/_api/document?collection=\" + encodeURIComponent(this._id),", - " JSON.stringify(data));", - " }", - " else if (type == ArangoCollection.TYPE_EDGE) {", - " var from = arguments[0];", - " var to = arguments[1];", - " var data = arguments[2];", - "", - " if (from.hasOwnProperty(\"_id\")) {", - " from = from._id;", - " }", - "", - " if (to.hasOwnProperty(\"_id\")) {", - " to = to._id;", - " }", - "", - " var url = \"/_api/edge?collection=\" + encodeURIComponent(this._id)", - " + \"&from=\" + encodeURIComponent(from)", - " + \"&to=\" + encodeURIComponent(to);", - "", - " requestResult = this._database._connection.POST(", - " url,", - " JSON.stringify(data));", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief delete a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.remove = function (id, overwrite) {", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " var policy = \"\";", - "", - " if (overwrite) {", - " policy = \"?policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._database._connection.DELETE(", - " \"/_api/document/\" + id + policy);", - " }", - " else {", - " requestResult = this._database._connection.DELETE(", - " \"/_api/document/\" + id + policy, {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.code;", - " }", - "", - " if (overwrite) {", - " if (requestResult.errorNum === internal.errors.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code) {", - " return false;", - " }", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return true;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief replace a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.replace = function (id, data, overwrite) { ", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " var policy = \"\";", - "", - " if (overwrite) {", - " policy = \"?policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._database._connection.PUT(", - " \"/_api/document/\" + id + policy, ", - " JSON.stringify(data));", - " }", - " else {", - " requestResult = this._database._connection.PUT(", - " \"/_api/document/\" + id + policy, JSON.stringify(data),", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief update a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.update = function (id, data, overwrite, keepNull) { ", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " // set default value for keepNull", - " var keepNullValue = ((typeof keepNull == \"undefined\") ? true : keepNull);", - " var params = \"?keepNull=\" + (keepNullValue ? \"true\" : \"false\");", - "", - " if (overwrite) {", - " params += \"&policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._database._connection.PATCH(", - " \"/_api/document/\" + id + params, ", - " JSON.stringify(data));", - " }", - " else {", - " requestResult = this._database._connection.PATCH(", - " \"/_api/document/\" + id + params, JSON.stringify(data),", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - " else if (parseInt(s[0]) !== this._id) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_CROSS_COLLECTION_REQUEST.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the edges starting or ending in a vertex", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.edges = function (vertex) {", - " // if vertex is a list, iterator and concat", - " if (vertex instanceof Array) {", - " var edges = [];", - " var i;", - "", - " for (i = 0; i < vertex.length; ++i) {", - " var e = this.edges(vertex[i]);", - "", - " edges.push.apply(edges, e);", - " }", - "", - " return edges;", - " }", - "", - " if (vertex.hasOwnProperty(\"_id\")) {", - " vertex = vertex._id;", - " }", - "", - " // get the edges", - " var requestResult = this._database._connection.GET(", - " \"/_api/edges/\" + encodeURIComponent(this._id) + \"?vertex=\" + encodeURIComponent(vertex));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult['edges'];", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the edges ending in a vertex", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.inEdges = function (vertex) {", - " // if vertex is a list, iterator and concat", - " if (vertex instanceof Array) {", - " var edges = [];", - " var i;", - "", - " for (i = 0; i < vertex.length; ++i) {", - " var e = this.inEdges(vertex[i]);", - "", - " edges.push.apply(edges, e);", - " }", - "", - " return edges;", - " }", - "", - " if (vertex.hasOwnProperty(\"_id\")) {", - " vertex = vertex._id;", - " }", - "", - " // get the edges", - " var requestResult = this._database._connection.GET(", - " \"/_api/edges/\" + encodeURIComponent(this._id)", - " + \"?direction=in&vertex=\" + encodeURIComponent(vertex));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult['edges'];", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns the edges starting in a vertex", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.outEdges = function (vertex) {", - " // if vertex is a list, iterator and concat", - " if (vertex instanceof Array) {", - " var edges = [];", - " var i;", - "", - " for (i = 0; i < vertex.length; ++i) {", - " var e = this.outEdges(vertex[i]);", - "", - " edges.push.apply(edges, e);", - " }", - "", - " return edges;", - " }", - "", - " if (vertex.hasOwnProperty(\"_id\")) {", - " vertex = vertex._id;", - " }", - "", - " // get the edges", - " var requestResult = this._database._connection.GET(", - " \"/_api/edges/\" + encodeURIComponent(this._id)", - " + \"?direction=out&vertex=\" + encodeURIComponent(vertex));", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult['edges'];", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoDatabase", - "// -----------------------------------------------------------------------------", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- constructors and destructors", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief constructor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function ArangoDatabase (connection) {", - " this._connection = connection;", - " this._collectionConstructor = ArangoCollection;", - "}", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - " ", - " internal.ArangoDatabase = ArangoDatabase;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief help for ArangoDatabase", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpArangoDatabase = client.createHelpHeadline(\"ArangoDatabase help\") +", - " 'ArangoDatabase constructor: ' + \"\\n\" +", - " ' > db = new ArangoDatabase(connection); ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Administration Functions: ' + \"\\n\" +", - " ' _help(); this help ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Collection Functions: ' + \"\\n\" +", - " ' _collections() list all collections ' + \"\\n\" +", - " ' _collection() get collection by identifier/name' + \"\\n\" +", - " ' _create(, ) creates a new collection ' + \"\\n\" +", - " ' _truncate() delete all documents ' + \"\\n\" +", - " ' _drop() delete a collection ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Document Functions: ' + \"\\n\" +", - " ' _document() get document by handle ' + \"\\n\" +", - " ' _replace(, , overwrite document ' + \"\\n\" +", - " ' ) ' + \"\\n\" +", - " ' _update(, , update document ' + \"\\n\" +", - " ' , ) ' + \"\\n\" +", - " ' _remove() delete document ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Query Functions: ' + \"\\n\" +", - " ' _createStatement(); create and return select query ' + \"\\n\" +", - " ' ' + \"\\n\" +", - " 'Attributes: ' + \"\\n\" +", - " ' collection with the given name ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief print the help for ArangoDatabase", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._help = function () { ", - " internal.print(client.helpArangoDatabase);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a string representation of the database object", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype.toString = function () { ", - " return \"[object ArangoDatabase]\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- collection functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return all collections from the database", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._collections = function () {", - " var requestResult = this._connection.GET(\"/_api/collection\");", - " ", - " client.checkRequestResult(requestResult);", - "", - " if (requestResult[\"collections\"] !== undefined) {", - " var collections = requestResult[\"collections\"];", - " var result = [];", - " var i;", - " ", - " // add all collentions to object", - " for (i = 0; i < collections.length; ++i) {", - " var collection = new this._collectionConstructor(this, collections[i]);", - "", - " this[collection._name] = collection;", - " result.push(collection);", - " }", - " ", - " return result;", - " }", - " ", - " return undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a single collection, identified by its id or name", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._collection = function (id) {", - " var requestResult = this._connection.GET(", - " \"/_api/collection/\" + encodeURIComponent(id));", - " ", - " // return null in case of not found", - " if (requestResult !== null", - " && requestResult.error === true ", - " && requestResult.errorNum === internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code) {", - " return null;", - " }", - "", - " // check all other errors and throw them", - " client.checkRequestResult(requestResult);", - "", - " var name = requestResult[\"name\"];", - "", - " if (name !== undefined) {", - " this[name] = new this._collectionConstructor(this, requestResult);", - " return this[name];", - " }", - " ", - " return undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief creates a new collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._create = function (name, properties, type) {", - " var body = {", - " \"name\" : name,", - " \"type\" : ArangoCollection.TYPE_DOCUMENT", - " };", - "", - " if (properties !== undefined) {", - " if (properties.hasOwnProperty(\"waitForSync\")) {", - " body.waitForSync = properties.waitForSync;", - " }", - "", - " if (properties.hasOwnProperty(\"journalSize\")) {", - " body.journalSize = properties.journalSize;", - " }", - "", - " if (properties.hasOwnProperty(\"isSystem\")) {", - " body.isSystem = properties.isSystem;", - " }", - " }", - "", - " if (type != undefined && type == ArangoCollection.TYPE_EDGE) {", - " body.type = type;", - " }", - "", - " var requestResult = this._connection.POST(", - " \"/_api/collection\",", - " JSON.stringify(body));", - "", - " client.checkRequestResult(requestResult);", - "", - " var nname = requestResult[\"name\"];", - "", - " if (nname !== undefined) {", - " this[nname] = new this._collectionConstructor(this, requestResult);", - " return this[nname];", - " }", - " ", - " return undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief creates a new document collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._createDocumentCollection = function (name, properties) {", - " return this._create(name, properties, ArangoCollection.TYPE_DOCUMENT);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief creates a new edges collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._createEdgeCollection = function (name, properties) {", - " return this._create(name, properties, ArangoCollection.TYPE_EDGE);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief truncates a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._truncate = function (id) {", - " var name;", - "", - " for (name in this) {", - " if (this.hasOwnProperty(name)) {", - " var collection = this[name];", - "", - " if (collection instanceof this._collectionConstructor) {", - " if (collection._id === id || collection._name === id) {", - " return collection.truncate();", - " }", - " }", - " }", - " }", - "", - " return undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief drops a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._drop = function (id) {", - " var name;", - "", - " for (name in this) {", - " if (this.hasOwnProperty(name)) {", - " var collection = this[name];", - "", - " if (collection instanceof this._collectionConstructor) {", - " if (collection._id === id || collection._name === id) {", - " return collection.drop();", - " }", - " }", - " }", - " }", - "", - " return undefined;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief returns one index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._index = function (id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var requestResult = this._connection.GET(\"/_api/index/\" + id);", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief deletes one index", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._dropIndex = function (id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var requestResult = this._connection.DELETE(\"/_api/index/\" + id);", - "", - " if (requestResult !== null", - " && requestResult.error === true ", - " && requestResult.errorNum === internal.errors.ERROR_ARANGO_INDEX_NOT_FOUND.code) {", - " return false;", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return true;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- document functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a single document from the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._document = function (id) {", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " if (rev === null) {", - " requestResult = this._connection.GET(\"/_api/document/\" + id);", - " }", - " else {", - " requestResult = this._connection.GET(", - " \"/_api/document/\" + id,", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null", - " && requestResult.error === true ", - " && requestResult.errorNum === internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief delete a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._remove = function (id, overwrite) {", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " var policy = \"\";", - "", - " if (overwrite) {", - " policy = \"?policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._connection.DELETE(\"/_api/document/\" + id + policy);", - " }", - " else {", - " requestResult = this._connection.DELETE(", - " \"/_api/document/\" + id + policy,", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - "", - " if (overwrite) {", - " if (requestResult.errorNum === internal.errors.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code) {", - " return false;", - " }", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return true;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief replace a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._replace = function (id, data, overwrite) { ", - " var rev = null;", - " var requestResult;", - "", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " var policy = \"\";", - "", - " if (overwrite) {", - " policy = \"?policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._connection.PUT(", - " \"/_api/document/\" + id + policy,", - " JSON.stringify(data));", - " }", - " else {", - " requestResult = this._connection.PUT(", - " \"/_api/document/\" + id + policy,", - " JSON.stringify(data),", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief update a document in the collection, identified by its id", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._update = function (id, data, overwrite, keepNull) { ", - " var rev = null;", - " var requestResult;", - " ", - " if (id.hasOwnProperty(\"_id\")) {", - " if (id.hasOwnProperty(\"_rev\")) {", - " rev = id._rev;", - " }", - "", - " id = id._id;", - " }", - "", - " // set default value for keepNull", - " var keepNullValue = ((typeof keepNull == \"undefined\") ? true : keepNull);", - " var params = \"?keepNull=\" + (keepNullValue ? \"true\" : \"false\");", - "", - " if (overwrite) {", - " params += \"&policy=last\";", - " }", - "", - " if (rev === null) {", - " requestResult = this._connection.PATCH(", - " \"/_api/document/\" + id + params,", - " JSON.stringify(data));", - " }", - " else {", - " requestResult = this._connection.PATCH(", - " \"/_api/document/\" + id + params,", - " JSON.stringify(data),", - " {'if-match' : '\"' + rev + '\"' });", - " }", - "", - " if (requestResult !== null && requestResult.error === true) {", - " var s = id.split(\"/\");", - "", - " if (s.length !== 2) {", - " requestResult.errorNum = internal.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code;", - " }", - "", - " throw new ArangoError(requestResult);", - " }", - "", - " client.checkRequestResult(requestResult);", - "", - " return requestResult;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- query functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief factory method to create a new statement", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._createStatement = function (data) { ", - " return new ArangoStatement(this, data);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- initialisers", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup ArangoShell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - " var client = require(\"arangosh\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief general help", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.HELP = client.createHelpHeadline(\"Help\") +", - " 'Predefined objects: ' + \"\\n\" +", - " ' arango: ArangoConnection ' + \"\\n\" +", - " ' db: ArangoDatabase ' + \"\\n\" +", - " 'Example: ' + \"\\n\" +", - " ' > db._collections(); list all collections ' + \"\\n\" +", - " ' > db..all().toArray(); list all documents ' + \"\\n\" +", - " ' > id = db..save({ ... }); save a document ' + \"\\n\" +", - " ' > db..remove(<_id>); delete a document ' + \"\\n\" +", - " ' > db..document(<_id>); get a document ' + \"\\n\" +", - " ' > db..replace(<_id>, {...}); overwrite a document ' + \"\\n\" +", - " ' > db..update(<_id>, {...}); partially update a document' + \"\\n\" +", - " ' > help show help pages ' + \"\\n\" +", - " ' > exit ' + \"\\n\" +", - " 'Note: collection names may be cached in arangosh. To refresh them, issue: ' + \"\\n\" +", - " ' > db._collections(); ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief query help", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpQueries = client.createHelpHeadline(\"Select query help\") +", - " 'Create a select query: ' + \"\\n\" +", - " ' > st = new ArangoStatement(db, { \"query\" : \"for...\" }); ' + \"\\n\" +", - " ' > st = db._createStatement({ \"query\" : \"for...\" }); ' + \"\\n\" +", - " 'Set query options: ' + \"\\n\" +", - " ' > st.setBatchSize(); set the max. number of results ' + \"\\n\" +", - " ' to be transferred per roundtrip ' + \"\\n\" +", - " ' > st.setCount(); set count flag (return number of ' + \"\\n\" +", - " ' results in \"count\" attribute) ' + \"\\n\" +", - " 'Get query options: ' + \"\\n\" +", - " ' > st.setBatchSize(); return the max. number of results ' + \"\\n\" +", - " ' to be transferred per roundtrip ' + \"\\n\" +", - " ' > st.getCount(); return count flag (return number of' + \"\\n\" +", - " ' results in \"count\" attribute) ' + \"\\n\" +", - " ' > st.getQuery(); return query string ' + \"\\n\" +", - " ' results in \"count\" attribute) ' + \"\\n\" +", - " 'Bind parameters to a query: ' + \"\\n\" +", - " ' > st.bind(, ); bind single variable ' + \"\\n\" +", - " ' > st.bind(); bind multiple variables ' + \"\\n\" +", - " 'Execute query: ' + \"\\n\" +", - " ' > c = st.execute(); returns a cursor ' + \"\\n\" +", - " 'Get all results in an array: ' + \"\\n\" +", - " ' > e = c.elements(); ' + \"\\n\" +", - " 'Or loop over the result set: ' + \"\\n\" +", - " ' > while (c.hasNext()) { print( c.next() ); } ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief extended help", - "////////////////////////////////////////////////////////////////////////////////", - "", - " client.helpExtended = client.createHelpHeadline(\"More help\") +", - " 'Pager: ' + \"\\n\" +", - " ' > stop_pager() stop the pager output ' + \"\\n\" +", - " ' > start_pager() start the pager ' + \"\\n\" +", - " 'Pretty printing: ' + \"\\n\" +", - " ' > stop_pretty_print() stop pretty printing ' + \"\\n\" +", - " ' > start_pretty_print() start pretty printing ' + \"\\n\" +", - " 'Color output: ' + \"\\n\" +", - " ' > stop_color_print() stop color printing ' + \"\\n\" +", - " ' > start_color_print() start color printing ' + \"\\n\" +", - " ' > start_color_print(COLOR_BLUE) set color ' + \"\\n\" +", - " 'Print function: ' + \"\\n\" +", - " ' > print(x) std. print function ' + \"\\n\" +", - " ' > print_plain(x) print without pretty printing' + \"\\n\" +", - " ' and without colors ';", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief create the global db object and load the collections", - "////////////////////////////////////////////////////////////////////////////////", - "", - " try {", - " if (typeof arango !== 'undefined') {", - "", - " // default databases", - " db = internal.db = new ArangoDatabase(arango);", - " edges = internal.edges = db;", - "", - " // load collection data", - " internal.db._collections();", - "", - " // load simple queries", - " require(\"simple-query\");", - "", - " if (! internal.ARANGO_QUIET) {", - " internal.print(client.HELP);", - " }", - " }", - " }", - " catch (err) {", - " internal.print(String(err));", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- END-OF-FILE", - "// -----------------------------------------------------------------------------", - "", - "// Local Variables:", - "// mode: outline-minor", - "// outline-regexp: \"^\\\\(/// @brief\\\\|/// @addtogroup\\\\|// --SECTION--\\\\|/// @}\\\\|/\\\\*jslint\\\\)\"", - "// End:", - "//__end__" -}; diff --git a/js/common/bootstrap/js-errors.h b/js/common/bootstrap/js-errors.h deleted file mode 100644 index bbce46d191..0000000000 --- a/js/common/bootstrap/js-errors.h +++ /dev/null @@ -1,142 +0,0 @@ -const char* JS_common_bootstrap_errors[] = { - "/*jslint indent: 2,", - " nomen: true,", - " maxlen: 240,", - " sloppy: true,", - " vars: true,", - " white: true,", - " plusplus: true */", - "/*global require */", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief auto-generated file generated from errors.dat", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - "", - " internal.errors = {", - " \"ERROR_NO_ERROR\" : { \"code\" : 0, \"message\" : \"no error\" }, ", - " \"ERROR_FAILED\" : { \"code\" : 1, \"message\" : \"failed\" }, ", - " \"ERROR_SYS_ERROR\" : { \"code\" : 2, \"message\" : \"system error\" }, ", - " \"ERROR_OUT_OF_MEMORY\" : { \"code\" : 3, \"message\" : \"out of memory\" }, ", - " \"ERROR_INTERNAL\" : { \"code\" : 4, \"message\" : \"internal error\" }, ", - " \"ERROR_ILLEGAL_NUMBER\" : { \"code\" : 5, \"message\" : \"illegal number\" }, ", - " \"ERROR_NUMERIC_OVERFLOW\" : { \"code\" : 6, \"message\" : \"numeric overflow\" }, ", - " \"ERROR_ILLEGAL_OPTION\" : { \"code\" : 7, \"message\" : \"illegal option\" }, ", - " \"ERROR_DEAD_PID\" : { \"code\" : 8, \"message\" : \"dead process identifier\" }, ", - " \"ERROR_NOT_IMPLEMENTED\" : { \"code\" : 9, \"message\" : \"not implemented\" }, ", - " \"ERROR_BAD_PARAMETER\" : { \"code\" : 10, \"message\" : \"bad parameter\" }, ", - " \"ERROR_FORBIDDEN\" : { \"code\" : 11, \"message\" : \"forbidden\" }, ", - " \"ERROR_OUT_OF_MEMORY_MMAP\" : { \"code\" : 12, \"message\" : \"out of memory in mmap\" }, ", - " \"ERROR_CORRUPTED_CSV\" : { \"code\" : 13, \"message\" : \"csv is corrupt\" }, ", - " \"ERROR_HTTP_BAD_PARAMETER\" : { \"code\" : 400, \"message\" : \"bad parameter\" }, ", - " \"ERROR_HTTP_FORBIDDEN\" : { \"code\" : 403, \"message\" : \"forbidden\" }, ", - " \"ERROR_HTTP_NOT_FOUND\" : { \"code\" : 404, \"message\" : \"not found\" }, ", - " \"ERROR_HTTP_METHOD_NOT_ALLOWED\" : { \"code\" : 405, \"message\" : \"method not supported\" }, ", - " \"ERROR_HTTP_SERVER_ERROR\" : { \"code\" : 500, \"message\" : \"internal server error\" }, ", - " \"ERROR_HTTP_CORRUPTED_JSON\" : { \"code\" : 600, \"message\" : \"invalid JSON object\" }, ", - " \"ERROR_HTTP_SUPERFLUOUS_SUFFICES\" : { \"code\" : 601, \"message\" : \"superfluous URL suffices\" }, ", - " \"ERROR_ARANGO_ILLEGAL_STATE\" : { \"code\" : 1000, \"message\" : \"illegal state\" }, ", - " \"ERROR_ARANGO_SHAPER_FAILED\" : { \"code\" : 1001, \"message\" : \"illegal shaper\" }, ", - " \"ERROR_ARANGO_DATAFILE_SEALED\" : { \"code\" : 1002, \"message\" : \"datafile sealed\" }, ", - " \"ERROR_ARANGO_UNKNOWN_COLLECTION_TYPE\" : { \"code\" : 1003, \"message\" : \"unknown type\" }, ", - " \"ERROR_ARANGO_READ_ONLY\" : { \"code\" : 1004, \"message\" : \"ready only\" }, ", - " \"ERROR_ARANGO_DUPLICATE_IDENTIFIER\" : { \"code\" : 1005, \"message\" : \"duplicate identifier\" }, ", - " \"ERROR_ARANGO_DATAFILE_UNREADABLE\" : { \"code\" : 1006, \"message\" : \"datafile unreadable\" }, ", - " \"ERROR_ARANGO_CORRUPTED_DATAFILE\" : { \"code\" : 1100, \"message\" : \"corrupted datafile\" }, ", - " \"ERROR_ARANGO_ILLEGAL_PARAMETER_FILE\" : { \"code\" : 1101, \"message\" : \"illegal parameter file\" }, ", - " \"ERROR_ARANGO_CORRUPTED_COLLECTION\" : { \"code\" : 1102, \"message\" : \"corrupted collection\" }, ", - " \"ERROR_ARANGO_MMAP_FAILED\" : { \"code\" : 1103, \"message\" : \"mmap failed\" }, ", - " \"ERROR_ARANGO_FILESYSTEM_FULL\" : { \"code\" : 1104, \"message\" : \"filesystem full\" }, ", - " \"ERROR_ARANGO_NO_JOURNAL\" : { \"code\" : 1105, \"message\" : \"no journal\" }, ", - " \"ERROR_ARANGO_DATAFILE_ALREADY_EXISTS\" : { \"code\" : 1106, \"message\" : \"cannot create/rename datafile because it already exists\" }, ", - " \"ERROR_ARANGO_DATABASE_LOCKED\" : { \"code\" : 1107, \"message\" : \"database is locked\" }, ", - " \"ERROR_ARANGO_COLLECTION_DIRECTORY_ALREADY_EXISTS\" : { \"code\" : 1108, \"message\" : \"cannot create/rename collection because directory already exists\" }, ", - " \"ERROR_ARANGO_CONFLICT\" : { \"code\" : 1200, \"message\" : \"conflict\" }, ", - " \"ERROR_ARANGO_WRONG_VOCBASE_PATH\" : { \"code\" : 1201, \"message\" : \"wrong path for database\" }, ", - " \"ERROR_ARANGO_DOCUMENT_NOT_FOUND\" : { \"code\" : 1202, \"message\" : \"document not found\" }, ", - " \"ERROR_ARANGO_COLLECTION_NOT_FOUND\" : { \"code\" : 1203, \"message\" : \"collection not found\" }, ", - " \"ERROR_ARANGO_COLLECTION_PARAMETER_MISSING\" : { \"code\" : 1204, \"message\" : \"parameter 'collection' not found\" }, ", - " \"ERROR_ARANGO_DOCUMENT_HANDLE_BAD\" : { \"code\" : 1205, \"message\" : \"illegal document handle\" }, ", - " \"ERROR_ARANGO_MAXIMAL_SIZE_TOO_SMALL\" : { \"code\" : 1206, \"message\" : \"maixaml size of journal too small\" }, ", - " \"ERROR_ARANGO_DUPLICATE_NAME\" : { \"code\" : 1207, \"message\" : \"duplicate name\" }, ", - " \"ERROR_ARANGO_ILLEGAL_NAME\" : { \"code\" : 1208, \"message\" : \"illegal name\" }, ", - " \"ERROR_ARANGO_NO_INDEX\" : { \"code\" : 1209, \"message\" : \"no suitable index known\" }, ", - " \"ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED\" : { \"code\" : 1210, \"message\" : \"unique constraint violated\" }, ", - " \"ERROR_ARANGO_GEO_INDEX_VIOLATED\" : { \"code\" : 1211, \"message\" : \"geo index violated\" }, ", - " \"ERROR_ARANGO_INDEX_NOT_FOUND\" : { \"code\" : 1212, \"message\" : \"index not found\" }, ", - " \"ERROR_ARANGO_CROSS_COLLECTION_REQUEST\" : { \"code\" : 1213, \"message\" : \"cross collection request not allowed\" }, ", - " \"ERROR_ARANGO_INDEX_HANDLE_BAD\" : { \"code\" : 1214, \"message\" : \"illegal index handle\" }, ", - " \"ERROR_ARANGO_CAP_CONSTRAINT_ALREADY_DEFINED\" : { \"code\" : 1215, \"message\" : \"cap constraint already defined\" }, ", - " \"ERROR_ARANGO_DOCUMENT_TOO_LARGE\" : { \"code\" : 1216, \"message\" : \"document too large\" }, ", - " \"ERROR_ARANGO_COLLECTION_NOT_UNLOADED\" : { \"code\" : 1217, \"message\" : \"collection must be unloaded\" }, ", - " \"ERROR_ARANGO_COLLECTION_TYPE_INVALID\" : { \"code\" : 1218, \"message\" : \"collection type invalid\" }, ", - " \"ERROR_ARANGO_DATAFILE_FULL\" : { \"code\" : 1300, \"message\" : \"datafile full\" }, ", - " \"ERROR_QUERY_KILLED\" : { \"code\" : 1500, \"message\" : \"query killed\" }, ", - " \"ERROR_QUERY_PARSE\" : { \"code\" : 1501, \"message\" : \"%s\" }, ", - " \"ERROR_QUERY_EMPTY\" : { \"code\" : 1502, \"message\" : \"query is empty\" }, ", - " \"ERROR_QUERY_SCRIPT\" : { \"code\" : 1503, \"message\" : \"runtime error '%s'\" }, ", - " \"ERROR_QUERY_NUMBER_OUT_OF_RANGE\" : { \"code\" : 1504, \"message\" : \"number out of range\" }, ", - " \"ERROR_QUERY_VARIABLE_NAME_INVALID\" : { \"code\" : 1510, \"message\" : \"variable name '%s' has an invalid format\" }, ", - " \"ERROR_QUERY_VARIABLE_REDECLARED\" : { \"code\" : 1511, \"message\" : \"variable '%s' is assigned multiple times\" }, ", - " \"ERROR_QUERY_VARIABLE_NAME_UNKNOWN\" : { \"code\" : 1512, \"message\" : \"unknown variable '%s'\" }, ", - " \"ERROR_QUERY_COLLECTION_NOT_FOUND\" : { \"code\" : 1520, \"message\" : \"unable to open collection '%s'\" }, ", - " \"ERROR_QUERY_COLLECTION_LOCK_FAILED\" : { \"code\" : 1521, \"message\" : \"unable to read-lock collection %s\" }, ", - " \"ERROR_QUERY_TOO_MANY_COLLECTIONS\" : { \"code\" : 1522, \"message\" : \"too many collections\" }, ", - " \"ERROR_QUERY_DOCUMENT_ATTRIBUTE_REDECLARED\" : { \"code\" : 1530, \"message\" : \"document attribute '%s' is assigned multiple times\" }, ", - " \"ERROR_QUERY_FUNCTION_NAME_UNKNOWN\" : { \"code\" : 1540, \"message\" : \"usage of unknown function '%s'\" }, ", - " \"ERROR_QUERY_FUNCTION_ARGUMENT_NUMBER_MISMATCH\" : { \"code\" : 1541, \"message\" : \"invalid number of arguments for function '%s'\" }, ", - " \"ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH\" : { \"code\" : 1542, \"message\" : \"invalid argument type used in call to function '%s()'\" }, ", - " \"ERROR_QUERY_BIND_PARAMETERS_INVALID\" : { \"code\" : 1550, \"message\" : \"invalid structure of bind parameters\" }, ", - " \"ERROR_QUERY_BIND_PARAMETER_MISSING\" : { \"code\" : 1551, \"message\" : \"no value specified for declared bind parameter '%s'\" }, ", - " \"ERROR_QUERY_BIND_PARAMETER_UNDECLARED\" : { \"code\" : 1552, \"message\" : \"bind parameter '%s' was not declared in the query\" }, ", - " \"ERROR_QUERY_BIND_PARAMETER_TYPE\" : { \"code\" : 1553, \"message\" : \"bind parameter '%s' has an invalid value or type\" }, ", - " \"ERROR_QUERY_INVALID_LOGICAL_VALUE\" : { \"code\" : 1560, \"message\" : \"invalid logical value\" }, ", - " \"ERROR_QUERY_INVALID_ARITHMETIC_VALUE\" : { \"code\" : 1561, \"message\" : \"invalid arithmetic value\" }, ", - " \"ERROR_QUERY_DIVISION_BY_ZERO\" : { \"code\" : 1562, \"message\" : \"division by zero\" }, ", - " \"ERROR_QUERY_LIST_EXPECTED\" : { \"code\" : 1563, \"message\" : \"list expected\" }, ", - " \"ERROR_QUERY_FAIL_CALLED\" : { \"code\" : 1569, \"message\" : \"FAIL(%s) called\" }, ", - " \"ERROR_QUERY_GEO_INDEX_MISSING\" : { \"code\" : 1570, \"message\" : \"no suitable geo index found for geo restriction on '%s'\" }, ", - " \"ERROR_CURSOR_NOT_FOUND\" : { \"code\" : 1600, \"message\" : \"cursor not found\" }, ", - " \"ERROR_KEYVALUE_INVALID_KEY\" : { \"code\" : 1800, \"message\" : \"invalid key declaration\" }, ", - " \"ERROR_KEYVALUE_KEY_EXISTS\" : { \"code\" : 1801, \"message\" : \"key already exists\" }, ", - " \"ERROR_KEYVALUE_KEY_NOT_FOUND\" : { \"code\" : 1802, \"message\" : \"key not found\" }, ", - " \"ERROR_KEYVALUE_KEY_NOT_UNIQUE\" : { \"code\" : 1803, \"message\" : \"key is not unique\" }, ", - " \"ERROR_KEYVALUE_KEY_NOT_CHANGED\" : { \"code\" : 1804, \"message\" : \"key value not changed\" }, ", - " \"ERROR_KEYVALUE_KEY_NOT_REMOVED\" : { \"code\" : 1805, \"message\" : \"key value not removed\" }, ", - " \"ERROR_KEYVALUE_NO_VALUE\" : { \"code\" : 1806, \"message\" : \"missing value\" }, ", - " \"ERROR_GRAPH_INVALID_GRAPH\" : { \"code\" : 1901, \"message\" : \"invalid graph\" }, ", - " \"ERROR_GRAPH_COULD_NOT_CREATE_GRAPH\" : { \"code\" : 1902, \"message\" : \"could not create graph\" }, ", - " \"ERROR_GRAPH_INVALID_VERTEX\" : { \"code\" : 1903, \"message\" : \"invalid vertex\" }, ", - " \"ERROR_GRAPH_COULD_NOT_CREATE_VERTEX\" : { \"code\" : 1904, \"message\" : \"could not create vertex\" }, ", - " \"ERROR_GRAPH_COULD_NOT_CHANGE_VERTEX\" : { \"code\" : 1905, \"message\" : \"could not change vertex\" }, ", - " \"ERROR_GRAPH_INVALID_EDGE\" : { \"code\" : 1906, \"message\" : \"invalid edge\" }, ", - " \"ERROR_GRAPH_COULD_NOT_CREATE_EDGE\" : { \"code\" : 1907, \"message\" : \"could not create edge\" }, ", - " \"ERROR_GRAPH_COULD_NOT_CHANGE_EDGE\" : { \"code\" : 1908, \"message\" : \"could not change edge\" }, ", - " \"SIMPLE_CLIENT_UNKNOWN_ERROR\" : { \"code\" : 2000, \"message\" : \"unknown client error\" }, ", - " \"SIMPLE_CLIENT_COULD_NOT_CONNECT\" : { \"code\" : 2001, \"message\" : \"could not connect to server\" }, ", - " \"SIMPLE_CLIENT_COULD_NOT_WRITE\" : { \"code\" : 2002, \"message\" : \"could not write to server\" }, ", - " \"SIMPLE_CLIENT_COULD_NOT_READ\" : { \"code\" : 2003, \"message\" : \"could not read from server\" }, ", - " \"ERROR_ARANGO_INDEX_PQ_INSERT_FAILED\" : { \"code\" : 3100, \"message\" : \"priority queue insert failure\" }, ", - " \"ERROR_ARANGO_INDEX_PQ_REMOVE_FAILED\" : { \"code\" : 3110, \"message\" : \"priority queue remove failure\" }, ", - " \"ERROR_ARANGO_INDEX_PQ_REMOVE_ITEM_MISSING\" : { \"code\" : 3111, \"message\" : \"priority queue remove failure - item missing in index\" }, ", - " \"ERROR_ARANGO_INDEX_HASH_INSERT_ITEM_DUPLICATED\" : { \"code\" : 3312, \"message\" : \"(non-unique) hash index insert failure - document duplicated in index\" }, ", - " \"ERROR_ARANGO_INDEX_SKIPLIST_INSERT_ITEM_DUPLICATED\" : { \"code\" : 3313, \"message\" : \"(non-unique) skiplist index insert failure - document duplicated in index\" }, ", - " \"WARNING_ARANGO_INDEX_HASH_DOCUMENT_ATTRIBUTE_MISSING\" : { \"code\" : 3200, \"message\" : \"hash index insertion warning - attribute missing in document\" }, ", - " \"WARNING_ARANGO_INDEX_HASH_UPDATE_ATTRIBUTE_MISSING\" : { \"code\" : 3202, \"message\" : \"hash index update warning - attribute missing in revised document\" }, ", - " \"WARNING_ARANGO_INDEX_HASH_REMOVE_ITEM_MISSING\" : { \"code\" : 3211, \"message\" : \"hash index remove failure - item missing in index\" }, ", - " \"WARNING_ARANGO_INDEX_SKIPLIST_DOCUMENT_ATTRIBUTE_MISSING\" : { \"code\" : 3300, \"message\" : \"skiplist index insertion warning - attribute missing in document\" }, ", - " \"WARNING_ARANGO_INDEX_SKIPLIST_UPDATE_ATTRIBUTE_MISSING\" : { \"code\" : 3302, \"message\" : \"skiplist index update warning - attribute missing in revised document\" }, ", - " \"WARNING_ARANGO_INDEX_SKIPLIST_REMOVE_ITEM_MISSING\" : { \"code\" : 3311, \"message\" : \"skiplist index remove failure - item missing in index\" }, ", - " \"WARNING_ARANGO_INDEX_BITARRAY_DOCUMENT_ATTRIBUTE_MISSING\" : { \"code\" : 3400, \"message\" : \"bitarray index insertion warning - attribute missing in document\" }, ", - " \"WARNING_ARANGO_INDEX_BITARRAY_UPDATE_ATTRIBUTE_MISSING\" : { \"code\" : 3402, \"message\" : \"bitarray index update warning - attribute missing in revised document\" }, ", - " \"WARNING_ARANGO_INDEX_BITARRAY_REMOVE_ITEM_MISSING\" : { \"code\" : 3411, \"message\" : \"bitarray index remove failure - item missing in index\" }, ", - " \"ERROR_ARANGO_INDEX_BITARRAY_INSERT_ITEM_UNSUPPORTED_VALUE\" : { \"code\" : 3413, \"message\" : \"bitarray index insert failure - document attribute value unsupported in index\" }, ", - " \"ERROR_ARANGO_INDEX_BITARRAY_CREATION_FAILURE_DUPLICATE_ATTRIBUTES\" : { \"code\" : 3415, \"message\" : \"bitarray index creation failure - one or more index attributes are duplicated.\" }, ", - " \"ERROR_ARANGO_INDEX_BITARRAY_CREATION_FAILURE_DUPLICATE_VALUES\" : { \"code\" : 3417, \"message\" : \"bitarray index creation failure - one or more index attribute values are duplicated.\" }, ", - "};", - "}());", - "", - "//__end__" -}; diff --git a/js/common/bootstrap/js-modules.h b/js/common/bootstrap/js-modules.h deleted file mode 100644 index 33177c2fa0..0000000000 --- a/js/common/bootstrap/js-modules.h +++ /dev/null @@ -1,638 +0,0 @@ -const char* JS_common_bootstrap_modules[] = { - "/*jslint indent: 2,", - " nomen: true,", - " maxlen: 100,", - " sloppy: true,", - " vars: true,", - " white: true,", - " plusplus: true */", - "/*global require, module, ModuleCache, SYS_EXECUTE, CONSOLE_ERROR,", - " FS_MOVE, FS_REMOVE, FS_EXISTS, ", - " SYS_LOAD, SYS_LOG, SYS_LOG_LEVEL, SYS_OUTPUT,", - " SYS_PROCESS_STAT, SYS_READ, SYS_SPRINTF, SYS_TIME,", - " SYS_START_PAGER, SYS_STOP_PAGER, ARANGO_QUIET, MODULES_PATH,", - " COLOR_OUTPUT, COLOR_OUTPUT_RESET, COLOR_BRIGHT, PRETTY_PRINT,", - " SYS_SHA256, SYS_WAIT, SYS_GETLINE */", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief JavaScript server functions", - "///", - "/// @file", - "///", - "/// DISCLAIMER", - "///", - "/// Copyright 2010-2011 triagens GmbH, Cologne, Germany", - "///", - "/// Licensed under the Apache License, Version 2.0 (the \"License\");", - "/// you may not use this file except in compliance with the License.", - "/// You may obtain a copy of the License at", - "///", - "/// http://www.apache.org/licenses/LICENSE-2.0", - "///", - "/// Unless required by applicable law or agreed to in writing, software", - "/// distributed under the License is distributed on an \"AS IS\" BASIS,", - "/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "/// See the License for the specific language governing permissions and", - "/// limitations under the License.", - "///", - "/// Copyright holder is triAGENS GmbH, Cologne, Germany", - "///", - "/// @author Dr. Frank Celler", - "/// @author Copyright 2011, triAGENS GmbH, Cologne, Germany", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Module", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief module cache", - "////////////////////////////////////////////////////////////////////////////////", - "", - "ModuleCache = {};", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief module constructor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function Module (id) {", - " this.id = id;", - " this.exports = {};", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief loads a file and creates a new module descriptor", - "////////////////////////////////////////////////////////////////////////////////", - "", - "Module.prototype.require = function (path) {", - " var content;", - " var f;", - " var module;", - " var paths;", - " var raw;", - " var sandbox;", - "", - " // first get rid of any \"..\" and \".\"", - " path = this.normalise(path);", - "", - " // check if you already know the module, return the exports", - " if (ModuleCache.hasOwnProperty(path)) {", - " return ModuleCache[path].exports;", - " }", - "", - " // locate file and read content", - " raw = ModuleCache[\"/internal\"].exports.readFile(path);", - "", - " // create a new sandbox and execute", - " module = ModuleCache[path] = new Module(path);", - "", - " content = \"(function (module, exports, require, print) {\"", - " + raw.content ", - " + \"\\n});\";", - "", - " f = SYS_EXECUTE(content, undefined, path);", - "", - " if (f === undefined) {", - " throw \"cannot create context function\";", - " }", - "", - " f(module,", - " module.exports,", - " function(path) { return module.require(path); },", - " ModuleCache[\"/internal\"].exports.print);", - "", - " return module.exports;", - "};", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief normalises a path", - "////////////////////////////////////////////////////////////////////////////////", - "", - "Module.prototype.normalise = function (path) {", - " var i;", - " var n;", - " var p;", - " var q;", - " var x;", - "", - " if (path === \"\") {", - " return this.id;", - " }", - "", - " p = path.split('/');", - "", - " // relative path", - " if (p[0] === \".\" || p[0] === \"..\") {", - " q = this.id.split('/');", - " q.pop();", - " q = q.concat(p);", - " }", - "", - " // absolute path", - " else {", - " q = p;", - " }", - "", - " // normalize path", - " n = [];", - "", - " for (i = 0; i < q.length; ++i) {", - " x = q[i];", - "", - " if (x === \"..\") {", - " if (n.length === 0) {", - " throw \"cannot cross module top\";", - " }", - "", - " n.pop();", - " }", - " else if (x !== \"\" && x !== \".\") {", - " n.push(x);", - " }", - " }", - "", - " return \"/\" + n.join('/');", - "};", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief unloads module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "Module.prototype.unload = function (path) {", - " if (! path) {", - " return;", - " }", - "", - " var norm = module.normalise(path);", - "", - " if ( norm === \"/\"", - " || norm === \"/internal\"", - " || norm === \"/console\"", - " || norm === \"/fs\") {", - " return;", - " }", - "", - " delete ModuleCache[norm];", - "};", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief unloads module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "Module.prototype.unloadAll = function () {", - " var path;", - "", - " for (path in ModuleCache) {", - " if (ModuleCache.hasOwnProperty(path)) {", - " this.unload(path);", - " }", - " }", - "};", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief top-level module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "module = ModuleCache[\"/\"] = new Module(\"/\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief global require function", - "///", - "/// @FUN{require(@FA{path})}", - "///", - "/// @FN{require} checks if the file specified by @FA{path} has already been", - "/// loaded. If not, the content of the file is executed in a new", - "/// context. Within the context you can use the global variable @CODE{exports}", - "/// in order to export variables and functions. This variable is returned by", - "/// @FN{require}.", - "///", - "/// Assume that your module file is @CODE{test1.js} and contains", - "///", - "/// @verbinclude modules-require-1", - "///", - "/// Then you can use @FN{require} to load the file and access the exports.", - "///", - "/// @verbinclude modules-require-2", - "///", - "/// @FN{require} follows the specification", - "/// Modules/1.1.1.", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function require (path) {", - " return module.require(path);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"fs\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleFS", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief file-system module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "ModuleCache[\"/fs\"] = new Module(\"/fs\");", - "", - "(function () {", - " var fs = ModuleCache[\"/fs\"].exports;", - "", - " fs.exists = FS_EXISTS;", - " fs.move = FS_MOVE;", - " fs.remove = FS_REMOVE;", - "}());", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"internal\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleInternal", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief internal module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "ModuleCache[\"/internal\"] = new Module(\"/internal\");", - "", - "(function () {", - " var internal = ModuleCache[\"/internal\"].exports;", - " var fs = ModuleCache[\"/fs\"].exports;", - "", - " // system functions", - " internal.execute = SYS_EXECUTE;", - " internal.load = SYS_LOAD;", - " internal.log = SYS_LOG;", - " internal.logLevel = SYS_LOG_LEVEL;", - " internal.output = SYS_OUTPUT;", - " internal.processStat = SYS_PROCESS_STAT;", - " internal.read = SYS_READ;", - " internal.sprintf = SYS_SPRINTF;", - " internal.time = SYS_TIME;", - " internal.sha256 = SYS_SHA256;", - " internal.wait = SYS_WAIT;", - "", - "", - " // password interface", - " internal.encodePassword = function (password) {", - " var salt;", - " var encoded;", - "", - " salt = internal.sha256(\"time:\" + SYS_TIME());", - " salt = salt.substr(0,8);", - "", - " encoded = \"$1$\" + salt + \"$\" + internal.sha256(salt + password);", - " ", - " return encoded;", - " }", - "", - "", - "", - " // command line parameter", - " internal.MODULES_PATH = \"\";", - "", - " if (typeof MODULES_PATH !== \"undefined\") {", - " internal.MODULES_PATH = MODULES_PATH;", - " }", - "", - "", - " // output ", - " internal.start_pager = function () {};", - " internal.stop_pager = function () {};", - "", - " internal.ARANGO_QUIET = false;", - "", - " internal.COLOR_OUTPUT = false;", - " internal.COLOR_OUTPUT_DEFAULT = \"\";", - " internal.COLOR_OUTPUT_RESET = \"\";", - " internal.COLOR_BRIGHT = \"\";", - "", - " internal.PRETTY_PRINT = false;", - "", - " if (typeof SYS_START_PAGER !== \"undefined\") {", - " internal.start_pager = SYS_START_PAGER;", - " }", - "", - " if (typeof SYS_STOP_PAGER !== \"undefined\") {", - " internal.stop_pager = SYS_STOP_PAGER;", - " }", - "", - " if (typeof COLOR_OUTPUT !== \"undefined\") {", - " internal.COLOR_OUTPUT = COLOR_OUTPUT;", - " }", - "", - " if (typeof COLOR_OUTPUT_RESET !== \"undefined\") {", - " internal.COLOR_OUTPUT_RESET = COLOR_OUTPUT_RESET;", - " }", - "", - " if (typeof COLOR_BRIGHT !== \"undefined\") {", - " internal.COLOR_BRIGHT = COLOR_BRIGHT;", - " }", - "", - " if (typeof PRETTY_PRINT !== \"undefined\") {", - " internal.PRETTY_PRINT = PRETTY_PRINT;", - " }", - "", - " if (internal.COLOR_OUTPUT) {", - " internal.COLOR_OUTPUT_DEFAULT = internal.COLOR_BRIGHT;", - "", - " internal.COLOR_BLACK = COLOR_BLACK;", - " internal.COLOR_BOLD_BLACK = COLOR_BOLD_BLACK;", - " internal.COLOR_BLINK = COLOR_BLINK;", - " internal.COLOR_BLUE = COLOR_BLUE;", - " internal.COLOR_BOLD_BLUE = COLOR_BOLD_BLUE;", - " internal.COLOR_BRIGHT = COLOR_BRIGHT;", - " internal.COLOR_GREEN = COLOR_GREEN;", - " internal.COLOR_BOLD_GREEN = COLOR_BOLD_GREEN;", - " internal.COLOR_RED = COLOR_RED;", - " internal.COLOR_BOLD_RED = COLOR_BOLD_RED;", - " internal.COLOR_WHITE = COLOR_WHITE;", - " internal.COLOR_BOLD_WHITE = COLOR_BOLD_WHITE;", - " internal.COLOR_YELLOW = COLOR_YELLOW;", - " internal.COLOR_BOLD_YELLOW = COLOR_BOLD_YELLOW;", - " internal.COLOR_OUTPUT_RESET = COLOR_OUTPUT_RESET;", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief reads a file from the module path or the database", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.readFile = function (path) {", - " var i;", - " var mc;", - " var n;", - "", - " // try to load the file", - " var paths = internal.MODULES_PATH;", - "", - " for (i = 0; i < paths.length; ++i) {", - " var p = paths[i];", - "", - " if (p === \"\") {", - " n = \".\" + path + \".js\";", - " }", - " else {", - " n = p + \"/\" + path + \".js\";", - " }", - "", - " if (fs.exists(n)) {", - " return { path : n, content : internal.read(n) };", - " }", - " }", - "", - " // try to load the module from the database", - " mc = internal.db._collection(\"_modules\");", - "", - " if (mc !== null) {", - " n = mc.firstExample({ path: path });", - "", - " if (n !== null) {", - " return { path : \"_collection/\" + path, content : n.module };", - " }", - " }", - "", - " throw \"cannot find a file named '\"", - " + path", - " + \"' using the module path(s) '\" ", - " + internal.MODULES_PATH + \"'\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief loads a file from the file-system", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.loadFile = function (path) {", - " var i;", - "", - " // try to load the file", - " var paths = internal.MODULES_PATH;", - "", - " for (i = 0; i < paths.length; ++i) {", - " var p = paths[i];", - " var n;", - "", - " if (p === \"\") {", - " n = \".\" + path + \".js\";", - " }", - " else {", - " n = p + \"/\" + path + \".js\";", - " }", - "", - " if (fs.exists(n)) {", - " return internal.load(n);", - " }", - " }", - "", - " throw \"cannot find a file named '\"", - " + path ", - " + \"' using the module path(s) '\" ", - " + internal.MODULES_PATH + \"'\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief defines a module", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.defineModule = function (path, file) {", - " var content;", - " var m;", - " var mc;", - "", - " content = internal.read(file);", - "", - " mc = internal.db._collection(\"_modules\");", - "", - " if (mc === null) {", - " throw \"you need to upgrade your database using 'arango-upgrade'\";", - " }", - "", - " path = module.normalise(path);", - " m = mc.firstExample({ path: path });", - "", - " if (m === null) {", - " mc.save({ path: path, module: content });", - " }", - " else {", - " m.module = content;", - " mc.replace(m, m);", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"console\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleConsole", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief console module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "ModuleCache[\"/console\"] = new Module(\"/console\");", - "", - "(function () {", - " var internal = ModuleCache[\"/internal\"].exports;", - " var console = ModuleCache[\"/console\"].exports;", - "", - " console.getline = SYS_GETLINE;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief logs debug message", - "///", - "/// @FUN{console.debug(@FA{format}, @FA{argument1}, ...)}", - "///", - "/// Formats the arguments according to @FA{format} and logs the result as", - "/// debug message.", - "///", - "/// String substitution patterns, which can be used in @FA{format}.", - "///", - "/// - @LIT{\\%s} string", - "/// - @LIT{\\%d}, @LIT{\\%i} integer", - "/// - @LIT{\\%f} floating point number", - "/// - @LIT{\\%o} object hyperlink", - "////////////////////////////////////////////////////////////////////////////////", - "", - " console.debug = function () {", - " var msg;", - "", - " try {", - " msg = internal.sprintf.apply(internal.sprintf, arguments);", - " }", - " catch (err) {", - " msg = err + \": \" + arguments;", - " }", - "", - " internal.log(\"debug\", msg);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief logs error message", - "///", - "/// @FUN{console.error(@FA{format}, @FA{argument1}, ...)}", - "///", - "/// Formats the arguments according to @FA{format} and logs the result as", - "/// error message.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " console.error = function () {", - " var msg;", - "", - " try {", - " msg = internal.sprintf.apply(internal.sprintf, arguments);", - " }", - " catch (err) {", - " msg = err + \": \" + arguments;", - " }", - "", - " internal.log(\"error\", msg);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief logs info message", - "///", - "/// @FUN{console.info(@FA{format}, @FA{argument1}, ...)}", - "///", - "/// Formats the arguments according to @FA{format} and logs the result as", - "/// info message.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " console.info = function () {", - " var msg;", - "", - " try {", - " msg = internal.sprintf.apply(internal.sprintf, arguments);", - " }", - " catch (err) {", - " msg = err + \": \" + arguments;", - " }", - "", - " internal.log(\"info\", msg);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief logs log message", - "///", - "/// @FUN{console.log(@FA{format}, @FA{argument1}, ...)}", - "///", - "/// Formats the arguments according to @FA{format} and logs the result as", - "/// log message.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " console.log = function () {", - " var msg;", - "", - " try {", - " msg = internal.sprintf.apply(internal.sprintf, arguments);", - " }", - " catch (err) {", - " msg = err + \": \" + arguments;", - " }", - "", - " internal.log(\"info\", msg);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief logs warn message", - "///", - "/// @FUN{console.warn(@FA{format}, @FA{argument1}, ...)}", - "///", - "/// Formats the arguments according to @FA{format} and logs the result as", - "/// warn message.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " console.warn = function () {", - " var msg;", - "", - " try {", - " msg = internal.sprintf.apply(internal.sprintf, arguments);", - " }", - " catch (err) {", - " msg = err + \": \" + arguments;", - " }", - "", - " internal.log(\"warn\", msg);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- END-OF-FILE", - "// -----------------------------------------------------------------------------", - "", - "// Local Variables:", - "// mode: outline-minor", - "// outline-regexp: \"^\\\\(/// @brief\\\\|/// @addtogroup\\\\|// --SECTION--\\\\|/// @page\\\\|/// @}\\\\)\"", - "// End:", - "//__end__" -}; diff --git a/js/common/bootstrap/js-print.h b/js/common/bootstrap/js-print.h deleted file mode 100644 index cf9ab33723..0000000000 --- a/js/common/bootstrap/js-print.h +++ /dev/null @@ -1,334 +0,0 @@ -const char* JS_common_bootstrap_print[] = { - "/*jslint indent: 2,", - " nomen: true,", - " maxlen: 100,", - " sloppy: true,", - " vars: true,", - " white: true,", - " plusplus: true */", - "/*global require, print */", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief printing", - "///", - "/// @file", - "///", - "/// DISCLAIMER", - "///", - "/// Copyright 2010-2012 triagens GmbH, Cologne, Germany", - "///", - "/// Licensed under the Apache License, Version 2.0 (the \"License\");", - "/// you may not use this file except in compliance with the License.", - "/// You may obtain a copy of the License at", - "///", - "/// http://www.apache.org/licenses/LICENSE-2.0", - "///", - "/// Unless required by applicable law or agreed to in writing, software", - "/// distributed under the License is distributed on an \"AS IS\" BASIS,", - "/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "/// See the License for the specific language governing permissions and", - "/// limitations under the License.", - "///", - "/// Copyright holder is triAGENS GmbH, Cologne, Germany", - "///", - "/// @author Dr. Frank Celler", - "/// @author Copyright 2011-2012, triAGENS GmbH, Cologne, Germany", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"internal\"", - "// -----------------------------------------------------------------------------", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- private functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints objects to standard output", - "///", - "/// @FUN{internal.printShell(@FA{arg1}, @FA{arg2}, @FA{arg3}, ...)}", - "///", - "/// Only available in shell mode.", - "///", - "/// Prints the arguments. If an argument is an object having a", - "/// function @FN{_PRINT}, then this function is called. Otherwise @FN{toJson} is", - "/// used. A final newline is printed", - "///", - "/// @verbinclude fluent40", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.printShell = function () {", - " var i;", - "", - " for (i = 0; i < arguments.length; ++i) {", - " if (0 < i) {", - " internal.output(\" \");", - " }", - "", - " if (typeof(arguments[i]) === \"string\") {", - " internal.output(arguments[i]);", - " }", - " else {", - " internal.printRecursive(arguments[i], [], \"~\", [], 0);", - " }", - " }", - "", - " if (internal.COLOR_OUTPUT) {", - " internal.output(internal.COLOR_OUTPUT_RESET);", - " }", - "", - " internal.output(\"\\n\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief quote cache", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.characterQuoteCache = {", - " '\\b': '\\\\b', // ASCII 8, Backspace", - " '\\t': '\\\\t', // ASCII 9, Tab", - " '\\n': '\\\\n', // ASCII 10, Newline", - " '\\f': '\\\\f', // ASCII 12, Formfeed", - " '\\r': '\\\\r', // ASCII 13, Carriage Return", - " '\\\"': '\\\\\"',", - " '\\\\': '\\\\\\\\'", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief quotes a single character", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.quoteSingleJsonCharacter = function (c) {", - " if (internal.characterQuoteCache.hasOwnProperty[c]) {", - " return internal.characterQuoteCache[c];", - " }", - "", - " var charCode = c.charCodeAt(0);", - " var result;", - "", - " if (charCode < 16) {", - " result = '\\\\u000';", - " }", - " else if (charCode < 256) {", - " result = '\\\\u00';", - " }", - " else if (charCode < 4096) {", - " result = '\\\\u0';", - " }", - " else {", - " result = '\\\\u';", - " }", - "", - " result += charCode.toString(16);", - " internal.characterQuoteCache[c] = result;", - "", - " return result;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief quotes a string character", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.quoteJsonString = function (str) {", - " var quotable = /[\\\\\\\"\\x00-\\x1f]/g;", - " return '\"' + str.replace(quotable, internal.quoteSingleJsonCharacter) + '\"';", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints objects to standard output without a new-line", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.printRecursive = function (value, seen, path, names, level) {", - " var p;", - "", - " if (seen === undefined) {", - " seen = [];", - " names = [];", - " }", - "", - " p = seen.indexOf(value);", - "", - " if (0 <= p) {", - " internal.output(names[p]);", - " }", - " else {", - " if (value instanceof Object) {", - " seen.push(value);", - " names.push(path);", - " }", - "", - " if (value instanceof Object) {", - " if ('_PRINT' in value) {", - " value._PRINT(seen, path, names, level);", - " }", - " else if (value instanceof Array) {", - " internal.printArray(value, seen, path, names, level);", - " }", - " else if (value.__proto__ === Object.prototype) {", - " internal.printObject(value, seen, path, names, level);", - " }", - " else if ('toString' in value) {", - " internal.output(value.toString());", - " }", - " else {", - " internal.printObject(value, seen, path, names, level);", - " }", - " }", - " else if (value === undefined) {", - " internal.output(\"undefined\");", - " }", - " else {", - " if (typeof(value) === \"string\") {", - " internal.output(internal.quoteJsonString(value));", - " }", - " else {", - " internal.output(String(value));", - " }", - " }", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints the ident for pretty printing", - "///", - "/// @FUN{internal.printIndent(@FA{level})}", - "///", - "/// Only available in shell mode.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.printIndent = function (level) {", - " var j;", - "", - " if (internal.PRETTY_PRINT) {", - " internal.output(\"\\n\");", - "", - " for (j = 0; j < level; ++j) {", - " internal.output(\" \");", - " }", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief JSON representation of an array", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.printArray = function (object, seen, path, names, level) {", - " if (object.length === 0) {", - " internal.output(\"[ ]\");", - " }", - " else {", - " var i;", - " var sep = \"\";", - "", - " internal.output(\"[\");", - "", - " var newLevel = level + 1;", - "", - " for (i = 0; i < object.length; i++) {", - " internal.output(sep);", - "", - " internal.printIndent(newLevel);", - "", - " internal.printRecursive(object[i],", - " seen,", - " path + \"[\" + i + \"]\",", - " names,", - " newLevel);", - " sep = \", \";", - " }", - "", - " internal.printIndent(level);", - "", - " internal.output(\"]\");", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints an object", - "////////////////////////////////////////////////////////////////////////////////", - "", - " internal.printObject = function (object, seen, path, names, level) {", - " var sep = \" \";", - " var k;", - "", - " internal.output(\"{\");", - "", - " var newLevel = level + 1;", - "", - " for (k in object) {", - " if (object.hasOwnProperty(k)) {", - " var val = object[k];", - "", - " internal.output(sep);", - "", - " internal.printIndent(newLevel);", - "", - " if (internal.COLOR_OUTPUT) {", - " internal.output(internal.COLOR_OUTPUT_DEFAULT,", - " k,", - " internal.COLOR_OUTPUT_RESET, ", - " \" : \");", - " }", - " else {", - " internal.output(internal.quoteJsonString(k), \" : \");", - " }", - "", - " internal.printRecursive(val,", - " seen,", - " path + \"[\" + k + \"]\",", - " names,", - " newLevel);", - " sep = \", \";", - " }", - " }", - "", - " internal.printIndent(level);", - "", - " internal.output(\" }\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- global functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief global print", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// must be a variable definition for the browser", - "if (typeof require(\"internal\").printBrowser === \"function\") {", - " print = require(\"internal\").print = require(\"internal\").printBrowser;", - "}", - "else {", - " print = require(\"internal\").print = require(\"internal\").printShell;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// Local Variables:", - "// mode: outline-minor", - "// outline-regexp: \"^\\\\(/// @brief\\\\|/// @addtogroup\\\\|// --SECTION--\\\\|/// @page\\\\|/// @}\\\\)\"", - "// End:", - "//__end__" -}; diff --git a/js/common/bootstrap/modules.js b/js/common/bootstrap/modules.js index 277efcdb2b..e5777cc027 100644 --- a/js/common/bootstrap/modules.js +++ b/js/common/bootstrap/modules.js @@ -460,7 +460,7 @@ ModuleCache["/internal"] = new Module("/internal"); mc = internal.db._collection("_modules"); if (mc === null) { - throw "you need to upgrade your database using 'arango-upgrade'"; + mc = internal.db._create("_modules", { isSystem: true }); } path = module.normalise(path); diff --git a/js/common/modules/jsunity.js b/js/common/modules/jsunity.js index 7fdf901abe..8f1b4374d6 100644 --- a/js/common/modules/jsunity.js +++ b/js/common/modules/jsunity.js @@ -348,13 +348,7 @@ function RunTest (path) { var content; var f; - try { - content = SYS_READ(path); - } - catch (err) { - console.error("cannot load test file '%s'", path); - return; - } + content = SYS_READ(path); content = "(function(jsUnity){jsUnity.attachAssertions();" + content + "})"; f = SYS_EXECUTE(content, undefined, path); diff --git a/js/server/js-ahuacatl.h b/js/server/js-ahuacatl.h deleted file mode 100644 index bd749fb013..0000000000 --- a/js/server/js-ahuacatl.h +++ /dev/null @@ -1,2273 +0,0 @@ -const char* JS_server_ahuacatl[] = { - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief Ahuacatl, internal query functions ", - "///", - "/// @file", - "///", - "/// DISCLAIMER", - "///", - "/// Copyright 2010-2012 triagens GmbH, Cologne, Germany", - "///", - "/// Licensed under the Apache License, Version 2.0 (the \"License\");", - "/// you may not use this file except in compliance with the License.", - "/// You may obtain a copy of the License at", - "///", - "/// http://www.apache.org/licenses/LICENSE-2.0", - "///", - "/// Unless required by applicable law or agreed to in writing, software", - "/// distributed under the License is distributed on an \"AS IS\" BASIS,", - "/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "/// See the License for the specific language governing permissions and", - "/// limitations under the License.", - "///", - "/// Copyright holder is triAGENS GmbH, Cologne, Germany", - "///", - "/// @author Jan Steemann", - "/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany", - "////////////////////////////////////////////////////////////////////////////////", - "", - "var internal = require(\"internal\");", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief type weight used for sorting and comparing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "var AHUACATL_TYPEWEIGHT_NULL = 0;", - "var AHUACATL_TYPEWEIGHT_BOOL = 1;", - "var AHUACATL_TYPEWEIGHT_NUMBER = 2;", - "var AHUACATL_TYPEWEIGHT_STRING = 4;", - "var AHUACATL_TYPEWEIGHT_LIST = 8;", - "var AHUACATL_TYPEWEIGHT_DOCUMENT = 16;", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- helper functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief throw a runtime exception", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_THROW (error, data) {", - " var err = new ArangoError", - "", - " err.errorNum = error.code;", - " if (data) {", - " err.errorMessage = error.message.replace(/%s/, data);", - " }", - " else {", - " err.errorMessage = error.message;", - " }", - "", - " throw err;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief find an index of a certain type for a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_INDEX (collection, indexTypes) {", - " var indexes = collection.getIndexesNL();", - "", - " for (var i = 0; i < indexes.length; ++i) {", - " var index = indexes[i];", - "", - " for (var j = 0; j < indexTypes.length; ++j) {", - " if (index.type == indexTypes[j]) {", - " return index.id;", - " }", - " }", - " }", - "", - " return null;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief normalize a value for comparison, sorting etc.", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NORMALIZE (value) {", - " if (value === null || value === undefined) {", - " return null;", - " }", - " if (typeof(value) !== \"object\") {", - " return value;", - " }", - "", - " if (Array.isArray(value)) {", - " var result = [ ];", - " var length = value.length;", - " for (var i = 0; i < length; ++i) {", - " result.push(AHUACATL_NORMALIZE(value[i]));", - " }", - " ", - " return result;", - " } ", - " else {", - " var attributes = [ ];", - " for (var attribute in value) {", - " if (!value.hasOwnProperty(attribute)) {", - " continue;", - " }", - " attributes.push(attribute);", - " }", - " attributes.sort();", - "", - " var result = { };", - " var length = attributes.length;", - " for (var i = 0; i < length; ++i) {", - " result[attributes[i]] = AHUACATL_NORMALIZE(value[attributes[i]]);", - " }", - "", - " return result;", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief clone an object", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_CLONE (obj) {", - " if (obj == null) {", - " return obj;", - " }", - "", - " if (typeof(obj) != \"object\") {", - " return obj;", - " }", - "", - " if (Array.isArray(obj)) {", - " var copy = [];", - " var length = obj.length;", - " for (var i = 0; i < length; ++i) {", - " copy[i] = AHUACATL_CLONE(obj[i]);", - " }", - " return copy;", - " }", - "", - " if (obj instanceof Object) {", - " var copy = {};", - " for (var attr in obj) {", - " if (obj.hasOwnProperty(attr)) {", - " copy[attr] = AHUACATL_CLONE(obj[attr]);", - " }", - " }", - " return copy;", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief validate function call argument", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARG_CHECK (actualValue, expectedType, functionName) {", - " if (AHUACATL_TYPEWEIGHT(actualValue) !== expectedType) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, functionName);", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief call a function", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_FCALL (name, parameters) {", - " return name.apply(null, parameters);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return the numeric value or undefined if it is out of range", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMERIC_VALUE (value) {", - " if (isNaN(value) || !isFinite(value)) {", - " return null;", - " }", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief fix a value for a comparison", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_FIX (value) {", - " if (value === undefined) {", - " return null;", - " }", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the name for a type", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_TYPENAME (value) {", - " switch (value) {", - " case AHUCATL_TYPEWEIGHT_BOOL:", - " return 'boolean';", - " case AHUCATL_TYPEWEIGHT_NUMBER:", - " return 'number';", - " case AHUCATL_TYPEWEIGHT_STRING:", - " return 'string';", - " case AHUCATL_TYPEWEIGHT_LIST:", - " return 'list';", - " case AHUCATL_TYPEWEIGHT_DOCUMENT:", - " return 'document';", - " case AHUCATL_TYPEWEIGHT_NULL:", - " default:", - " return 'null';", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the sort type of an operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_TYPEWEIGHT (value) {", - " if (value === undefined || value === null) {", - " return AHUACATL_TYPEWEIGHT_NULL;", - " }", - "", - " if (Array.isArray(value)) {", - " return AHUACATL_TYPEWEIGHT_LIST;", - " }", - "", - " switch (typeof(value)) {", - " case 'boolean':", - " return AHUACATL_TYPEWEIGHT_BOOL;", - " case 'number':", - " if (isNaN(value) || !isFinite(value)) {", - " // not a number => undefined", - " return AHUACATL_TYPEWEIGHT_NULL; ", - " }", - " return AHUACATL_TYPEWEIGHT_NUMBER;", - " case 'string':", - " return AHUACATL_TYPEWEIGHT_STRING;", - " case 'object':", - " return AHUACATL_TYPEWEIGHT_DOCUMENT;", - " }", - "", - " return AHUACATL_TYPEWEIGHT_NULL;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the values of an object in the order that they are defined", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_VALUES (value) {", - " var values = [];", - " ", - " for (var k in value) {", - " if (value.hasOwnProperty(k)) {", - " values.push(value[k]);", - " }", - " }", - "", - " return values;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the keys of an array or object in a comparable way", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_KEYS (value, doSort) {", - " var keys = [];", - " ", - " if (Array.isArray(value)) {", - " var n = value.length;", - " for (var j = 0; j < n; ++j) {", - " keys.push(j);", - " }", - " }", - " else {", - " for (var k in value) {", - " if (value.hasOwnProperty(k)) {", - " keys.push(k);", - " }", - " }", - "", - " if (doSort) {", - " // object keys need to be sorted by names", - " keys.sort();", - " }", - " }", - "", - " return keys;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the keys of an array or object in a comparable way", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_KEYLIST (lhs, rhs) {", - " var keys = [];", - " ", - " if (Array.isArray(lhs)) {", - " // lhs & rhs are lists", - " var n;", - " if (lhs.length > rhs.length) {", - " n = lhs.length;", - " }", - " else {", - " n = rhs.length;", - " }", - " for (var j = 0; j < n; ++j) {", - " keys.push(j);", - " }", - " return keys;", - " }", - "", - " // lhs & rhs are arrays", - " var k;", - " for (k in lhs) {", - " keys.push(k);", - " }", - " for (k in rhs) {", - " if (lhs.hasOwnProperty(k)) {", - " continue;", - " }", - " keys.push(k);", - " }", - "", - " // object keys need to be sorted by names", - " keys.sort();", - "", - " return keys;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get an indexed value from an array or document (e.g. users[3])", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_INDEX (value, index) {", - " if (AHUACATL_TYPEWEIGHT(value) == AHUACATL_TYPEWEIGHT_NULL) {", - " return null;", - " }", - " ", - " if (AHUACATL_TYPEWEIGHT(value) != AHUACATL_TYPEWEIGHT_LIST &&", - " AHUACATL_TYPEWEIGHT(value) != AHUACATL_TYPEWEIGHT_DOCUMENT) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_LIST_EXPECTED);", - " }", - "", - " var result = value[index];", - "", - " if (AHUACATL_TYPEWEIGHT(result) === AHUACATL_TYPEWEIGHT_NULL) {", - " return null;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get an attribute from a document (e.g. users.name)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_DOCUMENT_MEMBER (value, attributeName) {", - " if (AHUACATL_TYPEWEIGHT(value) == AHUACATL_TYPEWEIGHT_NULL) {", - " return null;", - " }", - "", - " if (AHUACATL_TYPEWEIGHT(value) != AHUACATL_TYPEWEIGHT_DOCUMENT) {", - " return null;", - " }", - "", - " var result = value[attributeName];", - "", - " if (AHUACATL_TYPEWEIGHT(result) === AHUACATL_TYPEWEIGHT_NULL) {", - " return null;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief assert that a value is a list, fail otherwise", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LIST (value) {", - " if (AHUACATL_TYPEWEIGHT(value) !== AHUACATL_TYPEWEIGHT_LIST) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_LIST_EXPECTED);", - " }", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get all documents from the specified collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS (collection) {", - " return internal.db[collection].ALL_NL(0, null).documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using the primary index", - "/// (single index value)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_PRIMARY (collection, idx, id) {", - " try {", - " return [ internal.db[collection].document_nl(id) ];", - " }", - " catch (e) {", - " return [ ];", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using the primary index", - "/// (multiple index values)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_PRIMARY_LIST (collection, idx, values) {", - " var result = [ ];", - "", - " for (var i in values) {", - " var id = values[i];", - " try {", - " var d = internal.db[collection].document_nl(id);", - " result.push(d);", - " }", - " catch (e) {", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a hash index", - "/// (single index value)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_HASH (collection, idx, example) {", - " return internal.db[collection].BY_EXAMPLE_HASH_NL(idx, example).documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a hash index", - "/// (multiple index values)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_HASH_LIST (collection, idx, attribute, values) {", - " var result = [ ];", - "", - " for (var i in values) {", - " var value = values[i];", - " var example = { };", - "", - " example[attribute] = value;", - "", - " var documents = internal.db[collection].BY_EXAMPLE_HASH_NL(idx, example).documents;", - " for (var j in documents) {", - " result.push(documents[j]);", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a bitarray", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_BITARRAY (collection, idx, example) {", - " return internal.db[collection].BY_CONDITION_BITARRAY(idx, example).documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a bitarray", - "/// (multiple index values) TODO: replace by 'IN index operator'", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_BITARRAY_LIST (collection, idx, attribute, values) {", - " var result = [ ];", - "", - " for (var i in values) {", - " var value = values[i];", - " var example = { };", - "", - " example[attribute] = value;", - "", - " var documents = internal.db[collection].BY_EXAMPLE_BITARRAY(idx, example).documents;", - " for (var j in documents) {", - " result.push(documents[j]);", - " }", - " }", - "", - " return result;", - "}", - "", - "", - "", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a skiplist", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_SKIPLIST (collection, idx, example) {", - " return internal.db[collection].BY_CONDITION_SKIPLIST_NL(idx, example).documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get documents from the specified collection using a skiplist", - "/// (multiple index values)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GET_DOCUMENTS_SKIPLIST_LIST (collection, idx, attribute, values) {", - " var result = [ ];", - "", - " for (var i in values) {", - " var value = values[i];", - " var example = { };", - "", - " example[attribute] = value;", - "", - " var documents = internal.db[collection].BY_EXAMPLE_SKIPLIST_NL(idx, example).documents;", - " for (var j in documents) {", - " result.push(documents[j]);", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get names of all collections", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_COLLECTIONS () {", - " var collections = internal.db._collections();", - " var result = [ ];", - "", - " for (var i = 0; i < collections.length; ++i) {", - " result.push({ \"_id\" : collections[i]._id, \"name\" : collections[i].name() });", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- logical operations", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief execute ternary operator", - "///", - "/// the condition operand must be a boolean value, returns either the truepart", - "/// or the falsepart ", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_TERNARY_OPERATOR (condition, truePart, falsePart) {", - " if (AHUACATL_TYPEWEIGHT(condition) !== AHUACATL_TYPEWEIGHT_BOOL) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_LOGICAL_VALUE);", - " }", - "", - " if (condition) {", - " return truePart;", - " }", - " return falsePart;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform logical and", - "///", - "/// both operands must be boolean values, returns a boolean, uses short-circuit", - "/// evaluation", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LOGICAL_AND (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_BOOL ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_BOOL) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_LOGICAL_VALUE);", - " }", - "", - " if (!lhs) {", - " return false;", - " }", - "", - " return rhs;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform logical or", - "///", - "/// both operands must be boolean values, returns a boolean, uses short-circuit", - "/// evaluation", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LOGICAL_OR (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_BOOL ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_BOOL) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_LOGICAL_VALUE);", - " }", - " ", - " if (lhs) {", - " return true;", - " }", - "", - " return rhs;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform logical negation", - "///", - "/// the operand must be a boolean values, returns a boolean", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LOGICAL_NOT (lhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_BOOL) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_LOGICAL_VALUE);", - " }", - "", - " return !lhs;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- comparison operations", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform equality check ", - "///", - "/// returns true if the operands are equal, false otherwise", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_EQUAL (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - "", - " if (leftWeight != rightWeight) {", - " return false;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_EQUAL(lhs[key], rhs[key]);", - " if (result === false) {", - " return result;", - " }", - " }", - " return true;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) == 0;", - " }", - "", - " return (lhs === rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform inequality check ", - "///", - "/// returns true if the operands are unequal, false otherwise", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_UNEQUAL (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight != rightWeight) {", - " return true;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_UNEQUAL(lhs[key], rhs[key]);", - " if (result === true) {", - " return result;", - " }", - " }", - "", - " return false;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) != 0;", - " }", - "", - " return (lhs !== rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform greater than check (inner function)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_GREATER_REC (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight > rightWeight) {", - " return true;", - " }", - " if (leftWeight < rightWeight) {", - " return false;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_GREATER_REC(lhs[key], rhs[key]);", - " if (result !== null) {", - " return result;", - " }", - " }", - " ", - " return null;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) > 0;", - " }", - "", - " if (lhs === rhs) {", - " return null;", - " }", - "", - " return (lhs > rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform greater than check ", - "///", - "/// returns true if the left operand is greater than the right operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_GREATER (lhs, rhs) {", - " var result = AHUACATL_RELATIONAL_GREATER_REC(lhs, rhs);", - "", - " if (result === null) {", - " result = false;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform greater equal check (inner function)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_GREATEREQUAL_REC (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight > rightWeight) {", - " return true;", - " }", - " if (leftWeight < rightWeight) {", - " return false;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_GREATEREQUAL_REC(lhs[key], rhs[key]);", - " if (result !== null) {", - " return result;", - " }", - " }", - " ", - " return null;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) >= 0;", - " }", - "", - " if (lhs === rhs) {", - " return null;", - " }", - "", - " return (lhs >= rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform greater equal check ", - "///", - "/// returns true if the left operand is greater or equal to the right operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_GREATEREQUAL (lhs, rhs) {", - " var result = AHUACATL_RELATIONAL_GREATEREQUAL_REC(lhs, rhs);", - "", - " if (result === null) {", - " result = true;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform less than check (inner function)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_LESS_REC (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight < rightWeight) {", - " return true;", - " }", - " if (leftWeight > rightWeight) {", - " return false;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_LESS_REC(lhs[key], rhs[key]);", - " if (result !== null) {", - " return result;", - " }", - " }", - " ", - " return null;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) < 0;", - " }", - "", - " if (lhs === rhs) {", - " return null;", - " }", - "", - " return (lhs < rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform less than check ", - "///", - "/// returns true if the left operand is less than the right operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_LESS (lhs, rhs) {", - " var result = AHUACATL_RELATIONAL_LESS_REC(lhs, rhs);", - "", - " if (result === null) {", - " result = false;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform less equal check (inner function)", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_LESSEQUAL_REC (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight < rightWeight) {", - " return true;", - " }", - " if (leftWeight > rightWeight) {", - " return false;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_LESSEQUAL_REC(lhs[key], rhs[key]);", - " if (result !== null) {", - " return result;", - " }", - " }", - "", - " return null;", - " }", - " ", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - " ", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs) <= 0;", - " }", - " ", - " if (lhs === rhs) {", - " return null;", - " }", - "", - " return (lhs <= rhs);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform less equal check ", - "///", - "/// returns true if the left operand is less or equal to the right operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_LESSEQUAL (lhs, rhs) {", - " var result = AHUACATL_RELATIONAL_LESSEQUAL_REC(lhs, rhs);", - "", - " if (result === null) {", - " result = true;", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform comparison", - "///", - "/// returns -1 if the left operand is less than the right operand, 1 if it is", - "/// greater, 0 if both operands are equal", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_CMP (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (leftWeight < rightWeight) {", - " return -1;", - " }", - " if (leftWeight > rightWeight) {", - " return 1;", - " }", - "", - " // lhs and rhs have the same type", - "", - " if (leftWeight >= AHUACATL_TYPEWEIGHT_LIST) {", - " // arrays and objects", - " var keys = AHUACATL_KEYLIST(lhs, rhs);", - "", - " for (var i in keys) {", - " var key = keys[i];", - " var result = AHUACATL_RELATIONAL_CMP(lhs[key], rhs[key]);", - " if (result !== 0) {", - " return result;", - " }", - " }", - " ", - " return 0;", - " }", - "", - " // primitive type", - " if (AHUACATL_TYPEWEIGHT(lhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " lhs = null;", - " }", - " if (AHUACATL_TYPEWEIGHT(rhs) === AHUACATL_TYPEWEIGHT_NULL) {", - " rhs = null;", - " }", - "", - " if (leftWeight === AHUACATL_TYPEWEIGHT_STRING) {", - " return COMPARE_STRING(lhs, rhs);", - " }", - "", - " if (lhs < rhs) {", - " return -1;", - " }", - " ", - " if (lhs > rhs) {", - " return 1;", - " }", - "", - " return 0;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform in list check ", - "///", - "/// returns true if the left operand is contained in the right operand", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_RELATIONAL_IN (lhs, rhs) {", - " var leftWeight = AHUACATL_TYPEWEIGHT(lhs);", - " var rightWeight = AHUACATL_TYPEWEIGHT(rhs);", - " ", - " if (rightWeight !== AHUACATL_TYPEWEIGHT_LIST) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_LIST_EXPECTED);", - " }", - "", - " var numRight = rhs.length;", - " for (var i = 0; i < numRight; ++i) {", - " if (AHUACATL_RELATIONAL_EQUAL(lhs, rhs[i])) {", - " return true;", - " }", - " }", - "", - " return false;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- arithmetic operations", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform unary plus operation", - "///", - "/// the operand must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_UNARY_PLUS (value) {", - " if (AHUACATL_TYPEWEIGHT(value) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(value);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform unary minus operation", - "///", - "/// the operand must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_UNARY_MINUS (value) {", - " if (AHUACATL_TYPEWEIGHT(value) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(-value);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform artithmetic plus", - "///", - "/// both operands must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARITHMETIC_PLUS (lhs, rhs) { ", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_NUMBER ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(lhs + rhs);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform artithmetic minus", - "///", - "/// both operands must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARITHMETIC_MINUS (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_NUMBER ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(lhs - rhs);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform artithmetic multiplication", - "///", - "/// both operands must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARITHMETIC_TIMES (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_NUMBER ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(lhs * rhs);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform artithmetic division", - "///", - "/// both operands must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARITHMETIC_DIVIDE (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_NUMBER ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - " ", - " if (rhs == 0) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_DIVISION_BY_ZERO);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(lhs / rhs);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform artithmetic modulus", - "///", - "/// both operands must be numeric or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_ARITHMETIC_MODULUS (lhs, rhs) {", - " if (AHUACATL_TYPEWEIGHT(lhs) !== AHUACATL_TYPEWEIGHT_NUMBER ||", - " AHUACATL_TYPEWEIGHT(rhs) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_INVALID_ARITHMETIC_VALUE);", - " }", - "", - " if (rhs == 0) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_DIVISION_BY_ZERO);", - " }", - "", - " var result = AHUACATL_NUMERIC_VALUE(lhs % rhs);", - " if (AHUACATL_TYPEWEIGHT(result) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- string functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform string concatenation", - "///", - "/// all operands must be strings or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_CONCAT () {", - " var result = '';", - "", - " for (var i in arguments) {", - " var element = arguments[i];", - "", - " if (AHUACATL_TYPEWEIGHT(element) === AHUACATL_TYPEWEIGHT_NULL) {", - " continue;", - " }", - "", - " AHUACATL_ARG_CHECK(element, AHUACATL_TYPEWEIGHT_STRING, \"CONCAT\");", - "", - " result += element;", - " }", - "", - " return result; ", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief perform string concatenation using a separator character", - "///", - "/// all operands must be strings or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_CONCAT_SEPARATOR () {", - " var separator;", - " var found = false;", - " var result = '';", - "", - " for (var i in arguments) {", - " var element = arguments[i];", - "", - " if (i > 0 && AHUACATL_TYPEWEIGHT(element) === AHUACATL_TYPEWEIGHT_NULL) {", - " continue;", - " }", - " ", - " AHUACATL_ARG_CHECK(element, AHUACATL_TYPEWEIGHT_STRING, \"CONCAT_SEPARATOR\");", - "", - " if (i == 0) {", - " separator = element;", - " continue;", - " }", - " else if (found) {", - " result += separator;", - " }", - "", - " found = true;", - "", - " result += element;", - " }", - "", - " return result; ", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return the length of a string in characters (not bytes)", - "///", - "/// the input operand must be a string or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_LENGTH (value) {", - " AHUACATL_ARG_CHECK(value, AHUACATL_TYPEWEIGHT_STRING, \"STRING_LENGTH\");", - "", - " return value.length;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief convert a string to lower case", - "///", - "/// the input operand must be a string or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_LOWER (value) {", - " AHUACATL_ARG_CHECK(value, AHUACATL_TYPEWEIGHT_STRING, \"LOWER\");", - "", - " return value.toLowerCase();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief convert a string to upper case", - "///", - "/// the input operand must be a string or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_UPPER (value) {", - " AHUACATL_ARG_CHECK(value, AHUACATL_TYPEWEIGHT_STRING, \"UPPER\");", - "", - " return value.toUpperCase();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a substring of the string", - "///", - "/// the input operand must be a string or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_SUBSTRING (value, offset, count) {", - " AHUACATL_ARG_CHECK(value, AHUACATL_TYPEWEIGHT_STRING, \"SUBSTRING\");", - " AHUACATL_ARG_CHECK(offset, AHUACATL_TYPEWEIGHT_NUMBER, \"SUBSTRING\");", - "", - " return value.substr(offset, count);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief searches a substring in a string", - "///", - "/// the two input operands must be strings or this function will fail", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_STRING_CONTAINS (value, search) {", - " AHUACATL_ARG_CHECK(value, AHUACATL_TYPEWEIGHT_STRING, \"CONTAINS\");", - " AHUACATL_ARG_CHECK(search, AHUACATL_TYPEWEIGHT_STRING, \"CONTAINS\");", - "", - " if (search.length == 0) {", - " return false;", - " }", - "", - " return value.indexOf(search) != -1;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- typecast functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief cast to a bool", - "///", - "/// the operand can have any type, always returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_CAST_BOOL (value) {", - " switch (AHUACATL_TYPEWEIGHT(value)) {", - " case AHUACATL_TYPEWEIGHT_NULL:", - " return false;", - " case AHUACATL_TYPEWEIGHT_BOOL:", - " return value;", - " case AHUACATL_TYPEWEIGHT_NUMBER:", - " return (value != 0);", - " case AHUACATL_TYPEWEIGHT_STRING: ", - " return (value !== '');", - " case AHUACATL_TYPEWEIGHT_LIST:", - " return (value.length > 0);", - " case AHUACATL_TYPEWEIGHT_DOCUMENT:", - " return (AHUACATL_KEYS(value, false).length > 0);", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief cast to a number", - "///", - "/// the operand can have any type, always returns a number", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_CAST_NUMBER (value) {", - " switch (AHUACATL_TYPEWEIGHT(value)) {", - " case AHUACATL_TYPEWEIGHT_NULL:", - " case AHUACATL_TYPEWEIGHT_LIST:", - " case AHUACATL_TYPEWEIGHT_DOCUMENT:", - " return 0.0;", - " case AHUACATL_TYPEWEIGHT_BOOL:", - " return (value ? 1 : 0);", - " case AHUACATL_TYPEWEIGHT_NUMBER:", - " return value;", - " case AHUACATL_TYPEWEIGHT_STRING:", - " var result = parseFloat(value);", - " return ((AHUACATL_TYPEWEIGHT(result) === AHUACATL_TYPEWEIGHT_NUMBER) ? result : 0);", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief cast to a string", - "///", - "/// the operand can have any type, always returns a string", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_CAST_STRING (value) {", - " switch (AHUACATL_TYPEWEIGHT(value)) {", - " case AHUACATL_TYPEWEIGHT_STRING:", - " return value;", - " case AHUACATL_TYPEWEIGHT_NULL:", - " return 'null';", - " case AHUACATL_TYPEWEIGHT_BOOL:", - " return (value ? 'true' : 'false');", - " case AHUACATL_TYPEWEIGHT_NUMBER:", - " case AHUACATL_TYPEWEIGHT_LIST:", - " case AHUACATL_TYPEWEIGHT_DOCUMENT:", - " return value.toString();", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief cast to a list", - "///", - "/// the operand can have any type, always returns a list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_CAST_LIST (value) {", - " switch (AHUACATL_TYPEWEIGHT(value)) {", - " case AHUACATL_TYPEWEIGHT_LIST:", - " return value;", - " case AHUACATL_TYPEWEIGHT_NULL:", - " return [ ];", - " case AHUACATL_TYPEWEIGHT_BOOL:", - " case AHUACATL_TYPEWEIGHT_NUMBER:", - " case AHUACATL_TYPEWEIGHT_STRING:", - " return [ value ];", - " case AHUACATL_TYPEWEIGHT_DOCUMENT:", - " return AHUACATL_VALUES(value);", - " }", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- typecheck functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type null", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_NULL (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_NULL);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type bool", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_BOOL (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_BOOL);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type number", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_NUMBER (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_NUMBER);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type string", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_STRING (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_STRING);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type list", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_LIST (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_LIST);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief test if value is of type document", - "///", - "/// returns a bool", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_IS_DOCUMENT (value) {", - " return (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_DOCUMENT);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- numeric functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief integer closest to value, not greater than value", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMBER_FLOOR (value) {", - " if (!AHUACATL_IS_NUMBER(value)) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"FLOOR\");", - " }", - " ", - " return Math.floor(value);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief integer closest to value and not less than value", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMBER_CEIL (value) {", - " if (!AHUACATL_IS_NUMBER(value)) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"CEIL\");", - " }", - " ", - " return Math.ceil(value);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief integer closest to value ", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMBER_ROUND (value) {", - " if (!AHUACATL_IS_NUMBER(value)) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"ROUND\");", - " }", - " ", - " return Math.round(value);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief absolute value", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMBER_ABS (value) {", - " if (!AHUACATL_IS_NUMBER(value)) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"ABS\");", - " }", - " ", - " return Math.abs(value);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief a random value between 0 and 1", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NUMBER_RAND () {", - " return Math.random();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- high level query functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief sort the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_SORT (value, sortFunction) {", - " AHUACATL_LIST(value);", - " ", - " var n = value.length;", - " if (n > 0) {", - " value.sort(sortFunction);", - " }", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief group the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GROUP (value, sortFunction, groupFunction, into) {", - " AHUACATL_LIST(value);", - "", - " var n = value.length;", - " if (n == 0) {", - " return [ ];", - " }", - "", - " AHUACATL_SORT(value, sortFunction);", - "", - " var result = [ ];", - " var currentGroup = undefined;", - " var oldGroup = undefined;", - " ", - " for (var i = 0; i < n; ++i) {", - " var row = value[i];", - " var groupValue = groupFunction(row);", - "", - " if (AHUACATL_RELATIONAL_UNEQUAL(oldGroup, groupValue)) {", - " oldGroup = AHUACATL_CLONE(groupValue);", - "", - " if (currentGroup) {", - " result.push(AHUACATL_CLONE(currentGroup));", - " }", - " ", - " currentGroup = groupValue;", - " if (into) {", - " currentGroup[into] = [ ];", - " }", - " }", - "", - " if (into) {", - " currentGroup[into].push(AHUACATL_CLONE(row));", - " }", - " }", - "", - " if (currentGroup) {", - " result.push(AHUACATL_CLONE(currentGroup));", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief limit the number of results", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LIMIT (value, offset, count) {", - " AHUACATL_LIST(value);", - "", - " if (count < 0) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_NUMBER_OUT_OF_RANGE);", - " }", - "", - " return value.slice(offset, offset + count);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- list processing functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the length of a list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LENGTH () {", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " return value.length;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the first element of a list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_FIRST () {", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " if (value.length == 0) {", - " return null;", - " }", - "", - " return value[0];", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief get the last element of a list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_LAST () {", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " if (value.length == 0) {", - " return null;", - " }", - "", - " return value[value.length - 1];", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief reverse the elements in a list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_REVERSE () {", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " return value.reverse();", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return a list of unique elements from the list", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_UNIQUE () {", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " var length = value.length;", - " var keys = { };", - " for (var i = 0; i < length; ++i) {", - " var normalized = AHUACATL_NORMALIZE(value[i]);", - " keys[JSON.stringify(normalized)] = normalized;", - " }", - "", - " var result = [];", - " for (var i in keys) {", - " result.push(keys[i]);", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief create the union (all) of all arguments", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_UNION () {", - " var result = [ ];", - "", - " for (var i in arguments) {", - " var element = arguments[i];", - "", - " if (AHUACATL_TYPEWEIGHT(element) !== AHUACATL_TYPEWEIGHT_LIST) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"UNION\");", - " }", - "", - " for (var k in element) {", - " if (!element.hasOwnProperty(k)) {", - " continue;", - " }", - "", - " result.push(element[k]);", - " }", - " }", - "", - " return result; ", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief maximum of all values", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_MAX () {", - " var result = null;", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " for (var i in value) {", - " var currentValue = value[i];", - " ", - " if (AHUACATL_TYPEWEIGHT(currentValue) === AHUACATL_TYPEWEIGHT_NULL) {", - " continue;", - " }", - "", - " if (result === null || AHUACATL_RELATIONAL_GREATER(currentValue, result)) {", - " result = currentValue;", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief minimum of all values", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_MIN () {", - " var result = null;", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " for (var i in value) {", - " var currentValue = value[i];", - " ", - " if (AHUACATL_TYPEWEIGHT(currentValue) === AHUACATL_TYPEWEIGHT_NULL) {", - " continue;", - " }", - " ", - " if (result === null || AHUACATL_RELATIONAL_LESS(currentValue, result)) {", - " result = currentValue;", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief sum of all values", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_SUM () {", - " var result = null;", - " var value = arguments[0];", - "", - " AHUACATL_LIST(value);", - "", - " for (var i in value) {", - " var currentValue = value[i];", - " ", - " if (AHUACATL_TYPEWEIGHT(currentValue) === AHUACATL_TYPEWEIGHT_NULL) {", - " continue;", - " }", - "", - " if (AHUACATL_TYPEWEIGHT(currentValue) !== AHUACATL_TYPEWEIGHT_NUMBER) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"SUM\");", - " }", - " ", - " if (result === null) {", - " result = currentValue;", - " }", - " else {", - " result += currentValue;", - " }", - " }", - "", - " return AHUACATL_NUMERIC_VALUE(result);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- geo functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return at most documents near a certain point", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GEO_NEAR () {", - " var collection = arguments[0];", - " var latitude = arguments[1];", - " var longitude = arguments[2];", - " var limit = arguments[3];", - " var distanceAttribute = arguments[4];", - "", - " var idx = AHUACATL_INDEX(internal.db[collection], [ \"geo1\", \"geo2\" ]); ", - " if (idx == null) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_GEO_INDEX_MISSING, collection);", - " }", - "", - " var result = internal.db[collection].NEAR_NL(idx, latitude, longitude, limit);", - " if (distanceAttribute == null) {", - " return result.documents;", - " }", - "", - " // inject distances", - " var documents = result.documents;", - " var distances = result.distances;", - " var n = documents.length;", - " for (var i = 0; i < n; ++i) {", - " documents[i][distanceAttribute] = distances[i];", - " }", - "", - " return documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return documents within around a certain point", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GEO_WITHIN () {", - " var collection = arguments[0];", - " var latitude = arguments[1];", - " var longitude = arguments[2];", - " var radius = arguments[3];", - " var distanceAttribute = arguments[4];", - "", - " var idx = AHUACATL_INDEX(internal.db[collection], [ \"geo1\", \"geo2\" ]); ", - " if (idx == null) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_GEO_INDEX_MISSING, collection);", - " }", - "", - " var result = internal.db[collection].WITHIN_NL(idx, latitude, longitude, radius);", - " if (distanceAttribute == null) {", - " return result.documents;", - " }", - "", - " // inject distances", - " var documents = result.documents;", - " var distances = result.distances;", - " var n = documents.length;", - " for (var i = 0; i < n; ++i) {", - " documents[i][distanceAttribute] = distances[i];", - " }", - "", - " return documents;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- graph functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief find all paths through a graph", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GRAPH_PATHS () {", - " var vertices = arguments[0];", - " var edgeCollection = arguments[1];", - " var direction = arguments[2] != undefined ? arguments[2] : \"outbound\";", - " var followCycles = arguments[3] ? arguments[3] : false;", - "", - " var minLength = 0;", - " var maxLength = 10;", - " var searchDirection;", - "", - " AHUACATL_LIST(vertices);", - "", - " // validate arguments", - " if (direction == \"outbound\") {", - " searchDirection = 1;", - " }", - " else if (direction == \"inbound\") {", - " searchDirection = 2;", - " }", - " else if (direction == \"any\") {", - " searchDirection = 3;", - " maxLength = 3;", - " }", - " else {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"PATHS\");", - " }", - "", - " if (minLength < 0 || maxLength < 0 || minLength > maxLength) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"PATHS\");", - " }", - "", - " var searchAttributes = { ", - " \"edgeCollection\" : internal.db[edgeCollection],", - " \"minLength\" : minLength, ", - " \"maxLength\" : maxLength, ", - " \"direction\" : searchDirection,", - " \"followCycles\" : followCycles,", - " };", - "", - " // TODO: restrict allEdges to edges with certain _from values etc.", - "", - " var result = [ ];", - " var n = vertices.length;", - " for (var i = 0; i < n; ++i) {", - " var vertex = vertices[i];", - " var visited = { };", - " visited[vertex._id] = true;", - " var connected = AHUACATL_GRAPH_SUBNODES(searchAttributes, vertex._id, visited, [ ], [ vertex ], 0);", - " for (j = 0; j < connected.length; ++j) {", - " result.push(connected[j]);", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief find all paths through a graph, internal part called recursively", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_GRAPH_SUBNODES (searchAttributes, vertexId, visited, edges, vertices, level) {", - " var result = [ ];", - "", - " if (level >= searchAttributes.minLength) {", - " result.push({ ", - " \"vertices\" : vertices, ", - " \"edges\" : edges,", - " \"source\" : vertices[0],", - " \"destination\" : vertices[vertices.length - 1],", - " });", - " }", - "", - " if (level + 1 > searchAttributes.maxLength) {", - " return result;", - " }", - "", - " var subEdges;", - "", - " if (searchAttributes.direction == 1) {", - " subEdges = searchAttributes.edgeCollection.outEdges(vertexId);", - " }", - " else if (searchAttributes.direction == 2) {", - " subEdges = searchAttributes.edgeCollection.inEdges(vertexId);", - " }", - " else if (searchAttributes.direction == 3) {", - " subEdges = searchAttributes.edgeCollection.edges(vertexId);", - " }", - "", - " for (var i = 0; i < subEdges.length; ++i) {", - " var subEdge = subEdges[i];", - " var targets = [ ];", - "", - " if (searchAttributes.direction & 1) {", - " targets.push(subEdge._to);", - " }", - " if (searchAttributes.direction & 2) {", - " targets.push(subEdge._from);", - " }", - "", - " for (var j = 0; j < targets.length; ++j) {", - " var targetId = targets[j];", - " ", - " if (!searchAttributes.followCycles) {", - " if (visited[targetId]) {", - " continue;", - " }", - " visited[targetId] = true;", - " }", - "", - " var clonedEdges = AHUACATL_CLONE(edges);", - " var clonedVertices = AHUACATL_CLONE(vertices);", - " try {", - " clonedVertices.push(internal.db._document_nl(targetId));", - " clonedEdges.push(subEdge);", - " }", - " catch (e) {", - " // avoid \"document not found error\" in case referenced vertices were deleted", - " }", - " ", - " var connected = AHUACATL_GRAPH_SUBNODES(searchAttributes, targetId, AHUACATL_CLONE(visited), clonedEdges, clonedVertices, level + 1);", - " for (k = 0; k < connected.length; ++k) {", - " result.push(connected[k]);", - " }", - "", - " if (!searchAttributes.followCycles) {", - " delete visited[targetId];", - " }", - " }", - " }", - "", - " return result;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- misc functions", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup Ahuacatl", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return value if it's not null, otherwise return alternative", - "///", - "/// the operands can have any type", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NOT_NULL (value, alternative) {", - " if (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_NULL) {", - " return alternative;", - " }", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief return value if it's a list, otherwise return alternative", - "///", - "/// the operands can have any type", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_NOT_LIST (value, alternative) {", - " if (AHUACATL_TYPEWEIGHT(value) === AHUACATL_TYPEWEIGHT_LIST) {", - " return value;", - " }", - "", - " return alternative;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief check whether a document has a specific attribute", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_HAS () {", - " var element = arguments[0];", - " var name = arguments[1];", - " ", - " if (AHUACATL_TYPEWEIGHT(element) === AHUACATL_TYPEWEIGHT_NULL) {", - " return false;", - " }", - "", - " if (AHUACATL_TYPEWEIGHT(element) !== AHUACATL_TYPEWEIGHT_DOCUMENT) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"HAS\");", - " }", - "", - " return element.hasOwnProperty(name);", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief merge all arguments", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_MERGE () {", - " var result = { };", - "", - " for (var i in arguments) {", - " var element = arguments[i];", - "", - " if (AHUACATL_TYPEWEIGHT(element) !== AHUACATL_TYPEWEIGHT_DOCUMENT) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH, \"MERGE\");", - " }", - "", - " for (var k in element) {", - " if (!element.hasOwnProperty(k)) {", - " continue;", - " }", - "", - " result[k] = element[k];", - " }", - " }", - "", - " return result; ", - "}", - "", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief passthru the argument", - "///", - "/// this function is marked as non-deterministic so its argument withstands", - "/// query optimisation. this function can be used for testing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_PASSTHRU () {", - " var value = arguments[0];", - "", - " return value;", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief always fail", - "///", - "/// this function is non-deterministic so it is not executed at query ", - "/// optimisation time. this function can be used for testing", - "////////////////////////////////////////////////////////////////////////////////", - "", - "function AHUACATL_FAIL () {", - " var message = arguments[0];", - "", - " if (AHUACATL_TYPEWEIGHT(message) === AHUACATL_TYPEWEIGHT_STRING) {", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FAIL_CALLED, message);", - " }", - "", - " AHUACATL_THROW(internal.errors.ERROR_QUERY_FAIL_CALLED, \"\");", - "}", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "//__end__" -}; diff --git a/js/server/js-server.h b/js/server/js-server.h deleted file mode 100644 index bd2154ee6b..0000000000 --- a/js/server/js-server.h +++ /dev/null @@ -1,652 +0,0 @@ -const char* JS_server_server[] = { - "/*jslint indent: 2,", - " nomen: true,", - " maxlen: 100,", - " sloppy: true,", - " vars: true,", - " white: true,", - " plusplus: true */", - "/*global require, db, edges, ModuleCache, Module,", - " ArangoCollection, ArangoDatabase,", - " ArangoError, ShapedJson,", - " SYS_DEFINE_ACTION */", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief JavaScript server functions", - "///", - "/// @file", - "///", - "/// DISCLAIMER", - "///", - "/// Copyright 2011-2012 triagens GmbH, Cologne, Germany", - "///", - "/// Licensed under the Apache License, Version 2.0 (the \"License\");", - "/// you may not use this file except in compliance with the License.", - "/// You may obtain a copy of the License at", - "///", - "/// http://www.apache.org/licenses/LICENSE-2.0", - "///", - "/// Unless required by applicable law or agreed to in writing, software", - "/// distributed under the License is distributed on an \"AS IS\" BASIS,", - "/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "/// See the License for the specific language governing permissions and", - "/// limitations under the License.", - "///", - "/// Copyright holder is triAGENS GmbH, Cologne, Germany", - "///", - "/// @author Dr. Frank Celler", - "/// @author Copyright 2011-2012, triAGENS GmbH, Cologne, Germany", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"internal\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleInternal", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief internal module", - "////////////////////////////////////////////////////////////////////////////////", - "", - "(function () {", - " var internal = require(\"internal\");", - " var console = require(\"console\");", - "", - " internal.db = db;", - " internal.edges = db;", - " internal.ArangoCollection = ArangoCollection;", - "", - " if (typeof SYS_DEFINE_ACTION === \"undefined\") {", - " internal.defineAction = function() {", - " console.error(\"SYS_DEFINE_ACTION not available\");", - " };", - " }", - " else {", - " internal.defineAction = SYS_DEFINE_ACTION;", - " }", - "", - " if (typeof SYS_EXECUTE_GLOBAL_CONTEXT_FUNCTION === \"undefined\") {", - " internal.executeGlobalContextFunction = function() {", - " console.error(\"SYS_EXECUTE_GLOBAL_CONTEXT_FUNCTION not available\");", - " };", - " }", - " else {", - " internal.executeGlobalContextFunction = SYS_EXECUTE_GLOBAL_CONTEXT_FUNCTION;", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"simple-query\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleSimpleQuery", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief simple-query module", - "////////////////////////////////////////////////////////////////////////////////", - "", - " try {", - " require(\"simple-query\");", - " }", - " catch (err) {", - " console.error(\"while loading 'simple-query' module: %s\", err);", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- Module \"monkeypatches\"", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8ModuleMonkeypatches", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief monkeypatches module", - "////////////////////////////////////////////////////////////////////////////////", - "", - " try {", - " require(\"monkeypatches\");", - " }", - " catch (err) {", - " console.error(\"while loading 'monkeypatches' module: %s\", err);", - " }", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ShapedJson", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints a shaped json", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ShapedJson.prototype._PRINT = function(seen, path, names, level) {", - " if (this instanceof ShapedJson) {", - " internal.printObject(this, seen, path, names, level);", - " }", - " else {", - " internal.output(this.toString());", - " }", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoError", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints an error", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoError.prototype._PRINT = function() {", - " var errorNum = this.errorNum;", - " var errorMessage = this.errorMessage;", - "", - " internal.output(\"[ArangoError \", errorNum, \": \", errorMessage, \"]\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief converts error to string", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoError.prototype.toString = function() {", - " var errorNum = this.errorNum;", - " var errorMessage = this.errorMessage;", - "", - " return \"[ArangoError \" + errorNum + \": \" + errorMessage + \"]\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoDatabase", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief factory method to create a new statement", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._createStatement = function (data) { ", - " return new ArangoStatement(this, data);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief drops a collection", - "///", - "/// @FUN{db._drop(@FA{collection})}", - "///", - "/// Drops a @FA{collection} and all its indexes.", - "///", - "/// @FUN{db._drop(@FA{collection-identifier})}", - "///", - "/// Drops a collection identified by @FA{collection-identifier} and all its", - "/// indexes. No error is thrown if there is no such collection.", - "///", - "/// @FUN{db._drop(@FA{collection-name})}", - "///", - "/// Drops a collection named @FA{collection-name} and all its indexes. No error", - "/// is thrown if there is no such collection.", - "///", - "/// @EXAMPLES", - "///", - "/// Drops a collection:", - "///", - "/// @verbinclude shell_collection-drop-db", - "///", - "/// Drops a collection identified by name:", - "///", - "/// @verbinclude shell_collection-drop-name-db", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._drop = function(name) {", - " var collection = name;", - "", - " if (! (name instanceof ArangoCollection)) {", - " collection = internal.db._collection(name);", - " }", - "", - " if (collection === null) {", - " return;", - " }", - "", - " return collection.drop();", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief truncates a collection", - "///", - "/// @FUN{db._truncate(@FA{collection})}", - "///", - "/// Truncates a @FA{collection}, removing all documents but keeping all its", - "/// indexes.", - "///", - "/// @FUN{db._truncate(@FA{collection-identifier})}", - "///", - "/// Truncates a collection identified by @FA{collection-identified}. No error is", - "/// thrown if there is no such collection.", - "///", - "/// @FUN{db._truncate(@FA{collection-name})}", - "///", - "/// Truncates a collection named @FA{collection-name}. No error is thrown if", - "/// there is no such collection.", - "///", - "/// @EXAMPLES", - "///", - "/// Truncates a collection:", - "///", - "/// @verbinclude shell_collection-truncate-db", - "///", - "/// Truncates a collection identified by name:", - "///", - "/// @verbinclude shell_collection-truncate-name-db", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._truncate = function(name) {", - " var collection = name;", - "", - " if (! (name instanceof ArangoCollection)) {", - " collection = internal.db._collection(name);", - " }", - "", - " if (collection === null) {", - " return;", - " }", - "", - " collection.truncate();", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief finds an index", - "///", - "/// @FUN{db._index(@FA{index-handle})}", - "///", - "/// Returns the index with @FA{index-handle} or null if no such index exists.", - "///", - "/// @EXAMPLES", - "///", - "/// @verbinclude shell_index-read-db", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._index = function(id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var re = /^([0-9]+)\\/([0-9]+)/;", - " var pa = re.exec(id);", - " var err;", - "", - " if (pa === null) {", - " err = new ArangoError();", - " err.errorNum = internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.code;", - " err.errorMessage = internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.message;", - " throw err;", - " }", - "", - " var col = this._collection(parseInt(pa[1]));", - "", - " if (col === null) {", - " err = new ArangoError();", - " err.errorNum = internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code;", - " err.errorMessage = internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.message;", - " throw err;", - " }", - "", - " var indexes = col.getIndexes();", - " var i;", - "", - " for (i = 0; i < indexes.length; ++i) {", - " var index = indexes[i];", - "", - " if (index.id === id) {", - " return index;", - " }", - " }", - "", - " return null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief drops an index", - "///", - "/// @FUN{db._dropIndex(@FA{index})}", - "///", - "/// Drops the @FA{index}. If the index does not exists, then @LIT{false} is", - "/// returned. If the index existed and was dropped, then @LIT{true} is", - "/// returned. Note that you cannot drop the primary index.", - "///", - "/// @FUN{db._dropIndex(@FA{index-handle})}", - "///", - "/// Drops the index with @FA{index-handle}.", - "///", - "/// @EXAMPLES", - "///", - "/// @verbinclude shell_index-drop-index-db", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._dropIndex = function(id) {", - " if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " var re = /^([0-9]+)\\/([0-9]+)/;", - " var pa = re.exec(id);", - " var err;", - "", - " if (pa === null) {", - " err = new ArangoError();", - " err.errorNum = internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.code;", - " err.errorMessage = internal.errors.ERROR_ARANGO_INDEX_HANDLE_BAD.message;", - " throw err;", - " }", - "", - " var col = this._collection(parseInt(pa[1]));", - "", - " if (col === null) {", - " err = new ArangoError();", - " err.errorNum = internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code;", - " err.errorMessage = internal.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.message;", - " throw err;", - " }", - "", - " return col.dropIndex(id);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints a database", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype._PRINT = function(seen, path, names, level) {", - " internal.output(\"[ArangoDatabase \\\"\" + this._path + \"\\\"]\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief strng representation of a database", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoDatabase.prototype.toString = function(seen, path, names, level) {", - " return \"[ArangoDatabase \\\"\" + this._path + \"\\\"]\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoCollection", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is corrupted", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_CORRUPTED = 0;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is new born", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_NEW_BORN = 1;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is unloaded", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_UNLOADED = 2;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is loaded", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_LOADED = 3;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is unloading", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_UNLOADING = 4;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief collection is deleted", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.STATUS_DELETED = 5;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief document collection", - "////////////////////////////////////////////////////////////////////////////////", - " ", - " ArangoCollection.TYPE_DOCUMENT = 2;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief edge collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.TYPE_EDGE = 3;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief attachment collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.TYPE_ATTACHMENT = 4;", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief converts collection into an array", - "///", - "/// @FUN{@FA{collection}.toArray()}", - "///", - "/// Converts the collection into an array of documents. Never use this call", - "/// in a production environment.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.toArray = function() {", - " return this.ALL(null, null).documents;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief truncates a collection", - "///", - "/// @FUN{@FA{collection}.truncate()}", - "///", - "/// Truncates a @FA{collection}, removing all documents but keeping all its", - "/// indexes.", - "///", - "/// @EXAMPLES", - "///", - "/// Truncates a collection:", - "///", - "/// @verbinclude shell_collection-truncate", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.truncate = function() {", - " return internal.db._truncate(this);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief finds an index of a collection", - "///", - "/// @FUN{@FA{collection}.index(@FA{index-handle})}", - "///", - "/// Returns the index with @FA{index-handle} or null if no such index exists.", - "///", - "/// @EXAMPLES", - "///", - "/// @verbinclude shell_index-read", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.index = function(id) {", - " var indexes = this.getIndexes();", - " var i;", - "", - " if (typeof id === \"string\") {", - " var re = /^([0-9]+)\\/([0-9]+)/;", - " var pa = re.exec(id);", - "", - " if (pa === null) {", - " id = this._id + \"/\" + id;", - " }", - " }", - " else if (id.hasOwnProperty(\"id\")) {", - " id = id.id;", - " }", - "", - " for (i = 0; i < indexes.length; ++i) {", - " var index = indexes[i];", - "", - " if (index.id === id) {", - " return index;", - " }", - " }", - "", - " return null;", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief prints a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype._PRINT = function() {", - " var status = type = \"unknown\";", - "", - " switch (this.status()) {", - " case ArangoCollection.STATUS_NEW_BORN: status = \"new born\"; break;", - " case ArangoCollection.STATUS_UNLOADED: status = \"unloaded\"; break;", - " case ArangoCollection.STATUS_UNLOADING: status = \"unloading\"; break;", - " case ArangoCollection.STATUS_LOADED: status = \"loaded\"; break;", - " case ArangoCollection.STATUS_CORRUPTED: status = \"corrupted\"; break;", - " case ArangoCollection.STATUS_DELETED: status = \"deleted\"; break;", - " }", - "", - " switch (this.type()) {", - " case ArangoCollection.TYPE_DOCUMENT: type = \"document\"; break;", - " case ArangoCollection.TYPE_EDGE: type = \"edge\"; break;", - " case ArangoCollection.TYPE_ATTACHMENT: type = \"attachment\"; break;", - " }", - "", - " internal.output(\"[ArangoCollection \",", - " this._id, ", - " \", \\\"\", this.name(), \"\\\" (type \", type, \", status \", status, \")]\");", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief strng representation of a collection", - "////////////////////////////////////////////////////////////////////////////////", - "", - " ArangoCollection.prototype.toString = function(seen, path, names, level) {", - " return \"[ArangoCollection \" + this._id + \"]\";", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- ArangoStatement", - "// -----------------------------------------------------------------------------", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @addtogroup V8Shell", - "/// @{", - "////////////////////////////////////////////////////////////////////////////////", - " ", - " try {", - " var SQ = require(\"simple-query-basics\");", - " var SB = require(\"statement-basics\");", - " internal.ArangoStatement = SB.ArangoStatement;", - " ArangoStatement = SB.ArangoStatement;", - " }", - " catch (err) {", - " console.error(\"while loading 'statement-basics' module: %s\", err);", - " }", - " ", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief parse a query and return the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.parse = function () {", - " var result = AHUACATL_PARSE(this._query); ", - "", - " return { \"bindVars\" : result.parameters, \"collections\" : result.collections };", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief explain a query and return the results", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.explain = function () {", - " return AHUACATL_EXPLAIN(this._query); ", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @brief execute the query", - "///", - "/// This will return a cursor with the query results in case of success.", - "////////////////////////////////////////////////////////////////////////////////", - "", - " SB.ArangoStatement.prototype.execute = function () {", - " var result = AHUACATL_RUN(this._query, ", - " this._bindVars, ", - " this._doCount != undefined ? this._doCount : false, ", - " null, ", - " true); ", - " return new SQ.GeneralArrayCursor(result, 0, null);", - " };", - "", - "////////////////////////////////////////////////////////////////////////////////", - "/// @}", - "////////////////////////////////////////////////////////////////////////////////", - "", - "}());", - "", - "// -----------------------------------------------------------------------------", - "// --SECTION-- END-OF-FILE", - "// -----------------------------------------------------------------------------", - "", - "// Local Variables:", - "// mode: outline-minor", - "// outline-regexp: \"^\\\\(/// @brief\\\\|/// @addtogroup\\\\|// --SECTION--\\\\|/// @page\\\\|/// @\\\\}\\\\)\"", - "// End:", - "//__end__" -}; diff --git a/js/server/modules/org/arangodb/actions.js b/js/server/modules/org/arangodb/actions.js index 45aaa0774b..a624843621 100644 --- a/js/server/modules/org/arangodb/actions.js +++ b/js/server/modules/org/arangodb/actions.js @@ -1,3 +1,12 @@ +/*jslint indent: 2, + nomen: true, + maxlen: 100, + sloppy: true, + vars: true, + white: true, + plusplus: true */ +/*global require, exports */ + //////////////////////////////////////////////////////////////////////////////// /// @brief JavaScript actions modules /// @@ -41,7 +50,7 @@ var console = require("console"); /// @brief routing cache //////////////////////////////////////////////////////////////////////////////// -var RoutingCache = {}; +var RoutingCache; //////////////////////////////////////////////////////////////////////////////// /// @} @@ -57,143 +66,505 @@ var RoutingCache = {}; //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// -/// @brief looks up a callback for a string +/// @brief splits an URL into parts //////////////////////////////////////////////////////////////////////////////// -function LookupCallbackString (callback) { - var components; - var module; - var fn; +function splitUrl (url) { + var cleaned; + var i; + var parts; + var re1; + var re2; + var cut; + var ors; - if (callback == "") { - return undefined; + re1 = /^(:[a-z]+)(\|:[a-z]+)*$/; + re2 = /^(:[a-z]+)\?$/; + + parts = url.split("/"); + cleaned = []; + + cut = function (x) { + return x.substr(1); + }; + + for (i = 0; i < parts.length; ++i) { + var part = parts[i]; + + if (part !== "" && part !== ".") { + if (part === "..") { + cleaned.pop(); + } + else if (part === "*") { + cleaned.push({ prefix: true }); + } + else if (re1.test(part)) { + ors = part.split("|").map(cut); + cleaned.push({ parameters: ors }); + } + else if (re2.test(part)) { + ors = [ part.substr(1, part.length - 2) ]; + cleaned.push({ parameters: ors, optional: true }); + } + else { + cleaned.push(part); + } + } } - components = callback.split("/"); - fn = components[components.length - 1]; - - components.pop(); - module = components.join("/"); - - try { - module = require(module); - } - catch (err) { - console.error("cannot load callback '%s' from module '%s': %s", - fn, module, "" + err); - return undefined; - } - - if (fn in module) { - return module[fn]; - } - - console.error("callback '%s' is not defined in module '%s'", fn, module); - return undefined; + return cleaned; } //////////////////////////////////////////////////////////////////////////////// -/// @brief looks up a callback for a function +/// @brief looks up an URL //////////////////////////////////////////////////////////////////////////////// -function LookupCallbackFunction (callback) { - var module; - var fn; - - try { - module = require(callback.module); - } - catch (err) { - console.error("cannot load callback '%s' from module '%s': %s", - fn, callback.module, "" + err); - return undefined; +function lookupUrl (prefix, url) { + if (url === undefined) { + return null; } - fn = callback.function; - - if (fn in module) { - return module[fn]; + if (typeof url === 'string') { + return { + urlParts: splitUrl(prefix + "/" + url), + methods: [ exports.GET, exports.HEAD ], + constraint: {} + }; } - console.error("callback '%s' is not defined in module '%s'", fn, module); - return undefined; + if (url.hasOwnProperty('match')) { + return { + urlParts: splitUrl(prefix + "/" + url.match), + methods: url.methods || exports.ALL_METHODS, + constraint: url.constraint || {} + }; + } + + return null; } //////////////////////////////////////////////////////////////////////////////// /// @brief looks up a callback for static data //////////////////////////////////////////////////////////////////////////////// -function LookupCallbackStatic (callback) { +function lookupCallbackStatic (content) { var type; var body; + var methods; + var options; - type = callback.contentType || "text/plain"; - body = callback.body || ""; + if (typeof content === 'string') { + type = "text/plain"; + body = content; + methods = [ exports.GET, exports.HEAD ]; + options = {}; + } + else { + type = content.contentType || "text/plain"; + body = content.body || ""; + methods = content.methods || [ exports.GET, exports.HEAD ]; + } - return function (req, res) { - res.responseCode = exports.HTTP_OK; - res.contentType = type; - res.body = body; + return { + controller: function (req, res, options, next) { + res.responseCode = exports.HTTP_OK; + res.contentType = type; + res.body = body; + }, + + options: options, + methods: methods }; } //////////////////////////////////////////////////////////////////////////////// -/// @brief looks up a callback for a redirect +/// @brief looks up a callback for an action //////////////////////////////////////////////////////////////////////////////// -function LookupCallbackRedirect (callback) { - var redirect; +function lookupCallbackAction (action) { + var path; + var name; + var func; + var module; - redirect = callback.redirect; - - if (redirect == "") { - console.error("empty redirect not allowed"); - return undefined; + if (typeof action === 'string') { + return lookupCallbackAction({ prefixController: action }); } - return function (req, res, next, options) { - var perm = true; + if (action.hasOwnProperty('do')) { + path = action['do'].split("/"); + name = path.pop(); + func = null; - if ('permanent' in options) { - perm = options.perm; + try { + module = require(path.join("/")); + + if (module.hasOwnProperty(name)) { + func = module[name]; + } + else { + console.error("cannot find action named '%s' in module '%s'", name, path.join("/")); + } + } + catch (err) { + console.error("cannot find action named '%s' in module '%s': %s", + name, path.join("/"), String(err)); + return null; } - if (perm) { - actions.resultPermanentRedirect(req, res, redirect); + if (func === null || typeof func !== 'function') { + return null; } - else { - actions.resultTemporaryRedirect(req, res, redirect); + + return { + controller: func, + options: action.options || {}, + methods: action.methods || exports.ALL_METHODS + }; + } + + if (action.hasOwnProperty('controller')) { + try { + module = require(action.controller); + + return { + controller: function (req, res, options, next) { + if (req.requestType === exports.GET && module.hasOwnProperty('get')) { + return module['get'](req, res, options, next); + } + + if (req.requestType === exports.HEAD && module.hasOwnProperty('head')) { + return module['head'](req, res, options, next); + } + + if (req.requestType === exports.PUT && module.hasOwnProperty('put')) { + return module['put'](req, res, options, next); + } + + if (req.requestType === exports.POST && module.hasOwnProperty('post')) { + return module['post'](req, res, options, next); + } + + if (req.requestType === exports.DELETE && module.hasOwnProperty('delete')) { + return module['delete'](req, res, options, next); + } + + if (req.requestType === exports.PATCH && module.hasOwnProperty('patch')) { + return module['patch'](req, res, options, next); + } + + if (module.hasOwnProperty('do')) { + return module['do'](req, res, options, next); + } + + next(); + }, + options: action.options || {}, + methods: action.methods || exports.ALL_METHODS + }; } - }; + catch (err) { + console.error("cannot load action controller module '%s': %s", + action.controller, String(err)); + return null; + } + } + + if (action.hasOwnProperty('prefixController')) { + var prefixController = action.prefixController; + + return { + controller: function (req, res, options, next) { + var module; + + try { + if (req.hasOwnProperty('suffix')) { + module = require(prefixController + "/" + req.suffix.join("/")); + } + else { + module = require(prefixController); + } + } + catch (err) { + console.error("cannot load prefix controller: %s", String(err)); + next(); + return; + } + + if (req.requestType === exports.GET && module.hasOwnProperty('get')) { + return module['get'](req, res, options, next); + } + + if (req.requestType === exports.HEAD && module.hasOwnProperty('head')) { + return module['head'](req, res, options, next); + } + + if (req.requestType === exports.PUT && module.hasOwnProperty('put')) { + return module['put'](req, res, options, next); + } + + if (req.requestType === exports.POST && module.hasOwnProperty('post')) { + return module['post'](req, res, options, next); + } + + if (req.requestType === exports.DELETE && module.hasOwnProperty('delete')) { + return module['delete'](req, res, options, next); + } + + if (req.requestType === exports.PATCH && module.hasOwnProperty('patch')) { + return module['patch'](req, res, options, next); + } + + if (module.hasOwnProperty('do')) { + return module['do'](req, res, options, next); + } + + next(); + }, + options: action.options || {}, + methods: action.methods || exports.ALL_METHODS + }; + } + + return null; } //////////////////////////////////////////////////////////////////////////////// /// @brief looks up a callback //////////////////////////////////////////////////////////////////////////////// -function LookupCallback (callback) { - var type; +function lookupCallback (route) { + var result = null; - if (typeof callback === 'object') { - if ('body' in callback) { - return LookupCallbackStatic(callback); + if (route.hasOwnProperty('content')) { + result = lookupCallbackStatic(route.content); + } + else if (route.hasOwnProperty('action')) { + result = lookupCallbackAction(route.action); + } + + return result; +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief intersect methods +//////////////////////////////////////////////////////////////////////////////// + +function intersectMethods (a, b) { + var d = {}; + var i; + var j; + var results = []; + + a = a || exports.ALL_METHODS; + b = b || exports.ALL_METHODS; + + for (i = 0; i < b.length; i++) { + d[b[i].toUpperCase()] = true; + } + + for (j = 0; j < a.length; j++) { + var name = a[j].toUpperCase(); + + if (d[name]) { + results.push(name); } - else if ('for' in callback && 'do' in callback) { - return LookupCallbackFunction(callback); + } + + return results; +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief defines a new route part +//////////////////////////////////////////////////////////////////////////////// + +function defineRoutePart (route, subwhere, parts, pos, constraint, callback) { + var i; + var p; + var part; + var subsub; + var ok; + + part = parts[pos]; + + if (typeof part === "string") { + if (! subwhere.hasOwnProperty('exact')) { + subwhere.exact = {}; } - else if ('redirect' in callback) { - return LookupCallbackRedirect(callback); + + if (! subwhere.exact.hasOwnProperty(part)) { + subwhere.exact[part] = {}; + } + + if (pos + 1< parts.length) { + defineRoutePart(route, subwhere.exact[part], parts, pos + 1, constraint, callback); } else { - console.error("unknown callback type '%s'", JSON.stringify(callback)); - return undefined; + subwhere.exact[part].route = route; + subwhere.exact[part].callback = callback; } } - else if (typeof callback === "string") { - return LookupCallbackString(callback); + else if (part.hasOwnProperty('parameters')) { + if (! subwhere.hasOwnProperty('parameters')) { + subwhere.parameters = []; + } + + ok = true; + + if (part.optional) { + if (pos + 1 < parts.length) { + console.error("cannot define optional parameter within url, ignoring route"); + ok = false; + } + else if (part.parameters.length !== 1) { + console.error("cannot define multiple optional parameters, ignoring route"); + ok = false; + } + } + + if (ok) { + for (i = 0; i < part.parameters.length; ++i) { + p = part.parameters[i]; + subsub = { parameter: p, match: {}}; + subwhere.parameters.push(subsub); + + if (constraint.hasOwnProperty(p)) { + subsub.constraint = constraint[p]; + } + + subsub.optional = part.optional || false; + + if (pos + 1 < parts.length) { + defineRoutePart(route, subsub.match, parts, pos + 1, constraint, callback); + } + else { + subsub.match.route = route; + subsub.match.callback = callback; + } + } + } + } + else if (part.hasOwnProperty('prefix')) { + if (! subwhere.hasOwnProperty('prefix')) { + subwhere.prefix = {}; + } + + if (pos + 1 < parts.length) { + console.error("cannot define prefix match within url, ignoring route"); + } + else { + subwhere.prefix.route = route; + subwhere.prefix.callback = callback; + } + } +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief defines a new route +//////////////////////////////////////////////////////////////////////////////// + +function defineRoute (route, where, url, callback) { + var methods; + var branch; + var i; + var j; + + methods = intersectMethods(url.methods, callback.methods); + + for (j = 0; j < methods.length; ++j) { + var method = methods[j]; + + defineRoutePart(route, where[method], url.urlParts, 0, url.constraint, callback); + } +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief extracts the routing for a path and a a method +//////////////////////////////////////////////////////////////////////////////// + +function flattenRouting (routes, path, urlParameters, depth, prefix) { + var cur; + var i; + var k; + var result = []; + + if (routes.hasOwnProperty('exact')) { + for (k in routes.exact) { + if (routes.exact.hasOwnProperty(k)) { + cur = path + "/" + k.replace(/([\.\+\*\?\^\$\(\)\[\]])/g, "\\$1"); + result = result.concat(flattenRouting(routes.exact[k], + cur, + urlParameters.shallowCopy, + depth + 1, + false)); + } + } } - return undefined; + if (routes.hasOwnProperty('parameters')) { + for (i = 0; i < routes.parameters.length; ++i) { + var parameter = routes.parameters[i]; + var newUrlParameters = urlParameters.shallowCopy; + var match; + + if (parameter.hasOwnProperty('constraint')) { + var constraint = parameter.constraint; + + if (/\/.*\//.test(constraint)) { + match = "/" + constraint.substr(1, constraint.length - 2); + } + else { + match = "/" + constraint; + } + } + else { + match = "/[^/]+"; + } + + if (parameter.optional) { + cur = path + "(" + match + ")?"; + } + else { + cur = path + match; + } + + newUrlParameters[parameter.parameter] = depth; + + result = result.concat(flattenRouting(parameter.match, + cur, + newUrlParameters, + depth + 1, + false)); + } + } + + if (routes.hasOwnProperty('callback')) { + result = result.concat([{ + path: path, + regexp: new RegExp("^" + path + "$"), + prefix: prefix, + depth: depth, + urlParameters: urlParameters, + callback: routes.callback, + route: routes.route + }]); + } + + if (routes.hasOwnProperty('prefix')) { + if (! routes.prefix.hasOwnProperty('callback')) { + console.error("prefix match must end in '/*'"); + } + else { + cur = path + "(/[^/]+)*"; + result = result.concat(flattenRouting(routes.prefix, + cur, + urlParameters.shallowCopy, + depth + 1, + true)); + } + } + + return result; } //////////////////////////////////////////////////////////////////////////////// @@ -276,13 +647,14 @@ function LookupCallback (callback) { /// - @c "string" //////////////////////////////////////////////////////////////////////////////// -function DefineHttp (options) { +function defineHttp (options) { var url = options.url; var contexts = options.context; var callback = options.callback; var parameters = options.parameters; var prefix = true; var userContext = false; + var i; if (! contexts) { contexts = "user"; @@ -296,7 +668,9 @@ function DefineHttp (options) { contexts = [ contexts ]; } else { - for (var i = 0; i < contexts.length && ! userContext; ++i) { + for (i = 0; i < contexts.length && ! userContext; ++i) { + var context = contexts[i]; + if (context === "user") { userContext = true; } @@ -338,8 +712,10 @@ function DefineHttp (options) { /// Returns the error message for an error code. //////////////////////////////////////////////////////////////////////////////// -function GetErrorMessage (code) { - for (var key in internal.errors) { +function getErrorMessage (code) { + var key; + + for (key in internal.errors) { if (internal.errors.hasOwnProperty(key)) { if (internal.errors[key].code === code) { return internal.errors[key].message; @@ -354,14 +730,14 @@ function GetErrorMessage (code) { /// @brief extracts the body as json //////////////////////////////////////////////////////////////////////////////// -function GetJsonBody (req, res, code) { +function getJsonBody (req, res, code) { var body; try { body = JSON.parse(req.requestBody || "{}") || {}; } catch (err) { - ResultBad(req, res, exports.ERROR_HTTP_CORRUPTED_JSON, err); + exports.resultBad(req, res, exports.ERROR_HTTP_CORRUPTED_JSON, err); return undefined; } @@ -370,7 +746,7 @@ function GetJsonBody (req, res, code) { code = exports.ERROR_HTTP_CORRUPTED_JSON; } - ResultBad(req, res, code, err); + exports.resultBad(req, res, code, err); return undefined; } @@ -380,7 +756,8 @@ function GetJsonBody (req, res, code) { //////////////////////////////////////////////////////////////////////////////// /// @brief generates an error /// -/// @FUN{actions.resultError(@FA{req}, @FA{res}, @FA{code}, @FA{errorNum}, @FA{errorMessage}, @FA{headers}, @FA{keyvals})} +/// @FUN{actions.resultError(@FA{req}, @FA{res}, @FA{code}, @FA{errorNum}, +/// @FA{errorMessage}, @FA{headers}, @FA{keyvals})} /// /// The functions generates an error response. The response body is an array /// with an attribute @LIT{errorMessage} containing the error message @@ -390,7 +767,9 @@ function GetJsonBody (req, res, code) { /// into the result. //////////////////////////////////////////////////////////////////////////////// -function ResultError (req, res, httpReturnCode, errorNum, errorMessage, headers, keyvals) { +function resultError (req, res, httpReturnCode, errorNum, errorMessage, headers, keyvals) { + var i; + res.responseCode = httpReturnCode; res.contentType = "application/json; charset=utf-8"; @@ -404,7 +783,7 @@ function ResultError (req, res, httpReturnCode, errorNum, errorMessage, headers, var result = {}; if (keyvals !== undefined) { - for (var i in keyvals) { + for (i in keyvals) { if (keyvals.hasOwnProperty(i)) { result[i] = keyvals[i]; } @@ -427,251 +806,200 @@ function ResultError (req, res, httpReturnCode, errorNum, errorMessage, headers, /// @brief flushes cache and reload routing information //////////////////////////////////////////////////////////////////////////////// -function ReloadRouting () { - var all = [ exports.DELETE, exports.GET, exports.HEAD, exports.POST, exports.PUT, exports.PATCH ]; - var callbacks; +function reloadRouting () { var i; - var method; var routes; - var routing = internal.db._collection("_routing"); - var routings; + var routing; + var handleRoute; + var handleMiddleware; + var method; + + // ............................................................................. + // clear the routing cache + // ............................................................................. RoutingCache = {}; - for (i = 0; i < all.length; ++i) { - method = all[i]; - RoutingCache[method] = {}; + RoutingCache.routes = {}; + RoutingCache.middleware = {}; + + for (i = 0; i < exports.ALL_METHODS.length; ++i) { + method = exports.ALL_METHODS[i]; + + RoutingCache.routes[method] = {}; + RoutingCache.middleware[method] = {}; } + // ............................................................................. + // lookup all routes + // ............................................................................. + + routing = internal.db._collection("_routing"); + if (routing === null) { - return; + routing = internal.db._create("_routing", { isSystem: true }); } routes = routing.all(); + // ............................................................................. + // defines a new route + // ............................................................................. + + handleRoute = function (storage, urlPrefix, modulePrefix, route) { + var url; + var callback; + + url = lookupUrl(urlPrefix, route.url); + + if (url === null) { + console.error("route '%s' has an unkown url, ignoring", JSON.stringify(route)); + return; + } + + callback = lookupCallback(route); + + if (callback === null) { + console.error("route '%s' has an unknown callback, ignoring", JSON.stringify(route)); + return; + } + + defineRoute(route, storage, url, callback); + }; + + // ............................................................................. + // loop over the routes or routes bundle + // ............................................................................. + while (routes.hasNext()) { var route = routes.next(); + var r; - var callback; - var methods = [ exports.GET, exports.HEAD ]; - var topdown = false; - var path; - var prefix = false; - var prio = 1.0; - var tmp; + if (route.hasOwnProperty('routes') || route.hasOwnProperty('middleware')) { + var urlPrefix = route.urlPrefix || ""; + var modulePrefix = route.modulePrefix || ""; - // extract path - if (! ('path' in route)) { - console.error("route %s is missing the 'path' attribute", route._id); - continue; - } + if (route.hasOwnProperty('routes')) { + r = route.routes; - path = route.path; - - // extract callback - if (! ('callback' in route)) { - console.error("route %s is missing the 'callback' attribute", route._id); - continue; - } - - callback = route.callback; - - if ( !(callback instanceof Array)) { - callback = [ callback ]; - } - - tmp = []; - - for (i = 0; i < callback.length; ++i) { - var cb = LookupCallback(callback[i]); - - if (cb === undefined) { - console.error("route '%s' contains invalid callback '%s'", - route._id, JSON.stringify(callback[i])); - } - else if (typeof cb !== "function") { - console.error("route '%s' contains non-function callback '%s'", - route._id, JSON.stringify(callback[i])); - } - else { - var result = { - func: cb, - options: callback[i].options || {} - }; - - tmp.push(result); - } - } - - callback = tmp; - - // extract method - if ('method' in route) { - methods = route.method; - - if (typeof methods === 'string') { - if (methods === "all" || methods === "*") { - methods = all; + for (i = 0; i < r.length; ++i) { + handleRoute(RoutingCache.routes, urlPrefix, modulePrefix, r[i]); } - else { - methods = [ methods ]; + } + + if (route.hasOwnProperty('middleware')) { + r = route.middleware; + + for (i = 0; i < r.length; ++i) { + handleRoute(RoutingCache.middleware, urlPrefix, modulePrefix, r[i]); } } } - - // extract priority - if ('priority' in route) { - prio = route.priority; + else { + handleRoute(RoutingCache.routes, "", "", route); } + } - // extract topdown flag - if ('topdown' in route) { - topdown = route.topdown; - } + // ............................................................................. + // compute the flat routes + // ............................................................................. - // extract prefix flag - if ('prefix' in route) { - prefix = route.prefix; - } + RoutingCache.flat = {}; - for (i = 0; i < methods.length; ++i) { - method = methods[i].toUpperCase(); - routings = RoutingCache[method]; + for (i = 0; i < exports.ALL_METHODS.length; ++i) { + var a; + var b; - if (routings === undefined) { - console.error("unknown method '%s' in route %s", method, route._id); - continue; - } + method = exports.ALL_METHODS[i]; - if (path in routings) { - callbacks = routings[path]; - } - else { - callbacks = routings[path] = [] - } + a = flattenRouting(RoutingCache.routes[method], "", {}, 0, false); + b = flattenRouting(RoutingCache.middleware[method], "", {}, 0, false).reverse(); - callbacks.push({ - route : route._id, - path : path, - topdown : topdown, - priority : prio, - prefix : prefix, - callback : callback - }); - } + RoutingCache.flat[method] = b.concat(a); } } //////////////////////////////////////////////////////////////////////////////// -/// @brief extratcs the routing for a path and a a method +/// @brief finds the next routing //////////////////////////////////////////////////////////////////////////////// -function Routing (method, path) { - var bottomup; - var components; - var current; +function nextRouting (state) { var i; - var j; - var l; - var result; - var routings; - var topdown; + var k; - routings = RoutingCache[method]; + for (i = state.position + 1; i < state.routing.length; ++i) { + var route = state.routing[i]; - if (routings === undefined) { - return []; - } + if (route.regexp.test(state.url)) { + state.position = i; - topdown = []; - bottomup = []; + state.route = route; - current = "/"; - components = [""].concat(path); + if (route.prefix) { + state.prefix = "/" + state.parts.slice(0, route.depth - 1).join("/"); + state.suffix = state.parts.slice(route.depth - 1, state.parts.length); + } + else { + delete state.prefix; + delete state.suffix; + } - l = components.length; + state.urlParameters = {}; - for (i = 0; i < l; ++i) { - var full = (i + 1) == l; - - if (1 < i) { - current += "/"; - } - - current += components[i]; - - if (current in routings) { - var callbacks = routings[current]; - - for (j = 0; j < callbacks.length; ++j) { - var callback = callbacks[j]; - - if (callback.prefix || full) { - if (callback.topdown) { - topdown.push(callback); - } - else { - bottomup.push(callback); + if (route.urlParameters) { + for (k in route.urlParameters) { + if (route.urlParameters.hasOwnProperty(k)) { + state.urlParameters[k] = state.parts[route.urlParameters[k]]; } } } + + return state; } } - var sortTD = function (a, b) { - var la = a.path.length; - var lb = b.path.length; + delete state.route; + delete state.prefix; + delete state.suffix; + state.urlParameters = {}; - if (la == lb) { - return a.priority - b.priority; - } + return state; +} - return la - lb; - } +//////////////////////////////////////////////////////////////////////////////// +/// @brief finds the first routing +//////////////////////////////////////////////////////////////////////////////// - var sortBU = function (a, b) { - var la = a.path.length; - var lb = b.path.length; +function firstRouting (type, parts) { + var url = parts; - if (la == lb) { - return b.priority - a.priority; - } + if (typeof url === 'string') { + parts = url.split("/"); - return lb - la; - } - - topdown.sort(sortTD); - bottomup.sort(sortBU); - - result = []; - - for (i = 0; i < topdown.length; ++i) { - var td = topdown[i]; - var callback = td.callback; - - for (j = 0; j < callback.length; ++j) { - result.push({ - func: callback[j].func, - options: callback[j].options, - path: td.path - }); + if (parts[0] === '') { + parts.shift(); } } - - for (i = 0; i < bottomup.length; ++i) { - var bu = bottomup[i]; - var callback = bu.callback; - - for (j = 0; j < callback.length; ++j) { - result.push({ - func: callback[j].func, - options: callback[j].options, - path: bu.path - }); - } + else { + url = "/" + parts.join("/"); } - return result; + if (! RoutingCache.flat.hasOwnProperty(type)) { + return { + parts: parts, + position: -1, + url: url, + urlParameters: {} + }; + } + + return nextRouting({ + routing: RoutingCache.flat[type], + parts: parts, + position: -1, + url: url, + urlParameters: {} + }); } //////////////////////////////////////////////////////////////////////////////// @@ -699,7 +1027,7 @@ function Routing (method, path) { /// and @LIT{code} with value @FA{code} to the @FA{result}. //////////////////////////////////////////////////////////////////////////////// -function ResultOk (req, res, httpReturnCode, result, headers) { +function resultOk (req, res, httpReturnCode, result, headers) { res.responseCode = httpReturnCode; res.contentType = "application/json; charset=utf-8"; @@ -726,15 +1054,15 @@ function ResultOk (req, res, httpReturnCode, result, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultBad (req, res, code, msg, headers) { +function resultBad (req, res, code, msg, headers) { if (msg === undefined || msg === null) { - msg = GetErrorMessage(code); + msg = getErrorMessage(code); } else { - msg = "" + msg; + msg = String(msg); } - ResultError(req, res, exports.HTTP_BAD, code, msg, headers); + resultError(req, res, exports.HTTP_BAD, code, msg, headers); } //////////////////////////////////////////////////////////////////////////////// @@ -745,8 +1073,8 @@ function ResultBad (req, res, code, msg, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultNotFound (req, res, msg, headers) { - ResultError(req, res, exports.HTTP_NOT_FOUND, exports.ERROR_HTTP_NOT_FOUND, "" + msg, headers); +function resultNotFound (req, res, msg, headers) { + resultError(req, res, exports.HTTP_NOT_FOUND, exports.ERROR_HTTP_NOT_FOUND, String(msg), headers); } //////////////////////////////////////////////////////////////////////////////// @@ -757,8 +1085,13 @@ function ResultNotFound (req, res, msg, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultNotImplemented (req, res, msg, headers) { - ResultError(req, res, exports.HTTP_NOT_IMPLEMENTED, exports.ERROR_NOT_IMPLEMENTED, "" + msg, headers); +function resultNotImplemented (req, res, msg, headers) { + resultError(req, + res, + exports.HTTP_NOT_IMPLEMENTED, + exports.ERROR_NOT_IMPLEMENTED, + String(msg), + headers); } //////////////////////////////////////////////////////////////////////////////// @@ -769,8 +1102,8 @@ function ResultNotImplemented (req, res, msg, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultUnsupported (req, res, headers) { - ResultError(req, res, +function resultUnsupported (req, res, headers) { + resultError(req, res, exports.HTTP_METHOD_NOT_ALLOWED, exports.ERROR_HTTP_METHOD_NOT_ALLOWED, "Unsupported method", headers); @@ -784,11 +1117,12 @@ function ResultUnsupported (req, res, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultPermanentRedirect (req, res, destination, headers) { - res.responseCode = actions.HTTP_MOVED_PERMANENTLY; +function resultPermanentRedirect (req, res, destination, headers) { + res.responseCode = exports.HTTP_MOVED_PERMANENTLY; res.contentType = "text/html"; - res.body = "Moved

Moved

This page has moved to

Moved

This page has moved to " + destination @@ -801,7 +1135,7 @@ function ResultPermanentRedirect (req, res, destination, headers) { res.headers = {}; } - res.headers.location = dest; + res.headers.location = destination; } //////////////////////////////////////////////////////////////////////////////// @@ -812,11 +1146,12 @@ function ResultPermanentRedirect (req, res, destination, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultTemporaryRedirect (req, res, destination, headers) { - res.responseCode = actions.HTTP_TEMPORARY_REDIRECT; +function resultTemporaryRedirect (req, res, destination, headers) { + res.responseCode = exports.HTTP_TEMPORARY_REDIRECT; res.contentType = "text/html"; - res.body = "Moved

Moved

This page has moved to

Moved

This page has moved to " + destination @@ -829,7 +1164,7 @@ function ResultTemporaryRedirect (req, res, destination, headers) { res.headers = {}; } - res.headers.location = dest; + res.headers.location = destination; } //////////////////////////////////////////////////////////////////////////////// @@ -849,7 +1184,7 @@ function ResultTemporaryRedirect (req, res, destination, headers) { /// @brief returns a result set from a cursor //////////////////////////////////////////////////////////////////////////////// -function ResultCursor (req, res, cursor, code, options) { +function resultCursor (req, res, cursor, code, options) { var rows; var count; var hasCount; @@ -901,7 +1236,7 @@ function ResultCursor (req, res, cursor, code, options) { code = exports.HTTP_CREATED; } - ResultOk(req, res, code, result); + resultOk(req, res, code, result); } //////////////////////////////////////////////////////////////////////////////// @@ -912,15 +1247,15 @@ function ResultCursor (req, res, cursor, code, options) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function CollectionNotFound (req, res, collection, headers) { +function collectionNotFound (req, res, collection, headers) { if (collection === undefined) { - ResultError(req, res, + resultError(req, res, exports.HTTP_BAD, exports.ERROR_HTTP_BAD_PARAMETER, "expecting a collection name or identifier", headers); } else { - ResultError(req, res, + resultError(req, res, exports.HTTP_NOT_FOUND, exports.ERROR_ARANGO_COLLECTION_NOT_FOUND, "unknown collection '" + collection + "'", headers); } @@ -934,21 +1269,21 @@ function CollectionNotFound (req, res, collection, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function IndexNotFound (req, res, collection, index, headers) { +function indexNotFound (req, res, collection, index, headers) { if (collection === undefined) { - ResultError(req, res, + resultError(req, res, exports.HTTP_BAD, exports.ERROR_HTTP_BAD_PARAMETER, "expecting a collection name or identifier", headers); } else if (index === undefined) { - ResultError(req, res, + resultError(req, res, exports.HTTP_BAD, exports.ERROR_HTTP_BAD_PARAMETER, "expecting an index identifier", headers); } else { - ResultError(req, res, + resultError(req, res, exports.HTTP_NOT_FOUND, exports.ERROR_ARANGO_INDEX_NOT_FOUND, "unknown index '" + index + "'", headers); } @@ -962,7 +1297,7 @@ function IndexNotFound (req, res, collection, index, headers) { /// The functions generates an error response. //////////////////////////////////////////////////////////////////////////////// -function ResultException (req, res, err, headers) { +function resultException (req, res, err, headers) { if (err instanceof ArangoError) { var num = err.errorNum; var msg = err.errorMessage; @@ -972,12 +1307,12 @@ function ResultException (req, res, err, headers) { case exports.ERROR_INTERNAL: code = exports.HTTP_SERVER_ERROR; break; } - ResultError(req, res, code, num, msg, headers); + resultError(req, res, code, num, msg, headers); } else { - ResultError(req, res, + resultError(req, res, exports.HTTP_SERVER_ERROR, exports.ERROR_HTTP_SERVER_ERROR, - "" + err, + String(err), headers); } } @@ -987,7 +1322,7 @@ function ResultException (req, res, err, headers) { //////////////////////////////////////////////////////////////////////////////// // ----------------------------------------------------------------------------- -// --SECTION-- ArangoDB specific responses +// --SECTION-- specific controllers // ----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// @@ -999,7 +1334,7 @@ function ResultException (req, res, err, headers) { /// @brief echos a request //////////////////////////////////////////////////////////////////////////////// -function EchoRequest (req, res, next, options) { +function echoRequest (req, res, options, next) { var result; result = { request : req, options : options }; @@ -1013,12 +1348,12 @@ function EchoRequest (req, res, next, options) { /// @brief logs a request //////////////////////////////////////////////////////////////////////////////// -function LogRequest (req, res, next, options) { +function logRequest (req, res, options, next) { var log; var level; var token; - if ('level' in options) { + if (options.hasOwnProperty('level')) { level = options.level; if (level === "debug") { @@ -1044,7 +1379,7 @@ function LogRequest (req, res, next, options) { log = console.log; } - if ('token' in options) { + if (options.hasOwnProperty('token')) { token = options.token; } else { @@ -1056,6 +1391,19 @@ function LogRequest (req, res, next, options) { log("produced response %s: %s", token, JSON.stringify(res)); } +//////////////////////////////////////////////////////////////////////////////// +/// @brief redirects a request +//////////////////////////////////////////////////////////////////////////////// + +function redirectRequest (req, res, options, next) { + if (options.permanently) { + resultPermanentRedirect(req, res, options.destination); + } + else { + resultTemporaryRedirect(req, res, options.destination); + } +} + //////////////////////////////////////////////////////////////////////////////// /// @} //////////////////////////////////////////////////////////////////////////////// @@ -1070,31 +1418,34 @@ function LogRequest (req, res, next, options) { //////////////////////////////////////////////////////////////////////////////// // public functions -exports.defineHttp = DefineHttp; -exports.getErrorMessage = GetErrorMessage; -exports.getJsonBody = GetJsonBody; -exports.reloadRouting = ReloadRouting; -exports.routing = Routing; +exports.defineHttp = defineHttp; +exports.getErrorMessage = getErrorMessage; +exports.getJsonBody = getJsonBody; +exports.reloadRouting = reloadRouting; +exports.firstRouting = firstRouting; +exports.nextRouting = nextRouting; +exports.routingCache = function() { return RoutingCache; }; // standard HTTP responses -exports.resultBad = ResultBad; -exports.resultError = ResultError; -exports.resultNotFound = ResultNotFound; -exports.resultNotImplemented = ResultNotImplemented; -exports.resultOk = ResultOk; -exports.resultPermanentRedirect = ResultPermanentRedirect; -exports.resultTemporaryRedirect = ResultTemporaryRedirect; -exports.resultUnsupported = ResultUnsupported; +exports.resultBad = resultBad; +exports.resultError = resultError; +exports.resultNotFound = resultNotFound; +exports.resultNotImplemented = resultNotImplemented; +exports.resultOk = resultOk; +exports.resultPermanentRedirect = resultPermanentRedirect; +exports.resultTemporaryRedirect = resultTemporaryRedirect; +exports.resultUnsupported = resultUnsupported; // ArangoDB specific responses -exports.resultCursor = ResultCursor; -exports.collectionNotFound = CollectionNotFound; -exports.indexNotFound = IndexNotFound; -exports.resultException = ResultException; +exports.resultCursor = resultCursor; +exports.collectionNotFound = collectionNotFound; +exports.indexNotFound = indexNotFound; +exports.resultException = resultException; // standard actions -exports.echoRequest = EchoRequest; -exports.logRequest = LogRequest; +exports.echoRequest = echoRequest; +exports.logRequest = logRequest; +exports.redirectRequest = redirectRequest; // some useful constants exports.COLLECTION = "collection"; @@ -1109,6 +1460,8 @@ exports.POST = "POST"; exports.PUT = "PUT"; exports.PATCH = "PATCH"; +exports.ALL_METHODS = [ "DELETE", "GET", "HEAD", "POST", "PUT", "PATCH" ]; + // HTTP 2xx exports.HTTP_OK = 200; exports.HTTP_CREATED = 201; @@ -1141,14 +1494,16 @@ exports.HTTP_BAD_GATEWAY = 502; exports.HTTP_SERVICE_UNAVAILABLE = 503; // copy error codes -for (var name in internal.errors) { +var name; + +for (name in internal.errors) { if (internal.errors.hasOwnProperty(name)) { exports[name] = internal.errors[name].code; } } // load routing -ReloadRouting(); +reloadRouting(); //////////////////////////////////////////////////////////////////////////////// /// @} @@ -1160,5 +1515,5 @@ ReloadRouting(); // Local Variables: // mode: outline-minor -// outline-regexp: "^\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @}\\)" +// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)" // End: diff --git a/js/server/modules/org/arangodb/actions/echoController.js b/js/server/modules/org/arangodb/actions/echoController.js new file mode 100644 index 0000000000..5a59d34b86 --- /dev/null +++ b/js/server/modules/org/arangodb/actions/echoController.js @@ -0,0 +1,49 @@ +//////////////////////////////////////////////////////////////////////////////// +/// @brief example controller +/// +/// @file +/// +/// DISCLAIMER +/// +/// Copyright 2012 triagens GmbH, Cologne, Germany +/// +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// +/// http://www.apache.org/licenses/LICENSE-2.0 +/// +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// +/// Copyright holder is triAGENS GmbH, Cologne, Germany +/// +/// @author Dr. Frank Celler +/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany +//////////////////////////////////////////////////////////////////////////////// + +var actions = require("org/arangodb/actions"); + +exports.head = function (req, res, next, options) { + res.responseCode = actions.HTTP_OK; + res.contentType = "application/json; charset=utf-8"; + res.body = ""; +} + +exports.do = function (req, res, next, options) { + res.responseCode = actions.HTTP_OK; + res.contentType = "application/json; charset=utf-8"; + res.body = JSON.stringify(req); +} + +// ----------------------------------------------------------------------------- +// --SECTION-- END-OF-FILE +// ----------------------------------------------------------------------------- + +// Local Variables: +// mode: outline-minor +// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)" +// End: diff --git a/js/server/tests/routing.js b/js/server/tests/routing.js new file mode 100644 index 0000000000..72c45dcb4f --- /dev/null +++ b/js/server/tests/routing.js @@ -0,0 +1,478 @@ +//////////////////////////////////////////////////////////////////////////////// +/// @brief tests for routing +/// +/// @file +/// +/// DISCLAIMER +/// +/// Copyright 2010-2012 triagens GmbH, Cologne, Germany +/// +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// +/// http://www.apache.org/licenses/LICENSE-2.0 +/// +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// +/// Copyright holder is triAGENS GmbH, Cologne, Germany +/// +/// @author Dr. Frank Celler +/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany +//////////////////////////////////////////////////////////////////////////////// + +var actions = require("org/arangodb/actions"); +var internal = require("internal"); +var jsunity = require("jsunity"); + +// ----------------------------------------------------------------------------- +// --SECTION-- test suite +// ----------------------------------------------------------------------------- + +//////////////////////////////////////////////////////////////////////////////// +/// @brief single patterns routing +//////////////////////////////////////////////////////////////////////////////// + +function routingSuiteSingle () { + var errors = internal.errors; + var cn = "_routing"; + + return { + +//////////////////////////////////////////////////////////////////////////////// +/// @brief set up +//////////////////////////////////////////////////////////////////////////////// + + setUp : function () { + internal.db._drop(cn); + collection = internal.db._create(cn, { isSystem: true }); + + collection.save({ + url: { match: "/hello/world" }, + content: "c1" + }); + + collection.save({ + url: "/world/hello", + content: "c2" + }); + + collection.save({ + url: "/prefix/hello/*", + content: "c3" + }); + + collection.save({ + url: { match: "/param/:hello/world", constraint: { hello: "[0-9]+" } }, + content: "c4" + }); + + collection.save({ + url: { match: "/opt/:hello?", constraint: { hello: "[0-9]+" }, methods: [ 'get' ] }, + content: "c5" + }); + + collection.save({ + url: "/json", + content: { contentType: "application/json", body: '{"text": "c6"}' } + }); + + collection.save({ + url: "/p/h/*", + content: "p1" + }); + + collection.save({ + url: "/p/h", + content: "p2" + }); + + actions.reloadRouting(); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRouting: function () { + var r = actions.firstRouting('GET', "/hello/world"); + assertEqual('c1', r.route.route.content); + + assertEqual('/hello/world', r.route.path); + assertEqual(undefined, r.prefix); + assertEqual(undefined, r.suffix); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (sort-cut for match) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingShort: function () { + var r = actions.firstRouting('GET', "/world/hello"); + assertEqual('c2', r.route.route.content); + + assertEqual('/world/hello', r.route.path); + assertEqual(undefined, r.prefix); + assertEqual(undefined, r.suffix); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (prefix) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingPrefix: function () { + var r = actions.firstRouting('GET', "/prefix/hello/world"); + assertEqual('c3', r.route.route.content); + + assertEqual('/prefix/hello(/[^/]+)*', r.route.path); + assertEqual('/prefix/hello', r.prefix); + assertEqual(['world'], r.suffix); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (parameter) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingParameter: function () { + var r = actions.firstRouting('GET', "/param/12345/world"); + assertEqual('c4', r.route.route.content); + + assertEqual('/param/[0-9]+/world', r.route.path); + assertEqual(undefined, r.prefix); + assertEqual(undefined, r.suffix); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + + r = actions.firstRouting('GET', "/param/a12345/world"); + assertEqual(undefined, r.route); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (optional) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingOptional: function () { + var r = actions.firstRouting('GET', "/opt/12345"); + assertEqual('c5', r.route.route.content); + + assertEqual('/opt(/[0-9]+)?', r.route.path); + assertEqual(undefined, r.prefix); + assertEqual(undefined, r.suffix); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + + r = actions.firstRouting('GET', "/opt"); + assertEqual('c5', r.route.route.content); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (optional) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingMethod: function () { + var r = actions.firstRouting('HEAD', "/opt/12345"); + assertEqual(undefined, r.route); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing (prefix vs non-prefix) +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRoutingNonPrefix: function () { + var r = actions.firstRouting('GET', "/p/h"); + assertEqual('p2', r.route.route.content); + + assertEqual('/p/h', r.route.path); + assertEqual(undefined, r.prefix); + assertEqual(undefined, r.suffix); + + r = actions.nextRouting(r); + + assertEqual('/p/h(/[^/]+)*', r.route.path); + assertEqual('/p/h', r.prefix); + assertEqual([], r.suffix); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: content string +//////////////////////////////////////////////////////////////////////////////// + + testContentString: function () { + var r = actions.firstRouting('GET', "/opt/12345"); + + req = {}; + res = {}; + + r.route.callback.controller(req, res); + + assertEqual(actions.HTTP_OK, res.responseCode); + assertEqual("text/plain", res.contentType); + assertEqual("c5", res.body); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: content json +//////////////////////////////////////////////////////////////////////////////// + + testContentJson: function () { + var r = actions.firstRouting('GET', "/json"); + + req = {}; + res = {}; + + r.route.callback.controller(req, res); + + assertEqual(actions.HTTP_OK, res.responseCode); + assertEqual("application/json", res.contentType); + assertEqual('{"text": "c6"}', res.body); + } + }; +} + +// ----------------------------------------------------------------------------- +// --SECTION-- test suite +// ----------------------------------------------------------------------------- + +//////////////////////////////////////////////////////////////////////////////// +/// @brief bundle without prefix +//////////////////////////////////////////////////////////////////////////////// + +function routingSuiteBundle () { + var errors = internal.errors; + var cn = "_routing"; + + return { + +//////////////////////////////////////////////////////////////////////////////// +/// @brief set up +//////////////////////////////////////////////////////////////////////////////// + + setUp : function () { + internal.db._drop(cn); + collection = internal.db._create(cn, { isSystem: true }); + + collection.save({ + middleware: [ + { url: { match: "/*" }, content: "m1" }, + { url: { match: "/hello/*" }, content: "m2" }, + { url: { match: "/hello/world" }, content: "m3" }, + { url: { match: "/:name/world" }, content: "m4" } + ], + + routes: [ + { url: { match: "/*" }, content: "c1" }, + { url: { match: "/hello/*" }, content: "c2" }, + { url: { match: "/hello/world" }, content: "c3" }, + { url: { match: "/hello/:name|:id", constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } }, content: "c4" }, + { url: { match: "/hello/:name/:id", constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } }, content: "c5" }, + { url: { match: "/:name/world" }, content: "c6" }, + { url: { match: "/hello" }, content: "c7" } + ] + }); + + actions.reloadRouting(); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: routing cache +//////////////////////////////////////////////////////////////////////////////// + + testRoutingCache: function () { + var cache = actions.routingCache(); + + assertEqual(3, cache.routes.GET.exact.hello.parameters.length); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRouting: function () { + var r = actions.firstRouting('GET', "/hello/world"); + assertEqual('m1', r.route.route.content); + assertEqual('(/[^/]+)*', r.route.path); + + // middleware: unspecific to specific + r = actions.nextRouting(r); + assertEqual('m4', r.route.route.content); + assertEqual('/[^/]+/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('m2', r.route.route.content); + assertEqual('/hello(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual('m3', r.route.route.content); + assertEqual('/hello/world', r.route.path); + + // routing: specific to unspecific + r = actions.nextRouting(r); + assertEqual('c3', r.route.route.content); + assertEqual('/hello/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c4', r.route.route.content); + assertEqual(1, r.route.urlParameters.name); + assertEqual('/hello/[a-z]+', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c2', r.route.route.content); + assertEqual('/hello(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c6', r.route.route.content); + assertEqual('/[^/]+/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c1', r.route.route.content); + assertEqual('(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + } + }; +} + +// ----------------------------------------------------------------------------- +// --SECTION-- test suite +// ----------------------------------------------------------------------------- + +//////////////////////////////////////////////////////////////////////////////// +/// @brief bundle with prefix +//////////////////////////////////////////////////////////////////////////////// + +function routingSuitePrefix () { + var errors = internal.errors; + var cn = "_routing"; + + return { + +//////////////////////////////////////////////////////////////////////////////// +/// @brief set up +//////////////////////////////////////////////////////////////////////////////// + + setUp : function () { + internal.db._drop(cn); + collection = internal.db._create(cn, { isSystem: true }); + + collection.save({ + urlPrefix: "/test", + + middleware: [ + { url: { match: "/*" }, content: "m1" }, + { url: { match: "/hello/*" }, content: "m2" }, + { url: { match: "/hello/world" }, content: "m3" }, + { url: { match: "/:name/world" }, content: "m4" } + ], + + routes: [ + { url: { match: "/*" }, content: "c1" }, + { url: { match: "/hello/*" }, content: "c2" }, + { url: { match: "/hello/world" }, content: "c3" }, + { url: { match: "/hello/:name|:id", constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } }, content: "c4" }, + { url: { match: "/hello/:name/:id", constraint: { name: "/[a-z]+/", id: "/[0-9]+/" } }, content: "c5" }, + { url: { match: "/:name/world" }, content: "c6" }, + { url: { match: "/hello" }, content: "c7" } + ] + }); + + actions.reloadRouting(); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: routing cache +//////////////////////////////////////////////////////////////////////////////// + + testRoutingCache: function () { + var cache = actions.routingCache(); + + assertEqual(3, cache.routes.GET.exact.test.exact.hello.parameters.length); + }, + +//////////////////////////////////////////////////////////////////////////////// +/// @brief test: simple routing +//////////////////////////////////////////////////////////////////////////////// + + testSimpleRouting: function () { + var r = actions.firstRouting('GET', "/test/hello/world"); + assertEqual('m1', r.route.route.content); + assertEqual('/test(/[^/]+)*', r.route.path); + + // middleware: unspecific to specific + r = actions.nextRouting(r); + assertEqual('m4', r.route.route.content); + assertEqual('/test/[^/]+/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('m2', r.route.route.content); + assertEqual('/test/hello(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual('m3', r.route.route.content); + assertEqual('/test/hello/world', r.route.path); + + // routing: specific to unspecific + r = actions.nextRouting(r); + assertEqual('c3', r.route.route.content); + assertEqual('/test/hello/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c4', r.route.route.content); + assertEqual(2, r.route.urlParameters.name); + assertEqual('/test/hello/[a-z]+', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c2', r.route.route.content); + assertEqual('/test/hello(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c6', r.route.route.content); + assertEqual('/test/[^/]+/world', r.route.path); + + r = actions.nextRouting(r); + assertEqual('c1', r.route.route.content); + assertEqual('/test(/[^/]+)*', r.route.path); + + r = actions.nextRouting(r); + assertEqual(undefined, r.route); + } + }; +} + +// ----------------------------------------------------------------------------- +// --SECTION-- main +// ----------------------------------------------------------------------------- + +//////////////////////////////////////////////////////////////////////////////// +/// @brief executes the test suites +//////////////////////////////////////////////////////////////////////////////// + +jsunity.run(routingSuiteSingle); +jsunity.run(routingSuiteBundle); +jsunity.run(routingSuitePrefix); + +return jsunity.done(); + +// ----------------------------------------------------------------------------- +// --SECTION-- END-OF-FILE +// ----------------------------------------------------------------------------- + +// Local Variables: +// mode: outline-minor +// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)" +// End: diff --git a/lib/JsonParser/json-parser.c b/lib/JsonParser/json-parser.c deleted file mode 100644 index 5e01f4ece0..0000000000 --- a/lib/JsonParser/json-parser.c +++ /dev/null @@ -1,2515 +0,0 @@ -#line 2 "lib/JsonParser/json-parser.l" -//////////////////////////////////////////////////////////////////////////////// -/// @brief json parser -/// -/// @file -/// -/// DISCLAIMER -/// -/// Copyright 2004-2012 triagens GmbH, Cologne, Germany -/// -/// Licensed under the Apache License, Version 2.0 (the "License"); -/// you may not use this file except in compliance with the License. -/// You may obtain a copy of the License at -/// -/// http://www.apache.org/licenses/LICENSE-2.0 -/// -/// Unless required by applicable law or agreed to in writing, software -/// distributed under the License is distributed on an "AS IS" BASIS, -/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -/// See the License for the specific language governing permissions and -/// limitations under the License. -/// -/// Copyright holder is triAGENS GmbH, Cologne, Germany -/// -/// @author Dr. Frank Celler -/// @author Copyright 2011-2012, triAGENS GmbH, Cologne, Germany -//////////////////////////////////////////////////////////////////////////////// - -#include "BasicsC/common.h" - -#include "BasicsC/json.h" -#include "BasicsC/strings.h" -#include "BasicsC/logging.h" - -#ifdef _WIN32 -#define YY_NO_UNISTD_H 1 -#else -int fileno(FILE *stream); -#endif - -#define YY_NO_INPUT - - - -#line 46 "lib/JsonParser/json-parser.c" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) - -#define YY_USE_CONST - -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* An opaque pointer. */ -#ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; -#endif - -/* For convenience, these vars (plus the bison vars far below) - are macros in the reentrant scanner. */ -#define yyin yyg->yyin_r -#define yyout yyg->yyout_r -#define yyextra yyg->yyextra_r -#define yyleng yyg->yyleng_r -#define yytext yyg->yytext_r -#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) -#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) -#define yy_flex_debug yyg->yy_flex_debug_r - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yyg->yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yyg->yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE tri_jsp_restart(yyin ,yyscanner ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via tri_jsp_restart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] - -void tri_jsp_restart (FILE *input_file ,yyscan_t yyscanner ); -void tri_jsp__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_jsp__create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void tri_jsp__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void tri_jsp__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void tri_jsp_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void tri_jsp_pop_buffer_state (yyscan_t yyscanner ); - -static void tri_jsp_ensure_buffer_stack (yyscan_t yyscanner ); -static void tri_jsp__load_buffer_state (yyscan_t yyscanner ); -static void tri_jsp__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); - -#define YY_FLUSH_BUFFER tri_jsp__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) - -YY_BUFFER_STATE tri_jsp__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_jsp__scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_jsp__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); - -void *tri_jsp_alloc (yy_size_t ,yyscan_t yyscanner ); -void *tri_jsp_realloc (void *,yy_size_t ,yyscan_t yyscanner ); -void tri_jsp_free (void * ,yyscan_t yyscanner ); - -#define yy_new_buffer tri_jsp__create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - tri_jsp_ensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - tri_jsp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - tri_jsp_ensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - tri_jsp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -#define tri_jsp_wrap(n) 1 -#define YY_SKIP_YYWRAP - -typedef unsigned char YY_CHAR; - -typedef int yy_state_type; - -#define yytext_ptr yytext_r - -static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); -static int yy_get_next_buffer (yyscan_t yyscanner ); -static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 15 -#define YY_END_OF_BUFFER 16 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[45] = - { 0, - 13, 13, 16, 14, 13, 13, 14, 14, 11, 6, - 6, 12, 14, 14, 14, 9, 10, 7, 8, 13, - 0, 0, 4, 0, 6, 6, 0, 6, 0, 0, - 0, 5, 6, 0, 0, 0, 0, 0, 2, 3, - 0, 6, 1, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 4, 5, 6, 5, 5, 5, 5, 5, 5, - 5, 5, 7, 8, 9, 10, 5, 11, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 13, 5, 5, - 5, 5, 5, 5, 14, 5, 5, 5, 15, 16, - 5, 5, 5, 5, 5, 17, 5, 18, 5, 5, - 5, 19, 20, 21, 22, 5, 5, 5, 5, 5, - 23, 24, 25, 5, 5, 5, 26, 5, 5, 5, - - 27, 28, 5, 5, 5, 5, 5, 29, 5, 30, - 5, 5, 5, 31, 32, 33, 34, 5, 5, 5, - 1, 1, 35, 1, 36, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[37] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int16_t yy_base[47] = - { 0, - 0, 0, 110, 115, 35, 38, 42, 35, 115, 99, - 39, 115, 38, 31, 36, 115, 115, 115, 115, 54, - 48, 78, 115, 104, 96, 49, 51, 58, 54, 56, - 52, 115, 76, 62, 72, 77, 86, 81, 115, 115, - 64, 88, 115, 115, 104, 89 - } ; - -static yyconst flex_int16_t yy_def[47] = - { 0, - 44, 1, 44, 44, 44, 44, 45, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 46, 45, 44, 46, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 0, 44, 44 - } ; - -static yyconst flex_int16_t yy_nxt[152] = - { 0, - 4, 5, 6, 5, 4, 7, 8, 9, 8, 4, - 10, 11, 12, 4, 4, 13, 4, 14, 4, 4, - 15, 4, 16, 4, 17, 4, 4, 13, 4, 14, - 4, 4, 15, 4, 18, 19, 20, 20, 20, 20, - 20, 20, 21, 21, 21, 25, 26, 23, 27, 28, - 28, 29, 30, 32, 31, 20, 20, 20, 27, 28, - 28, 33, 33, 29, 30, 24, 31, 27, 28, 28, - 34, 24, 35, 36, 42, 42, 21, 21, 21, 21, - 21, 38, 34, 23, 35, 36, 33, 33, 39, 21, - 37, 40, 41, 38, 41, 43, 42, 42, 42, 42, - - 39, 24, 37, 40, 22, 27, 44, 43, 27, 44, - 44, 44, 21, 21, 3, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44 - } ; - -static yyconst flex_int16_t yy_chk[152] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 5, 5, 5, 6, - 6, 6, 7, 7, 7, 8, 8, 7, 11, 11, - 11, 13, 14, 21, 15, 20, 20, 20, 26, 26, - 26, 27, 27, 13, 14, 7, 15, 28, 28, 28, - 29, 21, 30, 31, 41, 41, 7, 7, 22, 22, - 22, 34, 29, 22, 30, 31, 33, 33, 35, 46, - 33, 36, 37, 34, 37, 38, 37, 37, 42, 42, - - 35, 22, 33, 36, 45, 25, 24, 38, 10, 3, - 0, 0, 22, 22, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 44 - } ; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET - -#define END_OF_FILE 0 -#define FALSE_CONSTANT 1 -#define TRUE_CONSTANT 2 -#define NULL_CONSTANT 3 -#define NUMBER_CONSTANT 4 -#define STRING_CONSTANT 5 -#define OPEN_BRACE 6 -#define CLOSE_BRACE 7 -#define OPEN_BRACKET 8 -#define CLOSE_BRACKET 9 -#define COMMA 10 -#define COLON 11 -#define UNQUOTED_STRING 12 -#define STRING_CONSTANT_ASCII 13 - -struct jsonData { - char const* _message; - TRI_memory_zone_t* _memoryZone; -}; - -#define YY_FATAL_ERROR(a) \ - LOG_DEBUG("json-paser: %s", (a)) - -#define INITIAL 0 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#define YY_EXTRA_TYPE struct jsonData - -/* Holds the entire state of the reentrant scanner. */ -struct yyguts_t - { - - /* User-defined. Not touched by flex. */ - YY_EXTRA_TYPE yyextra_r; - - /* The rest are the same as the globals declared in the non-reentrant scanner. */ - FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ - char yy_hold_char; - int yy_n_chars; - int yyleng_r; - char *yy_c_buf_p; - int yy_init; - int yy_start; - int yy_did_buffer_switch_on_eof; - int yy_start_stack_ptr; - int yy_start_stack_depth; - int *yy_start_stack; - yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; - - int yylineno_r; - int yy_flex_debug_r; - - char *yytext_r; - int yy_more_flag; - int yy_more_len; - - }; /* end struct yyguts_t */ - -static int yy_init_globals (yyscan_t yyscanner ); - -int tri_jsp_lex_init (yyscan_t* scanner); - -int tri_jsp_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int tri_jsp_lex_destroy (yyscan_t yyscanner ); - -int tri_jsp_get_debug (yyscan_t yyscanner ); - -void tri_jsp_set_debug (int debug_flag ,yyscan_t yyscanner ); - -YY_EXTRA_TYPE tri_jsp_get_extra (yyscan_t yyscanner ); - -void tri_jsp_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); - -FILE *tri_jsp_get_in (yyscan_t yyscanner ); - -void tri_jsp_set_in (FILE * in_str ,yyscan_t yyscanner ); - -FILE *tri_jsp_get_out (yyscan_t yyscanner ); - -void tri_jsp_set_out (FILE * out_str ,yyscan_t yyscanner ); - -int tri_jsp_get_leng (yyscan_t yyscanner ); - -char *tri_jsp_get_text (yyscan_t yyscanner ); - -int tri_jsp_get_lineno (yyscan_t yyscanner ); - -void tri_jsp_set_lineno (int line_number ,yyscan_t yyscanner ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int tri_jsp_wrap (yyscan_t yyscanner ); -#else -extern int tri_jsp_wrap (yyscan_t yyscanner ); -#endif -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (yyscan_t yyscanner ); -#else -static int input (yyscan_t yyscanner ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int tri_jsp_lex (yyscan_t yyscanner); - -#define YY_DECL int tri_jsp_lex (yyscan_t yyscanner) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* ----------------------------------------------------------------------------- - * keywords - * ----------------------------------------------------------------------------- */ - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - tri_jsp_ensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - tri_jsp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - tri_jsp__load_buffer_state(yyscanner ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 45 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_current_state != 44 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -{ - return FALSE_CONSTANT; -} - YY_BREAK -case 2: -YY_RULE_SETUP -{ - return NULL_CONSTANT; -} - YY_BREAK -case 3: -YY_RULE_SETUP -{ - return TRUE_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * strings - * ----------------------------------------------------------------------------- */ -case 4: -YY_RULE_SETUP -{ - // performance optimisation for all-ASCII strings without escape characters - // this matches the ASCII chars with ordinal numbers 35 (x23) to 127 (x7f), - // plus space (32) and ! (33) but no quotation marks (34, x22) and backslashes (92, x5c) - return STRING_CONSTANT_ASCII; -} - YY_BREAK -case 5: -/* rule 5 can match eol */ -YY_RULE_SETUP -{ - return STRING_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * numbers - * ----------------------------------------------------------------------------- */ -case 6: -YY_RULE_SETUP -{ - return NUMBER_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * special characters - * ----------------------------------------------------------------------------- */ -case 7: -YY_RULE_SETUP -{ - return OPEN_BRACE; -} - YY_BREAK -case 8: -YY_RULE_SETUP -{ - return CLOSE_BRACE; -} - YY_BREAK -case 9: -YY_RULE_SETUP -{ - return OPEN_BRACKET; -} - YY_BREAK -case 10: -YY_RULE_SETUP -{ - return CLOSE_BRACKET; -} - YY_BREAK -case 11: -YY_RULE_SETUP -{ - return COMMA; -} - YY_BREAK -case 12: -YY_RULE_SETUP -{ - return COLON; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * Skip whitespaces. Whatever is left, should be an unquoted string appearing - * somewhere. This will be reported as an error. - * ----------------------------------------------------------------------------- */ -case 13: -/* rule 13 can match eol */ -YY_RULE_SETUP -{ -} - YY_BREAK -case 14: -YY_RULE_SETUP -{ - return UNQUOTED_STRING; -} - YY_BREAK -case 15: -YY_RULE_SETUP -ECHO; - YY_BREAK -case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * tri_jsp_lex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); - - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; - - if ( tri_jsp_wrap(yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of tri_jsp_lex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = yyg->yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - tri_jsp_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, (int) num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - tri_jsp_restart(yyin ,yyscanner); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) tri_jsp_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } - - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_current_state = yyg->yy_start; - - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 45 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) -{ - register int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - register char *yy_cp = yyg->yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 45 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 44); - - return yy_is_jam ? 0 : yy_current_state; -} - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif - -{ - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - *yyg->yy_c_buf_p = yyg->yy_hold_char; - - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; - ++yyg->yy_c_buf_p; - - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - tri_jsp_restart(yyin ,yyscanner); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( tri_jsp_wrap(yyscanner ) ) - return EOF; - - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * @param yyscanner The scanner object. - * @note This function does not reset the start condition to @c INITIAL . - */ - void tri_jsp_restart (FILE * input_file , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! YY_CURRENT_BUFFER ){ - tri_jsp_ensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - tri_jsp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - tri_jsp__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); - tri_jsp__load_buffer_state(yyscanner ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * @param yyscanner The scanner object. - */ - void tri_jsp__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* TODO. We should be able to replace this entire function body - * with - * tri_jsp_pop_buffer_state(); - * tri_jsp_push_buffer_state(new_buffer); - */ - tri_jsp_ensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - tri_jsp__load_buffer_state(yyscanner ); - - /* We don't actually know whether we did this switch during - * EOF (tri_jsp_wrap()) processing, but the only time this flag - * is looked at is after tri_jsp_wrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; -} - -static void tri_jsp__load_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * @param yyscanner The scanner object. - * @return the allocated buffer state. - */ - YY_BUFFER_STATE tri_jsp__create_buffer (FILE * file, int size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) tri_jsp_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp__create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) tri_jsp_alloc(b->yy_buf_size + 2 ,yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp__create_buffer()" ); - - b->yy_is_our_buffer = 1; - - tri_jsp__init_buffer(b,file ,yyscanner); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with tri_jsp__create_buffer() - * @param yyscanner The scanner object. - */ - void tri_jsp__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - tri_jsp_free((void *) b->yy_ch_buf ,yyscanner ); - - tri_jsp_free((void *) b ,yyscanner ); -} - -#ifndef __cplusplus -#ifndef _WIN32 -extern int isatty (int ); -#endif -#endif /* __cplusplus */ - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a tri_jsp_restart() or at EOF. - */ - static void tri_jsp__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) - -{ - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - tri_jsp__flush_buffer(b ,yyscanner); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then tri_jsp__init_buffer was _probably_ - * called from tri_jsp_restart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * @param yyscanner The scanner object. - */ - void tri_jsp__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - tri_jsp__load_buffer_state(yyscanner ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * @param yyscanner The scanner object. - */ -void tri_jsp_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; - - tri_jsp_ensure_buffer_stack(yyscanner); - - /* This block is copied from tri_jsp__switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from tri_jsp__switch_to_buffer. */ - tri_jsp__load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * @param yyscanner The scanner object. - */ -void tri_jsp_pop_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; - - tri_jsp__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; - - if (YY_CURRENT_BUFFER) { - tri_jsp__load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void tri_jsp_ensure_buffer_stack (yyscan_t yyscanner) -{ - int num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (!yyg->yy_buffer_stack) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - yyg->yy_buffer_stack = (struct yy_buffer_state**)tri_jsp_alloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp_ensure_buffer_stack()" ); - - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } - - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)tri_jsp_realloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp_ensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE tri_jsp__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) tri_jsp_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp__scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - tri_jsp__switch_to_buffer(b ,yyscanner ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to tri_jsp_lex() will - * scan from a @e copy of @a str. - * @param yystr a NUL-terminated string to scan - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * tri_jsp__scan_bytes() instead. - */ -YY_BUFFER_STATE tri_jsp__scan_string (yyconst char * yystr , yyscan_t yyscanner) -{ - - return tri_jsp__scan_bytes(yystr,strlen(yystr) ,yyscanner); -} - -/** Setup the input buffer state to scan the given bytes. The next call to tri_jsp_lex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE tri_jsp__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) tri_jsp_alloc(n ,yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in tri_jsp__scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = tri_jsp__scan_buffer(buf,n ,yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in tri_jsp__scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the user-defined data for this scanner. - * @param yyscanner The scanner object. - */ -YY_EXTRA_TYPE tri_jsp_get_extra (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyextra; -} - -/** Get the current line number. - * @param yyscanner The scanner object. - */ -int tri_jsp_get_lineno (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yylineno; -} - -/** Get the current column number. - * @param yyscanner The scanner object. - */ -int tri_jsp_get_column (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yycolumn; -} - -/** Get the input stream. - * @param yyscanner The scanner object. - */ -FILE *tri_jsp_get_in (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyin; -} - -/** Get the output stream. - * @param yyscanner The scanner object. - */ -FILE *tri_jsp_get_out (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyout; -} - -/** Get the length of the current token. - * @param yyscanner The scanner object. - */ -int tri_jsp_get_leng (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyleng; -} - -/** Get the current token. - * @param yyscanner The scanner object. - */ - -char *tri_jsp_get_text (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yytext; -} - -/** Set the user-defined data. This data is never touched by the scanner. - * @param user_defined The data to be associated with this scanner. - * @param yyscanner The scanner object. - */ -void tri_jsp_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; -} - -/** Set the current line number. - * @param line_number - * @param yyscanner The scanner object. - */ -void tri_jsp_set_lineno (int line_number , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "tri_jsp_set_lineno called with no buffer" , yyscanner); - - yylineno = line_number; -} - -/** Set the current column. - * @param line_number - * @param yyscanner The scanner object. - */ -void tri_jsp_set_column (int column_no , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "tri_jsp_set_column called with no buffer" , yyscanner); - - yycolumn = column_no; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * @param yyscanner The scanner object. - * @see tri_jsp__switch_to_buffer - */ -void tri_jsp_set_in (FILE * in_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = in_str ; -} - -void tri_jsp_set_out (FILE * out_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = out_str ; -} - -int tri_jsp_get_debug (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yy_flex_debug; -} - -void tri_jsp_set_debug (int bdebug , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = bdebug ; -} - -/* Accessor methods for yylval and yylloc */ - -/* User-visible API */ - -/* tri_jsp_lex_init is special because it creates the scanner itself, so it is - * the ONLY reentrant function that doesn't take the scanner as the last argument. - * That's why we explicitly handle the declaration, instead of using our macros. - */ - -int tri_jsp_lex_init(yyscan_t* ptr_yy_globals) - -{ - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) tri_jsp_alloc ( sizeof( struct yyguts_t ), NULL ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - return yy_init_globals ( *ptr_yy_globals ); -} - -/* tri_jsp_lex_init_extra has the same functionality as tri_jsp_lex_init, but follows the - * convention of taking the scanner as the last argument. Note however, that - * this is a *pointer* to a scanner, as it will be allocated by this call (and - * is the reason, too, why this function also must handle its own declaration). - * The user defined value in the first argument will be available to tri_jsp_alloc in - * the yyextra field. - */ - -int tri_jsp_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) - -{ - struct yyguts_t dummy_yyguts; - - tri_jsp_set_extra (yy_user_defined, &dummy_yyguts); - - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) tri_jsp_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in - yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - tri_jsp_set_extra (yy_user_defined, *ptr_yy_globals); - - return yy_init_globals ( *ptr_yy_globals ); -} - -static int yy_init_globals (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from tri_jsp_lex_destroy(), so don't allocate here. - */ - - yyg->yy_buffer_stack = 0; - yyg->yy_buffer_stack_top = 0; - yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = (char *) 0; - yyg->yy_init = 0; - yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; - yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * tri_jsp_lex_init() - */ - return 0; -} - -/* tri_jsp_lex_destroy is for both reentrant and non-reentrant scanners. */ -int tri_jsp_lex_destroy (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - tri_jsp__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - tri_jsp_pop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - tri_jsp_free(yyg->yy_buffer_stack ,yyscanner); - yyg->yy_buffer_stack = NULL; - - /* Destroy the start condition stack. */ - tri_jsp_free(yyg->yy_start_stack ,yyscanner ); - yyg->yy_start_stack = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * tri_jsp_lex() is called, initialization will occur. */ - yy_init_globals( yyscanner); - - /* Destroy the main struct (reentrant only). */ - tri_jsp_free ( yyscanner , yyscanner ); - yyscanner = NULL; - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *tri_jsp_alloc (yy_size_t size , yyscan_t yyscanner) -{ - return (void *) malloc( size ); -} - -void *tri_jsp_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void tri_jsp_free (void * ptr , yyscan_t yyscanner) -{ - free( (char *) ptr ); /* see tri_jsp_realloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -// ----------------------------------------------------------------------------- -// --SECTION-- forward declarations -// ----------------------------------------------------------------------------- - -static TRI_json_t* ParseArray (yyscan_t scanner); -static TRI_json_t* ParseObject (yyscan_t scanner, int c); - -// ----------------------------------------------------------------------------- -// --SECTION-- private functions -// ----------------------------------------------------------------------------- - -//////////////////////////////////////////////////////////////////////////////// -/// @addtogroup Json -/// @{ -//////////////////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a list -//////////////////////////////////////////////////////////////////////////////// - -static TRI_json_t* ParseList (yyscan_t scanner) { - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - - TRI_json_t* list; - bool comma; - int c; - - list = TRI_CreateListJson(yyextra._memoryZone); - - if (list == NULL) { - yyextra._message = "out-of-memory"; - return NULL; - } - - c = tri_jsp_lex(scanner); - comma = false; - - while (c != END_OF_FILE) { - TRI_json_t* sub; - - if (c == CLOSE_BRACKET) { - return list; - } - - if (comma) { - if (c != COMMA) { - TRI_FreeJson(yyextra._memoryZone, list); - yyextra._message = "expecting comma"; - return NULL; - } - - c = tri_jsp_lex(scanner); - } - else { - comma = true; - } - - sub = ParseObject(scanner, c); - - if (sub == NULL) { - TRI_FreeJson(yyextra._memoryZone, list); - return NULL; - } - - TRI_PushBack3ListJson(yyextra._memoryZone, list, sub); - - c = tri_jsp_lex(scanner); - } - - TRI_FreeJson(yyextra._memoryZone, list); - yyextra._message = "expecting a list element, got end-of-file"; - - return NULL; -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parse an array -//////////////////////////////////////////////////////////////////////////////// - -static TRI_json_t* ParseArray (yyscan_t scanner) { - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - - TRI_json_t* array; - TRI_json_t* sub; - bool comma; - char* name; - size_t nameLen; - int c; - - comma = false; - array = TRI_CreateArrayJson(yyextra._memoryZone); - - if (array == NULL) { - yyextra._message = "out-of-memory"; - } - - c = tri_jsp_lex(scanner); - - while (c != END_OF_FILE) { - if (c == CLOSE_BRACE) { - return array; - } - - if (comma) { - if (c != COMMA) { - TRI_FreeJson(yyextra._memoryZone, array); - yyextra._message = "expecting comma"; - return NULL; - } - - c = tri_jsp_lex(scanner); - } - else { - comma = true; - } - - // attribute name - if (c == STRING_CONSTANT) { - // "complex" attribute name - size_t outLength; - nameLen = yyleng - 2; - - // do proper unescaping - name = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, yytext + 1, nameLen, &outLength); - - } - else if (c == STRING_CONSTANT_ASCII) { - // ASCII-only attribute name - nameLen = yyleng - 2; - - // no unescaping necessary. just copy it - name = TRI_DuplicateString2Z(yyextra._memoryZone, yytext + 1, nameLen); - } - else { - // some other token found => invalid - TRI_FreeJson(yyextra._memoryZone, array); - yyextra._message = "expecting attribute name"; - return NULL; - } - - if (name == NULL) { - TRI_FreeJson(yyextra._memoryZone, array); - yyextra._message = "out-of-memory"; - return NULL; - } - - // followed by a colon - c = tri_jsp_lex(scanner); - - if (c != COLON) { - TRI_FreeString(yyextra._memoryZone, name); - TRI_FreeJson(yyextra._memoryZone, array); - yyextra._message = "expecting colon"; - return NULL; - } - - // followed by an object - c = tri_jsp_lex(scanner); - sub = ParseObject(scanner, c); - - if (sub == NULL) { - TRI_FreeString(yyextra._memoryZone, name); - TRI_FreeJson(yyextra._memoryZone, array); - return NULL; - } - - TRI_Insert4ArrayJson(yyextra._memoryZone, array, name, nameLen, sub); - - c = tri_jsp_lex(scanner); - } - - TRI_FreeJson(yyextra._memoryZone, array); - yyextra._message = "expecting a object attribute name or element, got end-of-file"; - - return NULL; -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parse an object -//////////////////////////////////////////////////////////////////////////////// - -static TRI_json_t* ParseObject (yyscan_t scanner, int c) { - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - TRI_json_t* result; - - switch (c) { - case FALSE_CONSTANT: - result = TRI_CreateBooleanJson(yyextra._memoryZone, false); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - - case TRUE_CONSTANT: - result = TRI_CreateBooleanJson(yyextra._memoryZone, true); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - - case NULL_CONSTANT: - result = TRI_CreateNullJson(yyextra._memoryZone); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - - case NUMBER_CONSTANT: { - char* ep; - double d; - - if ((size_t) yyleng >= 512) { - yyextra._message = "number too big"; - return NULL; - } - - // yytext is null-terminated. can use it directly without copying it into a temporary buffer - d = strtod(yytext, &ep); - - if (d == HUGE_VAL && errno == ERANGE) { - yyextra._message = "number too big"; - return NULL; - } - - if (d == 0 && errno == ERANGE) { - yyextra._message = "number too small"; - return NULL; - } - - if (ep != yytext + yyleng) { - yyextra._message = "cannot parse number"; - return NULL; - } - - result = TRI_CreateNumberJson(yyextra._memoryZone, d); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - } - - case STRING_CONSTANT: { - char* ptr; - size_t outLength; - - ptr = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, yytext + 1, yyleng - 2, &outLength); - - if (ptr == NULL) { - yyextra._message = "out-of-memory"; - return NULL; - } - - result = TRI_CreateString2Json(yyextra._memoryZone, ptr, outLength); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - } - - case STRING_CONSTANT_ASCII: { - result = TRI_CreateString2CopyJson(yyextra._memoryZone, yytext + 1, yyleng - 2); - - if (result == NULL) { - yyextra._message = "out-of-memory"; - } - - return result; - } - - case OPEN_BRACE: - return ParseArray(scanner); - - case OPEN_BRACKET: - return ParseList(scanner); - - case CLOSE_BRACE: - yyextra._message = "expected object, got '}'"; - return NULL; - - case CLOSE_BRACKET: - yyextra._message = "expected object, got ']'"; - return NULL; - - case COMMA: - yyextra._message = "expected object, got ','"; - return NULL; - - case COLON: - yyextra._message = "expected object, got ':'"; - return NULL; - - case UNQUOTED_STRING: - yyextra._message = "expected object, got unquoted string"; - return NULL; - - case END_OF_FILE: - yyextra._message = "expecting atom, got end-of-file"; - return NULL; - } - - yyextra._message = "unknown atom"; - return NULL; -} - -//////////////////////////////////////////////////////////////////////////////// -/// @} -//////////////////////////////////////////////////////////////////////////////// - -// ----------------------------------------------------------------------------- -// --SECTION-- public functions -// ----------------------------------------------------------------------------- - -//////////////////////////////////////////////////////////////////////////////// -/// @addtogroup Json -/// @{ -//////////////////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a json string -//////////////////////////////////////////////////////////////////////////////// - -TRI_json_t* TRI_Json2String (TRI_memory_zone_t* zone, char const* text, char** error) { - TRI_json_t* object; - YY_BUFFER_STATE buf; - int c; - struct yyguts_t * yyg; - yyscan_t scanner; - - object = 0; - - tri_jsp_lex_init(&scanner); - yyg = (struct yyguts_t*) scanner; - - yyextra._memoryZone = zone; - - buf = tri_jsp__scan_string((char yyconst*) text,scanner); - - c = tri_jsp_lex(scanner); - object = ParseObject(scanner, c); - - if (object == NULL) { - LOG_DEBUG("failed to parse json object: '%s'", yyextra._message); - } - else { - c = tri_jsp_lex(scanner); - - if (c != END_OF_FILE) { - object = NULL; - yyextra._message = "failed to parse json object: expecting EOF"; - - LOG_DEBUG("failed to parse json object: expecting EOF"); - } - } - - if (error != NULL) { - if (yyextra._message != NULL) { - *error = TRI_DuplicateStringZ(zone, yyextra._message); - } - else { - *error = NULL; - } - } - - tri_jsp__delete_buffer(buf,scanner); - tri_jsp_lex_destroy(scanner); - - return object; -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a json string -//////////////////////////////////////////////////////////////////////////////// - -TRI_json_t* TRI_JsonString (TRI_memory_zone_t* zone, char const* text) { - return TRI_Json2String(zone, text, 0); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a json file -//////////////////////////////////////////////////////////////////////////////// - -TRI_json_t* TRI_JsonFile (TRI_memory_zone_t* zone, char const* path, char** error) { - FILE* in; - TRI_json_t* object; - int c; - struct yyguts_t * yyg; - yyscan_t scanner; - - object = 0; - in = fopen(path, "rb"); - - if (in == 0) { - LOG_ERROR("cannot open file '%s': '%s'", path, TRI_LAST_ERROR_STR); - return 0; - } - - tri_jsp_lex_init(&scanner); - yyg = (struct yyguts_t*) scanner; - - yyextra._memoryZone = zone; - yyin = in; - - c = tri_jsp_lex(scanner); - object = ParseObject(scanner, c); - - if (object == NULL) { - LOG_DEBUG("failed to parse json object: '%s'", yyextra._message); - } - else { - c = tri_jsp_lex(scanner); - - if (c != END_OF_FILE) { - object = NULL; - LOG_DEBUG("failed to parse json object: expecting EOF"); - } - } - - if (error != NULL) { - if (yyextra._message != NULL) { - *error = TRI_DuplicateStringZ(zone, yyextra._message); - } - else { - *error = NULL; - } - } - - tri_jsp_lex_destroy(scanner); - - fclose(in); - - return object; -} - -//////////////////////////////////////////////////////////////////////////////// -/// @} -//////////////////////////////////////////////////////////////////////////////// - -// Local Variables: -// mode: C -// mode: outline-minor -// outline-regexp: "^\\(/// @brief\\|/// {@inheritDoc}\\|/// @addtogroup\\|// --SECTION--\\|/// @\\}\\)" -// End: - diff --git a/lib/V8/v8-json.cpp b/lib/V8/v8-json.cpp deleted file mode 100644 index 192e2fc2ab..0000000000 --- a/lib/V8/v8-json.cpp +++ /dev/null @@ -1,2357 +0,0 @@ -#line 2 "lib/V8/v8-json.ll" -//////////////////////////////////////////////////////////////////////////////// -/// @brief json parser -/// -/// @file -/// -/// DISCLAIMER -/// -/// Copyright 2011 triagens GmbH, Cologne, Germany -/// -/// Licensed under the Apache License, Version 2.0 (the "License"); -/// you may not use this file except in compliance with the License. -/// You may obtain a copy of the License at -/// -/// http://www.apache.org/licenses/LICENSE-2.0 -/// -/// Unless required by applicable law or agreed to in writing, software -/// distributed under the License is distributed on an "AS IS" BASIS, -/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -/// See the License for the specific language governing permissions and -/// limitations under the License. -/// -/// Copyright holder is triAGENS GmbH, Cologne, Germany -/// -/// @author Dr. Frank Celler -/// @author Copyright 2011, triAGENS GmbH, Cologne, Germany -//////////////////////////////////////////////////////////////////////////////// - -#include - -#include "V8/v8-globals.h" - -#include -#include - -#define YY_NO_INPUT - - - -#line 41 "lib/V8/v8-json.cpp" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) - -#define YY_USE_CONST - -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* An opaque pointer. */ -#ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; -#endif - -/* For convenience, these vars (plus the bison vars far below) - are macros in the reentrant scanner. */ -#define yyin yyg->yyin_r -#define yyout yyg->yyout_r -#define yyextra yyg->yyextra_r -#define yyleng yyg->yyleng_r -#define yytext yyg->yytext_r -#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) -#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) -#define yy_flex_debug yyg->yy_flex_debug_r - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yyg->yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yyg->yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE tri_v8_restart(yyin ,yyscanner ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via tri_v8_restart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] - -void tri_v8_restart (FILE *input_file ,yyscan_t yyscanner ); -void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_v8__create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void tri_v8__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void tri_v8__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void tri_v8_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void tri_v8_pop_buffer_state (yyscan_t yyscanner ); - -static void tri_v8_ensure_buffer_stack (yyscan_t yyscanner ); -static void tri_v8__load_buffer_state (yyscan_t yyscanner ); -static void tri_v8__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); - -#define YY_FLUSH_BUFFER tri_v8__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) - -YY_BUFFER_STATE tri_v8__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_v8__scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE tri_v8__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); - -void *tri_v8_alloc (yy_size_t ,yyscan_t yyscanner ); -void *tri_v8_realloc (void *,yy_size_t ,yyscan_t yyscanner ); -void tri_v8_free (void * ,yyscan_t yyscanner ); - -#define yy_new_buffer tri_v8__create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - tri_v8_ensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - tri_v8__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - tri_v8_ensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - tri_v8__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -#define tri_v8_wrap(n) 1 -#define YY_SKIP_YYWRAP - -typedef unsigned char YY_CHAR; - -typedef int yy_state_type; - -#define yytext_ptr yytext_r - -static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); -static int yy_get_next_buffer (yyscan_t yyscanner ); -static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 14 -#define YY_END_OF_BUFFER 15 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[43] = - { 0, - 12, 12, 15, 13, 12, 12, 13, 13, 10, 5, - 5, 11, 13, 13, 13, 8, 9, 6, 7, 12, - 0, 4, 0, 5, 5, 0, 5, 0, 0, 0, - 5, 0, 0, 0, 0, 0, 2, 3, 0, 5, - 1, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 4, 1, 1, 1, 1, 1, 1, - 1, 1, 5, 6, 7, 8, 1, 9, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 11, 1, 1, - 1, 1, 1, 1, 12, 1, 1, 1, 13, 14, - 1, 1, 1, 1, 1, 15, 1, 16, 1, 1, - 1, 17, 18, 19, 20, 1, 1, 1, 1, 1, - 21, 22, 23, 1, 1, 1, 24, 1, 1, 1, - - 25, 26, 1, 1, 1, 1, 1, 27, 1, 28, - 1, 1, 1, 29, 30, 31, 32, 1, 1, 1, - 1, 1, 33, 1, 34, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[35] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1 - } ; - -static yyconst flex_int16_t yy_base[44] = - { 0, - 0, 0, 94, 95, 33, 35, 35, 31, 95, 85, - 34, 95, 34, 27, 31, 95, 95, 95, 95, 47, - 41, 95, 82, 75, 43, 45, 56, 41, 46, 42, - 62, 49, 54, 57, 79, 65, 95, 95, 67, 82, - 95, 95, 79 - } ; - -static yyconst flex_int16_t yy_def[44] = - { 0, - 42, 1, 42, 42, 42, 42, 43, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 43, 42, 43, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 0, 42 - } ; - -static yyconst flex_int16_t yy_nxt[130] = - { 0, - 4, 5, 6, 7, 8, 9, 8, 4, 10, 11, - 12, 4, 4, 13, 4, 14, 4, 4, 15, 4, - 16, 4, 17, 4, 4, 13, 4, 14, 4, 4, - 15, 4, 18, 19, 20, 20, 20, 20, 22, 24, - 25, 26, 27, 27, 22, 28, 29, 30, 20, 20, - 26, 27, 27, 31, 31, 32, 23, 28, 29, 30, - 33, 34, 23, 26, 27, 27, 36, 32, 37, 38, - 31, 31, 33, 34, 35, 40, 40, 41, 36, 21, - 37, 38, 26, 39, 42, 39, 35, 40, 40, 41, - 40, 40, 26, 42, 3, 42, 42, 42, 42, 42, - - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42 - } ; - -static yyconst flex_int16_t yy_chk[130] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 5, 5, 6, 6, 7, 8, - 8, 11, 11, 11, 21, 13, 14, 15, 20, 20, - 25, 25, 25, 26, 26, 28, 7, 13, 14, 15, - 29, 30, 21, 27, 27, 27, 32, 28, 33, 34, - 31, 31, 29, 30, 31, 39, 39, 36, 32, 43, - 33, 34, 24, 35, 23, 35, 31, 35, 35, 36, - 40, 40, 10, 3, 42, 42, 42, 42, 42, 42, - - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42 - } ; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET - -#define END_OF_FILE 0 -#define FALSE_CONSTANT 1 -#define TRUE_CONSTANT 2 -#define NULL_CONSTANT 3 -#define NUMBER_CONSTANT 4 -#define STRING_CONSTANT 5 -#define OPEN_BRACE 6 -#define CLOSE_BRACE 7 -#define OPEN_BRACKET 8 -#define CLOSE_BRACKET 9 -#define COMMA 10 -#define COLON 11 -#define UNQUOTED_STRING 12 - -struct jsonData { - char const* _message; - TRI_memory_zone_t* _memoryZone; -}; - -#define YY_FATAL_ERROR(a) \ - LOG_DEBUG("json-paser: %s", (a)) - -#define INITIAL 0 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#define YY_EXTRA_TYPE struct jsonData - -/* Holds the entire state of the reentrant scanner. */ -struct yyguts_t - { - - /* User-defined. Not touched by flex. */ - YY_EXTRA_TYPE yyextra_r; - - /* The rest are the same as the globals declared in the non-reentrant scanner. */ - FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ - char yy_hold_char; - int yy_n_chars; - int yyleng_r; - char *yy_c_buf_p; - int yy_init; - int yy_start; - int yy_did_buffer_switch_on_eof; - int yy_start_stack_ptr; - int yy_start_stack_depth; - int *yy_start_stack; - yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; - - int yylineno_r; - int yy_flex_debug_r; - - char *yytext_r; - int yy_more_flag; - int yy_more_len; - - }; /* end struct yyguts_t */ - -static int yy_init_globals (yyscan_t yyscanner ); - -int tri_v8_lex_init (yyscan_t* scanner); - -int tri_v8_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int tri_v8_lex_destroy (yyscan_t yyscanner ); - -int tri_v8_get_debug (yyscan_t yyscanner ); - -void tri_v8_set_debug (int debug_flag ,yyscan_t yyscanner ); - -YY_EXTRA_TYPE tri_v8_get_extra (yyscan_t yyscanner ); - -void tri_v8_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); - -FILE *tri_v8_get_in (yyscan_t yyscanner ); - -void tri_v8_set_in (FILE * in_str ,yyscan_t yyscanner ); - -FILE *tri_v8_get_out (yyscan_t yyscanner ); - -void tri_v8_set_out (FILE * out_str ,yyscan_t yyscanner ); - -int tri_v8_get_leng (yyscan_t yyscanner ); - -char *tri_v8_get_text (yyscan_t yyscanner ); - -int tri_v8_get_lineno (yyscan_t yyscanner ); - -void tri_v8_set_lineno (int line_number ,yyscan_t yyscanner ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int tri_v8_wrap (yyscan_t yyscanner ); -#else -extern int tri_v8_wrap (yyscan_t yyscanner ); -#endif -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (yyscan_t yyscanner ); -#else -static int input (yyscan_t yyscanner ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int tri_v8_lex (yyscan_t yyscanner); - -#define YY_DECL int tri_v8_lex (yyscan_t yyscanner) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* ----------------------------------------------------------------------------- - * keywords - * ----------------------------------------------------------------------------- */ - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - tri_v8_ensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - tri_v8__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - tri_v8__load_buffer_state(yyscanner ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 43 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_current_state != 42 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -{ - return FALSE_CONSTANT; -} - YY_BREAK -case 2: -YY_RULE_SETUP -{ - return NULL_CONSTANT; -} - YY_BREAK -case 3: -YY_RULE_SETUP -{ - return TRUE_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * strings - * ----------------------------------------------------------------------------- */ -case 4: -/* rule 4 can match eol */ -YY_RULE_SETUP -{ - return STRING_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * numbers - * ----------------------------------------------------------------------------- */ -case 5: -YY_RULE_SETUP -{ - return NUMBER_CONSTANT; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * special characters - * ----------------------------------------------------------------------------- */ -case 6: -YY_RULE_SETUP -{ - return OPEN_BRACE; -} - YY_BREAK -case 7: -YY_RULE_SETUP -{ - return CLOSE_BRACE; -} - YY_BREAK -case 8: -YY_RULE_SETUP -{ - return OPEN_BRACKET; -} - YY_BREAK -case 9: -YY_RULE_SETUP -{ - return CLOSE_BRACKET; -} - YY_BREAK -case 10: -YY_RULE_SETUP -{ - return COMMA; -} - YY_BREAK -case 11: -YY_RULE_SETUP -{ - return COLON; -} - YY_BREAK -/* ----------------------------------------------------------------------------- - * Skip whitespaces. Whatever is left, should be an unquoted string appearing - * somewhere. This will be reported as an error. - * ----------------------------------------------------------------------------- */ -case 12: -/* rule 12 can match eol */ -YY_RULE_SETUP -{ -} - YY_BREAK -case 13: -YY_RULE_SETUP -{ - return UNQUOTED_STRING; -} - YY_BREAK -case 14: -YY_RULE_SETUP -ECHO; - YY_BREAK -case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * tri_v8_lex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); - - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; - - if ( tri_v8_wrap(yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of tri_v8_lex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = yyg->yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - tri_v8_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, (int) num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - tri_v8_restart(yyin ,yyscanner); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) tri_v8_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } - - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_current_state = yyg->yy_start; - - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 43 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) -{ - register int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - register char *yy_cp = yyg->yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 43 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 42); - - return yy_is_jam ? 0 : yy_current_state; -} - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif - -{ - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - *yyg->yy_c_buf_p = yyg->yy_hold_char; - - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; - ++yyg->yy_c_buf_p; - - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - tri_v8_restart(yyin ,yyscanner); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( tri_v8_wrap(yyscanner ) ) - return EOF; - - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * @param yyscanner The scanner object. - * @note This function does not reset the start condition to @c INITIAL . - */ - void tri_v8_restart (FILE * input_file , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! YY_CURRENT_BUFFER ){ - tri_v8_ensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - tri_v8__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - tri_v8__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); - tri_v8__load_buffer_state(yyscanner ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * @param yyscanner The scanner object. - */ - void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* TODO. We should be able to replace this entire function body - * with - * tri_v8_pop_buffer_state(); - * tri_v8_push_buffer_state(new_buffer); - */ - tri_v8_ensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - tri_v8__load_buffer_state(yyscanner ); - - /* We don't actually know whether we did this switch during - * EOF (tri_v8_wrap()) processing, but the only time this flag - * is looked at is after tri_v8_wrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; -} - -static void tri_v8__load_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * @param yyscanner The scanner object. - * @return the allocated buffer state. - */ - YY_BUFFER_STATE tri_v8__create_buffer (FILE * file, int size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) tri_v8_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8__create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) tri_v8_alloc(b->yy_buf_size + 2 ,yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8__create_buffer()" ); - - b->yy_is_our_buffer = 1; - - tri_v8__init_buffer(b,file ,yyscanner); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with tri_v8__create_buffer() - * @param yyscanner The scanner object. - */ - void tri_v8__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - tri_v8_free((void *) b->yy_ch_buf ,yyscanner ); - - tri_v8_free((void *) b ,yyscanner ); -} - -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a tri_v8_restart() or at EOF. - */ - static void tri_v8__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) - -{ - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - tri_v8__flush_buffer(b ,yyscanner); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then tri_v8__init_buffer was _probably_ - * called from tri_v8_restart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * @param yyscanner The scanner object. - */ - void tri_v8__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - tri_v8__load_buffer_state(yyscanner ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * @param yyscanner The scanner object. - */ -void tri_v8_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; - - tri_v8_ensure_buffer_stack(yyscanner); - - /* This block is copied from tri_v8__switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from tri_v8__switch_to_buffer. */ - tri_v8__load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * @param yyscanner The scanner object. - */ -void tri_v8_pop_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; - - tri_v8__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; - - if (YY_CURRENT_BUFFER) { - tri_v8__load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void tri_v8_ensure_buffer_stack (yyscan_t yyscanner) -{ - int num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (!yyg->yy_buffer_stack) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - yyg->yy_buffer_stack = (struct yy_buffer_state**)tri_v8_alloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8_ensure_buffer_stack()" ); - - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } - - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)tri_v8_realloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8_ensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE tri_v8__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) tri_v8_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8__scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - tri_v8__switch_to_buffer(b ,yyscanner ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to tri_v8_lex() will - * scan from a @e copy of @a str. - * @param yystr a NUL-terminated string to scan - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * tri_v8__scan_bytes() instead. - */ -YY_BUFFER_STATE tri_v8__scan_string (yyconst char * yystr , yyscan_t yyscanner) -{ - - return tri_v8__scan_bytes(yystr,strlen(yystr) ,yyscanner); -} - -/** Setup the input buffer state to scan the given bytes. The next call to tri_v8_lex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE tri_v8__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) tri_v8_alloc(n ,yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in tri_v8__scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = tri_v8__scan_buffer(buf,n ,yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in tri_v8__scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the user-defined data for this scanner. - * @param yyscanner The scanner object. - */ -YY_EXTRA_TYPE tri_v8_get_extra (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyextra; -} - -/** Get the current line number. - * @param yyscanner The scanner object. - */ -int tri_v8_get_lineno (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yylineno; -} - -/** Get the current column number. - * @param yyscanner The scanner object. - */ -int tri_v8_get_column (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yycolumn; -} - -/** Get the input stream. - * @param yyscanner The scanner object. - */ -FILE *tri_v8_get_in (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyin; -} - -/** Get the output stream. - * @param yyscanner The scanner object. - */ -FILE *tri_v8_get_out (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyout; -} - -/** Get the length of the current token. - * @param yyscanner The scanner object. - */ -int tri_v8_get_leng (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyleng; -} - -/** Get the current token. - * @param yyscanner The scanner object. - */ - -char *tri_v8_get_text (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yytext; -} - -/** Set the user-defined data. This data is never touched by the scanner. - * @param user_defined The data to be associated with this scanner. - * @param yyscanner The scanner object. - */ -void tri_v8_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; -} - -/** Set the current line number. - * @param line_number - * @param yyscanner The scanner object. - */ -void tri_v8_set_lineno (int line_number , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "tri_v8_set_lineno called with no buffer" , yyscanner); - - yylineno = line_number; -} - -/** Set the current column. - * @param line_number - * @param yyscanner The scanner object. - */ -void tri_v8_set_column (int column_no , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "tri_v8_set_column called with no buffer" , yyscanner); - - yycolumn = column_no; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * @param yyscanner The scanner object. - * @see tri_v8__switch_to_buffer - */ -void tri_v8_set_in (FILE * in_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = in_str ; -} - -void tri_v8_set_out (FILE * out_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = out_str ; -} - -int tri_v8_get_debug (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yy_flex_debug; -} - -void tri_v8_set_debug (int bdebug , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = bdebug ; -} - -/* Accessor methods for yylval and yylloc */ - -/* User-visible API */ - -/* tri_v8_lex_init is special because it creates the scanner itself, so it is - * the ONLY reentrant function that doesn't take the scanner as the last argument. - * That's why we explicitly handle the declaration, instead of using our macros. - */ - -int tri_v8_lex_init(yyscan_t* ptr_yy_globals) - -{ - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) tri_v8_alloc ( sizeof( struct yyguts_t ), NULL ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - return yy_init_globals ( *ptr_yy_globals ); -} - -/* tri_v8_lex_init_extra has the same functionality as tri_v8_lex_init, but follows the - * convention of taking the scanner as the last argument. Note however, that - * this is a *pointer* to a scanner, as it will be allocated by this call (and - * is the reason, too, why this function also must handle its own declaration). - * The user defined value in the first argument will be available to tri_v8_alloc in - * the yyextra field. - */ - -int tri_v8_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) - -{ - struct yyguts_t dummy_yyguts; - - tri_v8_set_extra (yy_user_defined, &dummy_yyguts); - - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) tri_v8_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in - yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - tri_v8_set_extra (yy_user_defined, *ptr_yy_globals); - - return yy_init_globals ( *ptr_yy_globals ); -} - -static int yy_init_globals (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from tri_v8_lex_destroy(), so don't allocate here. - */ - - yyg->yy_buffer_stack = 0; - yyg->yy_buffer_stack_top = 0; - yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = (char *) 0; - yyg->yy_init = 0; - yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; - yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * tri_v8_lex_init() - */ - return 0; -} - -/* tri_v8_lex_destroy is for both reentrant and non-reentrant scanners. */ -int tri_v8_lex_destroy (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - tri_v8__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - tri_v8_pop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - tri_v8_free(yyg->yy_buffer_stack ,yyscanner); - yyg->yy_buffer_stack = NULL; - - /* Destroy the start condition stack. */ - tri_v8_free(yyg->yy_start_stack ,yyscanner ); - yyg->yy_start_stack = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * tri_v8_lex() is called, initialization will occur. */ - yy_init_globals( yyscanner); - - /* Destroy the main struct (reentrant only). */ - tri_v8_free ( yyscanner , yyscanner ); - yyscanner = NULL; - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *tri_v8_alloc (yy_size_t size , yyscan_t yyscanner) -{ - return (void *) malloc( size ); -} - -void *tri_v8_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void tri_v8_free (void * ptr , yyscan_t yyscanner) -{ - free( (char *) ptr ); /* see tri_v8_realloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -// ----------------------------------------------------------------------------- -// --SECTION-- forward declarations -// ----------------------------------------------------------------------------- - -static v8::Handle ParseArray (yyscan_t scanner); -static v8::Handle ParseObject (yyscan_t scanner, int c); - -// ----------------------------------------------------------------------------- -// --SECTION-- private functions -// ----------------------------------------------------------------------------- - -//////////////////////////////////////////////////////////////////////////////// -/// @addtogroup Json -/// @{ -//////////////////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a list -//////////////////////////////////////////////////////////////////////////////// - -static v8::Handle ParseList (yyscan_t scanner) { - v8::HandleScope scope; - - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - - v8::Handle list = v8::Array::New(); - bool comma = false; - size_t pos = 0; - - int c = tri_v8_lex(scanner); - - while (c != END_OF_FILE) { - if (c == CLOSE_BRACKET) { - return scope.Close(list); - } - - if (comma) { - if (c != COMMA) { - yyextra._message = "expecting comma"; - return scope.Close(v8::Undefined()); - } - - c = tri_v8_lex(scanner); - } - else { - comma = true; - } - - v8::Handle sub = ParseObject(scanner, c); - - if (sub->IsUndefined()) { - return scope.Close(v8::Undefined()); - } - - list->Set(pos++, sub); - - c = tri_v8_lex(scanner); - } - - yyextra._message = "expecting a list element, got end-of-file"; - - return scope.Close(v8::Undefined()); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses an array -//////////////////////////////////////////////////////////////////////////////// - -static v8::Handle ParseArray (yyscan_t scanner) { - v8::HandleScope scope; - - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - - v8::Handle array = v8::Object::New(); - bool comma = false; - char* name; - char const* ptr; - size_t len; - size_t outLength; - - int c = tri_v8_lex(scanner); - - while (c != END_OF_FILE) { - if (c == CLOSE_BRACE) { - return scope.Close(array); - } - - if (comma) { - if (c != COMMA) { - yyextra._message = "expecting comma"; - return scope.Close(v8::Undefined()); - } - - c = tri_v8_lex(scanner); - } - else { - comma = true; - } - - // attribute name - if (c != STRING_CONSTANT) { - yyextra._message = "expecting attribute name"; - return scope.Close(v8::Undefined()); - } - - ptr = yytext; - len = yyleng; - name = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, ptr + 1, len - 2, &outLength); - - if (name == NULL) { - yyextra._message = "out-of-memory"; - return scope.Close(v8::Undefined()); - } - - // followed by a colon - c = tri_v8_lex(scanner); - - if (c != COLON) { - TRI_FreeString(yyextra._memoryZone, name); - yyextra._message = "expecting colon"; - return scope.Close(v8::Undefined()); - } - - // fallowed by an object - c = tri_v8_lex(scanner); - v8::Handle sub = ParseObject(scanner, c); - - if (sub->IsUndefined()) { - TRI_FreeString(yyextra._memoryZone, name); - return scope.Close(v8::Undefined()); - } - - array->Set(v8::String::New(name), sub); - - TRI_FreeString(yyextra._memoryZone, name); - - c = tri_v8_lex(scanner); - } - - yyextra._message = "expecting a object attribute name or element, got end-of-file"; - return scope.Close(v8::Undefined()); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses an object -//////////////////////////////////////////////////////////////////////////////// - -static v8::Handle ParseObject (yyscan_t scanner, int c) { - v8::HandleScope scope; - - struct yyguts_t * yyg = (struct yyguts_t*) scanner; - - char buffer[1024]; - - char* ep; - char* ptr; - double d; - size_t outLength; - - v8::Handle str; - - switch (c) { - case END_OF_FILE: - yyextra._message = "expecting atom, got end-of-file"; - return scope.Close(v8::Undefined()); - - case FALSE_CONSTANT: - return scope.Close(v8::False()); - - case TRUE_CONSTANT: - return scope.Close(v8::True()); - - case NULL_CONSTANT: - return scope.Close(v8::Null()); - - case NUMBER_CONSTANT: - if ((size_t) yyleng >= sizeof(buffer)) { - yyextra._message = "number too big"; - return scope.Close(v8::Undefined()); - } - - memcpy(buffer, yytext, yyleng); - buffer[yyleng] = '\0'; - - d = strtod(buffer, &ep); - - if (d == HUGE_VAL && errno == ERANGE) { - yyextra._message = "number too big"; - return scope.Close(v8::Undefined()); - } - - if (d == 0 && errno == ERANGE) { - yyextra._message = "number too small"; - return scope.Close(v8::Undefined()); - } - - if (ep != buffer + yyleng) { - yyextra._message = "cannot parse number"; - return scope.Close(v8::Undefined()); - } - - return scope.Close(v8::Number::New(d)); - - case STRING_CONSTANT: - ptr = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, yytext + 1, yyleng - 2, &outLength); - - if (ptr == NULL) { - yyextra._message = "out-of-memory"; - return scope.Close(v8::Undefined()); - } - - str = v8::String::New(ptr, outLength); - TRI_FreeString(yyextra._memoryZone, ptr); - - return scope.Close(str); - - case OPEN_BRACE: - return scope.Close(ParseArray(scanner)); - - case CLOSE_BRACE: - yyextra._message = "expected object, got '}'"; - return scope.Close(v8::Undefined()); - - case OPEN_BRACKET: - return scope.Close(ParseList(scanner)); - - case CLOSE_BRACKET: - yyextra._message = "expected object, got ']'"; - return scope.Close(v8::Undefined()); - - case COMMA: - yyextra._message = "expected object, got ','"; - return scope.Close(v8::Undefined()); - - case COLON: - yyextra._message = "expected object, got ':'"; - return scope.Close(v8::Undefined()); - - case UNQUOTED_STRING: - yyextra._message = "expected object, got unquoted string"; - return scope.Close(v8::Undefined()); - } - - yyextra._message = "unknown atom"; - return scope.Close(v8::Undefined()); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @} -//////////////////////////////////////////////////////////////////////////////// - -// ----------------------------------------------------------------------------- -// --SECTION-- public functions -// ----------------------------------------------------------------------------- - -//////////////////////////////////////////////////////////////////////////////// -/// @addtogroup Json -/// @{ -//////////////////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////////////////// -/// @brief parses a json string -//////////////////////////////////////////////////////////////////////////////// - -v8::Handle TRI_FromJsonString (char const* text, char** error) { - v8::HandleScope scope; - - v8::Handle object = v8::Undefined(); - YY_BUFFER_STATE buf; - int c; - struct yyguts_t * yyg; - yyscan_t scanner; - - tri_v8_lex_init(&scanner); - yyg = (struct yyguts_t*) scanner; - - buf = tri_v8__scan_string(text,scanner); - - c = tri_v8_lex(scanner); - object = ParseObject(scanner, c); - - if (object->IsUndefined()) { - LOG_DEBUG("failed to parse json object: '%s'", yyextra._message); - } - else { - c = tri_v8_lex(scanner); - - if (c != END_OF_FILE) { - object = v8::Undefined(); - LOG_DEBUG("failed to parse json object: expecting EOF"); - } - } - - if (error != NULL) { - if (yyextra._message != 0) { - *error = TRI_DuplicateString(yyextra._message); - } - else { - *error = NULL; - } - } - - tri_v8__delete_buffer(buf,scanner); - tri_v8_lex_destroy(scanner); - - return scope.Close(object); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @} -//////////////////////////////////////////////////////////////////////////////// - -// Local Variables: -// mode: C -// mode: outline-minor -// outline-regexp: "^\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\)" -// End: -