[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AmigaOS fork()
From: |
Tim Van Holder |
Subject: |
Re: AmigaOS fork() |
Date: |
Thu, 24 May 2001 11:08:47 +0200 |
> +/* On AmigaOS, fork() isn't implemented due to missing MP. */
> +int main ()
> +{
> + if (fork() < 0)
> + exit (1);
> + exit (0);
> +}],
> + [ac_cv_func_fork_works=yes],
> + [ac_cv_func_fork_works=no],
> + [AC_CHECK_FUNC(fork)
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __amigaos__;])],
> + [ac_cv_func_fork_works=no],
> + [ac_cv_func_fork_works=$ac_cv_func_fork])
There are some other systems were fork exists but is not implemented
(such as DJGPP). So I'm not too happy about the hardcoded reference
to AmigaOS.
For the cross-compiling case, I think
case "$host" in
*-*-amigaos* | *-*-msdosdjgpp*)
# Override, as these systems have only a dummy fork() stub
ac_cv_func_fork_works=no
;;
esac
will do just fine; no need to try a compile.
And I'd use
/* Some systems only have a dummy stub for fork() */
or something similar.
- AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/23
- Re: AmigaOS fork(), Russ Allbery, 2001/05/23
- Re: AmigaOS fork(),
Tim Van Holder <=
- Re: [autoconf] AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/24
- Re: [autoconf] AmigaOS fork(), Peter Eisentraut, 2001/05/24
- Re: [autoconf] AmigaOS fork(), Russ Allbery, 2001/05/24
- Re: [autoconf] AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/27
- Re: [autoconf] AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/31
- Re: AmigaOS fork(), Lars Hecking, 2001/05/31
- Re: [autoconf] AmigaOS fork(), Akim Demaille, 2001/05/31
- Re: [autoconf] AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/31
- Re: [autoconf] AmigaOS fork(), Tim Van Holder, 2001/05/31
- Re: [autoconf] AmigaOS fork(), Rüdiger Kuhlmann, 2001/05/31