From fcfdd2277f8919dc5b8974c13daf73bc19aa279a Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 19 Feb 2009 20:31:06 +0000 Subject: [PATCH] b=17952 i=wangyb i=adilger Given that configure won't work with a relative pathname passed to the --with-linux option, error out if the user provides a relative path. --- build/autoconf/lustre-build-linux.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index 971aeb5..e0eafbd 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -141,7 +141,13 @@ AC_DEFUN([LB_LINUX_PATH], AC_ARG_WITH([linux], AC_HELP_STRING([--with-linux=path], [set path to Linux source (default=/usr/src/linux)]), - [LINUX=$with_linux], + [ + if ! [[[ $with_linux = /* ]]]; then + AC_MSG_ERROR([You must provide an absolute pathname to the --with-linux= option.]) + else + LINUX=$with_linux + fi + ], [LINUX=/usr/src/linux]) AC_MSG_RESULT([$LINUX]) AC_SUBST(LINUX) -- 1.8.3.1