automake
[Top][All Lists]
Advanced

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

Re: adding subdirectories


From: Stepan Kasal
Subject: Re: adding subdirectories
Date: Mon, 7 Mar 2005 16:49:11 +0100
User-agent: Mutt/1.4.1i

Hello,

On Mon, Mar 07, 2005 at 02:07:41PM +0100, address@hidden wrote:
> AM_CFLAGS = -g -Wall -std=c99 -I$(top_srcdir)/include @ZZZ_CFLAGS@ 
> -DSYSCONFDIR=\"@address@hidden"
> zzz_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test1_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test2_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test3_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
...
> AC_SUBST(AM_CFLAGS) in configure.ac. However, now I've got two problems:
> 
> 1. I was able to escape variable expansion with a backslash
>    ("\$(top_srcdir)"), but @sysconfdir@ remains unexpanded.

for each AC_SUBSTed variable, automake adds a line like

        ZZZ_LIBS = @ZZZ_LIBS@

so there is generally no need to use the @...@ notation in Makefile.am.

Thus I believe that if you use

AC_SUBST(AM_CFLAGS,
  '-g -Wall -std=c99 -I$(top_srcdir)/include $(ZZZ_CFLAGS) 
-DSYSCONFDIR=\"$(sysconfdir)\"')

you'll get what you want.

HTH,
        Stepan Kasal




reply via email to

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