4770 |
fi |
fi |
4771 |
|
|
4772 |
# Do a test to see if this is really a libtool program. |
# Do a test to see if this is really a libtool program. |
4773 |
if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then |
case $host in |
4774 |
|
*cygwin*|*mingw*) |
4775 |
|
wrapper=`echo $file | sed -e 's,.exe$,,'` |
4776 |
|
;; |
4777 |
|
*) |
4778 |
|
wrapper=$file |
4779 |
|
;; |
4780 |
|
esac |
4781 |
|
if (sed -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then |
4782 |
notinst_deplibs= |
notinst_deplibs= |
4783 |
relink_command= |
relink_command= |
4784 |
|
|
4785 |
# If there is no directory component, then add one. |
# If there is no directory component, then add one. |
4786 |
case $file in |
case $file in |
4787 |
*/* | *\\*) . $file ;; |
*/* | *\\*) . $wrapper ;; |
4788 |
*) . ./$file ;; |
*) . ./$wrapper ;; |
4789 |
esac |
esac |
4790 |
|
|
4791 |
# Check the variables that should have been set. |
# Check the variables that should have been set. |
4792 |
if test -z "$notinst_deplibs"; then |
if test -z "$notinst_deplibs"; then |
4793 |
$echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 |
$echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 |
4794 |
exit 1 |
exit 1 |
4795 |
fi |
fi |
4796 |
|
|