1
1
# ltmain.sh - Provide generalized library-building support services.
2
2
# NOTE: Changing this file will not affect anything until you rerun configure.
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
5
5
# Free Software Foundation, Inc.
6
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
24
24
# configuration script generated by Autoconf, you may include it under
25
25
# the same distribution terms that you use for the rest of that program.
29
# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
30
# is ksh but when the shell is invoked as "sh" and the current value of
31
# the _XPG environment variable is not equal to 1 (one), the special
32
# positional parameter $0, within a function call, is the name of the
36
# The name of this program:
37
progname=`echo "$progpath" | $SED $basename`
47
TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
27
50
# Check that we have a working $echo.
28
51
if test "X$1" = X--no-reexec; then
29
52
# Discard the --no-reexec flag, and continue.
38
61
# Restart under the correct shell, and then maybe $echo will work.
39
exec $SHELL "$0" --no-reexec ${1+"$@"}
62
exec $SHELL "$progpath" --no-reexec ${1+"$@"}
42
65
if test "X$1" = X--fallback-echo; then
51
# The name of this program.
52
progname=`$echo "$0" | ${SED} 's%^.*/%%'`
59
TIMESTAMP=" (1.1220.2.60 2004/01/25 12:25:08) Debian$Rev: 192 $"
62
75
help="Try \`$progname --help' for more information."
63
76
magic="%%%MAGIC variable%%%"
119
132
# Shell function definitions:
120
133
# This seems to be the best place for them
135
# func_win32_libid arg
136
# return the library type of file 'arg'
122
138
# Need a lot of goo to handle *both* DLLs and import libs
123
139
# Has to be a shell function in order to 'eat' the argument
124
140
# that is supplied when $file_magic_command is called.
141
func_win32_libid () {
126
142
win32_libid_type="unknown"
127
143
win32_fileres=`file -L $1 2>/dev/null`
128
144
case $win32_fileres in
132
148
*ar\ archive*) # could be an import, or static
133
149
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
134
grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
150
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
135
151
win32_nmres=`eval $NM -f posix -A $1 | \
136
152
sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
137
153
if test "X$win32_nmres" = "Ximport" ; then
155
171
$echo $win32_libid_type
176
# Infer tagged configuration to use if any are available and
177
# if one wasn't chosen via the "--tag" command line option.
178
# Only attempt this if the compiler in the base compile
179
# command doesn't match the default compiler.
180
# arg is usually of the form 'gcc ...'
182
if test -n "$available_tags" && test -z "$tagname"; then
186
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
190
CC_quoted="$CC_quoted $arg"
193
# Blanks in the command may have been stripped by the calling shell,
194
# but not from the CC environment variable when configure was run.
195
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
196
# Blanks at the start of $base_compile will cause this to fail
197
# if we don't check for them as well.
199
for z in $available_tags; do
200
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
201
# Evaluate the configuration.
202
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
205
# Double-quote args containing other shell metacharacters.
207
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
211
CC_quoted="$CC_quoted $arg"
214
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
215
# The compiler in the base compile command matches
216
# the one in the tagged configuration.
217
# Assume this is the tagged configuration we want.
224
# If $tagname still isn't set, then no tagged configuration
225
# was found and let the user know that the "--tag" command
226
# line option must be used.
227
if test -z "$tagname"; then
228
$echo "$modename: unable to infer tagged configuration"
229
$echo "$modename: specify a tag with \`--tag'" 1>&2
232
# $echo "$modename: using $tagname tagged configuration"
158
238
# End of Shell function definitions
159
239
#####################################
242
eval std_shrext=\"$shrext_cmds\"
161
244
# Parse our command line options once, thoroughly.
162
245
while test "$#" -gt 0
193
276
# not specially marked.
196
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
279
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
197
280
taglist="$taglist $tagname"
198
281
# Evaluate the configuration.
199
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
282
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
201
284
$echo "$progname: ignoring unknown tag $tagname" 1>&2
225
308
$echo "Copyright (C) 2003 Free Software Foundation, Inc."
226
309
$echo "This is free software; see the source for copying conditions. There is NO"
227
310
$echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
232
${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
315
${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
233
316
# Now print the configurations for the tags.
234
317
for tagname in $taglist; do
235
${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
318
${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
513
596
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
515
598
$echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
520
# Infer tagged configuration to use if any are available and
521
# if one wasn't chosen via the "--tag" command line option.
522
# Only attempt this if the compiler in the base compile
523
# command doesn't match the default compiler.
524
if test -n "$available_tags" && test -z "$tagname"; then
525
case $base_compile in
526
# Blanks in the command may have been stripped by the calling shell,
527
# but not from the CC environment variable when configure was run.
528
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
529
# Blanks at the start of $base_compile will cause this to fail
530
# if we don't check for them as well.
532
for z in $available_tags; do
533
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
534
# Evaluate the configuration.
535
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
536
case "$base_compile " in
537
"$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
538
# The compiler in the base compile command matches
539
# the one in the tagged configuration.
540
# Assume this is the tagged configuration we want.
547
# If $tagname still isn't set, then no tagged configuration
548
# was found and let the user know that the "--tag" command
549
# line option must be used.
550
if test -z "$tagname"; then
551
$echo "$modename: unable to infer tagged configuration"
552
$echo "$modename: specify a tag with \`--tag'" 1>&2
555
# $echo "$modename: using $tagname tagged configuration"
603
func_infer_tag $base_compile
561
605
for arg in $later; do
619
663
output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
620
664
lockfile="$output_obj.lock"
621
665
removelist="$removelist $output_obj $lockfile"
622
trap "$run $rm $removelist; exit 1" 1 2 15
666
trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
629
673
# Lock this critical section if it is needed
630
674
# We use this script file to make the link, it avoids creating a new file
631
675
if test "$need_locks" = yes; then
632
until $run ln "$0" "$lockfile" 2>/dev/null; do
676
until $run ln "$progpath" "$lockfile" 2>/dev/null; do
633
677
$show "Waiting for $lockfile to be removed"
907
# Infer tagged configuration to use if any are available and
908
# if one wasn't chosen via the "--tag" command line option.
909
# Only attempt this if the compiler in the base link
910
# command doesn't match the default compiler.
911
if test -n "$available_tags" && test -z "$tagname"; then
912
case $base_compile in
913
# Blanks in the command may have been stripped by the calling shell,
914
# but not from the CC environment variable when configure was run.
915
"$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;;
916
# Blanks at the start of $base_compile will cause this to fail
917
# if we don't check for them as well.
919
for z in $available_tags; do
920
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
921
# Evaluate the configuration.
922
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
923
case $base_compile in
924
"$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
925
# The compiler in $compile_command matches
926
# the one in the tagged configuration.
927
# Assume this is the tagged configuration we want.
934
# If $tagname still isn't set, then no tagged configuration
935
# was found and let the user know that the "--tag" command
936
# line option must be used.
937
if test -z "$tagname"; then
938
$echo "$modename: unable to infer tagged configuration"
939
$echo "$modename: specify a tag with \`--tag'" 1>&2
942
# $echo "$modename: using $tagname tagged configuration"
951
func_infer_tag $base_compile
948
953
# We need to know -static, to get the right output filenames.
1829
1839
dlopen) libs="$dlfiles" ;;
1830
1840
dlpreopen) libs="$dlprefiles" ;;
1831
link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
1842
libs="$deplibs %DEPLIBS%"
1843
test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
1834
1847
if test "$pass" = dlopen; then
1854
1867
$echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1857
if test "$pass" = conv; then
1858
deplibs="$deplib $deplibs"
1861
1870
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1862
1871
for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1863
for search_ext in .la $shrext .so .a; do
1872
for search_ext in .la $std_shrext .so .a; do
1864
1873
# Search the libtool library
1865
1874
lib="$searchdir/lib${name}${search_ext}"
1866
1875
if test -f "$lib"; then
1937
1946
if test "$pass" = scan; then
1938
1947
deplibs="$deplib $deplibs"
1939
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1941
1949
compile_deplibs="$deplib $compile_deplibs"
1942
1950
finalize_deplibs="$deplib $finalize_deplibs"
1952
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1946
1955
$echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2019
2028
if test "$found" = yes || test -f "$lib"; then :
2021
2030
$echo "$modename: cannot find the library \`$lib'" 1>&2
2025
2034
# Check to see that this really is a libtool archive.
2026
2035
if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2028
2037
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2032
2041
ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2062
2071
if test -z "$libdir"; then
2063
2072
if test -z "$old_library"; then
2064
2073
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2067
2076
# It is a libtool convenience library, so add in its objects.
2068
2077
convenience="$convenience $ladir/$objdir/$old_library"
2093
2102
if test -z "$linklib"; then
2094
2103
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2098
2107
# This library was specified with -dlopen.
2099
2108
if test "$pass" = dlopen; then
2100
2109
if test -z "$libdir"; then
2101
2110
$echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2104
if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2113
if test -z "$dlname" ||
2114
test "$dlopen_support" != yes ||
2115
test "$build_libtool_libs" = no; then
2105
2116
# If there is no dlname, no dlopen support or we're linking
2106
2117
# statically, we need to preload. We also need to preload any
2107
2118
# dependent libraries so libltdl's deplib preloader doesn't
2264
2275
need_relink=yes
2266
2277
# This is a shared library
2268
# Warn about portability, can't link against -module's on some systems (darwin)
2269
if test "$shouldnotlink" = yes && test "$pass" = link ; then
2279
# Warn about portability, can't link against -module's on
2280
# some systems (darwin)
2281
if test "$shouldnotlink" = yes && test "$pass" = link ; then
2271
2283
if test "$linkmode" = prog; then
2272
2284
$echo "*** Warning: Linking the executable $output against the loadable module"
2274
2286
$echo "*** Warning: Linking the shared library $output against the loadable module"
2276
$echo "*** $linklib is not portable!"
2288
$echo "*** $linklib is not portable!"
2278
2290
if test "$linkmode" = lib &&
2279
2291
test "$hardcode_into_libs" = yes; then
2280
2292
# Hardcode the library path.
2373
2385
*-*-sco3.2v5* ) add_dir="-L$dir" ;;
2375
# if the lib is a module then we can not link against it, someone
2376
# is ignoring the new warnings I added
2377
if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
2387
# if the lib is a module then we can not link against
2388
# it, someone is ignoring the new warnings I added
2389
if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2378
2390
$echo "** Warning, lib $linklib is a module, not a shared library"
2379
2391
if test -z "$old_library" ; then
2469
2481
elif test "$hardcode_automatic" = yes; then
2470
if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
2482
if test -n "$inst_prefix_dir" &&
2483
test -f "$inst_prefix_dir$libdir/$linklib" ; then
2471
2484
add="$inst_prefix_dir$libdir/$linklib"
2473
2486
add="$libdir/$linklib"
2548
2561
if test "$linkmode" = lib; then
2549
2562
if test -n "$dependency_libs" &&
2550
{ test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
2563
{ test "$hardcode_into_libs" != yes ||
2564
test "$build_old_libs" = yes ||
2551
2565
test "$link_static" = yes; }; then
2552
2566
# Extract -R from dependency_libs
2604
2618
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2605
2619
if test -z "$libdir"; then
2606
2620
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2609
2623
if test "$absdir" != "$libdir"; then
2610
2624
$echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2617
# we do not want to link against static libs, but need to link against shared
2631
# we do not want to link against static libs,
2632
# but need to link against shared
2618
2633
eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2619
2634
if test -n "$deplibrary_names" ; then
2620
2635
for tmp in $deplibrary_names ; do
2643
# Again, we only want to link against shared libraries
2644
eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2645
for tmp in $newlib_search_path ; do
2646
if test -f "$tmp/lib$tmp_libs.dylib" ; then
2647
eval depdepl="$tmp/lib$tmp_libs.dylib"
2657
# Again, we only want to link against shared libraries
2658
eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2659
for tmp in $newlib_search_path ; do
2660
if test -f "$tmp/lib$tmp_libs.dylib" ; then
2661
eval depdepl="$tmp/lib$tmp_libs.dylib"
2658
2672
case " $deplibs " in
2659
2673
*" $depdepl "*) ;;
2660
*) deplibs="$deplibs $depdepl" ;;
2674
*) deplibs="$depdepl $deplibs" ;;
2662
2676
case " $deplibs " in
2663
2677
*" $path "*) ;;
2664
2678
*) deplibs="$deplibs $path" ;;
2808
2823
case $outputname in
2810
2825
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2811
eval shared_ext=\"$shrext\"
2826
eval shared_ext=\"$shrext_cmds\"
2812
2827
eval libname=\"$libname_spec\"
2815
2830
if test "$module" = no; then
2816
2831
$echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
2817
2832
$echo "$help" 1>&2
2820
2835
if test "$need_lib_prefix" != no; then
2821
2836
# Add the "lib" prefix for modules if required
2822
2837
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2823
eval shared_ext=\"$shrext\"
2838
eval shared_ext=\"$shrext_cmds\"
2824
2839
eval libname=\"$libname_spec\"
2826
2841
libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2926
2946
# Check that each of the things are valid numbers.
2927
2947
case $current in
2928
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2948
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2930
2950
$echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
2931
2951
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2936
2956
case $revision in
2937
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2957
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2939
2959
$echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
2940
2960
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2946
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2966
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2948
2968
$echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
2949
2969
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2954
2974
if test "$age" -gt "$current"; then
2955
2975
$echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2956
2976
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2960
2980
# Calculate the version variables.
3099
3119
$output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3100
if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3120
if test "X$precious_files_regex" != "X"; then
3121
if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3104
3126
removelist="$removelist $p"
4537
4558
# Quote $echo for shipping.
4538
if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
4540
[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
4541
*) qecho="$SHELL `pwd`/$0 --fallback-echo";;
4559
if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4561
[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4562
*) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4543
4564
qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4564
4585
cwrappersource=`$echo ${objdir}/lt-${output}.c`
4565
4586
cwrapper=`$echo ${output}.exe`
4566
4587
$rm $cwrappersource $cwrapper
4567
trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
4588
trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4569
4590
cat > $cwrappersource <<EOF
4574
4595
The $output program cannot be directly executed until all the libtool
4575
4596
libraries that it depends on are installed.
4577
4598
This wrapper executable should never be moved out of the build directory.
4578
4599
If it is, it will not operate correctly.
4649
4670
newargz[1] = fnqualify(argv[0]);
4650
4671
/* we know the script has the same name, without the .exe */
4651
4672
/* so make sure newargz[1] doesn't end in .exe */
4652
strendzap(newargz[1],".exe");
4673
strendzap(newargz[1],".exe");
4653
4674
for (i = 1; i < argc; i++)
4654
4675
newargz[i+1] = xstrdup(argv[i]);
4655
4676
newargz[argc+1] = NULL;
4747
lt_error_core (int exit_status, const char * mode,
4768
lt_error_core (int exit_status, const char * mode,
4748
4769
const char * message, va_list ap)
4750
4771
fprintf (stderr, "%s: %s: ", program_name, mode);
4936
4957
$echo >> $output "\
4937
4958
\$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
4941
4962
# The program doesn't exist.
4942
4963
\$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
4943
4964
\$echo \"This script is just a wrapper for \$program.\" 1>&2
4944
4965
$echo \"See the $PACKAGE documentation for more information.\" 1>&2
4949
4970
chmod +x $output
5132
5153
# Quote the link command for shipping.
5133
relink_command="(cd `pwd`; $SHELL $0 $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5154
relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5134
5155
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5135
5156
if test "$hardcode_automatic" = yes ; then
5138
5161
# Only create the output if not a dry run.
5139
5162
if test -z "$run"; then
5140
5163
for installed in no yes; do
5674
5697
test -n "$TMPDIR" && tmpdir="$TMPDIR"
5675
5698
tmpdir="$tmpdir/libtool-$$"
5676
if $mkdir "$tmpdir" && chmod 700 "$tmpdir"; then :
5701
if $mkdir "$tmpdir"; then
5678
5705
$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5757
5784
if test -n "$current_libdirs"; then
5758
5785
# Maybe just do a dry run.
5759
5786
test -n "$run" && current_libdirs=" -n$current_libdirs"
5760
exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
5787
exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5801
5828
# Exit here if they wanted silent mode.
5802
test "$show" = : && exit 0
5829
test "$show" = : && exit $EXIT_SUCCESS
5804
5831
$echo "----------------------------------------------------------------------"
5805
5832
$echo "Libraries have been installed in:"
6115
6142
if test "$mode" = clean ; then
6116
6143
noexename=$name
6119
6146
file=`$echo $file|${SED} 's,.exe$,,'`
6120
6147
noexename=`$echo $name|${SED} 's,.exe$,,'`
6121
6148
# $file with .exe has already been added to rmfiles,
6161
6188
$echo "$modename: you must specify a MODE" 1>&2
6162
6189
$echo "$generic_help" 1>&2
6167
6194
if test -z "$exec_cmd"; then
6168
6195
$echo "$modename: invalid operation mode \`$mode'" 1>&2
6169
6196
$echo "$generic_help" 1>&2
6172
6199
fi # test -z "$show_help"
6174
6201
if test -n "$exec_cmd"; then
6175
6202
eval exec $exec_cmd
6179
6206
# We need to display help for each of the modes.