diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-06-24 15:59:36 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-06-24 15:59:36 (EDT) |
commit | c879edc02be2366e1278bb292aaa61b1a81b0c4f (patch) | |
tree | 8f291862f54a54c3b4f5f108461478fa374334ae | |
parent | 1149169202d9649eb8cc6cd84a9fd458e1d32d39 (diff) |
configure.ac: Look for [s]fdisk/mke2fs in /sbin and /usr/sbin
-rw-r--r-- | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e212c05..b3a8285 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,7 @@ AC_ARG_WITH( fi ] ) +sbin_path="${PATH}${PATH_SEPARATOR}/sbin${PATH_SEPARATOR}/usr/sbin" AC_ARG_WITH( [sfdisk], [AS_HELP_STRING([--with-sfdisk=PATH], [path to sfdisk utility])], @@ -151,7 +152,7 @@ AC_ARG_WITH( esac ], [ - AC_PATH_PROG([SFDISK], [sfdisk]) + AC_PATH_PROG([SFDISK], [sfdisk], [], [${sbin_path}]) if test -z "${SFDISK}"; then HAVE_SFDISK=false else @@ -181,7 +182,7 @@ AC_ARG_WITH( ], [ if ! ${HAVE_SFDISK}; then - AC_PATH_PROG([FDISK], [fdisk]) + AC_PATH_PROG([FDISK], [fdisk], [], [${sbin_path}]) if test -z "${FDISK}"; then HAVE_FDISK=false else @@ -215,7 +216,7 @@ AC_ARG_WITH( esac ], [ - AC_PATH_PROG([MKE2FS], [mke2fs]) + AC_PATH_PROG([MKE2FS], [mke2fs], [], [${sbin_path}]) if test -z "${MKE2FS}"; then AC_MSG_ERROR([mke2fs not found]) fi |