autoconf
[Top][All Lists]
Advanced

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

config.h vs. -D (fwd)


From: Benjamin Sailer
Subject: config.h vs. -D (fwd)
Date: Wed, 20 Aug 2003 11:07:39 +0200 (CEST)

Hello again,

> 
> <snip configure.in>
> MY_CONFIG_FILE="@datadir@/my_config_file"
> AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
> [default configuration file])
> <snip>
> 

> what an i doing wrong?  I'm using
> 

sorry, i found it after all in the mailinglist's archive:
@datadir@ seems to be the wrong way at all.  I tried

<snip configure.in>
MY_CONFIG_FILE=`eval echo ${datadir}/my_config_file`
AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
[default configuration file])
<snip>

and it seems to work fine both with and without config.h

Benjamin

-- 
*****************************************************************
Benjamin Sailer
eMail: address@hidden
*****************************************************************
Disclaimer:  This signature has been generated automatically and
does not reflect my opinion at all.
                -- Benjamin Sailer

A man would still do something out of sheer perversity - he would create
destruction and chaos - just to gain his point... and if all this could in
turn be analyzed and prevented by predicting that it would occur, then man
would deliberately go mad to prove his point.
                -- Feodor Dostoevsky, "Notes From the Underground"





reply via email to

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