autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to install a bashcompletion file?


From: Ralf Wildenhues
Subject: Re: how to install a bashcompletion file?
Date: Mon, 29 Sep 2008 08:29:49 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Lorenzo,

* Lorenzo Bettini wrote on Sat, Sep 27, 2008 at 04:04:07PM CEST:
>
> I'd like to install a bashcompletion file that comes in the tarball for  
> a GNU program I'm mantaining (source-highlight).  The file should be  
> installed in an etc subdirectory that bashcompletion uses.

Then sysconfdir is best.  Its default location is ${prefix}/etc, but the
user can override that with 'configure --sysconfdir=/etc'.

So you can use
  sysconf_DATA = ...

> In a previous post ("checking an environment variable") I was trying to  
> detect in configure whether the directory used by bashcompletion  
> existed, but unfortunately, the environment variable BASH_COMPLETION_DIR  
> is not exported, so configure does not detect it...

FWIW, the fact that unexported variables cannot be detected by subshells
is a feature of shell semantics, not a bug in configure.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]