On Thu, 14 Apr 2011 21:07:07 -0500 (CDT), Bob Friesenhahn
<[email protected]> wrote:
>The proper solution for this is to have configure test for both fork() 
>and vfork() (and maybe posix_spawn()).  Then you have to decide which 
>one you prefer:
>
>In configure.ac:
>
>AC_CHECK_FUNCS([fork posix_spawnp spawnvp vfork])
>
>In the program:
>
>#if HAVE_VFORK
>   use vfork

Thanks Bob, but some applications don't use conditional compiling and
simply use code like this:
============
if (uClinux) {
        *pid = vfork();
} else {
        *pid = fork();
}
============

Will the cross-compiler go ahead and compile that type of code?
Currently, it refuses to proceed because fork() is not available on
non-MMU CPU's.

Thank you.


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to