Hi,

On Mon, Apr 27, 2015 at 12:32:47PM +0200, Alexander Stein wrote:
> On Monday 27 April 2015 11:26:08, Michael Olbrich wrote:
> > On Tue, Apr 21, 2015 at 11:44:41AM +0200, Alexander Stein wrote:
> > > This version needs a patch for configure as it fails when cross compiling.
> > 
> > We don't patch configure scripts. You can tell AC_TRY_RUN what to do when
> > cross-compiling. Either use that to disable this (I think it's the large
> > file check, right?) or wrap the whole check in a AC_CACHE_CHECK and set the
> > correct value in the environment.
> 
> I see that AC_TRY_RUN accepts 3 parameters for sucess, fail and
> cross-compile. The first two are no problem, but the third should be set
> according to PTXCONF_GLOBAL_LARGE_FILE. How can I access that environment (?)
> variable. I'm no autotools expert nor regular users of that.

That's what AC_CACHE_CHECK[1] is for. The cache-id can be set via
environment. If the variable is set, then the command isn't executed at
all:

AC_CACHE_CHECK([Large file support], bonnie_cv_sys_largefile,
AC_TRY_RUN...])
if [[ "x$bonnie_cv_sys_largefile" = "xyes" ]]; then
...

> Another method would be to use AC_SYS_LARGEFILE, but I have no idea how to
> set 'large_file' for large_file then.

[1] 
http://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Caching-Results.html

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to