Changeset 1148 for trunk/configure


Ignore:
Timestamp:
Sep 8, 2008, 3:36:19 PM (11 years ago)
Author:
gah
Message:

fix for lang perl: needs -lperl library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1132 r1148  
    687687EXEEXT
    688688OBJEXT
     689CXX
     690CXXFLAGS
     691ac_ct_CXX
     692RANLIB
     693LN_S
     694MKDIR_P
    689695F77
    690696FFLAGS
    691697ac_ct_F77
    692 RANLIB
    693 LN_S
    694 MKDIR_P
    695698CPP
    696699GREP
    697700EGREP
    698 CXX
    699 CXXFLAGS
    700 ac_ct_CXX
    701701CXXCPP
    702702AR
     
    742742PERL_INSTALLARCHLIB
    743743PERL_VERSION_RV
     744PERL_LIBSPEC
    744745PYTHON
    745746PYTHON_CPPFLAGS
     
    794795LIBS
    795796CPPFLAGS
     797CXX
     798CXXFLAGS
     799CCC
    796800F77
    797801FFLAGS
    798802CPP
    799 CXX
    800 CXXFLAGS
    801 CCC
    802803CXXCPP'
    803804ac_subdirs_all='packages/optimizer/src '
     
    14501451  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    14511452              you have headers in a nonstandard directory <include dir>
     1453  CXX         C++ compiler command
     1454  CXXFLAGS    C++ compiler flags
    14521455  F77         Fortran 77 compiler command
    14531456  FFLAGS      Fortran 77 compiler flags
    14541457  CPP         C preprocessor
    1455   CXX         C++ compiler command
    1456   CXXFLAGS    C++ compiler flags
    14571458  CXXCPP      C++ preprocessor
    14581459
     
    20792080
    20802081
     2082# Check for C, C++, and FORTRAN
    20812083ac_ext=c
    20822084ac_cpp='$CPP $CPPFLAGS'
     
    30103012ac_compiler_gnu=$ac_cv_c_compiler_gnu
    30113013
    3012 ac_ext=f
    3013 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    3014 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3015 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    3016 if test -n "$ac_tool_prefix"; then
    3017   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
     3014ac_ext=cpp
     3015ac_cpp='$CXXCPP $CPPFLAGS'
     3016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3019if test -z "$CXX"; then
     3020  if test -n "$CCC"; then
     3021    CXX=$CCC
     3022  else
     3023    if test -n "$ac_tool_prefix"; then
     3024  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    30183025  do
    30193026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    30213028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    30223029$as_echo_n "checking for $ac_word... " >&6; }
    3023 if test "${ac_cv_prog_F77+set}" = set; then
     3030if test "${ac_cv_prog_CXX+set}" = set; then
    30243031  $as_echo_n "(cached) " >&6
    30253032else
    3026   if test -n "$F77"; then
    3027   ac_cv_prog_F77="$F77" # Let the user override the test.
     3033  if test -n "$CXX"; then
     3034  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    30283035else
    30293036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    30343041  for ac_exec_ext in '' $ac_executable_extensions; do
    30353042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    3036     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     3043    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    30373044    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    30383045    break 2
     
    30443051fi
    30453052fi
    3046 F77=$ac_cv_prog_F77
    3047 if test -n "$F77"; then
    3048   { $as_echo "$as_me:$LINENO: result: $F77" >&5
    3049 $as_echo "$F77" >&6; }
     3053CXX=$ac_cv_prog_CXX
     3054if test -n "$CXX"; then
     3055  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
     3056$as_echo "$CXX" >&6; }
    30503057else
    30513058  { $as_echo "$as_me:$LINENO: result: no" >&5
     
    30543061
    30553062
    3056     test -n "$F77" && break
     3063    test -n "$CXX" && break
    30573064  done
    30583065fi
    3059 if test -z "$F77"; then
    3060   ac_ct_F77=$F77
    3061   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
     3066if test -z "$CXX"; then
     3067  ac_ct_CXX=$CXX
     3068  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    30623069do
    30633070  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    30653072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    30663073$as_echo_n "checking for $ac_word... " >&6; }
    3067 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3074if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    30683075  $as_echo_n "(cached) " >&6
    30693076else
    3070   if test -n "$ac_ct_F77"; then
    3071   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3077  if test -n "$ac_ct_CXX"; then
     3078  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    30723079else
    30733080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    30783085  for ac_exec_ext in '' $ac_executable_extensions; do
    30793086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    3080     ac_cv_prog_ac_ct_F77="$ac_prog"
     3087    ac_cv_prog_ac_ct_CXX="$ac_prog"
    30813088    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    30823089    break 2
     
    30883095fi
    30893096fi
    3090 ac_ct_F77=$ac_cv_prog_ac_ct_F77
    3091 if test -n "$ac_ct_F77"; then
    3092   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    3093 $as_echo "$ac_ct_F77" >&6; }
     3097ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     3098if test -n "$ac_ct_CXX"; then
     3099  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     3100$as_echo "$ac_ct_CXX" >&6; }
    30943101else
    30953102  { $as_echo "$as_me:$LINENO: result: no" >&5
     
    30983105
    30993106
    3100   test -n "$ac_ct_F77" && break
     3107  test -n "$ac_ct_CXX" && break
    31013108done
    31023109
    3103   if test "x$ac_ct_F77" = x; then
    3104     F77=""
     3110  if test "x$ac_ct_CXX" = x; then
     3111    CXX="g++"
    31053112  else
    31063113    case $cross_compiling:$ac_tool_warned in
     
    31143121ac_tool_warned=yes ;;
    31153122esac
    3116     F77=$ac_ct_F77
     3123    CXX=$ac_ct_CXX
    31173124  fi
    31183125fi
    31193126
    3120 
     3127  fi
     3128fi
    31213129# Provide some information about the compiler.
    3122 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
     3130$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    31233131set X $ac_compile
    31243132ac_compiler=$2
     
    31563164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31573165  (exit $ac_status); }
    3158 rm -f a.out
    3159 
    3160 # If we don't use `.F' as extension, the preprocessor is not run on the
    3161 # input file.  (Note that this only needs to work for GNU compilers.)
    3162 ac_save_ext=$ac_ext
    3163 ac_ext=F
    3164 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    3165 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
    3166 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     3166
     3167{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3168$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3169if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    31673170  $as_echo_n "(cached) " >&6
    31683171else
    31693172  cat >conftest.$ac_ext <<_ACEOF
    3170       program main
     3173/* confdefs.h.  */
     3174_ACEOF
     3175cat confdefs.h >>conftest.$ac_ext
     3176cat >>conftest.$ac_ext <<_ACEOF
     3177/* end confdefs.h.  */
     3178
     3179int
     3180main ()
     3181{
    31713182#ifndef __GNUC__
    31723183       choke me
    31733184#endif
    31743185
    3175       end
     3186  ;
     3187  return 0;
     3188}
    31763189_ACEOF
    31773190rm -f conftest.$ac_objext
     
    31903203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31913204  (exit $ac_status); } && {
    3192          test -z "$ac_f77_werror_flag" ||
     3205         test -z "$ac_cxx_werror_flag" ||
    31933206         test ! -s conftest.err
    31943207       } && test -s conftest.$ac_objext; then
     
    32023215
    32033216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3204 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    3205 
    3206 fi
    3207 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    3208 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
    3209 ac_ext=$ac_save_ext
    3210 ac_test_FFLAGS=${FFLAGS+set}
    3211 ac_save_FFLAGS=$FFLAGS
    3212 FFLAGS=
    3213 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    3214 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
    3215 if test "${ac_cv_prog_f77_g+set}" = set; then
     3217ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     3218
     3219fi
     3220{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3221$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3222if test $ac_compiler_gnu = yes; then
     3223  GXX=yes
     3224else
     3225  GXX=
     3226fi
     3227ac_test_CXXFLAGS=${CXXFLAGS+set}
     3228ac_save_CXXFLAGS=$CXXFLAGS
     3229{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3230$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3231if test "${ac_cv_prog_cxx_g+set}" = set; then
    32163232  $as_echo_n "(cached) " >&6
    32173233else
    3218   FFLAGS=-g
    3219 cat >conftest.$ac_ext <<_ACEOF
    3220       program main
    3221 
    3222       end
     3234  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3235   ac_cxx_werror_flag=yes
     3236   ac_cv_prog_cxx_g=no
     3237   CXXFLAGS="-g"
     3238   cat >conftest.$ac_ext <<_ACEOF
     3239/* confdefs.h.  */
     3240_ACEOF
     3241cat confdefs.h >>conftest.$ac_ext
     3242cat >>conftest.$ac_ext <<_ACEOF
     3243/* end confdefs.h.  */
     3244
     3245int
     3246main ()
     3247{
     3248
     3249  ;
     3250  return 0;
     3251}
    32233252_ACEOF
    32243253rm -f conftest.$ac_objext
     
    32373266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32383267  (exit $ac_status); } && {
    3239          test -z "$ac_f77_werror_flag" ||
     3268         test -z "$ac_cxx_werror_flag" ||
    32403269         test ! -s conftest.err
    32413270       } && test -s conftest.$ac_objext; then
    3242   ac_cv_prog_f77_g=yes
     3271  ac_cv_prog_cxx_g=yes
    32433272else
    32443273  $as_echo "$as_me: failed program was:" >&5
    32453274sed 's/^/| /' conftest.$ac_ext >&5
    32463275
    3247         ac_cv_prog_f77_g=no
     3276        CXXFLAGS=""
     3277      cat >conftest.$ac_ext <<_ACEOF
     3278/* confdefs.h.  */
     3279_ACEOF
     3280cat confdefs.h >>conftest.$ac_ext
     3281cat >>conftest.$ac_ext <<_ACEOF
     3282/* end confdefs.h.  */
     3283
     3284int
     3285main ()
     3286{
     3287
     3288  ;
     3289  return 0;
     3290}
     3291_ACEOF
     3292rm -f conftest.$ac_objext
     3293if { (ac_try="$ac_compile"
     3294case "(($ac_try" in
     3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3296  *) ac_try_echo=$ac_try;;
     3297esac
     3298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3299$as_echo "$ac_try_echo") >&5
     3300  (eval "$ac_compile") 2>conftest.er1
     3301  ac_status=$?
     3302  grep -v '^ *+' conftest.er1 >conftest.err
     3303  rm -f conftest.er1
     3304  cat conftest.err >&5
     3305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3306  (exit $ac_status); } && {
     3307         test -z "$ac_cxx_werror_flag" ||
     3308         test ! -s conftest.err
     3309       } && test -s conftest.$ac_objext; then
     3310  :
     3311else
     3312  $as_echo "$as_me: failed program was:" >&5
     3313sed 's/^/| /' conftest.$ac_ext >&5
     3314
     3315        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3316         CXXFLAGS="-g"
     3317         cat >conftest.$ac_ext <<_ACEOF
     3318/* confdefs.h.  */
     3319_ACEOF
     3320cat confdefs.h >>conftest.$ac_ext
     3321cat >>conftest.$ac_ext <<_ACEOF
     3322/* end confdefs.h.  */
     3323
     3324int
     3325main ()
     3326{
     3327
     3328  ;
     3329  return 0;
     3330}
     3331_ACEOF
     3332rm -f conftest.$ac_objext
     3333if { (ac_try="$ac_compile"
     3334case "(($ac_try" in
     3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3336  *) ac_try_echo=$ac_try;;
     3337esac
     3338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3339$as_echo "$ac_try_echo") >&5
     3340  (eval "$ac_compile") 2>conftest.er1
     3341  ac_status=$?
     3342  grep -v '^ *+' conftest.er1 >conftest.err
     3343  rm -f conftest.er1
     3344  cat conftest.err >&5
     3345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3346  (exit $ac_status); } && {
     3347         test -z "$ac_cxx_werror_flag" ||
     3348         test ! -s conftest.err
     3349       } && test -s conftest.$ac_objext; then
     3350  ac_cv_prog_cxx_g=yes
     3351else
     3352  $as_echo "$as_me: failed program was:" >&5
     3353sed 's/^/| /' conftest.$ac_ext >&5
     3354
     3355
    32483356fi
    32493357
    32503358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3251 
    3252 fi
    3253 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    3254 $as_echo "$ac_cv_prog_f77_g" >&6; }
    3255 if test "$ac_test_FFLAGS" = set; then
    3256   FFLAGS=$ac_save_FFLAGS
    3257 elif test $ac_cv_prog_f77_g = yes; then
    3258   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    3259     FFLAGS="-g -O2"
     3359fi
     3360
     3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3362fi
     3363
     3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3365   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3366fi
     3367{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3368$as_echo "$ac_cv_prog_cxx_g" >&6; }
     3369if test "$ac_test_CXXFLAGS" = set; then
     3370  CXXFLAGS=$ac_save_CXXFLAGS
     3371elif test $ac_cv_prog_cxx_g = yes; then
     3372  if test "$GXX" = yes; then
     3373    CXXFLAGS="-g -O2"
    32603374  else
    3261     FFLAGS="-g"
     3375    CXXFLAGS="-g"
    32623376  fi
    32633377else
    3264   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    3265     FFLAGS="-O2"
     3378  if test "$GXX" = yes; then
     3379    CXXFLAGS="-O2"
    32663380  else
    3267     FFLAGS=
     3381    CXXFLAGS=
    32683382  fi
    3269 fi
    3270 
    3271 if test $ac_compiler_gnu = yes; then
    3272   G77=yes
    3273 else
    3274   G77=
    32753383fi
    32763384ac_ext=c
     
    32803388ac_compiler_gnu=$ac_cv_c_compiler_gnu
    32813389
    3282 ac_ext=c
    3283 ac_cpp='$CPP $CPPFLAGS'
    3284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3287 
    3288 
     3390# Avoid g95
    32893391# Find a good install program.  We prefer a C program (faster),
    32903392# so one script is as good as another.  But avoid the broken or
     
    35303632
    35313633
     3634ac_ext=f
     3635ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3636ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3637ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3638if test -n "$ac_tool_prefix"; then
     3639  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
     3640  do
     3641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3643{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3644$as_echo_n "checking for $ac_word... " >&6; }
     3645if test "${ac_cv_prog_F77+set}" = set; then
     3646  $as_echo_n "(cached) " >&6
     3647else
     3648  if test -n "$F77"; then
     3649  ac_cv_prog_F77="$F77" # Let the user override the test.
     3650else
     3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3652for as_dir in $PATH
     3653do
     3654  IFS=$as_save_IFS
     3655  test -z "$as_dir" && as_dir=.
     3656  for ac_exec_ext in '' $ac_executable_extensions; do
     3657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3658    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     3659    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3660    break 2
     3661  fi
     3662done
     3663done
     3664IFS=$as_save_IFS
     3665
     3666fi
     3667fi
     3668F77=$ac_cv_prog_F77
     3669if test -n "$F77"; then
     3670  { $as_echo "$as_me:$LINENO: result: $F77" >&5
     3671$as_echo "$F77" >&6; }
     3672else
     3673  { $as_echo "$as_me:$LINENO: result: no" >&5
     3674$as_echo "no" >&6; }
     3675fi
     3676
     3677
     3678    test -n "$F77" && break
     3679  done
     3680fi
     3681if test -z "$F77"; then
     3682  ac_ct_F77=$F77
     3683  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
     3684do
     3685  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3686set dummy $ac_prog; ac_word=$2
     3687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3688$as_echo_n "checking for $ac_word... " >&6; }
     3689if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3690  $as_echo_n "(cached) " >&6
     3691else
     3692  if test -n "$ac_ct_F77"; then
     3693  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3694else
     3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3696for as_dir in $PATH
     3697do
     3698  IFS=$as_save_IFS
     3699  test -z "$as_dir" && as_dir=.
     3700  for ac_exec_ext in '' $ac_executable_extensions; do
     3701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3702    ac_cv_prog_ac_ct_F77="$ac_prog"
     3703    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3704    break 2
     3705  fi
     3706done
     3707done
     3708IFS=$as_save_IFS
     3709
     3710fi
     3711fi
     3712ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3713if test -n "$ac_ct_F77"; then
     3714  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3715$as_echo "$ac_ct_F77" >&6; }
     3716else
     3717  { $as_echo "$as_me:$LINENO: result: no" >&5
     3718$as_echo "no" >&6; }
     3719fi
     3720
     3721
     3722  test -n "$ac_ct_F77" && break
     3723done
     3724
     3725  if test "x$ac_ct_F77" = x; then
     3726    F77=""
     3727  else
     3728    case $cross_compiling:$ac_tool_warned in
     3729yes:)
     3730{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     3731whose name does not start with the host triplet.  If you think this
     3732configuration is useful to you, please write to autoconf@gnu.org." >&5
     3733$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     3734whose name does not start with the host triplet.  If you think this
     3735configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     3736ac_tool_warned=yes ;;
     3737esac
     3738    F77=$ac_ct_F77
     3739  fi
     3740fi
     3741
     3742
     3743# Provide some information about the compiler.
     3744$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
     3745set X $ac_compile
     3746ac_compiler=$2
     3747{ (ac_try="$ac_compiler --version >&5"
     3748case "(($ac_try" in
     3749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3750  *) ac_try_echo=$ac_try;;
     3751esac
     3752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3753$as_echo "$ac_try_echo") >&5
     3754  (eval "$ac_compiler --version >&5") 2>&5
     3755  ac_status=$?
     3756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3757  (exit $ac_status); }
     3758{ (ac_try="$ac_compiler -v >&5"
     3759case "(($ac_try" in
     3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3761  *) ac_try_echo=$ac_try;;
     3762esac
     3763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3764$as_echo "$ac_try_echo") >&5
     3765  (eval "$ac_compiler -v >&5") 2>&5
     3766  ac_status=$?
     3767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3768  (exit $ac_status); }
     3769{ (ac_try="$ac_compiler -V >&5"
     3770case "(($ac_try" in
     3771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3772  *) ac_try_echo=$ac_try;;
     3773esac
     3774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3775$as_echo "$ac_try_echo") >&5
     3776  (eval "$ac_compiler -V >&5") 2>&5
     3777  ac_status=$?
     3778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3779  (exit $ac_status); }
     3780rm -f a.out
     3781
     3782# If we don't use `.F' as extension, the preprocessor is not run on the
     3783# input file.  (Note that this only needs to work for GNU compilers.)
     3784ac_save_ext=$ac_ext
     3785ac_ext=F
     3786{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     3787$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
     3788if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     3789  $as_echo_n "(cached) " >&6
     3790else
     3791  cat >conftest.$ac_ext <<_ACEOF
     3792      program main
     3793#ifndef __GNUC__
     3794       choke me
     3795#endif
     3796
     3797      end
     3798_ACEOF
     3799rm -f conftest.$ac_objext
     3800if { (ac_try="$ac_compile"
     3801case "(($ac_try" in
     3802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3803  *) ac_try_echo=$ac_try;;
     3804esac
     3805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3806$as_echo "$ac_try_echo") >&5
     3807  (eval "$ac_compile") 2>conftest.er1
     3808  ac_status=$?
     3809  grep -v '^ *+' conftest.er1 >conftest.err
     3810  rm -f conftest.er1
     3811  cat conftest.err >&5
     3812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3813  (exit $ac_status); } && {
     3814         test -z "$ac_f77_werror_flag" ||
     3815         test ! -s conftest.err
     3816       } && test -s conftest.$ac_objext; then
     3817  ac_compiler_gnu=yes
     3818else
     3819  $as_echo "$as_me: failed program was:" >&5
     3820sed 's/^/| /' conftest.$ac_ext >&5
     3821
     3822        ac_compiler_gnu=no
     3823fi
     3824
     3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3826ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     3827
     3828fi
     3829{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     3830$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
     3831ac_ext=$ac_save_ext
     3832ac_test_FFLAGS=${FFLAGS+set}
     3833ac_save_FFLAGS=$FFLAGS
     3834FFLAGS=
     3835{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     3836$as_echo_n "checking whether $F77 accepts -g... " >&6; }
     3837if test "${ac_cv_prog_f77_g+set}" = set; then
     3838  $as_echo_n "(cached) " >&6
     3839else
     3840  FFLAGS=-g
     3841cat >conftest.$ac_ext <<_ACEOF
     3842      program main
     3843
     3844      end
     3845_ACEOF
     3846rm -f conftest.$ac_objext
     3847if { (ac_try="$ac_compile"
     3848case "(($ac_try" in
     3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3850  *) ac_try_echo=$ac_try;;
     3851esac
     3852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3853$as_echo "$ac_try_echo") >&5
     3854  (eval "$ac_compile") 2>conftest.er1
     3855  ac_status=$?
     3856  grep -v '^ *+' conftest.er1 >conftest.err
     3857  rm -f conftest.er1
     3858  cat conftest.err >&5
     3859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3860  (exit $ac_status); } && {
     3861         test -z "$ac_f77_werror_flag" ||
     3862         test ! -s conftest.err
     3863       } && test -s conftest.$ac_objext; then
     3864  ac_cv_prog_f77_g=yes
     3865else
     3866  $as_echo "$as_me: failed program was:" >&5
     3867sed 's/^/| /' conftest.$ac_ext >&5
     3868
     3869        ac_cv_prog_f77_g=no
     3870fi
     3871
     3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3873
     3874fi
     3875{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     3876$as_echo "$ac_cv_prog_f77_g" >&6; }
     3877if test "$ac_test_FFLAGS" = set; then
     3878  FFLAGS=$ac_save_FFLAGS
     3879elif test $ac_cv_prog_f77_g = yes; then
     3880  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3881    FFLAGS="-g -O2"
     3882  else
     3883    FFLAGS="-g"
     3884  fi
     3885else
     3886  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3887    FFLAGS="-O2"
     3888  else
     3889    FFLAGS=
     3890  fi
     3891fi
     3892
     3893if test $ac_compiler_gnu = yes; then
     3894  G77=yes
     3895else
     3896  G77=
     3897fi
     3898ac_ext=c
     3899ac_cpp='$CPP $CPPFLAGS'
     3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3903
     3904
     3905ac_ext=c
     3906ac_cpp='$CPP $CPPFLAGS'
     3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3910
     3911
    35323912
    35333913ac_ext=c
     
    41774557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    41784558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4179 if test -z "$CXX"; then
    4180   if test -n "$CCC"; then
    4181     CXX=$CCC
    4182   else
    4183     if test -n "$ac_tool_prefix"; then
    4184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    4185   do
    4186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    4187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    4188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    4189 $as_echo_n "checking for $ac_word... " >&6; }
    4190 if test "${ac_cv_prog_CXX+set}" = set; then
    4191   $as_echo_n "(cached) " >&6
    4192 else
    4193   if test -n "$CXX"; then
    4194   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    4195 else
    4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4197 for as_dir in $PATH
    4198 do
    4199   IFS=$as_save_IFS
    4200   test -z "$as_dir" && as_dir=.
    4201   for ac_exec_ext in '' $ac_executable_extensions; do
    4202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    4203     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    4204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4205     break 2
    4206   fi
    4207 done
    4208 done
    4209 IFS=$as_save_IFS
    4210 
    4211 fi
    4212 fi
    4213 CXX=$ac_cv_prog_CXX
    4214 if test -n "$CXX"; then
    4215   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
    4216 $as_echo "$CXX" >&6; }
    4217 else
    4218   { $as_echo "$as_me:$LINENO: result: no" >&5
    4219 $as_echo "no" >&6; }
    4220 fi
    4221 
    4222 
    4223     test -n "$CXX" && break
    4224   done
    4225 fi
    4226 if test -z "$CXX"; then
    4227   ac_ct_CXX=$CXX
    4228   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    4229 do
    4230   # Extract the first word of "$ac_prog", so it can be a program name with args.
    4231 set dummy $ac_prog; ac_word=$2
    4232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    4233 $as_echo_n "checking for $ac_word... " >&6; }
    4234 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    4235   $as_echo_n "(cached) " >&6
    4236 else
    4237   if test -n "$ac_ct_CXX"; then
    4238   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    4239 else
    4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4241 for as_dir in $PATH
    4242 do
    4243   IFS=$as_save_IFS
    4244   test -z "$as_dir" && as_dir=.
    4245   for ac_exec_ext in '' $ac_executable_extensions; do
    4246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    4247     ac_cv_prog_ac_ct_CXX="$ac_prog"
    4248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4249     break 2
    4250   fi
    4251 done
    4252 done
    4253 IFS=$as_save_IFS
    4254 
    4255 fi
    4256 fi
    4257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    4258 if test -n "$ac_ct_CXX"; then
    4259   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    4260 $as_echo "$ac_ct_CXX" >&6; }
    4261 else
    4262   { $as_echo "$as_me:$LINENO: result: no" >&5
    4263 $as_echo "no" >&6; }
    4264 fi
    4265 
    4266 
    4267   test -n "$ac_ct_CXX" && break
    4268 done
    4269 
    4270   if test "x$ac_ct_CXX" = x; then
    4271     CXX="g++"
    4272   else
    4273     case $cross_compiling:$ac_tool_warned in
    4274 yes:)
    4275 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    4276 whose name does not start with the host triplet.  If you think this
    4277 configuration is useful to you, please write to autoconf@gnu.org." >&5
    4278 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    4279 whose name does not start with the host triplet.  If you think this
    4280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    4281 ac_tool_warned=yes ;;
    4282 esac
    4283     CXX=$ac_ct_CXX
    4284   fi
    4285 fi
    4286 
    4287   fi
    4288 fi
    4289 # Provide some information about the compiler.
    4290 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    4291 set X $ac_compile
    4292 ac_compiler=$2
    4293 { (ac_try="$ac_compiler --version >&5"
    4294 case "(($ac_try" in
    4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4296   *) ac_try_echo=$ac_try;;
    4297 esac
    4298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4299 $as_echo "$ac_try_echo") >&5
    4300   (eval "$ac_compiler --version >&5") 2>&5
    4301   ac_status=$?
    4302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4303   (exit $ac_status); }
    4304 { (ac_try="$ac_compiler -v >&5"
    4305 case "(($ac_try" in
    4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4307   *) ac_try_echo=$ac_try;;
    4308 esac
    4309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4310 $as_echo "$ac_try_echo") >&5
    4311   (eval "$ac_compiler -v >&5") 2>&5
    4312   ac_status=$?
    4313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4314   (exit $ac_status); }
    4315 { (ac_try="$ac_compiler -V >&5"
    4316 case "(($ac_try" in
    4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4318   *) ac_try_echo=$ac_try;;
    4319 esac
    4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4321 $as_echo "$ac_try_echo") >&5
    4322   (eval "$ac_compiler -V >&5") 2>&5
    4323   ac_status=$?
    4324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4325   (exit $ac_status); }
    4326 
    4327 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    4328 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    4329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    4330   $as_echo_n "(cached) " >&6
    4331 else
    4332   cat >conftest.$ac_ext <<_ACEOF
    4333 /* confdefs.h.  */
    4334 _ACEOF
    4335 cat confdefs.h >>conftest.$ac_ext
    4336 cat >>conftest.$ac_ext <<_ACEOF
    4337 /* end confdefs.h.  */
    4338 
    4339 int
    4340 main ()
    4341 {
    4342 #ifndef __GNUC__
    4343        choke me
    4344 #endif
    4345 
    4346   ;
    4347   return 0;
    4348 }
    4349 _ACEOF
    4350 rm -f conftest.$ac_objext
    4351 if { (ac_try="$ac_compile"
    4352 case "(($ac_try" in
    4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4354   *) ac_try_echo=$ac_try;;
    4355 esac
    4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4357 $as_echo "$ac_try_echo") >&5
    4358   (eval "$ac_compile") 2>conftest.er1
    4359   ac_status=$?
    4360   grep -v '^ *+' conftest.er1 >conftest.err
    4361   rm -f conftest.er1
    4362   cat conftest.err >&5
    4363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4364   (exit $ac_status); } && {
    4365          test -z "$ac_cxx_werror_flag" ||
    4366          test ! -s conftest.err
    4367        } && test -s conftest.$ac_objext; then
    4368   ac_compiler_gnu=yes
    4369 else
    4370   $as_echo "$as_me: failed program was:" >&5
    4371 sed 's/^/| /' conftest.$ac_ext >&5
    4372 
    4373         ac_compiler_gnu=no
    4374 fi
    4375 
    4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    4378 
    4379 fi
    4380 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    4381 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    4382 if test $ac_compiler_gnu = yes; then
    4383   GXX=yes
    4384 else
    4385   GXX=
    4386 fi
    4387 ac_test_CXXFLAGS=${CXXFLAGS+set}
    4388 ac_save_CXXFLAGS=$CXXFLAGS
    4389 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    4390 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
    4391 if test "${ac_cv_prog_cxx_g+set}" = set; then
    4392   $as_echo_n "(cached) " >&6
    4393 else
    4394   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
    4395    ac_cxx_werror_flag=yes
    4396    ac_cv_prog_cxx_g=no
    4397    CXXFLAGS="-g"
    4398    cat >conftest.$ac_ext <<_ACEOF
    4399 /* confdefs.h.  */
    4400 _ACEOF
    4401 cat confdefs.h >>conftest.$ac_ext
    4402 cat >>conftest.$ac_ext <<_ACEOF
    4403 /* end confdefs.h.  */
    4404 
    4405 int
    4406 main ()
    4407 {
    4408 
    4409   ;
    4410   return 0;
    4411 }
    4412 _ACEOF
    4413 rm -f conftest.$ac_objext
    4414 if { (ac_try="$ac_compile"
    4415 case "(($ac_try" in
    4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4417   *) ac_try_echo=$ac_try;;
    4418 esac
    4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4420 $as_echo "$ac_try_echo") >&5
    4421   (eval "$ac_compile") 2>conftest.er1
    4422   ac_status=$?
    4423   grep -v '^ *+' conftest.er1 >conftest.err
    4424   rm -f conftest.er1
    4425   cat conftest.err >&5
    4426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4427   (exit $ac_status); } && {
    4428          test -z "$ac_cxx_werror_flag" ||
    4429          test ! -s conftest.err
    4430        } && test -s conftest.$ac_objext; then
    4431   ac_cv_prog_cxx_g=yes
    4432 else
    4433   $as_echo "$as_me: failed program was:" >&5
    4434 sed 's/^/| /' conftest.$ac_ext >&5
    4435 
    4436         CXXFLAGS=""
    4437       cat >conftest.$ac_ext <<_ACEOF
    4438 /* confdefs.h.  */
    4439 _ACEOF
    4440 cat confdefs.h >>conftest.$ac_ext
    4441 cat >>conftest.$ac_ext <<_ACEOF
    4442 /* end confdefs.h.  */
    4443 
    4444 int
    4445 main ()
    4446 {
    4447 
    4448   ;
    4449   return 0;
    4450 }
    4451 _ACEOF
    4452 rm -f conftest.$ac_objext
    4453 if { (ac_try="$ac_compile"
    4454 case "(($ac_try" in
    4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4456   *) ac_try_echo=$ac_try;;
    4457 esac
    4458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4459 $as_echo "$ac_try_echo") >&5
    4460   (eval "$ac_compile") 2>conftest.er1
    4461   ac_status=$?
    4462   grep -v '^ *+' conftest.er1 >conftest.err
    4463   rm -f conftest.er1
    4464   cat conftest.err >&5
    4465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4466   (exit $ac_status); } && {
    4467          test -z "$ac_cxx_werror_flag" ||
    4468          test ! -s conftest.err
    4469        } && test -s conftest.$ac_objext; then
    4470   :
    4471 else
    4472   $as_echo "$as_me: failed program was:" >&5
    4473 sed 's/^/| /' conftest.$ac_ext >&5
    4474 
    4475         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    4476          CXXFLAGS="-g"
    4477          cat >conftest.$ac_ext <<_ACEOF
    4478 /* confdefs.h.  */
    4479 _ACEOF
    4480 cat confdefs.h >>conftest.$ac_ext
    4481 cat >>conftest.$ac_ext <<_ACEOF
    4482 /* end confdefs.h.  */
    4483 
    4484 int
    4485 main ()
    4486 {
    4487 
    4488   ;
    4489   return 0;
    4490 }
    4491 _ACEOF
    4492 rm -f conftest.$ac_objext
    4493 if { (ac_try="$ac_compile"
    4494 case "(($ac_try" in
    4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4496   *) ac_try_echo=$ac_try;;
    4497 esac
    4498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4499 $as_echo "$ac_try_echo") >&5
    4500   (eval "$ac_compile") 2>conftest.er1
    4501   ac_status=$?
    4502   grep -v '^ *+' conftest.er1 >conftest.err
    4503   rm -f conftest.er1
    4504   cat conftest.err >&5
    4505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4506   (exit $ac_status); } && {
    4507          test -z "$ac_cxx_werror_flag" ||
    4508          test ! -s conftest.err
    4509        } && test -s conftest.$ac_objext; then
    4510   ac_cv_prog_cxx_g=yes
    4511 else
    4512   $as_echo "$as_me: failed program was:" >&5
    4513 sed 's/^/| /' conftest.$ac_ext >&5
    4514 
    4515 
    4516 fi
    4517 
    4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4519 fi
    4520 
    4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4522 fi
    4523 
    4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4525    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    4526 fi
    4527 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    4528 $as_echo "$ac_cv_prog_cxx_g" >&6; }
    4529 if test "$ac_test_CXXFLAGS" = set; then
    4530   CXXFLAGS=$ac_save_CXXFLAGS
    4531 elif test $ac_cv_prog_cxx_g = yes; then
    4532   if test "$GXX" = yes; then
    4533     CXXFLAGS="-g -O2"
    4534   else
    4535     CXXFLAGS="-g"
    4536   fi
    4537 else
    4538   if test "$GXX" = yes; then
    4539     CXXFLAGS="-O2"
    4540   else
    4541     CXXFLAGS=
    4542   fi
    4543 fi
    4544 ac_ext=c
    4545 ac_cpp='$CPP $CPPFLAGS'
    4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4549 
    4550 ac_ext=cpp
    4551 ac_cpp='$CXXCPP $CPPFLAGS'
    4552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    45554559
    45564560
     
    55445548done
    55455549
    5546 
    5547 ac_ext=f
    5548 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    5549 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5550 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    5551 if test -n "$ac_tool_prefix"; then
    5552   for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
    5553   do
    5554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    5557 $as_echo_n "checking for $ac_word... " >&6; }
    5558 if test "${ac_cv_prog_F77+set}" = set; then
    5559   $as_echo_n "(cached) " >&6
    5560 else
    5561   if test -n "$F77"; then
    5562   ac_cv_prog_F77="$F77" # Let the user override the test.
    5563 else
    5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5565 for as_dir in $PATH
    5566 do
    5567   IFS=$as_save_IFS
    5568   test -z "$as_dir" && as_dir=.
    5569   for ac_exec_ext in '' $ac_executable_extensions; do
    5570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    5571     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    5572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5573     break 2
    5574   fi
    5575 done
    5576 done
    5577 IFS=$as_save_IFS
    5578 
    5579 fi
    5580 fi
    5581 F77=$ac_cv_prog_F77
    5582 if test -n "$F77"; then
    5583   { $as_echo "$as_me:$LINENO: result: $F77" >&5
    5584 $as_echo "$F77" >&6; }
    5585 else
    5586   { $as_echo "$as_me:$LINENO: result: no" >&5
    5587 $as_echo "no" >&6; }
    5588 fi
    5589 
    5590 
    5591     test -n "$F77" && break
    5592   done
    5593 fi
    5594 if test -z "$F77"; then
    5595   ac_ct_F77=$F77
    5596   for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
    5597 do
    5598   # Extract the first word of "$ac_prog", so it can be a program name with args.
    5599 set dummy $ac_prog; ac_word=$2
    5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    5601 $as_echo_n "checking for $ac_word... " >&6; }
    5602 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
    5603   $as_echo_n "(cached) " >&6
    5604 else
    5605   if test -n "$ac_ct_F77"; then
    5606   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
    5607 else
    5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5609 for as_dir in $PATH
    5610 do
    5611   IFS=$as_save_IFS
    5612   test -z "$as_dir" && as_dir=.
    5613   for ac_exec_ext in '' $ac_executable_extensions; do
    5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    5615     ac_cv_prog_ac_ct_F77="$ac_prog"
    5616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5617     break 2
    5618   fi
    5619 done
    5620 done
    5621 IFS=$as_save_IFS
    5622 
    5623 fi
    5624 fi
    5625 ac_ct_F77=$ac_cv_prog_ac_ct_F77
    5626 if test -n "$ac_ct_F77"; then
    5627   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    5628 $as_echo "$ac_ct_F77" >&6; }
    5629 else
    5630   { $as_echo "$as_me:$LINENO: result: no" >&5
    5631 $as_echo "no" >&6; }
    5632 fi
    5633 
    5634 
    5635   test -n "$ac_ct_F77" && break
    5636 done
    5637 
    5638   if test "x$ac_ct_F77" = x; then
    5639     F77=""
    5640   else
    5641     case $cross_compiling:$ac_tool_warned in
    5642 yes:)
    5643 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    5644 whose name does not start with the host triplet.  If you think this
    5645 configuration is useful to you, please write to autoconf@gnu.org." >&5
    5646 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    5647 whose name does not start with the host triplet.  If you think this
    5648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    5649 ac_tool_warned=yes ;;
    5650 esac
    5651     F77=$ac_ct_F77
    5652   fi
    5653 fi
    5654 
    5655 
    5656 # Provide some information about the compiler.
    5657 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
    5658 set X $ac_compile
    5659 ac_compiler=$2
    5660 { (ac_try="$ac_compiler --version >&5"
    5661 case "(($ac_try" in
    5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5663   *) ac_try_echo=$ac_try;;
    5664 esac
    5665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5666 $as_echo "$ac_try_echo") >&5
    5667   (eval "$ac_compiler --version >&5") 2>&5
    5668   ac_status=$?
    5669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5670   (exit $ac_status); }
    5671 { (ac_try="$ac_compiler -v >&5"
    5672 case "(($ac_try" in
    5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5674   *) ac_try_echo=$ac_try;;
    5675 esac
    5676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5677 $as_echo "$ac_try_echo") >&5
    5678   (eval "$ac_compiler -v >&5") 2>&5
    5679   ac_status=$?
    5680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5681   (exit $ac_status); }
    5682 { (ac_try="$ac_compiler -V >&5"
    5683 case "(($ac_try" in
    5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5685   *) ac_try_echo=$ac_try;;
    5686 esac
    5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5688 $as_echo "$ac_try_echo") >&5
    5689   (eval "$ac_compiler -V >&5") 2>&5
    5690   ac_status=$?
    5691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5692   (exit $ac_status); }
    5693 rm -f a.out
    5694 
    5695 # If we don't use `.F' as extension, the preprocessor is not run on the
    5696 # input file.  (Note that this only needs to work for GNU compilers.)
    5697 ac_save_ext=$ac_ext
    5698 ac_ext=F
    5699 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    5700 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
    5701 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
    5702   $as_echo_n "(cached) " >&6
    5703 else
    5704   cat >conftest.$ac_ext <<_ACEOF
    5705       program main
    5706 #ifndef __GNUC__
    5707        choke me
    5708 #endif
    5709 
    5710       end
    5711 _ACEOF
    5712 rm -f conftest.$ac_objext
    5713 if { (ac_try="$ac_compile"
    5714 case "(($ac_try" in
    5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5716   *) ac_try_echo=$ac_try;;
    5717 esac
    5718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5719 $as_echo "$ac_try_echo") >&5
    5720   (eval "$ac_compile") 2>conftest.er1
    5721   ac_status=$?
    5722   grep -v '^ *+' conftest.er1 >conftest.err
    5723   rm -f conftest.er1
    5724   cat conftest.err >&5
    5725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5726   (exit $ac_status); } && {
    5727          test -z "$ac_f77_werror_flag" ||
    5728          test ! -s conftest.err
    5729        } && test -s conftest.$ac_objext; then
    5730   ac_compiler_gnu=yes
    5731 else
    5732   $as_echo "$as_me: failed program was:" >&5
    5733 sed 's/^/| /' conftest.$ac_ext >&5
    5734 
    5735         ac_compiler_gnu=no
    5736 fi
    5737 
    5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5739 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    5740 
    5741 fi
    5742 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    5743 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
    5744 ac_ext=$ac_save_ext
    5745 ac_test_FFLAGS=${FFLAGS+set}
    5746 ac_save_FFLAGS=$FFLAGS
    5747 FFLAGS=
    5748 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    5749 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
    5750 if test "${ac_cv_prog_f77_g+set}" = set; then
    5751   $as_echo_n "(cached) " >&6
    5752 else
    5753   FFLAGS=-g
    5754 cat >conftest.$ac_ext <<_ACEOF
    5755       program main
    5756 
    5757       end
    5758 _ACEOF
    5759 rm -f conftest.$ac_objext
    5760 if { (ac_try="$ac_compile"
    5761 case "(($ac_try" in
    5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5763   *) ac_try_echo=$ac_try;;
    5764 esac
    5765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5766 $as_echo "$ac_try_echo") >&5
    5767   (eval "$ac_compile") 2>conftest.er1
    5768   ac_status=$?
    5769   grep -v '^ *+' conftest.er1 >conftest.err
    5770   rm -f conftest.er1
    5771   cat conftest.err >&5
    5772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5773   (exit $ac_status); } && {
    5774          test -z "$ac_f77_werror_flag" ||
    5775          test ! -s conftest.err
    5776        } && test -s conftest.$ac_objext; then
    5777   ac_cv_prog_f77_g=yes
    5778 else
    5779   $as_echo "$as_me: failed program was:" >&5
    5780 sed 's/^/| /' conftest.$ac_ext >&5
    5781 
    5782         ac_cv_prog_f77_g=no
    5783 fi
    5784 
    5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5786 
    5787 fi
    5788 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    5789 $as_echo "$ac_cv_prog_f77_g" >&6; }
    5790 if test "$ac_test_FFLAGS" = set; then
    5791   FFLAGS=$ac_save_FFLAGS
    5792 elif test $ac_cv_prog_f77_g = yes; then
    5793   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    5794     FFLAGS="-g -O2"
    5795   else
    5796     FFLAGS="-g"
    5797   fi
    5798 else
    5799   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    5800     FFLAGS="-O2"
    5801   else
    5802     FFLAGS=
    5803   fi
    5804 fi
    5805 
    5806 if test $ac_compiler_gnu = yes; then
    5807   G77=yes
    5808 else
    5809   G77=
    5810 fi
    5811 ac_ext=cpp
    5812 ac_cpp='$CXXCPP $CPPFLAGS'
    5813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    5814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    58165550
    58175551
     
    87188452
    87198453if 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'
     8454  # Found matlab.  May be a symlink to the real binary.  Run "matlab -e"
     8455  # to tell where matlab is installed.
     8456
     8457  matlab_bindir=`${MATLAB} -e | grep "MATLAB=" | sed s/MATLAB=//`/bin
     8458
     8459  # Now see if we can find "mex" or "mexext" there.
    87438460  # Extract the first word of "mex", so it can be a program name with args.
    87448461set dummy mex; ac_word=$2
     
    87688485IFS=$as_save_IFS
    87698486
    8770   test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${matlab_bindir}"
     8487  test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${matlab_bindir}/mex"
    87718488  ;;
    87728489esac
     
    88098526IFS=$as_save_IFS
    88108527
    8811   test -z "$ac_cv_path_MEXEXT" && ac_cv_path_MEXEXT="${matlab_bindir}"
     8528  test -z "$ac_cv_path_MEXEXT" && ac_cv_path_MEXEXT="${matlab_bindir}/mexext"
    88128529  ;;
    88138530esac
     
    88238540
    88248541
     8542
     8543  # Run "mexext" to get the expected module extension for this platform.
    88258544  { $as_echo "$as_me:$LINENO: checking for mex extension" >&5
    88268545$as_echo_n "checking for mex extension... " >&6; }
    88278546  if test "x$MEXEXT" != "x" ; then
    8828     mexext=`$MEXEXT`
     8547    MEXEXT=`$MEXEXT`
    88298548  else
    8830     mexext="mexglx"
     8549    MEXEXT="mexglx"
    88318550  fi
    8832   { $as_echo "$as_me:$LINENO: result: $mexext" >&5
    8833 $as_echo "$mexext" >&6; }
    8834   MEXEXT=$mexext
     8551  { $as_echo "$as_me:$LINENO: result: $MEXEXT" >&5
     8552$as_echo "$MEXEXT" >&6; }
    88358553fi
    88368554
     
    89588676PERL_CCFlAGS=
    89598677PERL_VERSION_RV=
     8678PERL_LIBSPEC=
    89608679if test "$with_perl" != "no" ; then
    8961     { $as_echo "$as_me:$LINENO: checking for perl" >&5
     8680  { $as_echo "$as_me:$LINENO: checking for perl" >&5
    89628681$as_echo_n "checking for perl... " >&6; }
    8963     if test "$with_perl" != "yes" ; then
    8964       # Extract the first word of "perl", so it can be a program name with args.
     8682  if test "$with_perl" != "yes" ; then
     8683    # Extract the first word of "perl", so it can be a program name with args.
    89658684set dummy perl; ac_word=$2
    89668685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    90038722
    90048723
    9005     else
    9006       # Extract the first word of "perl", so it can be a program name with args.
     8724  else
     8725    # Extract the first word of "perl", so it can be a program name with args.
    90078726set dummy perl; ac_word=$2
    90088727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    90448763
    90458764
     8765  fi
     8766  if test "x${PERL}" != "x" ; then
     8767    PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
     8768    PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
     8769    PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
     8770    PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
     8771    PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
     8772    PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
     8773    PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`
     8774    PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`
     8775    PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
     8776    echo perllib="${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}"
     8777
     8778    # libperl may or may not be installed.  Check for its existence.
     8779    if test -f "${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}" ; then
     8780      PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX} -lperl"
    90468781    fi
    9047     if test "x${PERL}" != "x" ; then
    9048       PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
    9049       PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
    9050       PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
    9051       PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
    9052       PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
    9053       PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
    9054       PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`
    9055       PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`
    9056       PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
    9057     fi
     8782  fi
    90588783fi
    90598784{ $as_echo "$as_me:$LINENO: result: ${PERL}" >&5
    90608785$as_echo "${PERL}" >&6; }
     8786
    90618787
    90628788
Note: See TracChangeset for help on using the changeset viewer.