Changeset 203 for ThirdParty/Lapack


Ignore:
Timestamp:
Dec 21, 2006 12:11:00 AM (15 years ago)
Author:
andreasw
Message:

corrected libtool fixes on Cygwin - was screwed up after re-use changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/configure

    r197 r203  
    25532553# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
    25542554case "$CC" in
    2555   cl* | */cl*)
     2555  cl* | */cl* | CL* | */CL* )
    25562556    if test "$ac_cv_prog_cc_g" = yes ; then
    25572557      ac_cv_prog_cc_g=no
     
    32953295      *-cygwin* | *-mingw*)
    32963296        case $F77 in
    3297           ifort* | */ifort*)
     3297          ifort* | */ifort* | IFORT* | */IFORT* )
    32983298            coin_opt_fflags='-O3'
    32993299            coin_add_fflags='-nologo -MT'
     
    1994519945
    1994619946
    19947 # NEW: If libtool exists in the directory higher up, we use that one
    19948 #      instead of creating a new one
    19949 
    19950 if test "x$LIBTOOL" = x; then
    19951   # We check for this header here in a non-standard way to avoid warning
    19952   # messages
     19947# We check for this header here in a non-standard way to avoid warning
     19948# messages
    1995319949
    1995419950
     
    1996519961# - paths generated for .lib files is not run through cygpath -w
    1996619962
    19967 
    19968 # - lib includes subdirectory information; we want to replace
    19969 #
    19970 # old_archive_cmds="lib /OUT:\$oldlib\$oldobjs\$old_deplibs"
    19971 #
    19972 # by
    19973 #
    19974 # old_archive_cmds="echo \$oldlib | grep .libs >/dev/null; if test \$? = 0; then cd .libs; lib /OUT:\`echo \$oldlib\$oldobjs\$old_deplibs | sed -e s@\.libs/@@g\`; cd .. ; else lib /OUT:\$oldlib\$oldobjs\$old_deplibs ; fi"
    19975 #
    19976 #          -e 's%old_archive_cmds="lib /OUT:\\\$oldlib\\\$oldobjs\\\$old_deplibs"%old_archive_cmds="echo \\\$oldlib \| grep .libs >/dev/null; if test \\\$? = 0; then cd .libs; lib /OUT:\\\`echo \\\$oldlib\\\$oldobjs\\\$old_deplibs \| sed -e s@\\.libs/@@g\\\`; cd .. ; else lib /OUT:\\\$oldlib\\\$oldobjs\\\$old_deplibs; fi"%' \
    19977 
    19978 # The following was a hack for chaniing @BACKSLASH to \
    19979 #          -e 'sYcompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"'`Ycompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"' | \$Xsed -e '"'"'s%@BACKSLASH@%\\\\\\\\\\\\\\\\%g'"'"'`Y' \
    19980 
    19981   # Correct cygpath for minGW (ToDo!)
    19982   case $build in
    19983     *-mingw*)
    19984       CYGPATH_W=echo
     19963# Correct cygpath for minGW (ToDo!)
     19964case $build in
     19965  *-mingw*)
     19966    CYGPATH_W=echo
     19967    ;;
     19968esac
     19969
     19970case $build in
     19971  *-cygwin* | *-mingw*)
     19972  case "$CXX" in
     19973    cl* | */cl* | CL* | */CL*)
     19974      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
     19975echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
     19976      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     19977          -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     19978          -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     19979          -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     19980          -e 's%lib /OUT:%lib -OUT:%' \
     19981          -e "s%cygpath -w%$CYGPATH_W%" \
     19982          -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
     19983          -e 's/$AR t/lib -nologo -list/' \
     19984          -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     19985          -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
     19986      libtool > conftest.bla
     19987
     19988      mv conftest.bla libtool
     19989      chmod 755 libtool
     19990      ;;
     19991    *)
     19992      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
     19993echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
     19994      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     19995          -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
     19996          -e 's|libext="lib"|libext="a"|' \
     19997      libtool > conftest.bla
     19998
     19999      mv conftest.bla libtool
     20000      chmod 755 libtool
    1998520001      ;;
    1998620002  esac
    19987 
    19988   case $build in
    19989     *-cygwin* | *-mingw*)
    19990     case "$CXX" in
    19991       cl* | */cl* | CL* | */CL*)
    19992         { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
    19993 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
    19994         sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19995             -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19996             -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    19997             -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    19998             -e 's%lib /OUT:%lib -OUT:%' \
    19999             -e "s%cygpath -w%$CYGPATH_W%" \
    20000             -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
    20001             -e 's/$AR t/lib -nologo -list/' \
    20002             -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
    20003             -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
    20004         libtool > conftest.bla
    20005 
    20006         mv conftest.bla libtool
    20007         chmod 755 libtool
    20008         ;;
    20009       *)
    20010         { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
    20011 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
    20012         sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    20013             -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
    20014             -e 's|libext="lib"|libext="a"|' \
    20015         libtool > conftest.bla
    20016 
    20017         mv conftest.bla libtool
    20018         chmod 755 libtool
    20019         ;;
    20020     esac
    20021   esac
    20022 fi
    20023 
     20003esac
    2002420004
    2002520005
Note: See TracChangeset for help on using the changeset viewer.