autoconf
[Top][All Lists]
Advanced

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

Re: config variables in config.h


From: Schleicher Ralph (LLI)
Subject: Re: config variables in config.h
Date: Thu, 5 Sep 2002 07:26:24 +0200

Viktor Pavlenko <address@hidden> writes:

> AC_DEFINE_UNQUOTED(MYPROG_DATA_DIR,$datadir,[myprog data directory])
[...]
> but it doesn't work ($prefix/share is inserted and not expanded). I
> would appreciate it if someone could tell me how to do this properly.

The following code works, but I can not say if it's the proper way:

MY_DATA_DIR=`eval echo "${datadir}/my"`
AC_DEFINE_UNQUOTED([MY_DATA_DIR], ["$MY_DATA_DIR"],
[Define to the top-level directory for read-only data files.])

-- 
Ralph





reply via email to

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