Re: Help with path expansion

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

 



* Mike Gran wrote on Wed, Jan 19, 2011 at 06:26:24PM CET:
>     pkgsitedir="$datadir/$PACKAGE_NAME"
>     AC_MSG_WARN([]
>        [The modules will be installed in ${pkgsitedir}.])
> 
> When I run it, I get the text
> 
>     configure: WARNING:
>        The modules will be installed in ${datarootdir}/blammo.
> 
> Is there a way to have this warning output the full path, e.g.
> for it to say something like
> 
>        The modules will be installed in /usr/local/share/blammo

Try

pkgsitedir="$datadir/$PACKAGE_NAME"
eval "expanded_pkgsitedir=\"$pkgsitedir\""
eval "expanded_pkgsitedir=\"$expanded_pkgsitedir\""
AC_MSG_NOTICE([]
   [The modules will be installed in ${expanded_pkgsitedir}.])

but please don't use the expanded value elsewhere; see the FAQ
  info Autoconf "Defining Directories"

and references therein.  Hope that helps.

Cheers,
Ralf

_______________________________________________
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