From: Stefano Lattarini <stefano.lattarini@gmail.com>
To: Jiang Xin <worldhello.net@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
"Christoph J. Thompson" <cjsthompson@gmail.com>,
Git List <git@vger.kernel.org>
Subject: Re: [PATCH] Bugfix: undefined htmldir in config.mak.autogen
Date: Wed, 20 Feb 2013 13:30:52 +0100 [thread overview]
Message-ID: <5124C1FC.6050004@gmail.com> (raw)
In-Reply-To: <CANYiYbHpEd8kgv2nPvJgDvNLhzHbYJ8uN2gLNWWwCWvrVExpBA@mail.gmail.com>
On 02/20/2013 11:42 AM, Jiang Xin wrote:
> 2013/2/20 Stefano Lattarini <stefano.lattarini@gmail.com>:
>> On 02/20/2013 02:39 AM, Jiang Xin wrote:
>>>
>>> [SNIP]
>>>
>>> I am not familiar with autoconf. After clone autoconf and check,
>>> I cannot find a neat way to change "htmldir" default location to
>>> use ${datarootdir} (just like mandir).
>>>
>> This one-line change should be enough to do what you want:
>>
>> diff --git a/configure.ac b/configure.ac
>> index 1991258..2bfbec9 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -149,6 +149,8 @@ AC_CONFIG_SRCDIR([git.c])
>> config_file=config.mak.autogen
>> config_in=config.mak.in
>>
>> +AC_SUBST([htmldir], ['${datarootdir}'])
>> +
>> GIT_CONF_SUBST([AUTOCONFIGURED], [YesPlease])
>>
>
> If changed like that, set:
>
> AC_SUBST([htmldir], ['${datarootdir}/doc/git-doc'])
>
> In the generated "configure" file, this instruction will be inserted
> after the option_parse block (not before), and will override what
> the user provided by running "./configure --htmldir=DOCDIR".
>
Yikes, you're right. Scratch my suggestion then; the issue should
probably be brought up on the autoconf mailing list. Albeit I think
it is by design that autoconf doesn't let a package to override the
defaults for installation directory: this way, the end users can
expect consistent, well-documented defaults for all autoconf-based
packages.
> BTW, add "docdir = @docdir@" to "config.mak.in", also let
> "./configure --docdir=DIR" works properly.
>
Thanks, and sorry for the noise,
Stefano
next prev parent reply other threads:[~2013-02-20 12:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 11:23 [PATCH] Bugfix: undefined htmldir in config.mak.autogen Jiang Xin
2013-02-19 19:11 ` Junio C Hamano
2013-02-19 22:59 ` Junio C Hamano
2013-02-19 23:40 ` Junio C Hamano
2013-02-20 1:39 ` Jiang Xin
2013-02-20 8:22 ` Stefano Lattarini
2013-02-20 10:42 ` Jiang Xin
2013-02-20 12:30 ` Stefano Lattarini [this message]
2013-02-20 9:42 ` John Keeping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5124C1FC.6050004@gmail.com \
--to=stefano.lattarini@gmail.com \
--cc=cjsthompson@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=worldhello.net@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).