Re: Placing libraries in single central directory

2007-04-05 Thread Bob Proulx
antoon wrote:
> By default this library is placed in the same directory as the C-files.

After the result of 'make' yes.

> But ...  how to copy this library afterwards to a general *lib* directory,
> because  during the overall linkage step of my code, I want all my libraries
> in one single directory.  You can do something like this, by make install
> but that's not what I mean.

I don't believe automake is designed to do that as it is right now.
However you can use symlinks to simulate this.

In the directory that you want the .a files to appear create a symlink
from there to the directory in which you are building your libraries.
In that way they will appear to be in the other directory that you
want them to appear.

Bob




Re: Lost in automatic dependencies

2007-04-05 Thread Ralf Wildenhues
* Stephane Bortzmeyer wrote on Wed, Apr 04, 2007 at 10:47:28PM CEST:
> 
> Indeed, removing /usr/local/etc/config.site solved the problem (the
> cache was innocent; I've already tried to delete it.) Now, when I
> modify ".h" files, everything is compiled again.

> So, we've found the guilty, thanks. Here is the config.site in case
> someone finds the bug in it:

> if test "$cache_file" = /dev/null; then
>   if test "$prefix" = NONE; then
> prefix=$ac_default_prefix
>   fi
>   cache_file="$prefix/var/tmp/config.cache"

Just making sure: you said you removed config.cache, but what about
$prefix/var/tmp/config.cache?  The cache variables for the depmode
are named something like $am_cv_CC_dependencies_compiler_type.

Cheers,
Ralf