* ltconfig: Set CONFIG_SHELL in libtool.
* ltmain.sh: Use CONFIG_SHELL instead of /bin/sh
+
+Wed Sep 3 12:15:24 1997 Chris Provenzano <proven@cygnus.com>
+
+ * ltconfig: Set CONFIG_SHELL in libtool.
+ * ltmain.sh: Use CONFIG_SHELL instead of /bin/sh
+
Tue Aug 26 16:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (all-sim): Depends on all-readline.
Tue Aug 26 16:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (all-sim): Depends on all-readline.
# The first argument is the name of the installation program.
install_prog="$nonopt"
# The first argument is the name of the installation program.
install_prog="$nonopt"
+ install_prog_shell=""
+
+ # CYGNUS LOCAL: Handle /bin/sh at the start.
+ if test "$install_prog" = "${CONFIG_SHELL}"; then
+ install_prog_shell="$install_prog "
+ install_prog="$1"
+ shift
+ fi
# We need to accept at least all the BSD install flags.
dest=
# We need to accept at least all the BSD install flags.
dest=
shift
# Install the shared library and build the symlinks.
shift
# Install the shared library and build the symlinks.
- $show "$install_prog $dir/$realname $destdir/$realname"
- $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
+ $show "$install_prog_shell$install_prog $dir/$realname $destdir/$realname"
+ $run eval "$install_prog_shell$install_prog $dir/$realname $destdir/$realname" || exit $?
test "X$dlname" = "X$realname" && dlname=
# Support stripping libraries.
test "X$dlname" = "X$realname" && dlname=
# Support stripping libraries.
if test -n "$dlname"; then
# Install the dynamically-loadable library.
if test -n "$dlname"; then
# Install the dynamically-loadable library.
- $show "$install_prog $dir/$dlname $destdir/$dlname"
- $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $?
+ $show "$install_prog_shell$install_prog $dir/$dlname $destdir/$dlname"
+ $run eval "$install_prog_shell$install_prog $dir/$dlname $destdir/$dlname" || exit $?
fi
# Do each command in the postinstall commands.
fi
# Do each command in the postinstall commands.
# Install the pseudo-library for information purposes.
name=`echo "$file" | sed 's%^.*/%%'`
# Install the pseudo-library for information purposes.
name=`echo "$file" | sed 's%^.*/%%'`
- $show "$install_prog $file $destdir/$name"
- $run $install_prog $file $destdir/$name || exit $?
+ $show "$install_prog_shell$install_prog $file $destdir/$name"
+ $run $install_prog_shell$install_prog $file $destdir/$name || exit $?
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
# Install the libtool object if requested.
if test -n "$destfile"; then
# Install the libtool object if requested.
if test -n "$destfile"; then
- $show "$install_prog $file $destfile"
- $run $install_prog $file $destfile || exit $?
+ $show "$install_prog_shell$install_prog $file $destfile"
+ $run $install_prog_shell$install_prog $file $destfile || exit $?
fi
# Install the old object if enabled.
fi
# Install the old object if enabled.
# Deduce the name of the old-style object file.
staticobj=`echo "$file" | sed 's/\.lo$/\.o/;'`
# Deduce the name of the old-style object file.
staticobj=`echo "$file" | sed 's/\.lo$/\.o/;'`
- $show "$install_prog $staticobj $staticdest"
- $run $install_prog $staticobj $staticdest || exit $?
+ $show "$install_prog_shell$install_prog $staticobj $staticdest"
+ $run $install_prog_shell$install_prog $staticobj $staticdest || exit $?
- $show "$install_prog$stripme $file $dest"
- $run $install_prog$stripme $file $dest || exit $?
+ $show "$install_prog_shell$install_prog$stripme $file $dest"
+ $run $install_prog_shell$install_prog$stripme $file $dest || exit $?
# Set up the ranlib parameters.
oldlib="$destdir/$name"
# Set up the ranlib parameters.
oldlib="$destdir/$name"
- $show "$install_prog $file $oldlib"
- $run $install_prog $file $oldlib || exit $?
+ $show "$install_prog_shell$install_prog $file $oldlib"
+ $run $install_prog_shell$install_prog $file $oldlib || exit $?
# Support stripping libraries.
if test -n "$stripme"; then
# Support stripping libraries.
if test -n "$stripme"; then
if test -n "$current_libdirs"; then
# Maybe just do a dry run.
test -n "$run" && current_libdirs=" -n$current_libdirs"
if test -n "$current_libdirs"; then
# Maybe just do a dry run.
test -n "$run" && current_libdirs=" -n$current_libdirs"
- exec $0 --finish$current_libdirs
- exit 1
+ ${CONFIG_SHELL} $0 --finish$current_libdirs
+ exit $?