diff options
-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 |