Changeset 2673
- Timestamp:
- Dec 1, 2012 2:46:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Lapack/trunk/configure
r2664 r2673 1087 1087 icl/link). Default when mentioned: mingw. Default 1088 1088 when not mentioned: disabled. 1089 --enable-static-standardlibs1090 whether to link against static standard libraries1091 (libgcc, libgfortran, libstdc++)1092 1089 --disable-pkg-config disable use of pkg-config (if available) 1093 1090 --disable-interpackage-dependencies … … 1944 1941 1945 1942 1946 # check whether to add flags for static linking against standard libraries1947 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.1948 if test "${enable_static_standardlibs+set}" = set; then1949 enableval="$enable_static_standardlibs"1950 case "$enableval" in1951 no | yes | auto ) ;;1952 *)1953 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&51954 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}1955 { (exit 1); exit 1; }; } ;;1956 esac1957 use_static_standardlibs=$enableval1958 else1959 if test $enable_shared = yes ; then1960 use_static_standardlibs = no1961 else1962 use_static_standardlibs = auto1963 fi1964 1965 1966 fi;1967 1968 1969 1970 1971 1972 1943 1973 1944 ac_ext=c … … 3093 3064 CFLAGS="$OPT_CFLAGS" 3094 3065 fi 3095 3096 3066 else 3097 3067 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3262 3232 esac 3263 3233 3264 # check whether to add flags for static linking against standard libraries to LDFLAGS3265 if test x$use_static_standardlibs != xno ; then3266 case $build in3267 *-mingw*)3268 static_standardlib_flag=-static3269 ;;3270 *)3271 static_standardlib_flag=-static-libgcc3272 ;;3273 esac3274 case " $LDFLAGS " in3275 *" $static_standardlib_flag "* ) ;;3276 *)3277 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&53278 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&63279 coin_save_LDFLAGS="$LDFLAGS"3280 LDFLAGS="$LDFLAGS $static_standardlib_flag"3281 cat >conftest.$ac_ext <<_ACEOF3282 /* confdefs.h. */3283 _ACEOF3284 cat confdefs.h >>conftest.$ac_ext3285 cat >>conftest.$ac_ext <<_ACEOF3286 /* end confdefs.h. */3287 3288 int3289 main ()3290 {3291 int i=0;3292 ;3293 return 0;3294 }3295 _ACEOF3296 rm -f conftest.$ac_objext conftest$ac_exeext3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53298 (eval $ac_link) 2>conftest.er13299 ac_status=$?3300 grep -v '^ *+' conftest.er1 >conftest.err3301 rm -f conftest.er13302 cat conftest.err >&53303 echo "$as_me:$LINENO: \$? = $ac_status" >&53304 (exit $ac_status); } &&3305 { ac_try='test -z "$ac_c_werror_flag"3306 || test ! -s conftest.err'3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53308 (eval $ac_try) 2>&53309 ac_status=$?3310 echo "$as_me:$LINENO: \$? = $ac_status" >&53311 (exit $ac_status); }; } &&3312 { ac_try='test -s conftest$ac_exeext'3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53314 (eval $ac_try) 2>&53315 ac_status=$?3316 echo "$as_me:$LINENO: \$? = $ac_status" >&53317 (exit $ac_status); }; }; then3318 echo "$as_me:$LINENO: result: yes" >&53319 echo "${ECHO_T}yes" >&63320 else3321 echo "$as_me: failed program was:" >&53322 sed 's/^/| /' conftest.$ac_ext >&53323 3324 echo "$as_me:$LINENO: result: no" >&53325 echo "${ECHO_T}no" >&63326 LDFLAGS="$coin_save_LDFLAGS"3327 if test $use_static_standardlibs = yes ; then3328 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&53329 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}3330 { (exit 1); exit 1; }; }3331 fi3332 3333 fi3334 rm -f conftest.err conftest.$ac_objext \3335 conftest$ac_exeext conftest.$ac_ext3336 ;;3337 esac3338 fi3339 3340 3234 ac_ext=c 3341 3235 ac_cpp='$CPP $CPPFLAGS' … … 3358 3252 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3359 3253 esac 3360 3361 3254 3362 3255 … … 3574 3467 3575 3468 # Provide some information about the compiler. 3576 echo "$as_me:3 576:" \3469 echo "$as_me:3469:" \ 3577 3470 "checking for Fortran 77 compiler version" >&5 3578 3471 ac_compiler=`set X $ac_compile; echo $2` … … 3941 3834 FFLAGS="$OPT_FFLAGS" 3942 3835 fi 3943 3944 3836 else 3945 3837 FFLAGS="$FFLAGS $ADD_FFLAGS" … … 4084 3976 esac 4085 3977 4086 # check whether to add flag for static linking against standard libraries to LDFLAGS4087 if test x$use_static_standardlibs != xno ; then4088 case $build in4089 *-mingw*)4090 static_standardlib_flag=-static4091 ;;4092 *)4093 static_standardlib_flag=-static-libgfortran4094 ;;4095 esac4096 case " $LDFLAGS " in4097 *" $static_standardlib_flag "* ) ;;4098 *)4099 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&54100 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&64101 coin_save_LDFLAGS="$LDFLAGS"4102 LDFLAGS="$LDFLAGS $static_standardlib_flag"4103 cat >conftest.$ac_ext <<_ACEOF4104 program main4105 integer i4106 end4107 _ACEOF4108 rm -f conftest.$ac_objext conftest$ac_exeext4109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54110 (eval $ac_link) 2>conftest.er14111 ac_status=$?4112 grep -v '^ *+' conftest.er1 >conftest.err4113 rm -f conftest.er14114 cat conftest.err >&54115 echo "$as_me:$LINENO: \$? = $ac_status" >&54116 (exit $ac_status); } &&4117 { ac_try='test -z "$ac_f77_werror_flag"4118 || test ! -s conftest.err'4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54120 (eval $ac_try) 2>&54121 ac_status=$?4122 echo "$as_me:$LINENO: \$? = $ac_status" >&54123 (exit $ac_status); }; } &&4124 { ac_try='test -s conftest$ac_exeext'4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54126 (eval $ac_try) 2>&54127 ac_status=$?4128 echo "$as_me:$LINENO: \$? = $ac_status" >&54129 (exit $ac_status); }; }; then4130 echo "$as_me:$LINENO: result: yes" >&54131 echo "${ECHO_T}yes" >&64132 else4133 echo "$as_me: failed program was:" >&54134 sed 's/^/| /' conftest.$ac_ext >&54135 4136 echo "$as_me:$LINENO: result: no" >&54137 echo "${ECHO_T}no" >&64138 LDFLAGS="$coin_save_LDFLAGS"4139 if test $use_static_standardlibs = yes ; then4140 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&54141 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}4142 { (exit 1); exit 1; }; }4143 fi4144 4145 fi4146 rm -f conftest.err conftest.$ac_objext \4147 conftest$ac_exeext conftest.$ac_ext4148 ;;4149 esac4150 fi4151 4152 3978 ac_ext=c 4153 3979 ac_cpp='$CPP $CPPFLAGS' … … 4212 4038 ac_save_FFLAGS=$FFLAGS 4213 4039 FFLAGS="$FFLAGS $ac_verb" 4214 (eval echo $as_me:4 214: \"$ac_link\") >&54040 (eval echo $as_me:4040: \"$ac_link\") >&5 4215 4041 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4216 4042 echo "$ac_f77_v_output" >&5 … … 4290 4116 ac_save_FFLAGS=$FFLAGS 4291 4117 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 4292 (eval echo $as_me:4 292: \"$ac_link\") >&54118 (eval echo $as_me:4118: \"$ac_link\") >&5 4293 4119 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4294 4120 echo "$ac_f77_v_output" >&5 … … 5190 5016 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 5191 5017 if test "x${prefix}" = xNONE ; then 5192 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib 64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"5193 else 5194 COIN_PKG_CONFIG_PATH="${prefix}/lib 64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"5018 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 5019 else 5020 COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 5195 5021 fi 5196 5022 … … 10293 10119 *-*-irix6*) 10294 10120 # Find out which ABI we are using. 10295 echo '#line 10 295"configure"' > conftest.$ac_ext10121 echo '#line 10121 "configure"' > conftest.$ac_ext 10296 10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10297 10123 (eval $ac_compile) 2>&5 … … 12770 12596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12771 12597 -e 's:$: $lt_compiler_flag:'` 12772 (eval echo "\"\$as_me:12 772: $lt_compile\"" >&5)12598 (eval echo "\"\$as_me:12598: $lt_compile\"" >&5) 12773 12599 (eval "$lt_compile" 2>conftest.err) 12774 12600 ac_status=$? 12775 12601 cat conftest.err >&5 12776 echo "$as_me:12 776: \$? = $ac_status" >&512602 echo "$as_me:12602: \$? = $ac_status" >&5 12777 12603 if (exit $ac_status) && test -s "$ac_outfile"; then 12778 12604 # The compiler can only warn and ignore the option if not recognized … … 13038 12864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13039 12865 -e 's:$: $lt_compiler_flag:'` 13040 (eval echo "\"\$as_me:1 3040: $lt_compile\"" >&5)12866 (eval echo "\"\$as_me:12866: $lt_compile\"" >&5) 13041 12867 (eval "$lt_compile" 2>conftest.err) 13042 12868 ac_status=$? 13043 12869 cat conftest.err >&5 13044 echo "$as_me:1 3044: \$? = $ac_status" >&512870 echo "$as_me:12870: \$? = $ac_status" >&5 13045 12871 if (exit $ac_status) && test -s "$ac_outfile"; then 13046 12872 # The compiler can only warn and ignore the option if not recognized … … 13142 12968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13143 12969 -e 's:$: $lt_compiler_flag:'` 13144 (eval echo "\"\$as_me:1 3144: $lt_compile\"" >&5)12970 (eval echo "\"\$as_me:12970: $lt_compile\"" >&5) 13145 12971 (eval "$lt_compile" 2>out/conftest.err) 13146 12972 ac_status=$? 13147 12973 cat out/conftest.err >&5 13148 echo "$as_me:1 3148: \$? = $ac_status" >&512974 echo "$as_me:12974: \$? = $ac_status" >&5 13149 12975 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13150 12976 then … … 15559 15385 lt_status=$lt_dlunknown 15560 15386 cat > conftest.$ac_ext <<EOF 15561 #line 15 561"configure"15387 #line 15387 "configure" 15562 15388 #include "confdefs.h" 15563 15389 … … 15659 15485 lt_status=$lt_dlunknown 15660 15486 cat > conftest.$ac_ext <<EOF 15661 #line 15 661"configure"15487 #line 15487 "configure" 15662 15488 #include "confdefs.h" 15663 15489 … … 18019 17845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18020 17846 -e 's:$: $lt_compiler_flag:'` 18021 (eval echo "\"\$as_me:1 8021: $lt_compile\"" >&5)17847 (eval echo "\"\$as_me:17847: $lt_compile\"" >&5) 18022 17848 (eval "$lt_compile" 2>conftest.err) 18023 17849 ac_status=$? 18024 17850 cat conftest.err >&5 18025 echo "$as_me:1 8025: \$? = $ac_status" >&517851 echo "$as_me:17851: \$? = $ac_status" >&5 18026 17852 if (exit $ac_status) && test -s "$ac_outfile"; then 18027 17853 # The compiler can only warn and ignore the option if not recognized … … 18123 17949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18124 17950 -e 's:$: $lt_compiler_flag:'` 18125 (eval echo "\"\$as_me:1 8125: $lt_compile\"" >&5)17951 (eval echo "\"\$as_me:17951: $lt_compile\"" >&5) 18126 17952 (eval "$lt_compile" 2>out/conftest.err) 18127 17953 ac_status=$? 18128 17954 cat out/conftest.err >&5 18129 echo "$as_me:1 8129: \$? = $ac_status" >&517955 echo "$as_me:17955: \$? = $ac_status" >&5 18130 17956 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18131 17957 then … … 19693 19519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19694 19520 -e 's:$: $lt_compiler_flag:'` 19695 (eval echo "\"\$as_me:19 695: $lt_compile\"" >&5)19521 (eval echo "\"\$as_me:19521: $lt_compile\"" >&5) 19696 19522 (eval "$lt_compile" 2>conftest.err) 19697 19523 ac_status=$? 19698 19524 cat conftest.err >&5 19699 echo "$as_me:19 699: \$? = $ac_status" >&519525 echo "$as_me:19525: \$? = $ac_status" >&5 19700 19526 if (exit $ac_status) && test -s "$ac_outfile"; then 19701 19527 # The compiler can only warn and ignore the option if not recognized … … 19797 19623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19798 19624 -e 's:$: $lt_compiler_flag:'` 19799 (eval echo "\"\$as_me:19 799: $lt_compile\"" >&5)19625 (eval echo "\"\$as_me:19625: $lt_compile\"" >&5) 19800 19626 (eval "$lt_compile" 2>out/conftest.err) 19801 19627 ac_status=$? 19802 19628 cat out/conftest.err >&5 19803 echo "$as_me:19 803: \$? = $ac_status" >&519629 echo "$as_me:19629: \$? = $ac_status" >&5 19804 19630 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19805 19631 then … … 22004 21830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22005 21831 -e 's:$: $lt_compiler_flag:'` 22006 (eval echo "\"\$as_me:2 2006: $lt_compile\"" >&5)21832 (eval echo "\"\$as_me:21832: $lt_compile\"" >&5) 22007 21833 (eval "$lt_compile" 2>conftest.err) 22008 21834 ac_status=$? 22009 21835 cat conftest.err >&5 22010 echo "$as_me:2 2010: \$? = $ac_status" >&521836 echo "$as_me:21836: \$? = $ac_status" >&5 22011 21837 if (exit $ac_status) && test -s "$ac_outfile"; then 22012 21838 # The compiler can only warn and ignore the option if not recognized … … 22272 22098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22273 22099 -e 's:$: $lt_compiler_flag:'` 22274 (eval echo "\"\$as_me:22 274: $lt_compile\"" >&5)22100 (eval echo "\"\$as_me:22100: $lt_compile\"" >&5) 22275 22101 (eval "$lt_compile" 2>conftest.err) 22276 22102 ac_status=$? 22277 22103 cat conftest.err >&5 22278 echo "$as_me:22 278: \$? = $ac_status" >&522104 echo "$as_me:22104: \$? = $ac_status" >&5 22279 22105 if (exit $ac_status) && test -s "$ac_outfile"; then 22280 22106 # The compiler can only warn and ignore the option if not recognized … … 22376 22202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22377 22203 -e 's:$: $lt_compiler_flag:'` 22378 (eval echo "\"\$as_me:22 378: $lt_compile\"" >&5)22204 (eval echo "\"\$as_me:22204: $lt_compile\"" >&5) 22379 22205 (eval "$lt_compile" 2>out/conftest.err) 22380 22206 ac_status=$? 22381 22207 cat out/conftest.err >&5 22382 echo "$as_me:22 382: \$? = $ac_status" >&522208 echo "$as_me:22208: \$? = $ac_status" >&5 22383 22209 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22384 22210 then
Note: See TracChangeset
for help on using the changeset viewer.