From 8f4831a1d9a535ffd90891f2024ca2139b50c13e Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Sun, 22 Mar 2009 21:12:15 +0000 Subject: Don't just "return" from the script if == no (leftover from r39541, where that code was inside a function) svn-id: r39615 --- configure | 61 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 07082096aa..4112231eee 100755 --- a/configure +++ b/configure @@ -1698,40 +1698,39 @@ if test "$_have_x86" = yes ; then echocheck "nasm" if test "$_nasm" = no ; then echo "disabled" - return; - fi - - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$SEPARATOR + else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$SEPARATOR - for path_dir in $_nasmpath; do - if test -x "$path_dir/nasm$EXEEXT" ; then - NASM="$path_dir/nasm$EXEEXT" - echo $NASM - break - fi - done + for path_dir in $_nasmpath; do + if test -x "$path_dir/nasm$EXEEXT" ; then + NASM="$path_dir/nasm$EXEEXT" + echo $NASM + break + fi + done - IFS="$ac_save_ifs" + IFS="$ac_save_ifs" - if test x$NASM = x -o x$NASM = x'"$NASM"'; then - echo "not found" - _nasm=no - else - case $_host_os in - os2-emx*) - NASMFLAGS="-f aout" - ;; - mingw* | cygwin*) - NASMFLAGS="-f win32" - ;; - darwin*) - NASMFLAGS="-f macho" - ;; - *) - NASMFLAGS="-f elf" - ;; - esac - _nasm=yes + if test x$NASM = x -o x$NASM = x'"$NASM"'; then + echo "not found" + _nasm=no + else + case $_host_os in + os2-emx*) + NASMFLAGS="-f aout" + ;; + mingw* | cygwin*) + NASMFLAGS="-f win32" + ;; + darwin*) + NASMFLAGS="-f macho" + ;; + *) + NASMFLAGS="-f elf" + ;; + esac + _nasm=yes + fi fi fi -- cgit v1.2.3