Re: Newbie: Installing some binaries and other files in /usr/X11R6 by default

2006-02-23 Thread Ralf Wildenhues
Hi,

* [EMAIL PROTECTED] wrote on Sun, Feb 19, 2006 at 09:28:37AM CET:
 I started reading about GNU Autotools yesterday morning.
 Still, I've been able to convert my project to use
 autconf and automake.
 But I need to install my binaries in the directory
 tree of the X server, and I couldn't find out how to
 do it. Is it possible?

   ./configure --prefix=/usr/X11R6

and maybe also add --sysconfdir and other directory options to match
your desired installation.
   ./configure --help

has more information, the `INSTALL' file even more.

I would warn against overwriting system files though, unless you really
know what you're doing.  Modern unices have packaging systems. :-)

Cheers,
Ralf




Re: specifying target directories in non-recursive automake

2006-02-23 Thread Ralf Wildenhues
Hi John,

* John Darrington wrote on Mon, Feb 20, 2006 at 03:42:37AM CET:
 I've been trying to convert a rather largish automake controlled
 project from a recursive style build system, to a non-recursive one.
 I was rather suprised to see that automake decides to put all the
 object files in the root directory; not only ugly, but destroys the
 namespaces afforded by each directory.

Read up on the Automake option subdir-objects in the documentation.
To specify per-package like this:

AC_INIT([foo-package], [1.23], [EMAIL PROTECTED])
AM_INIT_AUTOMAKE([subdir-objects ...])

or per-Makefile.am in `AUTOMAKE_OPTIONS = ...'.  I prefer the first
usually.

Cheers,
Ralf