From 8ebcdd4119dd35cc7c03e55c9982b0dbabe1d058 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 16 Aug 2000 11:40:39 +0000 Subject: [PATCH] add work-around for ultrix sh and for not running ranlib git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8963 ec53bebd-3082-4978-b11e-865c3cabbd6b --- ltconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ltconfig b/ltconfig index cc814fa3a..335271c15 100755 --- a/ltconfig +++ b/ltconfig @@ -399,7 +399,7 @@ exec 5>>./config.log if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi if test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi -if test -n "$cache_file" && test -r "$cache_file"; then +if test -n "$cache_file" && test -r "$cache_file" && test -f "$cache_file"; then echo "loading cache $cache_file within ltconfig" . $cache_file fi @@ -527,6 +527,11 @@ old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= +if test -n "$RANLIB"; then + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" +fi + # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru