Make guile test suite default to scm api

In other words guilescm becomes guile.
Deprecated gh api tests are moved to guilegh.
Add support for guile 2.0: update swg and interface files

Note: only the scm interface is considered.
Add support for guile 2.0: configure and makefiles.

Note: guile-config is badly broken for guile 2. So
the guile configure  section has been rewritten to
use pkg-config instead.

Manually resolved conflicts:
	Examples/Makefile.in
Drop support for guile 1.6 and older
Drop guilegh interface

All of guile's interface files now use the scm interface.
This should not affect any users. Swig generated code
using the scm interface can be mixed with gh interface
using user code.
It does simplify maintenance of the guile swig code though.
Fix deprecation warnings for test suite under guile 2.0
guile: fix std_map.i "$1 not found" error
Some C++ experience needed

On 19/04/13 18:41, Geert Janssens wrote:
> Hi,
>
> I'm working through the failing testcases for guile. One testcase fails
> with a compilation error in some generated code based on std_map and
> std_pair. I know exactly where this generated code comes from, but my
> C++ knowledge is insufficient to understand the error, let alone remedy
> it. I gather some kind of const violation, but that's all I can read
> from it :( My hope is that someone used to working with stl will more
> easily understand it.
>
> So, if someone can help me understand the error and what the fix would
> be in C++, I can fix the corresponding .i file.
>
> This is the code snippet the causes the error:
>

<snip>

>
> /usr/lib/gcc/i686-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:88:12:
> error: non-static const member ‘const std::pair<int, A*> std::pair<int,
> const std::pair<int, A*> >::second’, can’t use default assignment operator

This is the main problem - it is saying there is no default assignment
operator (because one of the members in pair is const). The solution is
to avoid assignment. I've attached a patch to do this plus some error
message corrections.

William
Use freearg instead of argout to free temp variable
Disable guile 2's autocompilation feature for the test suite

Autocompilation generates a lot of warnings. Most of them
just informational, but it clutters the test output.
Add guile test for guile 2
guile: fix integer test on 64 bit systems
guile: fix matrix example

- add missing library in link phase
- empty true path () for if is not allowed
guile: fix multimap example

- fix compiler warning
- fix guile 2 deprecation warnings
- minor cleanup of generated code
guile: emit warning when -gh or -scm option are used
Don't use obsolete -scm option in own makefiles