[],
[enable_linuxdisk=check])
+AC_PATH_PROG([MKE2FS], [mke2fs], [no], [$PATH:/usr/local/sbin:/usr/sbin:/sbin])
+AC_DEFINE_UNQUOTED([MKE2FS], ["$MKE2FS"], [path to mke2fs binary])
+
mke2fs_with_d=no
AS_IF([test "$enable_linuxdisk" != "no"], [
AC_MSG_CHECKING([for mke2fs supporting the -d option])
- AS_IF([mke2fs -V >/dev/null 2>&1], [
- AS_IF([LANG=C mke2fs -d 2>&1 | grep -sq "option requires an argument"], [
+ AS_IF([$MKE2FS -V >/dev/null 2>&1], [
+ AS_IF([LANG=C $MKE2FS -d 2>&1 | grep -sq "option requires an argument"], [
mke2fs_with_d=yes
])
])
return -1;
}
- fprintf (fp, "mke2fs -q -F -t %s ", type);
+ fprintf (fp, MKE2FS " -q -F -t %s ", type);
if (label) {
fprintf (fp, "-L ");
shell_quote (label, fp);