4273 |
fi |
fi |
4274 |
|
|
4275 |
# Do a test to see if this is really a libtool program. |
# Do a test to see if this is really a libtool program. |
4276 |
if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then |
case $host in |
4277 |
|
*cygwin*|*mingw*) |
4278 |
|
wrapper=`echo $file | sed -e 's,.exe$,,'` |
4279 |
|
;; |
4280 |
|
*) |
4281 |
|
wrapper=$file |
4282 |
|
;; |
4283 |
|
esac |
4284 |
|
if (sed -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then |
4285 |
notinst_deplibs= |
notinst_deplibs= |
4286 |
relink_command= |
relink_command= |
4287 |
|
|
4288 |
# If there is no directory component, then add one. |
# If there is no directory component, then add one. |
4289 |
case $file in |
case $file in |
4290 |
*/* | *\\*) . $file ;; |
*/* | *\\*) . $wrapper ;; |
4291 |
*) . ./$file ;; |
*) . ./$wrapper ;; |
4292 |
esac |
esac |
4293 |
|
|
4294 |
# Check the variables that should have been set. |
# Check the variables that should have been set. |
4295 |
if test -z "$notinst_deplibs"; then |
if test -z "$notinst_deplibs"; then |
4296 |
$echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 |
$echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 |
4297 |
exit 1 |
exit 1 |
4298 |
fi |
fi |
4299 |
|
|
4318 |
relink_command= |
relink_command= |
4319 |
# If there is no directory component, then add one. |
# If there is no directory component, then add one. |
4320 |
case $file in |
case $file in |
4321 |
*/* | *\\*) . $file ;; |
*/* | *\\*) . $wrapper ;; |
4322 |
*) . ./$file ;; |
*) . ./$wrapper ;; |
4323 |
esac |
esac |
4324 |
|
|
4325 |
outputname= |
outputname= |