1999-02-12 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * ltmain.in: create libname.lai at link time, not at install time,
+ but still create it at install time if it is missing
+ Reported by Akim Demaille <demaille@inf.enst.fr>
+
* libltdl/ltdl.c (tryall_dlopen): strcmp filenames was reversed
1999-02-11 Thomas Tanner <tanner@gmx.de>
# Directory that this library needs to be installed in:
libdir='$install_libdir'\
"
+
+ $rm "$output_dir/$outputname"i
+ sed 's/^installed=no$/installed=yes/' \
+ < "$output_dir/$outputname" > "$output_dir/$outputname"i
fi
# Do a symbolic link so that the libtool archive can be found in
# Install the pseudo-library for information purposes.
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
- $show "Creating $instname"
- $rm "$instname"
- sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
+ if test ! -f "$instname"; then
+ # Just in case it was removed...
+ $show "Creating $instname"
+ $rm "$instname"
+ sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
+ fi
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
- $show "$rm $instname"
- $rm "$instname"
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"