Whamcloud - gitweb
b=15316
authorbrian <brian>
Thu, 8 May 2008 14:05:58 +0000 (14:05 +0000)
committerbrian <brian>
Thu, 8 May 2008 14:05:58 +0000 (14:05 +0000)
Small logic thinko that fails the case where no o2iblnd tree is specifed.

lnet/autoconf/lustre-lnet.m4

index 5b027cd..2166980 100644 (file)
@@ -578,11 +578,13 @@ else
                ])
 
                # we know at this point that the found OFED source is good
-               if test \( $ENABLEO2IB = 3 -a -f $O2IBPATH/Module.symvers \); then
-                       AC_MSG_NOTICE([adding $O2IBPATH/Module.symvers to $PWD/Module.symvers])
-                       cat $O2IBPATH/Module.symvers >> $PWD/Module.symvers
-               else
-                       AC_MSG_ERROR([an external source tree was specified for o2iblnd however I  could not find a $O2IBPATH/Module.symvers there])
+               if test \( $ENABLEO2IB = 3 \); then
+                       if test \( -f $O2IBPATH/Module.symvers \); then
+                               AC_MSG_NOTICE([adding $O2IBPATH/Module.symvers to $PWD/Module.symvers])
+                               cat $O2IBPATH/Module.symvers >> $PWD/Module.symvers
+                       else
+                               AC_MSG_ERROR([an external source tree was specified for o2iblnd however I could not find a $O2IBPATH/Module.symvers there])
+                       fi
                fi
 
                # version checking is a hack and isn't reliable,