Changeset 1122


Ignore:
Timestamp:
Aug 19, 2008 2:10:37 PM (16 years ago)
Author:
gah
Message:

fix of 64bit matlab extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1111 r1122  
    726726ENABLE_GUI
    727727TCLSH
     728MATLAB
    728729MEX
    729 MATLAB
     730MEXEXT
    730731MEX_ARCH
    731 MEXEXT
    732732MKOCTFILE
    733733PERL
     
    86328632if test "$with_matlab" != "no" ; then
    86338633  if test "$with_matlab" = "yes" ; then
    8634     # Extract the first word of "mex", so it can be a program name with args.
     8634    # Extract the first word of "matlab", so it can be a program name with args.
     8635set dummy matlab; ac_word=$2
     8636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     8637$as_echo_n "checking for $ac_word... " >&6; }
     8638if test "${ac_cv_path_MATLAB+set}" = set; then
     8639  $as_echo_n "(cached) " >&6
     8640else
     8641  case $MATLAB in
     8642  [\\/]* | ?:[\\/]*)
     8643  ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
     8644  ;;
     8645  *)
     8646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8647for as_dir in $PATH
     8648do
     8649  IFS=$as_save_IFS
     8650  test -z "$as_dir" && as_dir=.
     8651  for ac_exec_ext in '' $ac_executable_extensions; do
     8652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8653    ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
     8654    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     8655    break 2
     8656  fi
     8657done
     8658done
     8659IFS=$as_save_IFS
     8660
     8661  ;;
     8662esac
     8663fi
     8664MATLAB=$ac_cv_path_MATLAB
     8665if test -n "$MATLAB"; then
     8666  { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5
     8667$as_echo "$MATLAB" >&6; }
     8668else
     8669  { $as_echo "$as_me:$LINENO: result: no" >&5
     8670$as_echo "no" >&6; }
     8671fi
     8672
     8673
     8674  else
     8675    # Extract the first word of "matlab", so it can be a program name with args.
     8676set dummy matlab; ac_word=$2
     8677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     8678$as_echo_n "checking for $ac_word... " >&6; }
     8679if test "${ac_cv_path_MATLAB+set}" = set; then
     8680  $as_echo_n "(cached) " >&6
     8681else
     8682  case $MATLAB in
     8683  [\\/]* | ?:[\\/]*)
     8684  ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
     8685  ;;
     8686  *)
     8687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8688for as_dir in $PATH
     8689do
     8690  IFS=$as_save_IFS
     8691  test -z "$as_dir" && as_dir=.
     8692  for ac_exec_ext in '' $ac_executable_extensions; do
     8693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8694    ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
     8695    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     8696    break 2
     8697  fi
     8698done
     8699done
     8700IFS=$as_save_IFS
     8701
     8702  test -z "$ac_cv_path_MATLAB" && ac_cv_path_MATLAB="${with_matlab}/bin:${with_matlab}"
     8703  ;;
     8704esac
     8705fi
     8706MATLAB=$ac_cv_path_MATLAB
     8707if test -n "$MATLAB"; then
     8708  { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5
     8709$as_echo "$MATLAB" >&6; }
     8710else
     8711  { $as_echo "$as_me:$LINENO: result: no" >&5
     8712$as_echo "no" >&6; }
     8713fi
     8714
     8715
     8716  fi
     8717fi
     8718
     8719if test "x$MATLAB" != "x" ; then
     8720  matlab_bindir=$as_dirname -- ${MATLAB} ||
     8721$as_expr X${MATLAB} : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8722         X${MATLAB} : 'X\(//\)[^/]' \| \
     8723         X${MATLAB} : 'X\(//\)$' \| \
     8724         X${MATLAB} : 'X\(/\)' \| . 2>/dev/null ||
     8725$as_echo X${MATLAB} |
     8726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     8727            s//\1/
     8728            q
     8729          }
     8730          /^X\(\/\/\)[^/].*/{
     8731            s//\1/
     8732            q
     8733          }
     8734          /^X\(\/\/\)$/{
     8735            s//\1/
     8736            q
     8737          }
     8738          /^X\(\/\).*/{
     8739            s//\1/
     8740            q
     8741          }
     8742          s/.*/./; q'
     8743  # Extract the first word of "mex", so it can be a program name with args.
    86358744set dummy mex; ac_word=$2
    86368745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    86598768IFS=$as_save_IFS
    86608769
     8770  test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${matlab_bindir}"
    86618771  ;;
    86628772esac
     
    86728782
    86738783
    8674     # Extract the first word of "matlab", so it can be a program name with args.
    8675 set dummy matlab; ac_word=$2
     8784  # Extract the first word of "mexext", so it can be a program name with args.
     8785set dummy mexext; ac_word=$2
    86768786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    86778787$as_echo_n "checking for $ac_word... " >&6; }
    8678 if test "${ac_cv_path_MATLAB+set}" = set; then
     8788if test "${ac_cv_path_MEXEXT+set}" = set; then
    86798789  $as_echo_n "(cached) " >&6
    86808790else
    8681   case $MATLAB in
     8791  case $MEXEXT in
    86828792  [\\/]* | ?:[\\/]*)
    8683   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
     8793  ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.
    86848794  ;;
    86858795  *)
     
    86918801  for ac_exec_ext in '' $ac_executable_extensions; do
    86928802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    8693     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
     8803    ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext"
    86948804    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    86958805    break 2
     
    86998809IFS=$as_save_IFS
    87008810
     8811  test -z "$ac_cv_path_MEXEXT" && ac_cv_path_MEXEXT="${matlab_bindir}"
    87018812  ;;
    87028813esac
    87038814fi
    8704 MATLAB=$ac_cv_path_MATLAB
    8705 if test -n "$MATLAB"; then
    8706   { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5
    8707 $as_echo "$MATLAB" >&6; }
     8815MEXEXT=$ac_cv_path_MEXEXT
     8816if test -n "$MEXEXT"; then
     8817  { $as_echo "$as_me:$LINENO: result: $MEXEXT" >&5
     8818$as_echo "$MEXEXT" >&6; }
    87088819else
    87098820  { $as_echo "$as_me:$LINENO: result: no" >&5
     
    87128823
    87138824
     8825  { $as_echo "$as_me:$LINENO: checking for mex extension" >&5
     8826$as_echo_n "checking for mex extension... " >&6; }
     8827  if test "x$MEXEXT" != "x" ; then
     8828    mexext=`$MEXEXT`
    87148829  else
    8715     # Extract the first word of "mex", so it can be a program name with args.
    8716 set dummy mex; ac_word=$2
    8717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    8718 $as_echo_n "checking for $ac_word... " >&6; }
    8719 if test "${ac_cv_path_MEX+set}" = set; then
    8720   $as_echo_n "(cached) " >&6
    8721 else
    8722   case $MEX in
    8723   [\\/]* | ?:[\\/]*)
    8724   ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
    8725   ;;
    8726   *)
    8727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8728 for as_dir in $PATH
    8729 do
    8730   IFS=$as_save_IFS
    8731   test -z "$as_dir" && as_dir=.
    8732   for ac_exec_ext in '' $ac_executable_extensions; do
    8733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    8734     ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
    8735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    8736     break 2
     8830    mexext="mexglx"
    87378831  fi
    8738 done
    8739 done
    8740 IFS=$as_save_IFS
    8741 
    8742   test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${with_matlab}/bin/mex:${with_matlab}"
    8743   ;;
    8744 esac
    8745 fi
    8746 MEX=$ac_cv_path_MEX
    8747 if test -n "$MEX"; then
    8748   { $as_echo "$as_me:$LINENO: result: $MEX" >&5
    8749 $as_echo "$MEX" >&6; }
    8750 else
    8751   { $as_echo "$as_me:$LINENO: result: no" >&5
    8752 $as_echo "no" >&6; }
    8753 fi
    8754 
    8755 
    8756     # Extract the first word of "matlab", so it can be a program name with args.
    8757 set dummy matlab; ac_word=$2
    8758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    8759 $as_echo_n "checking for $ac_word... " >&6; }
    8760 if test "${ac_cv_path_MATLAB+set}" = set; then
    8761   $as_echo_n "(cached) " >&6
    8762 else
    8763   case $MATLAB in
    8764   [\\/]* | ?:[\\/]*)
    8765   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
    8766   ;;
    8767   *)
    8768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8769 for as_dir in $PATH
    8770 do
    8771   IFS=$as_save_IFS
    8772   test -z "$as_dir" && as_dir=.
    8773   for ac_exec_ext in '' $ac_executable_extensions; do
    8774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    8775     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    8776     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    8777     break 2
    8778   fi
    8779 done
    8780 done
    8781 IFS=$as_save_IFS
    8782 
    8783   test -z "$ac_cv_path_MATLAB" && ac_cv_path_MATLAB="${with_matlab}/bin/mex:${with_matlab}"
    8784   ;;
    8785 esac
    8786 fi
    8787 MATLAB=$ac_cv_path_MATLAB
    8788 if test -n "$MATLAB"; then
    8789   { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5
    8790 $as_echo "$MATLAB" >&6; }
    8791 else
    8792   { $as_echo "$as_me:$LINENO: result: no" >&5
    8793 $as_echo "no" >&6; }
    8794 fi
    8795 
    8796 
    8797   fi
    8798 fi
    8799 if test "x$MATLAB" = "x" ; then
    8800   # No matlab, no mex. Debian 3.1 has mex script that calls mkoctfile.
    8801   MEX=""
    8802 fi
     8832  { $as_echo "$as_me:$LINENO: result: $mexext" >&5
     8833$as_echo "$mexext" >&6; }
     8834  MEXEXT=$mexext
     8835fi
     8836
    88038837
    88048838
Note: See TracChangeset for help on using the changeset viewer.