[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
including autoconf paths in source
From: |
Monty Taylor |
Subject: |
including autoconf paths in source |
Date: |
Thu, 11 Dec 2008 14:38:19 -0600 |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081125) |
Hey all,
I'm wondering if there is a best practice for getting paths such as
locaeldir or datadir into source code. As it stands now in the Makefile
I've got:
prefix= /usr/local
datarootdir= ${prefix}/share
localedir = ${datarootdir}/locale
To get localedir into a source file, I've got a section in Makefile.am like:
DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@
(except that I've actually got several - localedir is just a convenient
example) It makes things a little ugly.
If I just do AC_DEFINE(LOCALEDIR,"${localedir}") I only get
#define LOCALEDIR "${datarootdir}/locale"
is there a cantrip I'm missing, or a decent way to deal with this?
Thanks!
- including autoconf paths in source,
Monty Taylor <=
- Re: including autoconf paths in source, Eric Blake, 2008/12/11
- Re: including autoconf paths in source, Jan Engelhardt, 2008/12/12
- Re: including autoconf paths in source, Thomas Dickey, 2008/12/12
- Re: including autoconf paths in source, Ralf Corsepius, 2008/12/12
- Re: including autoconf paths in source, Thomas Dickey, 2008/12/12
- Re: including autoconf paths in source, Ralf Corsepius, 2008/12/12
- Re: including autoconf paths in source, Thomas Dickey, 2008/12/12
- Re: including autoconf paths in source, John Calcote, 2008/12/12
- Re: including autoconf paths in source, Ralf Corsepius, 2008/12/12
- Re: including autoconf paths in source, Monty Taylor, 2008/12/20