Changeset 1057 for trunk/configure


Ignore:
Timestamp:
Jun 23, 2008, 4:49:38 PM (11 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1055 r1057  
    85778577MEXEXT=""
    85788578if test "$with_matlab" != "no" ; then
    8579     { $as_echo "$as_me:$LINENO: checking for MATLAB MEX compiler" >&5
     8579  { $as_echo "$as_me:$LINENO: checking for MATLAB MEX compiler" >&5
    85808580$as_echo_n "checking for MATLAB MEX compiler... " >&6; }
    8581     if test "$with_matlab" != "no" ; then
    8582                 if test -x "$with_matlab/bin/mex"
    8583         then
    8584                         MEX="$with_matlab/bin/mex"
    8585         else
    8586             if test -x "$with_matlab"
    8587             then
    8588                                 MEX="$with_matlab"
    8589             else
    8590                 # Extract the first word of "mex", so it can be a program name with args.
     8581  if test "$with_matlab" = "yes" ; then
     8582    # Extract the first word of "mex", so it can be a program name with args.
    85918583set dummy mex; ac_word=$2
    85928584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    86288620
    86298621
    8630             fi
    8631         fi
    8632         matlab_path=`dirname $MEX`/matlab
    8633         if test -x "$matlab_path"
    8634         then
    8635             MEX=${MEX}
    8636         else
    8637             MEX=
    8638         fi
    8639         { $as_echo "$as_me:$LINENO: result: ${MEX}" >&5
     8622  else
     8623    for i in "${with_matlab}/bin/mex" "${with_matlab}" ; do
     8624      if test -x "$i" ; then
     8625        MEX="$i"; break
     8626      fi
     8627      if test "x${MEX}" = "x" ; then
     8628        { { $as_echo "$as_me:$LINENO: error: cannot find mex in $with_matlab" >&5
     8629$as_echo "$as_me: error: cannot find mex in $with_matlab" >&2;}
     8630   { (exit 1); exit 1; }; }
     8631      fi
     8632    done
     8633  fi
     8634  { $as_echo "$as_me:$LINENO: result: ${MEX}" >&5
    86408635$as_echo "${MEX}" >&6; }
    8641         if test "$with_matlab_arch" = "check" ; then
    8642                         with_matlab_arch=""
    8643         fi
    8644         if test "x$with_matlab_arch" != "x" ; then
    8645             echo "using matlab architecture \"$with_matlab_arch\""
    8646             MEX_ARCH="-arch=$with_matlab_arch"
    8647                             fi
    8648         if test "x$MEX" != "x" ; then
    8649             mexext_fxn=`dirname $MEX`/mexext
    8650             if test -x "$mexext_fxn" ; then
    8651                 MEXEXT=`$mexext_fxn`
    8652                 if test "x${MEXEXT}" = "x" ; then
    8653                                                                                 if test "$with_mexext" != "check" ; then
    8654                         MEXEXT="mexglx"
    8655                     fi
    8656                 fi
    8657             else
    8658                 if test "$with_mexext" != "check" ; then
    8659                     MEXEXT="mexglx"
    8660                 fi
    8661             fi
    8662             echo "Using mex file extension \"$MEXEXT\""
    8663             { $as_echo "$as_me:$LINENO: result: ${MEXEXT}" >&5
    8664 $as_echo "${MEXEXT}" >&6; }
    8665         else
    8666                                     echo "can't find the matlab compiler \"mex\""
    8667             echo "use --with-matlab=DIR to specify the location of a matlab installation"
    8668                     fi
    8669     fi
    8670 fi
    8671 
     8636fi
    86728637
    86738638
     
    86868651MKOCTFILE=
    86878652if test "$with_octave" != "no" ; then
    8688     { $as_echo "$as_me:$LINENO: checking for mkoctfile" >&5
     8653  { $as_echo "$as_me:$LINENO: checking for mkoctfile" >&5
    86898654$as_echo_n "checking for mkoctfile... " >&6; }
    8690     if test "$with_octave" != "no" ; then
    8691         if test -x "$with_octave/bin/mkoctfile"
    8692         then
    8693                         MKOCTFILE="$with_octave/bin/mkoctfile"
    8694         else
    8695             if test -x "$with_octave"
    8696             then
    8697                 echo Found mkoctfile in $with_octave
    8698                 MKOCTFILE="$with_octave"
    8699             else
    8700                 # Extract the first word of "mkoctfile", so it can be a program name with args.
     8655  if test "$with_octave" = "yes" ; then
     8656    # Extract the first word of "mkoctfile", so it can be a program name with args.
    87018657set dummy mkoctfile; ac_word=$2
    87028658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    87388694
    87398695
    8740                 if test "x$MKOCTFILE" == "x" ; then
    8741                                                             echo "can't find the matlab compiler \"mkoctfile\""
    8742                     echo "use --with-octave=DIR to specify the location of a mkoctfile installation"
    8743                                     fi
    8744             fi
    8745         fi
    8746     fi
    8747     { $as_echo "$as_me:$LINENO: result: ${MKOCTFILE}" >&5
     8696  else
     8697    for i in "${with_octave}/bin/mkoctfile" "${with_octave}" ; do
     8698      if test -x "$i" ; then
     8699        MEX="$i"; break
     8700      fi
     8701      if test "x${MEX}" = "x" ; then
     8702        { { $as_echo "$as_me:$LINENO: error: cannot find mkoctfile in $with_octave" >&5
     8703$as_echo "$as_me: error: cannot find mkoctfile in $with_octave" >&2;}
     8704   { (exit 1); exit 1; }; }
     8705      fi
     8706    done
     8707  fi
     8708  { $as_echo "$as_me:$LINENO: result: ${MKOCTFILE}" >&5
    87488709$as_echo "${MKOCTFILE}" >&6; }
    87498710fi
Note: See TracChangeset for help on using the changeset viewer.