Re: $abs_srcdir expansion

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

 



On Thu, 8 Jul 2010, Stefano Sabatini wrote:

No, this will not work, because I need LDFLAGS to be defined during
configuration, ...

in that case you'll have to save CFLAGS, LDFLAGS, etc. and temporarily add
values based on $srcdir to be used during configure tests, and later restore
these flags and add values based on ${abs_srcdir} (unexpanded) to be used in
Makefile.

I would, however, use other means to define these flags for Makefile, e.g.,
specify
   if <whatever>; then
      xxxFLAGS='-I${abs_srcdir}/win32/pthread'
   fi
   AC_SUBST([xxxFLAGS])
in configure and use that variable in Makefile.

BTW: required flags as determined by configure should not go to CFLAGS,
because the user is entitled to use 'make CFLAGS=some_flags some_target'.
Using Automake they would typically go to AM_CFLAGS.

Regards
Peter Breitenlohner <peb@xxxxxxxxxxxx>

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux