1748 |
# ------------- |
# ------------- |
1749 |
AC_DEFUN([_AC_FUNC_VFORK], |
AC_DEFUN([_AC_FUNC_VFORK], |
1750 |
[AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, |
[AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, |
1751 |
[AC_TRY_RUN([/* Thanks to Paul Eggert for this test. */ |
[AC_RUN_IFELSE([AC_LANG_SOURCE([[/* Thanks to Paul Eggert for this test. */ |
1752 |
#include <stdio.h> |
#include <stdio.h> |
1753 |
#include <sys/types.h> |
#include <sys/types.h> |
1754 |
#include <sys/stat.h> |
#include <sys/stat.h> |
1840 |
|| fstat(fileno(stdout), &st) != 0 |
|| fstat(fileno(stdout), &st) != 0 |
1841 |
); |
); |
1842 |
} |
} |
1843 |
}], |
}]])], |
1844 |
[ac_cv_func_vfork_works=yes], |
[ac_cv_func_vfork_works=yes], |
1845 |
[ac_cv_func_vfork_works=no], |
[ac_cv_func_vfork_works=no], |
1846 |
[ac_cv_func_vfork_works=cross])]) |
[ac_cv_func_vfork_works=cross])]) |