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
# RH: define SED for historic ltconfig's generated by Libtool 1.3
37
[ -z "$SED" ] && SED=sed
39
# The name of this program:
40
progname=`echo "$progpath" | $SED $basename`
50
TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
27
53
# Check that we have a working $echo.
28
54
if test "X$1" = X--no-reexec; then
29
55
# Discard the --no-reexec flag, and continue.
38
64
# Restart under the correct shell, and then maybe $echo will work.
39
exec $SHELL "$0" --no-reexec ${1+"$@"}
65
exec $SHELL "$progpath" --no-reexec ${1+"$@"}
42
68
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)"
62
78
help="Try \`$progname --help' for more information."
63
79
magic="%%%MAGIC variable%%%"
119
135
# Shell function definitions:
120
136
# This seems to be the best place for them
138
# func_win32_libid arg
139
# return the library type of file 'arg'
122
141
# Need a lot of goo to handle *both* DLLs and import libs
123
142
# Has to be a shell function in order to 'eat' the argument
124
143
# that is supplied when $file_magic_command is called.
144
func_win32_libid () {
126
145
win32_libid_type="unknown"
127
146
win32_fileres=`file -L $1 2>/dev/null`
128
147
case $win32_fileres in
132
151
*ar\ archive*) # could be an import, or static
133
152
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
134
grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
153
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
135
154
win32_nmres=`eval $NM -f posix -A $1 | \
136
155
sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
137
156
if test "X$win32_nmres" = "Ximport" ; then
155
174
$echo $win32_libid_type
179
# Infer tagged configuration to use if any are available and
180
# if one wasn't chosen via the "--tag" command line option.
181
# Only attempt this if the compiler in the base compile
182
# command doesn't match the default compiler.
183
# arg is usually of the form 'gcc ...'
185
if test -n "$available_tags" && test -z "$tagname"; then
189
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
193
CC_quoted="$CC_quoted $arg"
196
# Blanks in the command may have been stripped by the calling shell,
197
# but not from the CC environment variable when configure was run.
198
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
199
# Blanks at the start of $base_compile will cause this to fail
200
# if we don't check for them as well.
202
for z in $available_tags; do
203
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
204
# Evaluate the configuration.
205
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
208
# Double-quote args containing other shell metacharacters.
210
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
214
CC_quoted="$CC_quoted $arg"
217
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
218
# The compiler in the base compile command matches
219
# the one in the tagged configuration.
220
# Assume this is the tagged configuration we want.
227
# If $tagname still isn't set, then no tagged configuration
228
# was found and let the user know that the "--tag" command
229
# line option must be used.
230
if test -z "$tagname"; then
231
$echo "$modename: unable to infer tagged configuration"
232
$echo "$modename: specify a tag with \`--tag'" 1>&2
235
# $echo "$modename: using $tagname tagged configuration"
158
241
# End of Shell function definitions
159
242
#####################################
245
eval std_shrext=\"$shrext_cmds\"
161
247
# Parse our command line options once, thoroughly.
162
248
while test "$#" -gt 0
193
279
# not specially marked.
196
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
282
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
197
283
taglist="$taglist $tagname"
198
284
# Evaluate the configuration.
199
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
285
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
201
287
$echo "$progname: ignoring unknown tag $tagname" 1>&2
225
311
$echo "Copyright (C) 2003 Free Software Foundation, Inc."
226
312
$echo "This is free software; see the source for copying conditions. There is NO"
227
313
$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
318
${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
233
319
# Now print the configurations for the tags.
234
320
for tagname in $taglist; do
235
${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
321
${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
513
599
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
515
601
$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"
606
func_infer_tag $base_compile
561
608
for arg in $later; do
619
666
output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
620
667
lockfile="$output_obj.lock"
621
668
removelist="$removelist $output_obj $lockfile"
622
trap "$run $rm $removelist; exit 1" 1 2 15
669
trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
629
676
# Lock this critical section if it is needed
630
677
# We use this script file to make the link, it avoids creating a new file
631
678
if test "$need_locks" = yes; then
632
until $run ln "$0" "$lockfile" 2>/dev/null; do
679
until $run ln "$progpath" "$lockfile" 2>/dev/null; do
633
680
$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"
954
func_infer_tag $base_compile
948
956
# We need to know -static, to get the right output filenames.
1861
1874
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1862
1875
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
1876
for search_ext in .la $std_shrext .so .a; do
1864
1877
# Search the libtool library
1865
1878
lib="$searchdir/lib${name}${search_ext}"
1866
1879
if test -f "$lib"; then
1937
1950
if test "$pass" = scan; then
1938
1951
deplibs="$deplib $deplibs"
1939
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1941
1953
compile_deplibs="$deplib $compile_deplibs"
1942
1954
finalize_deplibs="$deplib $finalize_deplibs"
1956
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1946
1959
$echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2019
2032
if test "$found" = yes || test -f "$lib"; then :
2021
2034
$echo "$modename: cannot find the library \`$lib'" 1>&2
2025
2038
# Check to see that this really is a libtool archive.
2026
2039
if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2028
2041
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2032
2045
ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2062
2075
if test -z "$libdir"; then
2063
2076
if test -z "$old_library"; then
2064
2077
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2067
2080
# It is a libtool convenience library, so add in its objects.
2068
2081
convenience="$convenience $ladir/$objdir/$old_library"
2093
2106
if test -z "$linklib"; then
2094
2107
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2098
2111
# This library was specified with -dlopen.
2099
2112
if test "$pass" = dlopen; then
2100
2113
if test -z "$libdir"; then
2101
2114
$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
2117
if test -z "$dlname" ||
2118
test "$dlopen_support" != yes ||
2119
test "$build_libtool_libs" = no; then
2105
2120
# If there is no dlname, no dlopen support or we're linking
2106
2121
# statically, we need to preload. We also need to preload any
2107
2122
# dependent libraries so libltdl's deplib preloader doesn't
2264
2279
need_relink=yes
2266
2281
# 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
2283
# Warn about portability, can't link against -module's on
2284
# some systems (darwin)
2285
if test "$shouldnotlink" = yes && test "$pass" = link ; then
2271
2287
if test "$linkmode" = prog; then
2272
2288
$echo "*** Warning: Linking the executable $output against the loadable module"
2274
2290
$echo "*** Warning: Linking the shared library $output against the loadable module"
2276
$echo "*** $linklib is not portable!"
2292
$echo "*** $linklib is not portable!"
2278
2294
if test "$linkmode" = lib &&
2279
2295
test "$hardcode_into_libs" = yes; then
2280
2296
# Hardcode the library path.
2373
2389
*-*-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
2391
# if the lib is a module then we can not link against
2392
# it, someone is ignoring the new warnings I added
2393
if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2378
2394
$echo "** Warning, lib $linklib is a module, not a shared library"
2379
2395
if test -z "$old_library" ; then
2469
2485
elif test "$hardcode_automatic" = yes; then
2470
if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
2486
if test -n "$inst_prefix_dir" &&
2487
test -f "$inst_prefix_dir$libdir/$linklib" ; then
2471
2488
add="$inst_prefix_dir$libdir/$linklib"
2473
2490
add="$libdir/$linklib"
2548
2565
if test "$linkmode" = lib; then
2549
2566
if test -n "$dependency_libs" &&
2550
{ test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
2567
{ test "$hardcode_into_libs" != yes ||
2568
test "$build_old_libs" = yes ||
2551
2569
test "$link_static" = yes; }; then
2552
2570
# Extract -R from dependency_libs
2604
2622
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2605
2623
if test -z "$libdir"; then
2606
2624
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2609
2627
if test "$absdir" != "$libdir"; then
2610
2628
$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
2635
# we do not want to link against static libs,
2636
# but need to link against shared
2618
2637
eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2619
2638
if test -n "$deplibrary_names" ; then
2620
2639
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"
2661
# Again, we only want to link against shared libraries
2662
eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2663
for tmp in $newlib_search_path ; do
2664
if test -f "$tmp/lib$tmp_libs.dylib" ; then
2665
eval depdepl="$tmp/lib$tmp_libs.dylib"
2658
2676
case " $deplibs " in
2659
2677
*" $depdepl "*) ;;
2660
*) deplibs="$deplibs $depdepl" ;;
2678
*) deplibs="$depdepl $deplibs" ;;
2662
2680
case " $deplibs " in
2663
2681
*" $path "*) ;;
2664
2682
*) deplibs="$deplibs $path" ;;
2808
2827
case $outputname in
2810
2829
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2811
eval shared_ext=\"$shrext\"
2830
eval shared_ext=\"$shrext_cmds\"
2812
2831
eval libname=\"$libname_spec\"
2815
2834
if test "$module" = no; then
2816
2835
$echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
2817
2836
$echo "$help" 1>&2
2820
2839
if test "$need_lib_prefix" != no; then
2821
2840
# Add the "lib" prefix for modules if required
2822
2841
name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2823
eval shared_ext=\"$shrext\"
2842
eval shared_ext=\"$shrext_cmds\"
2824
2843
eval libname=\"$libname_spec\"
2826
2845
libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2926
2945
# Check that each of the things are valid numbers.
2927
2946
case $current in
2928
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2930
2949
$echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
2931
2950
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2936
2955
case $revision in
2937
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2939
2958
$echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
2940
2959
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2946
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
2948
2967
$echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
2949
2968
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2954
2973
if test "$age" -gt "$current"; then
2955
2974
$echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2956
2975
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2960
2979
# Calculate the version variables.
3099
3118
$output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3100
if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3119
if test "X$precious_files_regex" != "X"; then
3120
if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3104
3125
removelist="$removelist $p"
4537
4557
# 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";;
4558
if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4560
[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4561
*) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4543
4563
qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4564
4584
cwrappersource=`$echo ${objdir}/lt-${output}.c`
4565
4585
cwrapper=`$echo ${output}.exe`
4566
4586
$rm $cwrappersource $cwrapper
4567
trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
4587
trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4569
4589
cat > $cwrappersource <<EOF
4574
4594
The $output program cannot be directly executed until all the libtool
4575
4595
libraries that it depends on are installed.
4577
4597
This wrapper executable should never be moved out of the build directory.
4578
4598
If it is, it will not operate correctly.
4649
4669
newargz[1] = fnqualify(argv[0]);
4650
4670
/* we know the script has the same name, without the .exe */
4651
4671
/* so make sure newargz[1] doesn't end in .exe */
4652
strendzap(newargz[1],".exe");
4672
strendzap(newargz[1],".exe");
4653
4673
for (i = 1; i < argc; i++)
4654
4674
newargz[i+1] = xstrdup(argv[i]);
4655
4675
newargz[argc+1] = NULL;
4747
lt_error_core (int exit_status, const char * mode,
4767
lt_error_core (int exit_status, const char * mode,
4748
4768
const char * message, va_list ap)
4750
4770
fprintf (stderr, "%s: %s: ", program_name, mode);
4936
4956
$echo >> $output "\
4937
4957
\$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
4941
4961
# The program doesn't exist.
4942
4962
\$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
4943
4963
\$echo \"This script is just a wrapper for \$program.\" 1>&2
4944
4964
$echo \"See the $PACKAGE documentation for more information.\" 1>&2
4949
4969
chmod +x $output
5132
5152
# Quote the link command for shipping.
5133
relink_command="(cd `pwd`; $SHELL $0 $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5153
relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5134
5154
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5135
5155
if test "$hardcode_automatic" = yes ; then
5138
5160
# Only create the output if not a dry run.
5139
5161
if test -z "$run"; then
5140
5162
for installed in no yes; do
5674
5696
test -n "$TMPDIR" && tmpdir="$TMPDIR"
5675
5697
tmpdir="$tmpdir/libtool-$$"
5676
if $mkdir "$tmpdir" && chmod 700 "$tmpdir"; then :
5700
if $mkdir "$tmpdir"; then
5678
5704
$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5757
5783
if test -n "$current_libdirs"; then
5758
5784
# Maybe just do a dry run.
5759
5785
test -n "$run" && current_libdirs=" -n$current_libdirs"
5760
exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
5786
exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5801
5827
# Exit here if they wanted silent mode.
5802
test "$show" = : && exit 0
5828
test "$show" = : && exit $EXIT_SUCCESS
5804
5830
$echo "----------------------------------------------------------------------"
5805
5831
$echo "Libraries have been installed in:"
6115
6141
if test "$mode" = clean ; then
6116
6142
noexename=$name
6119
6145
file=`$echo $file|${SED} 's,.exe$,,'`
6120
6146
noexename=`$echo $name|${SED} 's,.exe$,,'`
6121
6147
# $file with .exe has already been added to rmfiles,
6161
6187
$echo "$modename: you must specify a MODE" 1>&2
6162
6188
$echo "$generic_help" 1>&2
6167
6193
if test -z "$exec_cmd"; then
6168
6194
$echo "$modename: invalid operation mode \`$mode'" 1>&2
6169
6195
$echo "$generic_help" 1>&2
6172
6198
fi # test -z "$show_help"
6174
6200
if test -n "$exec_cmd"; then
6175
6201
eval exec $exec_cmd
6179
6205
# We need to display help for each of the modes.