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

Diff of /libtool/ltmain.in

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

revision 1.200.2.67.2.1 by bkorb, Sun May 13 15:37:52 2001 UTC revision 1.200.2.67.2.2 by bkorb, Sun May 13 19:48:56 2001 UTC
# Line 2  Line 2 
2  #  #
3  # DO NOT EDIT THIS FILE   (ltmain.in)  # DO NOT EDIT THIS FILE   (ltmain.in)
4  #  #
5  # It has been AutoGen-ed  Sunday May 13, 2001 at 08:35:45 AM PDT  # It has been AutoGen-ed  Sunday May 13, 2001 at 12:48:21 PM PDT
6  # From the definitions    ltstr.def  # From the definitions    ltstr.def
7  # and the template file   ltmain.tpl  # and the template file   ltmain.tpl
8  #  #
# Line 354  if test -z "$show_help"; then Line 354  if test -z "$show_help"; then
354        # Accept any command-line options.        # Accept any command-line options.
355        case $arg in        case $arg in
356        -o)        -o)
357          if test "$user_target" != "no"; then  if (test "$user_target" != "no") > /dev/null 2>&1 ; then
358            $echo "$modename: you cannot specify \`-o' more than once" 1>&2    $echo "$modename: you cannot specify \`-o' more than once" 1>&2
359            exit 1    exit 1
360          fi  fi
361          user_target=next          user_target=next
362          ;;          ;;
363    
# Line 461  if test -z "$show_help"; then Line 461  if test -z "$show_help"; then
461        libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`        libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
462        ;;        ;;
463      *)      *)
464        $echo "$modename: you must specify a target with \`-o'" 1>&2    $echo "$modename: you must specify a target with \`-o'" 1>&2
465        exit 1    exit 1
466        ;;        ;;
467      esac      esac
468    
# Line 489  if test -z "$show_help"; then Line 489  if test -z "$show_help"; then
489      case $libobj in      case $libobj in
490      *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;      *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
491      *)      *)
492        $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2    $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
493        exit 1    exit 1
494        ;;        ;;
495      esac      esac
496    
# Line 527  if test -z "$show_help"; then Line 527  if test -z "$show_help"; then
527          # If $tagname still isn't set, then no tagged configuration          # If $tagname still isn't set, then no tagged configuration
528          # was found and let the user know that the "--tag" command          # was found and let the user know that the "--tag" command
529          # line option must be used.          # line option must be used.
530          if test -z "$tagname"; then  if (test -z "$tagname") > /dev/null 2>&1 ; then
531            echo "$modename: unable to infer tagged configuration"    $echo "$modename: unable to infer tagged configuration
532            echo "$modename: specify a tag with \`--tag'" 1>&2          specify a tag with \`--tag'" 1>&2
533            exit 1    exit 1
534  #        else  fi
535  #          echo "$modename: using $tagname tagged configuration"  #       echo "$modename: using $tagname tagged configuration"
         fi  
536          ;;          ;;
537        esac        esac
538      fi      fi
# Line 546  if test -z "$show_help"; then Line 545  if test -z "$show_help"; then
545        xdir=$xdir/        xdir=$xdir/
546      fi      fi
547      lobj=${xdir}$objdir/$objname      lobj=${xdir}$objdir/$objname
548    if (test -z "$base_compile") > /dev/null 2>&1 ; then
549      if test -z "$base_compile"; then    $echo "$modename: you must specify a compilation command" 1>&2
550        $echo "$modename: you must specify a compilation command" 1>&2    $echo "$help" 1>&2
551        $echo "$help" 1>&2    exit 1
552        exit 1  fi
     fi  
553    
554      # Delete any leftover library objects.      # Delete any leftover library objects.
555      if test "$build_old_libs" = yes; then      if test "$build_old_libs" = yes; then
# Line 595  if test -z "$show_help"; then Line 593  if test -z "$show_help"; then
593          sleep 2          sleep 2
594        done        done
595      elif test "$need_locks" = warn; then      elif test "$need_locks" = warn; then
596        if test -f "$lockfile"; then  if (test -f "$lockfile") > /dev/null 2>&1 ; then
597          echo "\    cat >&2 <<_EOF_
598  *** ERROR, $lockfile exists and contains:  *** ERROR, $lockfile exists and contains:
599  `cat $lockfile 2>/dev/null`  `cat $lockfile 2>/dev/null`
600    
601  This indicates that another process is trying to use the same  but it should contain:
602  temporary object file, and libtool could not work around it because  $srcfile
 your compiler does not support \`-c' and \`-o' together.  If you  
 repeat this compilation, it may succeed, by chance, but you had better  
 avoid parallel builds (make -j) in this platform, or get a better  
 compiler."  
603    
604          $run $rm $removelist  This indicates that another process is trying to use the same temporary
605          exit 1  object file, and libtool could not work around it because your compiler
606        fi  does not support \\`-c' and \\`-o' together.  If you repeat this
607    compilation, it may succeed, by chance, but you had better avoid parallel
608    builds (make -j) on this platform, or get another compiler.
609    _EOF_
610      $run $rm $removelist
611      exit 1
612    fi
613        echo $srcfile > "$lockfile"        echo $srcfile > "$lockfile"
614      fi      fi
615    
# Line 668  EOF Line 668  EOF
668    
669        if test "$need_locks" = warn &&        if test "$need_locks" = warn &&
670           test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then           test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
671          echo "\    cat >&2 <<_EOF_
672  *** ERROR, $lockfile contains:  *** ERROR, $lockfile exists and contains:
673  `cat $lockfile 2>/dev/null`  `cat $lockfile 2>/dev/null`
674    
675  but it should contain:  but it should contain:
676  $srcfile  $srcfile
677    
678  This indicates that another process is trying to use the same  This indicates that another process is trying to use the same temporary
679  temporary object file, and libtool could not work around it because  object file, and libtool could not work around it because your compiler
680  your compiler does not support \`-c' and \`-o' together.  If you  does not support \\`-c' and \\`-o' together.  If you repeat this
681  repeat this compilation, it may succeed, by chance, but you had better  compilation, it may succeed, by chance, but you had better avoid parallel
682  avoid parallel builds (make -j) in this platform, or get a better  builds (make -j) on this platform, or get another compiler.
683  compiler."  _EOF_
684      $run $rm $removelist
685          $run $rm $removelist    exit 1
         exit 1  
686        fi        fi
687    
688        # Just move the object if needed, then go on to compile the next one        # Just move the object if needed, then go on to compile the next one
# Line 738  EOF Line 737  EOF
737    
738        if test "$need_locks" = warn &&        if test "$need_locks" = warn &&
739           test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then           test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
740          echo "\    cat >&2 <<_EOF_
741  *** ERROR, $lockfile contains:  *** ERROR, $lockfile exists and contains:
742  `cat $lockfile 2>/dev/null`  `cat $lockfile 2>/dev/null`
743    
744  but it should contain:  but it should contain:
745  $srcfile  $srcfile
746    
747  This indicates that another process is trying to use the same  This indicates that another process is trying to use the same temporary
748  temporary object file, and libtool could not work around it because  object file, and libtool could not work around it because your compiler
749  your compiler does not support \`-c' and \`-o' together.  If you  does not support \\`-c' and \\`-o' together.  If you repeat this
750  repeat this compilation, it may succeed, by chance, but you had better  compilation, it may succeed, by chance, but you had better avoid parallel
751  avoid parallel builds (make -j) in this platform, or get a better  builds (make -j) on this platform, or get another compiler.
752  compiler."  _EOF_
753      $run $rm $removelist
754          $run $rm $removelist    exit 1
         exit 1  
755        fi        fi
756    
757        # Just move the object if needed        # Just move the object if needed
# Line 4945  relink_command=\"$relink_command\"" Line 4943  relink_command=\"$relink_command\""
4943    
4944      # The first argument is the command name.      # The first argument is the command name.
4945      cmd="$nonopt"      cmd="$nonopt"
4946      if (test -z "$cmd") > /dev/null 2>&1 ; then      
4947    if (test -z "$cmd") > /dev/null 2>&1 ; then
4948    $echo "$modename: you must specify a COMMAND" 1>&2    $echo "$modename: you must specify a COMMAND" 1>&2
4949    $echo "$help" 1>&2    $echo "$help" 1>&2
4950    exit 1    exit 1
4951  fi  fi
4952      # Handle -dlopen flags immediately.      # Handle -dlopen flags immediately.
4953      for file in $execute_dlfiles; do      for file in $execute_dlfiles; do
4954        if (test ! -f "$file") > /dev/null 2>&1 ; then  if (test ! -f "$file") > /dev/null 2>&1 ; then
4955    $echo "$modename: \`$file' is not a file" 1>&2    $echo "$modename: \`$file' is not a file" 1>&2
4956    $echo "$help" 1>&2    $echo "$help" 1>&2
4957    exit 1    exit 1
# Line 4962  fi Line 4961  fi
4961        case $file in        case $file in
4962        *.la)        *.la)
4963          # Check to see that this really is a libtool archive.          # Check to see that this really is a libtool archive.
4964          if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") > /dev/null 2>&1 ; then  :  if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") > /dev/null 2>&1 ; then  :
4965  else  else
4966    $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2    $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
4967    $echo "$help" 1>&2    $echo "$help" 1>&2
# Line 4988  fi Line 4987  fi
4987    
4988          dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`          dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
4989          test "X$dir" = "X$file" && dir=.          test "X$dir" = "X$file" && dir=.
4990    if (test -f "$dir/$objdir/$dlname") > /dev/null 2>&1 ; then  :
         if (test -f "$dir/$objdir/$dlname") > /dev/null 2>&1 ; then  :  
4991  else  else
4992    $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2    $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
4993    $echo "$help" 1>&2    $echo "$help" 1>&2

Legend:
Removed from v.1.200.2.67.2.1  
changed lines
  Added in v.1.200.2.67.2.2

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