Re: extract value of ${datadir}

2015-09-15 Thread Peter Johansson
On 09/16/2015 01:42 AM, Mike Frysinger wrote: you should never use AC_CHECK_FILE. it breaks cross-compilation. I the typical case, I'd agree, but in this case it is a private project that is never distributed more than to our devel machines and run cluster. Cross-compilation will never be on

Re: extract value of ${datadir}

2015-09-15 Thread Peter Johansson
On 09/15/2015 07:48 PM, Gavin Smith wrote: That NONE is a problem. Maybe if you specify a value for datadir explicitly it will work. The idea was to loop with the eval's until a fixed point was reached. The answer appears to be you can do what you want only with difficulty. Thanks Gavin, I

Re: extract value of ${datadir}

2015-09-15 Thread Mike Frysinger
On 15 Sep 2015 17:13, Peter Johansson wrote: > I need to to extract the value of ${datadir} so I can use it something like > > val=*extract ${datadir}* > > AC_CHECK_FILE([$val], [], [AC_MSG_ERROR([file $val needed])]) you should never use AC_CHECK_FILE. it breaks cross-compilation. -mike sign

Re: extract value of ${datadir}

2015-09-15 Thread Gavin Smith
On 15 September 2015 at 08:13, Peter Johansson wrote: > I need to to extract the value of ${datadir} so I can use it something like > > val=*extract ${datadir}* > > AC_CHECK_FILE([$val], [], [AC_MSG_ERROR([file $val needed])]) Here's what I got with echo datadir is $datadir eval datadir=$datadir