Changeset 1148 for trunk/configure
- Timestamp:
- Sep 8, 2008 12:36:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r1132 r1148 687 687 EXEEXT 688 688 OBJEXT 689 CXX 690 CXXFLAGS 691 ac_ct_CXX 692 RANLIB 693 LN_S 694 MKDIR_P 689 695 F77 690 696 FFLAGS 691 697 ac_ct_F77 692 RANLIB693 LN_S694 MKDIR_P695 698 CPP 696 699 GREP 697 700 EGREP 698 CXX699 CXXFLAGS700 ac_ct_CXX701 701 CXXCPP 702 702 AR … … 742 742 PERL_INSTALLARCHLIB 743 743 PERL_VERSION_RV 744 PERL_LIBSPEC 744 745 PYTHON 745 746 PYTHON_CPPFLAGS … … 794 795 LIBS 795 796 CPPFLAGS 797 CXX 798 CXXFLAGS 799 CCC 796 800 F77 797 801 FFLAGS 798 802 CPP 799 CXX800 CXXFLAGS801 CCC802 803 CXXCPP' 803 804 ac_subdirs_all='packages/optimizer/src ' … … 1450 1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1451 1452 you have headers in a nonstandard directory <include dir> 1453 CXX C++ compiler command 1454 CXXFLAGS C++ compiler flags 1452 1455 F77 Fortran 77 compiler command 1453 1456 FFLAGS Fortran 77 compiler flags 1454 1457 CPP C preprocessor 1455 CXX C++ compiler command1456 CXXFLAGS C++ compiler flags1457 1458 CXXCPP C++ preprocessor 1458 1459 … … 2079 2080 2080 2081 2082 # Check for C, C++, and FORTRAN 2081 2083 ac_ext=c 2082 2084 ac_cpp='$CPP $CPPFLAGS' … … 3010 3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3011 3013 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 3014 ac_ext=cpp 3015 ac_cpp='$CXXCPP $CPPFLAGS' 3016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3019 if 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 3018 3025 do 3019 3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 3021 3028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3022 3029 $as_echo_n "checking for $ac_word... " >&6; } 3023 if test "${ac_cv_prog_ F77+set}" = set; then3030 if test "${ac_cv_prog_CXX+set}" = set; then 3024 3031 $as_echo_n "(cached) " >&6 3025 3032 else 3026 if test -n "$ F77"; then3027 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. 3028 3035 else 3029 3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3034 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3035 3042 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" 3037 3044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3038 3045 break 2 … … 3044 3051 fi 3045 3052 fi 3046 F77=$ac_cv_prog_F77 3047 if test -n "$ F77"; then3048 { $as_echo "$as_me:$LINENO: result: $ F77" >&53049 $as_echo "$ F77" >&6; }3053 CXX=$ac_cv_prog_CXX 3054 if test -n "$CXX"; then 3055 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 3056 $as_echo "$CXX" >&6; } 3050 3057 else 3051 3058 { $as_echo "$as_me:$LINENO: result: no" >&5 … … 3054 3061 3055 3062 3056 test -n "$ F77" && break3063 test -n "$CXX" && break 3057 3064 done 3058 3065 fi 3059 if test -z "$ F77"; then3060 ac_ct_ F77=$F773061 for ac_prog in g 77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn3066 if 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 3062 3069 do 3063 3070 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 3065 3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3066 3073 $as_echo_n "checking for $ac_word... " >&6; } 3067 if test "${ac_cv_prog_ac_ct_ F77+set}" = set; then3074 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3068 3075 $as_echo_n "(cached) " >&6 3069 3076 else 3070 if test -n "$ac_ct_ F77"; then3071 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. 3072 3079 else 3073 3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3078 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3079 3086 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" 3081 3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 3089 break 2 … … 3088 3095 fi 3089 3096 fi 3090 ac_ct_ F77=$ac_cv_prog_ac_ct_F773091 if test -n "$ac_ct_ F77"; then3092 { $as_echo "$as_me:$LINENO: result: $ac_ct_ F77" >&53093 $as_echo "$ac_ct_ F77" >&6; }3097 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3098 if test -n "$ac_ct_CXX"; then 3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3100 $as_echo "$ac_ct_CXX" >&6; } 3094 3101 else 3095 3102 { $as_echo "$as_me:$LINENO: result: no" >&5 … … 3098 3105 3099 3106 3100 test -n "$ac_ct_ F77" && break3107 test -n "$ac_ct_CXX" && break 3101 3108 done 3102 3109 3103 if test "x$ac_ct_ F77" = x; then3104 F77=""3110 if test "x$ac_ct_CXX" = x; then 3111 CXX="g++" 3105 3112 else 3106 3113 case $cross_compiling:$ac_tool_warned in … … 3114 3121 ac_tool_warned=yes ;; 3115 3122 esac 3116 F77=$ac_ct_F773123 CXX=$ac_ct_CXX 3117 3124 fi 3118 3125 fi 3119 3126 3120 3127 fi 3128 fi 3121 3129 # Provide some information about the compiler. 3122 $as_echo "$as_me:$LINENO: checking for Fortran 77compiler version" >&53130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3123 3131 set X $ac_compile 3124 3132 ac_compiler=$2 … … 3156 3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 3165 (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; } 3169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3167 3170 $as_echo_n "(cached) " >&6 3168 3171 else 3169 3172 cat >conftest.$ac_ext <<_ACEOF 3170 program main 3173 /* confdefs.h. */ 3174 _ACEOF 3175 cat confdefs.h >>conftest.$ac_ext 3176 cat >>conftest.$ac_ext <<_ACEOF 3177 /* end confdefs.h. */ 3178 3179 int 3180 main () 3181 { 3171 3182 #ifndef __GNUC__ 3172 3183 choke me 3173 3184 #endif 3174 3185 3175 end 3186 ; 3187 return 0; 3188 } 3176 3189 _ACEOF 3177 3190 rm -f conftest.$ac_objext … … 3190 3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 3204 (exit $ac_status); } && { 3192 test -z "$ac_ f77_werror_flag" ||3205 test -z "$ac_cxx_werror_flag" || 3193 3206 test ! -s conftest.err 3194 3207 } && test -s conftest.$ac_objext; then … … 3202 3215 3203 3216 rm -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 3217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3218 3219 fi 3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3222 if test $ac_compiler_gnu = yes; then 3223 GXX=yes 3224 else 3225 GXX= 3226 fi 3227 ac_test_CXXFLAGS=${CXXFLAGS+set} 3228 ac_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; } 3231 if test "${ac_cv_prog_cxx_g+set}" = set; then 3216 3232 $as_echo_n "(cached) " >&6 3217 3233 else 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 3241 cat confdefs.h >>conftest.$ac_ext 3242 cat >>conftest.$ac_ext <<_ACEOF 3243 /* end confdefs.h. */ 3244 3245 int 3246 main () 3247 { 3248 3249 ; 3250 return 0; 3251 } 3223 3252 _ACEOF 3224 3253 rm -f conftest.$ac_objext … … 3237 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 3267 (exit $ac_status); } && { 3239 test -z "$ac_ f77_werror_flag" ||3268 test -z "$ac_cxx_werror_flag" || 3240 3269 test ! -s conftest.err 3241 3270 } && test -s conftest.$ac_objext; then 3242 ac_cv_prog_ f77_g=yes3271 ac_cv_prog_cxx_g=yes 3243 3272 else 3244 3273 $as_echo "$as_me: failed program was:" >&5 3245 3274 sed 's/^/| /' conftest.$ac_ext >&5 3246 3275 3247 ac_cv_prog_f77_g=no 3276 CXXFLAGS="" 3277 cat >conftest.$ac_ext <<_ACEOF 3278 /* confdefs.h. */ 3279 _ACEOF 3280 cat confdefs.h >>conftest.$ac_ext 3281 cat >>conftest.$ac_ext <<_ACEOF 3282 /* end confdefs.h. */ 3283 3284 int 3285 main () 3286 { 3287 3288 ; 3289 return 0; 3290 } 3291 _ACEOF 3292 rm -f conftest.$ac_objext 3293 if { (ac_try="$ac_compile" 3294 case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297 esac 3298 eval 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 : 3311 else 3312 $as_echo "$as_me: failed program was:" >&5 3313 sed '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 3320 cat confdefs.h >>conftest.$ac_ext 3321 cat >>conftest.$ac_ext <<_ACEOF 3322 /* end confdefs.h. */ 3323 3324 int 3325 main () 3326 { 3327 3328 ; 3329 return 0; 3330 } 3331 _ACEOF 3332 rm -f conftest.$ac_objext 3333 if { (ac_try="$ac_compile" 3334 case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337 esac 3338 eval 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 3351 else 3352 $as_echo "$as_me: failed program was:" >&5 3353 sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 3248 3356 fi 3249 3357 3250 3358 rm -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" 3359 fi 3360 3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362 fi 3363 3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3366 fi 3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3368 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3369 if test "$ac_test_CXXFLAGS" = set; then 3370 CXXFLAGS=$ac_save_CXXFLAGS 3371 elif test $ac_cv_prog_cxx_g = yes; then 3372 if test "$GXX" = yes; then 3373 CXXFLAGS="-g -O2" 3260 3374 else 3261 FFLAGS="-g"3375 CXXFLAGS="-g" 3262 3376 fi 3263 3377 else 3264 if test " x$ac_cv_f77_compiler_gnu" = xyes; then3265 FFLAGS="-O2"3378 if test "$GXX" = yes; then 3379 CXXFLAGS="-O2" 3266 3380 else 3267 FFLAGS=3381 CXXFLAGS= 3268 3382 fi 3269 fi3270 3271 if test $ac_compiler_gnu = yes; then3272 G77=yes3273 else3274 G77=3275 3383 fi 3276 3384 ac_ext=c … … 3280 3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3281 3389 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 3289 3391 # Find a good install program. We prefer a C program (faster), 3290 3392 # so one script is as good as another. But avoid the broken or … … 3530 3632 3531 3633 3634 ac_ext=f 3635 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3636 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3637 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3638 if 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. 3642 set 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; } 3645 if test "${ac_cv_prog_F77+set}" = set; then 3646 $as_echo_n "(cached) " >&6 3647 else 3648 if test -n "$F77"; then 3649 ac_cv_prog_F77="$F77" # Let the user override the test. 3650 else 3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652 for as_dir in $PATH 3653 do 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 3662 done 3663 done 3664 IFS=$as_save_IFS 3665 3666 fi 3667 fi 3668 F77=$ac_cv_prog_F77 3669 if test -n "$F77"; then 3670 { $as_echo "$as_me:$LINENO: result: $F77" >&5 3671 $as_echo "$F77" >&6; } 3672 else 3673 { $as_echo "$as_me:$LINENO: result: no" >&5 3674 $as_echo "no" >&6; } 3675 fi 3676 3677 3678 test -n "$F77" && break 3679 done 3680 fi 3681 if test -z "$F77"; then 3682 ac_ct_F77=$F77 3683 for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 3684 do 3685 # Extract the first word of "$ac_prog", so it can be a program name with args. 3686 set 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; } 3689 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3690 $as_echo_n "(cached) " >&6 3691 else 3692 if test -n "$ac_ct_F77"; then 3693 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3694 else 3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3696 for as_dir in $PATH 3697 do 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 3706 done 3707 done 3708 IFS=$as_save_IFS 3709 3710 fi 3711 fi 3712 ac_ct_F77=$ac_cv_prog_ac_ct_F77 3713 if test -n "$ac_ct_F77"; then 3714 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3715 $as_echo "$ac_ct_F77" >&6; } 3716 else 3717 { $as_echo "$as_me:$LINENO: result: no" >&5 3718 $as_echo "no" >&6; } 3719 fi 3720 3721 3722 test -n "$ac_ct_F77" && break 3723 done 3724 3725 if test "x$ac_ct_F77" = x; then 3726 F77="" 3727 else 3728 case $cross_compiling:$ac_tool_warned in 3729 yes:) 3730 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3731 whose name does not start with the host triplet. If you think this 3732 configuration 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 3734 whose name does not start with the host triplet. If you think this 3735 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3736 ac_tool_warned=yes ;; 3737 esac 3738 F77=$ac_ct_F77 3739 fi 3740 fi 3741 3742 3743 # Provide some information about the compiler. 3744 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 3745 set X $ac_compile 3746 ac_compiler=$2 3747 { (ac_try="$ac_compiler --version >&5" 3748 case "(($ac_try" in 3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3750 *) ac_try_echo=$ac_try;; 3751 esac 3752 eval 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" 3759 case "(($ac_try" in 3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3761 *) ac_try_echo=$ac_try;; 3762 esac 3763 eval 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" 3770 case "(($ac_try" in 3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772 *) ac_try_echo=$ac_try;; 3773 esac 3774 eval 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); } 3780 rm -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.) 3784 ac_save_ext=$ac_ext 3785 ac_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; } 3788 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 3789 $as_echo_n "(cached) " >&6 3790 else 3791 cat >conftest.$ac_ext <<_ACEOF 3792 program main 3793 #ifndef __GNUC__ 3794 choke me 3795 #endif 3796 3797 end 3798 _ACEOF 3799 rm -f conftest.$ac_objext 3800 if { (ac_try="$ac_compile" 3801 case "(($ac_try" in 3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3803 *) ac_try_echo=$ac_try;; 3804 esac 3805 eval 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 3818 else 3819 $as_echo "$as_me: failed program was:" >&5 3820 sed 's/^/| /' conftest.$ac_ext >&5 3821 3822 ac_compiler_gnu=no 3823 fi 3824 3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 3827 3828 fi 3829 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 3830 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } 3831 ac_ext=$ac_save_ext 3832 ac_test_FFLAGS=${FFLAGS+set} 3833 ac_save_FFLAGS=$FFLAGS 3834 FFLAGS= 3835 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 3836 $as_echo_n "checking whether $F77 accepts -g... " >&6; } 3837 if test "${ac_cv_prog_f77_g+set}" = set; then 3838 $as_echo_n "(cached) " >&6 3839 else 3840 FFLAGS=-g 3841 cat >conftest.$ac_ext <<_ACEOF 3842 program main 3843 3844 end 3845 _ACEOF 3846 rm -f conftest.$ac_objext 3847 if { (ac_try="$ac_compile" 3848 case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851 esac 3852 eval 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 3865 else 3866 $as_echo "$as_me: failed program was:" >&5 3867 sed 's/^/| /' conftest.$ac_ext >&5 3868 3869 ac_cv_prog_f77_g=no 3870 fi 3871 3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3873 3874 fi 3875 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 3876 $as_echo "$ac_cv_prog_f77_g" >&6; } 3877 if test "$ac_test_FFLAGS" = set; then 3878 FFLAGS=$ac_save_FFLAGS 3879 elif 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 3885 else 3886 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3887 FFLAGS="-O2" 3888 else 3889 FFLAGS= 3890 fi 3891 fi 3892 3893 if test $ac_compiler_gnu = yes; then 3894 G77=yes 3895 else 3896 G77= 3897 fi 3898 ac_ext=c 3899 ac_cpp='$CPP $CPPFLAGS' 3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3903 3904 3905 ac_ext=c 3906 ac_cpp='$CPP $CPPFLAGS' 3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3910 3911 3532 3912 3533 3913 ac_ext=c … … 4177 4557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4178 4558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4179 if test -z "$CXX"; then4180 if test -n "$CCC"; then4181 CXX=$CCC4182 else4183 if test -n "$ac_tool_prefix"; then4184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC4185 do4186 # 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=$24188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&54189 $as_echo_n "checking for $ac_word... " >&6; }4190 if test "${ac_cv_prog_CXX+set}" = set; then4191 $as_echo_n "(cached) " >&64192 else4193 if test -n "$CXX"; then4194 ac_cv_prog_CXX="$CXX" # Let the user override the test.4195 else4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4197 for as_dir in $PATH4198 do4199 IFS=$as_save_IFS4200 test -z "$as_dir" && as_dir=.4201 for ac_exec_ext in '' $ac_executable_extensions; do4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"4204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54205 break 24206 fi4207 done4208 done4209 IFS=$as_save_IFS4210 4211 fi4212 fi4213 CXX=$ac_cv_prog_CXX4214 if test -n "$CXX"; then4215 { $as_echo "$as_me:$LINENO: result: $CXX" >&54216 $as_echo "$CXX" >&6; }4217 else4218 { $as_echo "$as_me:$LINENO: result: no" >&54219 $as_echo "no" >&6; }4220 fi4221 4222 4223 test -n "$CXX" && break4224 done4225 fi4226 if test -z "$CXX"; then4227 ac_ct_CXX=$CXX4228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC4229 do4230 # Extract the first word of "$ac_prog", so it can be a program name with args.4231 set dummy $ac_prog; ac_word=$24232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&54233 $as_echo_n "checking for $ac_word... " >&6; }4234 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then4235 $as_echo_n "(cached) " >&64236 else4237 if test -n "$ac_ct_CXX"; then4238 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.4239 else4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4241 for as_dir in $PATH4242 do4243 IFS=$as_save_IFS4244 test -z "$as_dir" && as_dir=.4245 for ac_exec_ext in '' $ac_executable_extensions; do4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4247 ac_cv_prog_ac_ct_CXX="$ac_prog"4248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54249 break 24250 fi4251 done4252 done4253 IFS=$as_save_IFS4254 4255 fi4256 fi4257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX4258 if test -n "$ac_ct_CXX"; then4259 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&54260 $as_echo "$ac_ct_CXX" >&6; }4261 else4262 { $as_echo "$as_me:$LINENO: result: no" >&54263 $as_echo "no" >&6; }4264 fi4265 4266 4267 test -n "$ac_ct_CXX" && break4268 done4269 4270 if test "x$ac_ct_CXX" = x; then4271 CXX="g++"4272 else4273 case $cross_compiling:$ac_tool_warned in4274 yes:)4275 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools4276 whose name does not start with the host triplet. If you think this4277 configuration is useful to you, please write to autoconf@gnu.org." >&54278 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools4279 whose name does not start with the host triplet. If you think this4280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}4281 ac_tool_warned=yes ;;4282 esac4283 CXX=$ac_ct_CXX4284 fi4285 fi4286 4287 fi4288 fi4289 # Provide some information about the compiler.4290 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&54291 set X $ac_compile4292 ac_compiler=$24293 { (ac_try="$ac_compiler --version >&5"4294 case "(($ac_try" in4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4296 *) ac_try_echo=$ac_try;;4297 esac4298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4299 $as_echo "$ac_try_echo") >&54300 (eval "$ac_compiler --version >&5") 2>&54301 ac_status=$?4302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54303 (exit $ac_status); }4304 { (ac_try="$ac_compiler -v >&5"4305 case "(($ac_try" in4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4307 *) ac_try_echo=$ac_try;;4308 esac4309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4310 $as_echo "$ac_try_echo") >&54311 (eval "$ac_compiler -v >&5") 2>&54312 ac_status=$?4313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54314 (exit $ac_status); }4315 { (ac_try="$ac_compiler -V >&5"4316 case "(($ac_try" in4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4318 *) ac_try_echo=$ac_try;;4319 esac4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4321 $as_echo "$ac_try_echo") >&54322 (eval "$ac_compiler -V >&5") 2>&54323 ac_status=$?4324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54325 (exit $ac_status); }4326 4327 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&54328 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }4329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then4330 $as_echo_n "(cached) " >&64331 else4332 cat >conftest.$ac_ext <<_ACEOF4333 /* confdefs.h. */4334 _ACEOF4335 cat confdefs.h >>conftest.$ac_ext4336 cat >>conftest.$ac_ext <<_ACEOF4337 /* end confdefs.h. */4338 4339 int4340 main ()4341 {4342 #ifndef __GNUC__4343 choke me4344 #endif4345 4346 ;4347 return 0;4348 }4349 _ACEOF4350 rm -f conftest.$ac_objext4351 if { (ac_try="$ac_compile"4352 case "(($ac_try" in4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4354 *) ac_try_echo=$ac_try;;4355 esac4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4357 $as_echo "$ac_try_echo") >&54358 (eval "$ac_compile") 2>conftest.er14359 ac_status=$?4360 grep -v '^ *+' conftest.er1 >conftest.err4361 rm -f conftest.er14362 cat conftest.err >&54363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54364 (exit $ac_status); } && {4365 test -z "$ac_cxx_werror_flag" ||4366 test ! -s conftest.err4367 } && test -s conftest.$ac_objext; then4368 ac_compiler_gnu=yes4369 else4370 $as_echo "$as_me: failed program was:" >&54371 sed 's/^/| /' conftest.$ac_ext >&54372 4373 ac_compiler_gnu=no4374 fi4375 4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu4378 4379 fi4380 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&54381 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }4382 if test $ac_compiler_gnu = yes; then4383 GXX=yes4384 else4385 GXX=4386 fi4387 ac_test_CXXFLAGS=${CXXFLAGS+set}4388 ac_save_CXXFLAGS=$CXXFLAGS4389 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&54390 $as_echo_n "checking whether $CXX accepts -g... " >&6; }4391 if test "${ac_cv_prog_cxx_g+set}" = set; then4392 $as_echo_n "(cached) " >&64393 else4394 ac_save_cxx_werror_flag=$ac_cxx_werror_flag4395 ac_cxx_werror_flag=yes4396 ac_cv_prog_cxx_g=no4397 CXXFLAGS="-g"4398 cat >conftest.$ac_ext <<_ACEOF4399 /* confdefs.h. */4400 _ACEOF4401 cat confdefs.h >>conftest.$ac_ext4402 cat >>conftest.$ac_ext <<_ACEOF4403 /* end confdefs.h. */4404 4405 int4406 main ()4407 {4408 4409 ;4410 return 0;4411 }4412 _ACEOF4413 rm -f conftest.$ac_objext4414 if { (ac_try="$ac_compile"4415 case "(($ac_try" in4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4417 *) ac_try_echo=$ac_try;;4418 esac4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4420 $as_echo "$ac_try_echo") >&54421 (eval "$ac_compile") 2>conftest.er14422 ac_status=$?4423 grep -v '^ *+' conftest.er1 >conftest.err4424 rm -f conftest.er14425 cat conftest.err >&54426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54427 (exit $ac_status); } && {4428 test -z "$ac_cxx_werror_flag" ||4429 test ! -s conftest.err4430 } && test -s conftest.$ac_objext; then4431 ac_cv_prog_cxx_g=yes4432 else4433 $as_echo "$as_me: failed program was:" >&54434 sed 's/^/| /' conftest.$ac_ext >&54435 4436 CXXFLAGS=""4437 cat >conftest.$ac_ext <<_ACEOF4438 /* confdefs.h. */4439 _ACEOF4440 cat confdefs.h >>conftest.$ac_ext4441 cat >>conftest.$ac_ext <<_ACEOF4442 /* end confdefs.h. */4443 4444 int4445 main ()4446 {4447 4448 ;4449 return 0;4450 }4451 _ACEOF4452 rm -f conftest.$ac_objext4453 if { (ac_try="$ac_compile"4454 case "(($ac_try" in4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4456 *) ac_try_echo=$ac_try;;4457 esac4458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4459 $as_echo "$ac_try_echo") >&54460 (eval "$ac_compile") 2>conftest.er14461 ac_status=$?4462 grep -v '^ *+' conftest.er1 >conftest.err4463 rm -f conftest.er14464 cat conftest.err >&54465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54466 (exit $ac_status); } && {4467 test -z "$ac_cxx_werror_flag" ||4468 test ! -s conftest.err4469 } && test -s conftest.$ac_objext; then4470 :4471 else4472 $as_echo "$as_me: failed program was:" >&54473 sed 's/^/| /' conftest.$ac_ext >&54474 4475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag4476 CXXFLAGS="-g"4477 cat >conftest.$ac_ext <<_ACEOF4478 /* confdefs.h. */4479 _ACEOF4480 cat confdefs.h >>conftest.$ac_ext4481 cat >>conftest.$ac_ext <<_ACEOF4482 /* end confdefs.h. */4483 4484 int4485 main ()4486 {4487 4488 ;4489 return 0;4490 }4491 _ACEOF4492 rm -f conftest.$ac_objext4493 if { (ac_try="$ac_compile"4494 case "(($ac_try" in4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4496 *) ac_try_echo=$ac_try;;4497 esac4498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4499 $as_echo "$ac_try_echo") >&54500 (eval "$ac_compile") 2>conftest.er14501 ac_status=$?4502 grep -v '^ *+' conftest.er1 >conftest.err4503 rm -f conftest.er14504 cat conftest.err >&54505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54506 (exit $ac_status); } && {4507 test -z "$ac_cxx_werror_flag" ||4508 test ! -s conftest.err4509 } && test -s conftest.$ac_objext; then4510 ac_cv_prog_cxx_g=yes4511 else4512 $as_echo "$as_me: failed program was:" >&54513 sed 's/^/| /' conftest.$ac_ext >&54514 4515 4516 fi4517 4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4519 fi4520 4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4522 fi4523 4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag4526 fi4527 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&54528 $as_echo "$ac_cv_prog_cxx_g" >&6; }4529 if test "$ac_test_CXXFLAGS" = set; then4530 CXXFLAGS=$ac_save_CXXFLAGS4531 elif test $ac_cv_prog_cxx_g = yes; then4532 if test "$GXX" = yes; then4533 CXXFLAGS="-g -O2"4534 else4535 CXXFLAGS="-g"4536 fi4537 else4538 if test "$GXX" = yes; then4539 CXXFLAGS="-O2"4540 else4541 CXXFLAGS=4542 fi4543 fi4544 ac_ext=c4545 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_gnu4549 4550 ac_ext=cpp4551 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_gnu4555 4559 4556 4560 … … 5544 5548 done 5545 5549 5546 5547 ac_ext=f5548 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_gnu5551 if test -n "$ac_tool_prefix"; then5552 for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl325553 do5554 # 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=$25556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&55557 $as_echo_n "checking for $ac_word... " >&6; }5558 if test "${ac_cv_prog_F77+set}" = set; then5559 $as_echo_n "(cached) " >&65560 else5561 if test -n "$F77"; then5562 ac_cv_prog_F77="$F77" # Let the user override the test.5563 else5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5565 for as_dir in $PATH5566 do5567 IFS=$as_save_IFS5568 test -z "$as_dir" && as_dir=.5569 for ac_exec_ext in '' $ac_executable_extensions; do5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5571 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"5572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55573 break 25574 fi5575 done5576 done5577 IFS=$as_save_IFS5578 5579 fi5580 fi5581 F77=$ac_cv_prog_F775582 if test -n "$F77"; then5583 { $as_echo "$as_me:$LINENO: result: $F77" >&55584 $as_echo "$F77" >&6; }5585 else5586 { $as_echo "$as_me:$LINENO: result: no" >&55587 $as_echo "no" >&6; }5588 fi5589 5590 5591 test -n "$F77" && break5592 done5593 fi5594 if test -z "$F77"; then5595 ac_ct_F77=$F775596 for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl325597 do5598 # Extract the first word of "$ac_prog", so it can be a program name with args.5599 set dummy $ac_prog; ac_word=$25600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&55601 $as_echo_n "checking for $ac_word... " >&6; }5602 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then5603 $as_echo_n "(cached) " >&65604 else5605 if test -n "$ac_ct_F77"; then5606 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.5607 else5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5609 for as_dir in $PATH5610 do5611 IFS=$as_save_IFS5612 test -z "$as_dir" && as_dir=.5613 for ac_exec_ext in '' $ac_executable_extensions; do5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5615 ac_cv_prog_ac_ct_F77="$ac_prog"5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55617 break 25618 fi5619 done5620 done5621 IFS=$as_save_IFS5622 5623 fi5624 fi5625 ac_ct_F77=$ac_cv_prog_ac_ct_F775626 if test -n "$ac_ct_F77"; then5627 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&55628 $as_echo "$ac_ct_F77" >&6; }5629 else5630 { $as_echo "$as_me:$LINENO: result: no" >&55631 $as_echo "no" >&6; }5632 fi5633 5634 5635 test -n "$ac_ct_F77" && break5636 done5637 5638 if test "x$ac_ct_F77" = x; then5639 F77=""5640 else5641 case $cross_compiling:$ac_tool_warned in5642 yes:)5643 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools5644 whose name does not start with the host triplet. If you think this5645 configuration is useful to you, please write to autoconf@gnu.org." >&55646 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools5647 whose name does not start with the host triplet. If you think this5648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}5649 ac_tool_warned=yes ;;5650 esac5651 F77=$ac_ct_F775652 fi5653 fi5654 5655 5656 # Provide some information about the compiler.5657 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&55658 set X $ac_compile5659 ac_compiler=$25660 { (ac_try="$ac_compiler --version >&5"5661 case "(($ac_try" in5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;5663 *) ac_try_echo=$ac_try;;5664 esac5665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""5666 $as_echo "$ac_try_echo") >&55667 (eval "$ac_compiler --version >&5") 2>&55668 ac_status=$?5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&55670 (exit $ac_status); }5671 { (ac_try="$ac_compiler -v >&5"5672 case "(($ac_try" in5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;5674 *) ac_try_echo=$ac_try;;5675 esac5676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""5677 $as_echo "$ac_try_echo") >&55678 (eval "$ac_compiler -v >&5") 2>&55679 ac_status=$?5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&55681 (exit $ac_status); }5682 { (ac_try="$ac_compiler -V >&5"5683 case "(($ac_try" in5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;5685 *) ac_try_echo=$ac_try;;5686 esac5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""5688 $as_echo "$ac_try_echo") >&55689 (eval "$ac_compiler -V >&5") 2>&55690 ac_status=$?5691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&55692 (exit $ac_status); }5693 rm -f a.out5694 5695 # If we don't use `.F' as extension, the preprocessor is not run on the5696 # input file. (Note that this only needs to work for GNU compilers.)5697 ac_save_ext=$ac_ext5698 ac_ext=F5699 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&55700 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }5701 if test "${ac_cv_f77_compiler_gnu+set}" = set; then5702 $as_echo_n "(cached) " >&65703 else5704 cat >conftest.$ac_ext <<_ACEOF5705 program main5706 #ifndef __GNUC__5707 choke me5708 #endif5709 5710 end5711 _ACEOF5712 rm -f conftest.$ac_objext5713 if { (ac_try="$ac_compile"5714 case "(($ac_try" in5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;5716 *) ac_try_echo=$ac_try;;5717 esac5718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""5719 $as_echo "$ac_try_echo") >&55720 (eval "$ac_compile") 2>conftest.er15721 ac_status=$?5722 grep -v '^ *+' conftest.er1 >conftest.err5723 rm -f conftest.er15724 cat conftest.err >&55725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&55726 (exit $ac_status); } && {5727 test -z "$ac_f77_werror_flag" ||5728 test ! -s conftest.err5729 } && test -s conftest.$ac_objext; then5730 ac_compiler_gnu=yes5731 else5732 $as_echo "$as_me: failed program was:" >&55733 sed 's/^/| /' conftest.$ac_ext >&55734 5735 ac_compiler_gnu=no5736 fi5737 5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext5739 ac_cv_f77_compiler_gnu=$ac_compiler_gnu5740 5741 fi5742 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&55743 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }5744 ac_ext=$ac_save_ext5745 ac_test_FFLAGS=${FFLAGS+set}5746 ac_save_FFLAGS=$FFLAGS5747 FFLAGS=5748 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&55749 $as_echo_n "checking whether $F77 accepts -g... " >&6; }5750 if test "${ac_cv_prog_f77_g+set}" = set; then5751 $as_echo_n "(cached) " >&65752 else5753 FFLAGS=-g5754 cat >conftest.$ac_ext <<_ACEOF5755 program main5756 5757 end5758 _ACEOF5759 rm -f conftest.$ac_objext5760 if { (ac_try="$ac_compile"5761 case "(($ac_try" in5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;5763 *) ac_try_echo=$ac_try;;5764 esac5765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""5766 $as_echo "$ac_try_echo") >&55767 (eval "$ac_compile") 2>conftest.er15768 ac_status=$?5769 grep -v '^ *+' conftest.er1 >conftest.err5770 rm -f conftest.er15771 cat conftest.err >&55772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&55773 (exit $ac_status); } && {5774 test -z "$ac_f77_werror_flag" ||5775 test ! -s conftest.err5776 } && test -s conftest.$ac_objext; then5777 ac_cv_prog_f77_g=yes5778 else5779 $as_echo "$as_me: failed program was:" >&55780 sed 's/^/| /' conftest.$ac_ext >&55781 5782 ac_cv_prog_f77_g=no5783 fi5784 5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext5786 5787 fi5788 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&55789 $as_echo "$ac_cv_prog_f77_g" >&6; }5790 if test "$ac_test_FFLAGS" = set; then5791 FFLAGS=$ac_save_FFLAGS5792 elif test $ac_cv_prog_f77_g = yes; then5793 if test "x$ac_cv_f77_compiler_gnu" = xyes; then5794 FFLAGS="-g -O2"5795 else5796 FFLAGS="-g"5797 fi5798 else5799 if test "x$ac_cv_f77_compiler_gnu" = xyes; then5800 FFLAGS="-O2"5801 else5802 FFLAGS=5803 fi5804 fi5805 5806 if test $ac_compiler_gnu = yes; then5807 G77=yes5808 else5809 G77=5810 fi5811 ac_ext=cpp5812 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_gnu5816 5550 5817 5551 … … 8718 8452 8719 8453 if 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. 8743 8460 # Extract the first word of "mex", so it can be a program name with args. 8744 8461 set dummy mex; ac_word=$2 … … 8768 8485 IFS=$as_save_IFS 8769 8486 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" 8771 8488 ;; 8772 8489 esac … … 8809 8526 IFS=$as_save_IFS 8810 8527 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" 8812 8529 ;; 8813 8530 esac … … 8823 8540 8824 8541 8542 8543 # Run "mexext" to get the expected module extension for this platform. 8825 8544 { $as_echo "$as_me:$LINENO: checking for mex extension" >&5 8826 8545 $as_echo_n "checking for mex extension... " >&6; } 8827 8546 if test "x$MEXEXT" != "x" ; then 8828 mexext=`$MEXEXT`8547 MEXEXT=`$MEXEXT` 8829 8548 else 8830 mexext="mexglx"8549 MEXEXT="mexglx" 8831 8550 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; } 8835 8553 fi 8836 8554 … … 8958 8676 PERL_CCFlAGS= 8959 8677 PERL_VERSION_RV= 8678 PERL_LIBSPEC= 8960 8679 if test "$with_perl" != "no" ; then 8961 8680 { $as_echo "$as_me:$LINENO: checking for perl" >&5 8962 8681 $as_echo_n "checking for perl... " >&6; } 8963 8964 8682 if test "$with_perl" != "yes" ; then 8683 # Extract the first word of "perl", so it can be a program name with args. 8965 8684 set dummy perl; ac_word=$2 8966 8685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 … … 9003 8722 9004 8723 9005 9006 8724 else 8725 # Extract the first word of "perl", so it can be a program name with args. 9007 8726 set dummy perl; ac_word=$2 9008 8727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 … … 9044 8763 9045 8764 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" 9046 8781 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 9058 8783 fi 9059 8784 { $as_echo "$as_me:$LINENO: result: ${PERL}" >&5 9060 8785 $as_echo "${PERL}" >&6; } 8786 9061 8787 9062 8788
Note: See TracChangeset
for help on using the changeset viewer.