From: "Sergey N. Yatskevich" <syatskevich@mail.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [autoconf] пример sysconfdir
Date: Wed, 26 Dec 2007 19:51:16 +0300
Message-ID: <1198687876.4727.20.camel@snc.2100.gosniias.ru> (raw)
In-Reply-To: <200712261919.44084.ivanov@cg.ru>
В Срд, 26/12/2007 в 19:19 +0300, Максим Иванов пишет:
> Нет, я имел ввиду несколько другое. вот есть у configure такой параметр
> sysconfdir вот есть какая-то конкретная программа, которая при старте читает
> конфиг файл. Я бы хотел посмотреть пример, как устроить так, чтобы
> откомпилированная программа искала конфиг файл не там где жёстко прописано, а
> там где было указано при configure && make
Я делаю так:
Makefile.am:
program_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
program.c:
static char config_file[] = SYSCONFDIR"/program.conf";
--
Sergey N. Yatskevich <syatskevich@mail.ru>
prev parent reply other threads:[~2007-12-26 16:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 15:11 Максим Иванов
2007-12-26 15:58 ` Aleksey Avdeev
2007-12-26 16:19 ` Максим Иванов
2007-12-26 16:51 ` Sergey N. Yatskevich [this message]
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=1198687876.4727.20.camel@snc.2100.gosniias.ru \
--to=syatskevich@mail.ru \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git