]> git.proxmox.com Git - mirror_zfs.git/blob - config/always-sed.m4
Use boot_ncpus in place of max_ncpus in taskq_create
[mirror_zfs.git] / config / always-sed.m4
1 dnl #
2 dnl # Set the flags used for sed in-place edits.
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SED], [
5 ac_inplace=""
6 AC_CACHE_CHECK([for sed --in-place], [ac_cv_path_SED],
7 [AC_PATH_PROGS_FEATURE_CHECK([SED], [sed],
8 [[tmpfile=$(mktemp)
9 echo foo > $tmpfile
10 $ac_path_SED --in-place 's#foo#bar#' $tmpfile \
11 && ac_cv_path_SED=$ac_path_SED
12 rm $tmpfile]],
13 [ac_inplace="-i ''"])])
14 AS_IF([test "x$ac_inplace" = "x"], [ac_inplace="--in-place"])
15 AC_SUBST([ac_inplace])
16 ])