Ossama Othman wrote: > On Mon, Apr 01, 2002 at 09:02:12PM -0800, Dan Kegel wrote: > > Ossama Othman wrote: > > > That should certainly be feasible unless there are some bizarre > > > platforms out there. In any case, this shouldn't be a problem if > > > developers use a reasonable "action-if-cross-compiling" argument for > > > AC_TRY_RUN, such as a compile/link-time test > > > > I suppose. I prefer configure to just fail in that case, myself. > > I don't want a random, and perhaps incorrect for my platform, default. > > Why? I'm not suggesting a default value. I'm suggesting that another > compile/link-time test be used within the "action-if-cross-compiling" > AC_TRY_RUN parameter. With this approach one would fallback on what > should presumably be a valid compile/link-time test. The "action" > could also check if an environment variable is set, too. It could > even run a script, for example. This won't always work, in which case > your suggestion below would be very useful.
In theory, sure. However, I've never seen anyone do anything fancy in the 'if-cross-compiling' case but pick a default. - Dan
