lib/android: hacks to fix new_global_ref awaiting a fix for #845

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge: lib/android: hack to fix new_global_ref

awaiting a fix for #845

@privat This might fix some android apps, ballz at least.

Pull-Request: #846
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
neo: Correct exportation of a signature.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
makefile: add `man` rule to build the manpages

Signed-off-by: Jean Privat <jean@pryen.org>
man: improve README when people already have a MANPATH

Signed-off-by: Jean Privat <jean@pryen.org>
doc: remove advanced_options (deprecated by manpages)

Signed-off-by: Jean Privat <jean@pryen.org>
tools: use pkg-config to found libgc

In some platform (macosx+macports), the libgc library is not located at
standard default position.
Fortunately, libgc seems to be registered with pkg-config under most
platforms.

Thus, use pkg-config in the generated makefiles to found the correct
flags and paths.

In c_src, some generated files are manually modified to provide a
working bootstrap under those platforms.

This is only a quick-and-dirty workaround. The real job must be polished
and generalized to solve the issue #864.

Reported-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
bin: nitc does no more rely on procfs

procfs (/proc/) does not exists on some system (macosx).
So use `$BASH_SOURCE` to approximate the original source-file.

Maybe we should just rename back nitg to nitc.

Reported-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
toolcontext: nit_dir tries another heuristic on PATH if procfs is not available

procfs (/proc/) does not exists on some system (macosx).
Therefore the heuristic used to find nit_dir will fail on those system
when the command is invoked from the PATH.

The solution is to add another heuristic, where the program_name is
manually searched inside the directories of PATH in order to find the
original directory.

Reported-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
tests: fix saferun() return value when TIME is not set

Doing stuff after the command execution will temper its return value.

Signed-off-by: Jean Privat <jean@pryen.org>
README: add pkg-config as a requirement

Signed-off-by: Jean Privat <jean@pryen.org>
man: add nitc as an alias of nitg

So people that does `man nitc` will see something.

Signed-off-by: Jean Privat <jean@pryen.org>
Merge: Bugfixes for MacOSX

Some hot-bugfixes for MacOSX.

See the individual commits for the details.

Pull-Request: #865
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
neo: Load the graph in chunks.

Fix #870.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
neo: Really load the graph only once.

This cut memory consumption in half (approximately).

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
nitdoc: Extend the model to help the importation from Doxygen.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
man: rewrite nitg.md

Signed-off-by: Jean Privat <jean@pryen.org>
toolcontext: make compute_nit_dir more robust

Signed-off-by: Jean Privat <jean@pryen.org>
compiler: remove --clib-path and NIT_CC_PATH

Signed-off-by: Jean Privat <jean@pryen.org>
toolcontext: nit_dir is non-nullable

Signed-off-by: Jean Privat <jean@pryen.org>