to find spawn.h. This should only be a problem on systems with
broken headers. Bug #730
done
# Check for posix_spawn, and posix_spawnp
- for ac_func in posix_spawn posix_spawnp
+ if test X"$ac_cv_header_spawn_h" = X"yes"; then
+ for ac_func in posix_spawn posix_spawnp
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
fi
done
+ fi
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Check for non-standard exec functions
AC_CHECK_FUNCS([exect execvP execvpe])
# Check for posix_spawn, and posix_spawnp
- AC_CHECK_FUNCS([posix_spawn posix_spawnp])
+ if test X"$ac_cv_header_spawn_h" = X"yes"; then
+ AC_CHECK_FUNCS([posix_spawn posix_spawnp])
+ fi
fi
dnl