Changeset 2660
- Timestamp:
- Dec 1, 2012 1:38:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/ASL/trunk/configure
r2620 r2660 1071 1071 icl/link). Default when mentioned: mingw. Default 1072 1072 when not mentioned: disabled. 1073 --enable-static-standardlibs 1074 whether to link against static standard libraries 1075 (libgcc, libgfortran, libstdc++) 1073 1076 --enable-static[=PKGS] 1074 1077 build static libraries [default=no] … … 1938 1941 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 1939 1942 fi 1943 1944 1945 1946 # check whether to add flags for static linking against standard libraries 1947 # Check whether --enable-static-standardlibs or --disable-static-standardlibs was given. 1948 if test "${enable_static_standardlibs+set}" = set; then 1949 enableval="$enable_static_standardlibs" 1950 case "$enableval" in 1951 no | yes | auto ) ;; 1952 *) 1953 { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5 1954 echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;} 1955 { (exit 1); exit 1; }; } ;; 1956 esac 1957 use_static_standardlibs=$enableval 1958 else 1959 if test $enable_shared = yes ; then 1960 use_static_standardlibs = no 1961 else 1962 use_static_standardlibs = auto 1963 fi 1964 1965 1966 fi; 1967 1968 1940 1969 1941 1970 … … 3064 3093 CFLAGS="$OPT_CFLAGS" 3065 3094 fi 3095 3066 3096 else 3067 3097 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" … … 3231 3261 ;; 3232 3262 esac 3263 3264 # check whether to add flags for static linking against standard libraries to LDFLAGS 3265 if test x$use_static_standardlibs != xno ; then 3266 case $build in 3267 *-mingw*) 3268 static_standardlib_flag=-static 3269 ;; 3270 *) 3271 static_standardlib_flag=-static-libgcc 3272 ;; 3273 esac 3274 case " $LDFLAGS " in 3275 *" $static_standardlib_flag "* ) ;; 3276 *) 3277 echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5 3278 echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6 3279 coin_save_LDFLAGS="$LDFLAGS" 3280 LDFLAGS="$LDFLAGS $static_standardlib_flag" 3281 cat >conftest.$ac_ext <<_ACEOF 3282 /* confdefs.h. */ 3283 _ACEOF 3284 cat confdefs.h >>conftest.$ac_ext 3285 cat >>conftest.$ac_ext <<_ACEOF 3286 /* end confdefs.h. */ 3287 3288 int 3289 main () 3290 { 3291 int i=0; 3292 ; 3293 return 0; 3294 } 3295 _ACEOF 3296 rm -f conftest.$ac_objext conftest$ac_exeext 3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3298 (eval $ac_link) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (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\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest$ac_exeext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 echo "$as_me:$LINENO: result: yes" >&5 3319 echo "${ECHO_T}yes" >&6 3320 else 3321 echo "$as_me: failed program was:" >&5 3322 sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 echo "$as_me:$LINENO: result: no" >&5 3325 echo "${ECHO_T}no" >&6 3326 LDFLAGS="$coin_save_LDFLAGS" 3327 if test $use_static_standardlibs = yes ; then 3328 { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5 3329 echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;} 3330 { (exit 1); exit 1; }; } 3331 fi 3332 3333 fi 3334 rm -f conftest.err conftest.$ac_objext \ 3335 conftest$ac_exeext conftest.$ac_ext 3336 ;; 3337 esac 3338 fi 3233 3339 3234 3340 ac_ext=c … … 4853 4959 *-*-irix6*) 4854 4960 # Find out which ABI we are using. 4855 echo '#line 4 855"configure"' > conftest.$ac_ext4961 echo '#line 4961 "configure"' > conftest.$ac_ext 4856 4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4857 4963 (eval $ac_compile) 2>&5 … … 6452 6558 6453 6559 # Provide some information about the compiler. 6454 echo "$as_me:6 454:" \6560 echo "$as_me:6560:" \ 6455 6561 "checking for Fortran 77 compiler version" >&5 6456 6562 ac_compiler=`set X $ac_compile; echo $2` … … 7519 7625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7520 7626 -e 's:$: $lt_compiler_flag:'` 7521 (eval echo "\"\$as_me:7 521: $lt_compile\"" >&5)7627 (eval echo "\"\$as_me:7627: $lt_compile\"" >&5) 7522 7628 (eval "$lt_compile" 2>conftest.err) 7523 7629 ac_status=$? 7524 7630 cat conftest.err >&5 7525 echo "$as_me:7 525: \$? = $ac_status" >&57631 echo "$as_me:7631: \$? = $ac_status" >&5 7526 7632 if (exit $ac_status) && test -s "$ac_outfile"; then 7527 7633 # The compiler can only warn and ignore the option if not recognized … … 7787 7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7788 7894 -e 's:$: $lt_compiler_flag:'` 7789 (eval echo "\"\$as_me:7 789: $lt_compile\"" >&5)7895 (eval echo "\"\$as_me:7895: $lt_compile\"" >&5) 7790 7896 (eval "$lt_compile" 2>conftest.err) 7791 7897 ac_status=$? 7792 7898 cat conftest.err >&5 7793 echo "$as_me:7 793: \$? = $ac_status" >&57899 echo "$as_me:7899: \$? = $ac_status" >&5 7794 7900 if (exit $ac_status) && test -s "$ac_outfile"; then 7795 7901 # The compiler can only warn and ignore the option if not recognized … … 7891 7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7892 7998 -e 's:$: $lt_compiler_flag:'` 7893 (eval echo "\"\$as_me:7 893: $lt_compile\"" >&5)7999 (eval echo "\"\$as_me:7999: $lt_compile\"" >&5) 7894 8000 (eval "$lt_compile" 2>out/conftest.err) 7895 8001 ac_status=$? 7896 8002 cat out/conftest.err >&5 7897 echo "$as_me: 7897: \$? = $ac_status" >&58003 echo "$as_me:8003: \$? = $ac_status" >&5 7898 8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7899 8005 then … … 10236 10342 lt_status=$lt_dlunknown 10237 10343 cat > conftest.$ac_ext <<EOF 10238 #line 10 238"configure"10344 #line 10344 "configure" 10239 10345 #include "confdefs.h" 10240 10346 … … 10336 10442 lt_status=$lt_dlunknown 10337 10443 cat > conftest.$ac_ext <<EOF 10338 #line 10 338"configure"10444 #line 10444 "configure" 10339 10445 #include "confdefs.h" 10340 10446 … … 12680 12786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12681 12787 -e 's:$: $lt_compiler_flag:'` 12682 (eval echo "\"\$as_me:12 682: $lt_compile\"" >&5)12788 (eval echo "\"\$as_me:12788: $lt_compile\"" >&5) 12683 12789 (eval "$lt_compile" 2>conftest.err) 12684 12790 ac_status=$? 12685 12791 cat conftest.err >&5 12686 echo "$as_me:12 686: \$? = $ac_status" >&512792 echo "$as_me:12792: \$? = $ac_status" >&5 12687 12793 if (exit $ac_status) && test -s "$ac_outfile"; then 12688 12794 # The compiler can only warn and ignore the option if not recognized … … 12784 12890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12785 12891 -e 's:$: $lt_compiler_flag:'` 12786 (eval echo "\"\$as_me:12 786: $lt_compile\"" >&5)12892 (eval echo "\"\$as_me:12892: $lt_compile\"" >&5) 12787 12893 (eval "$lt_compile" 2>out/conftest.err) 12788 12894 ac_status=$? 12789 12895 cat out/conftest.err >&5 12790 echo "$as_me:12 790: \$? = $ac_status" >&512896 echo "$as_me:12896: \$? = $ac_status" >&5 12791 12897 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12792 12898 then … … 14354 14460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14355 14461 -e 's:$: $lt_compiler_flag:'` 14356 (eval echo "\"\$as_me:14 356: $lt_compile\"" >&5)14462 (eval echo "\"\$as_me:14462: $lt_compile\"" >&5) 14357 14463 (eval "$lt_compile" 2>conftest.err) 14358 14464 ac_status=$? 14359 14465 cat conftest.err >&5 14360 echo "$as_me:14 360: \$? = $ac_status" >&514466 echo "$as_me:14466: \$? = $ac_status" >&5 14361 14467 if (exit $ac_status) && test -s "$ac_outfile"; then 14362 14468 # The compiler can only warn and ignore the option if not recognized … … 14458 14564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14459 14565 -e 's:$: $lt_compiler_flag:'` 14460 (eval echo "\"\$as_me:14 460: $lt_compile\"" >&5)14566 (eval echo "\"\$as_me:14566: $lt_compile\"" >&5) 14461 14567 (eval "$lt_compile" 2>out/conftest.err) 14462 14568 ac_status=$? 14463 14569 cat out/conftest.err >&5 14464 echo "$as_me:14 464: \$? = $ac_status" >&514570 echo "$as_me:14570: \$? = $ac_status" >&5 14465 14571 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14466 14572 then … … 16665 16771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16666 16772 -e 's:$: $lt_compiler_flag:'` 16667 (eval echo "\"\$as_me:16 667: $lt_compile\"" >&5)16773 (eval echo "\"\$as_me:16773: $lt_compile\"" >&5) 16668 16774 (eval "$lt_compile" 2>conftest.err) 16669 16775 ac_status=$? 16670 16776 cat conftest.err >&5 16671 echo "$as_me:16 671: \$? = $ac_status" >&516777 echo "$as_me:16777: \$? = $ac_status" >&5 16672 16778 if (exit $ac_status) && test -s "$ac_outfile"; then 16673 16779 # The compiler can only warn and ignore the option if not recognized … … 16933 17039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16934 17040 -e 's:$: $lt_compiler_flag:'` 16935 (eval echo "\"\$as_me:1 6935: $lt_compile\"" >&5)17041 (eval echo "\"\$as_me:17041: $lt_compile\"" >&5) 16936 17042 (eval "$lt_compile" 2>conftest.err) 16937 17043 ac_status=$? 16938 17044 cat conftest.err >&5 16939 echo "$as_me:1 6939: \$? = $ac_status" >&517045 echo "$as_me:17045: \$? = $ac_status" >&5 16940 17046 if (exit $ac_status) && test -s "$ac_outfile"; then 16941 17047 # The compiler can only warn and ignore the option if not recognized … … 17037 17143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17038 17144 -e 's:$: $lt_compiler_flag:'` 17039 (eval echo "\"\$as_me:17 039: $lt_compile\"" >&5)17145 (eval echo "\"\$as_me:17145: $lt_compile\"" >&5) 17040 17146 (eval "$lt_compile" 2>out/conftest.err) 17041 17147 ac_status=$? 17042 17148 cat out/conftest.err >&5 17043 echo "$as_me:17 043: \$? = $ac_status" >&517149 echo "$as_me:17149: \$? = $ac_status" >&5 17044 17150 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17045 17151 then
Note: See TracChangeset
for help on using the changeset viewer.