/[libtool]/libtool/ltmain.in
ViewVC logotype

Diff of /libtool/ltmain.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.334.2.70 by pogma, Tue May 31 03:47:34 2005 UTC revision 1.334.2.71 by rwild, Sun Jun 5 17:36:50 2005 UTC
# Line 133  show_help= Line 133  show_help=
133  execute_dlfiles=  execute_dlfiles=
134  lo2o="s/\\.lo\$/.${objext}/"  lo2o="s/\\.lo\$/.${objext}/"
135  o2lo="s/\\.${objext}\$/.lo/"  o2lo="s/\\.${objext}\$/.lo/"
 quote_scanset='[[~#^*{};<>?'"'"'        ]'  
136    
137  #####################################  #####################################
138  # Shell function definitions:  # Shell function definitions:
# Line 192  func_infer_tag () Line 191  func_infer_tag ()
191        CC_quoted=        CC_quoted=
192        for arg in $CC; do        for arg in $CC; do
193          case $arg in          case $arg in
194            *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")            *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
195            arg="\"$arg\""            arg="\"$arg\""
196            ;;            ;;
197          esac          esac
# Line 213  func_infer_tag () Line 212  func_infer_tag ()
212              for arg in $CC; do              for arg in $CC; do
213              # Double-quote args containing other shell metacharacters.              # Double-quote args containing other shell metacharacters.
214              case $arg in              case $arg in
215                *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")                *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
216                arg="\"$arg\""                arg="\"$arg\""
217                ;;                ;;
218              esac              esac
# Line 627  if test -z "$show_help"; then Line 626  if test -z "$show_help"; then
626              # Many Bourne shells cannot handle close brackets correctly              # Many Bourne shells cannot handle close brackets correctly
627              # in scan sets, so we specify it separately.              # in scan sets, so we specify it separately.
628              case $arg in              case $arg in
629                *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")                *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
630                arg="\"$arg\""                arg="\"$arg\""
631                ;;                ;;
632              esac              esac
# Line 662  if test -z "$show_help"; then Line 661  if test -z "$show_help"; then
661        # in scan sets (worked around with variable expansion),        # in scan sets (worked around with variable expansion),
662        # and furthermore cannot handle '|' '&' '(' ')' in scan sets        # and furthermore cannot handle '|' '&' '(' ')' in scan sets
663        # at all, so we specify them separately.        # at all, so we specify them separately.
664        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
665          lastarg="\"$lastarg\""          lastarg="\"$lastarg\""
666          ;;          ;;
667        esac        esac
# Line 737  if test -z "$show_help"; then Line 736  if test -z "$show_help"; then
736    
737      qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`      qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
738      case $qlibobj in      case $qlibobj in
739        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
740          qlibobj="\"$qlibobj\"" ;;          qlibobj="\"$qlibobj\"" ;;
741      esac      esac
742      if test "X$libobj" != "X$qlibobj"; then      test "X$libobj" != "X$qlibobj" \
743          $echo "$modename: libobj name \`$libobj' may not contain shell special characters."          && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
744          exit $EXIT_FAILURE          && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
     fi  
745      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
746      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
747      if test "X$xdir" = "X$obj"; then      if test "X$xdir" = "X$obj"; then
# Line 824  compiler." Line 822  compiler."
822      fi      fi
823      qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`      qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
824      case $qsrcfile in      case $qsrcfile in
825        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
826        qsrcfile="\"$qsrcfile\"" ;;        qsrcfile="\"$qsrcfile\"" ;;
827      esac      esac
828    
# Line 1111  EOF Line 1109  EOF
1109        arg="$1"        arg="$1"
1110        shift        shift
1111        case $arg in        case $arg in
1112        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
1113          qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test          qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1114          ;;          ;;
1115        *) qarg=$arg ;;        *) qarg=$arg ;;
# Line 1543  EOF Line 1541  EOF
1541          # to be aesthetically quoted because they are evaled later.          # to be aesthetically quoted because they are evaled later.
1542          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1543          case $arg in          case $arg in
1544          *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")          *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1545            arg="\"$arg\""            arg="\"$arg\""
1546            ;;            ;;
1547          esac          esac
# Line 1659  EOF Line 1657  EOF
1657          for flag in $args; do          for flag in $args; do
1658            IFS="$save_ifs"            IFS="$save_ifs"
1659            case $flag in            case $flag in
1660              *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
1661              flag="\"$flag\""              flag="\"$flag\""
1662              ;;              ;;
1663            esac            esac
# Line 1677  EOF Line 1675  EOF
1675          for flag in $args; do          for flag in $args; do
1676            IFS="$save_ifs"            IFS="$save_ifs"
1677            case $flag in            case $flag in
1678              *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
1679              flag="\"$flag\""              flag="\"$flag\""
1680              ;;              ;;
1681            esac            esac
# Line 1710  EOF Line 1708  EOF
1708          # to be aesthetically quoted because they are evaled later.          # to be aesthetically quoted because they are evaled later.
1709          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1710          case $arg in          case $arg in
1711          *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")          *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1712            arg="\"$arg\""            arg="\"$arg\""
1713            ;;            ;;
1714          esac          esac
# Line 1844  EOF Line 1842  EOF
1842          # to be aesthetically quoted because they are evaled later.          # to be aesthetically quoted because they are evaled later.
1843          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`          arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1844          case $arg in          case $arg in
1845          *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")          *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1846            arg="\"$arg\""            arg="\"$arg\""
1847            ;;            ;;
1848          esac          esac
# Line 5367  relink_command=\"$relink_command\"" Line 5365  relink_command=\"$relink_command\""
5365        # Aesthetically quote it.        # Aesthetically quote it.
5366        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5367        case $arg in        case $arg in
5368        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5369          arg="\"$arg\""          arg="\"$arg\""
5370          ;;          ;;
5371        esac        esac
# Line 5383  relink_command=\"$relink_command\"" Line 5381  relink_command=\"$relink_command\""
5381      # Aesthetically quote it.      # Aesthetically quote it.
5382      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5383      case $arg in      case $arg in
5384      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
5385        arg="\"$arg\""        arg="\"$arg\""
5386        ;;        ;;
5387      esac      esac
# Line 5431  relink_command=\"$relink_command\"" Line 5429  relink_command=\"$relink_command\""
5429        # Aesthetically quote the argument.        # Aesthetically quote the argument.
5430        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5431        case $arg in        case $arg in
5432        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5433          arg="\"$arg\""          arg="\"$arg\""
5434          ;;          ;;
5435        esac        esac

Legend:
Removed from v.1.334.2.70  
changed lines
  Added in v.1.334.2.71

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26