~ubuntu-branches/ubuntu/wily/alsaplayer/wily

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Hubert Chathi
  • Date: 2007-10-10 15:33:10 UTC
  • mto: (9.2.5 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071010153310-h3holq75eu2cigb0
Tags: upstream-0.99.80~rc4
ImportĀ upstreamĀ versionĀ 0.99.80~rc4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# ltmain.sh - Provide generalized library-building support services.
2
2
# NOTE: Changing this file will not affect anything until you rerun configure.
3
3
#
4
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5
 
# Free Software Foundation, Inc.
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
 
5
# 2007  Free Software Foundation, Inc.
6
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
#
8
8
# This program is free software; you can redistribute it and/or modify
33
33
# function.
34
34
progpath="$0"
35
35
 
36
 
# define SED for historic ltconfig's generated by Libtool 1.3
37
 
test -z "$SED" && SED=sed
38
 
 
39
36
# The name of this program:
40
37
progname=`echo "$progpath" | $SED $basename`
41
38
modename="$progname"
46
43
 
47
44
PROGRAM=ltmain.sh
48
45
PACKAGE=libtool
49
 
VERSION=1.5.22
50
 
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
 
46
VERSION=1.5.23b
 
47
TIMESTAMP=" (1.1220.2.437 2007/02/17 09:08:45)"
51
48
 
52
 
# See if we are running on zsh, and set the options which allow our
53
 
# commands through without removal of \ escapes.
54
 
if test -n "${ZSH_VERSION+set}" ; then
 
49
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
50
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
51
  emulate sh
 
52
  NULLCMD=:
 
53
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
54
  # is contrary to our usage.  Disable this feature.
 
55
  alias -g '${1+"$@"}'='"$@"'
55
56
  setopt NO_GLOB_SUBST
56
 
fi
57
 
# Same for EGREP, and just to be sure, do LTCC as well
58
 
if test "X$EGREP" = X ; then
59
 
    EGREP=egrep
60
 
fi
61
 
if test "X$LTCC" = X ; then
62
 
    LTCC=${CC-gcc}
63
 
fi
 
57
else
 
58
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
59
fi
 
60
BIN_SH=xpg4; export BIN_SH # for Tru64
 
61
DUALCASE=1; export DUALCASE # for MKS sh
64
62
 
65
63
# Check that we have a working $echo.
66
64
if test "X$1" = X--no-reexec; then
115
113
# These must not be set unconditionally because not all systems understand
116
114
# e.g. LANG=C (notably SCO).
117
115
# We save the old values to restore during execute mode.
118
 
if test "${LC_ALL+set}" = set; then
119
 
  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
120
 
fi
121
 
if test "${LANG+set}" = set; then
122
 
  save_LANG="$LANG"; LANG=C; export LANG
123
 
fi
 
116
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
117
do
 
118
  eval "if test \"\${$lt_var+set}\" = set; then
 
119
          save_$lt_var=\$$lt_var
 
120
          $lt_var=C
 
121
          export $lt_var
 
122
        fi"
 
123
done
124
124
 
125
125
# Make sure IFS has a sensible default
126
126
lt_nl='
146
146
preserve_args=
147
147
lo2o="s/\\.lo\$/.${objext}/"
148
148
o2lo="s/\\.${objext}\$/.lo/"
149
 
 
150
 
if test -z "$max_cmd_len"; then
151
 
  i=0
152
 
  testring="ABCD"
153
 
  new_result=
154
 
  
155
 
  # If test is not a shell built-in, we'll probably end up computing a
156
 
  # maximum length that is only half of the actual maximum length, but
157
 
  # we can't tell.
158
 
  while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
159
 
             = "XX$testring") >/dev/null 2>&1 &&
160
 
          new_result=`expr "X$testring" : ".*" 2>&1` &&
161
 
          max_cmd_len="$new_result" &&
162
 
          test "$i" != 17 # 1/2 MB should be enough
163
 
  do
164
 
    i=`expr $i + 1`
165
 
    testring="$testring$testring"
166
 
  done
167
 
  testring=
168
 
  # Add a significant safety factor because C++ compilers can tack on massive
169
 
  # amounts of additional arguments before passing them to the linker.
170
 
  # It appears as though 1/2 is a usable value.
171
 
  max_cmd_len=`expr $max_cmd_len \/ 2`
172
 
fi
 
149
extracted_archives=
 
150
extracted_serial=0
173
151
 
174
152
#####################################
175
153
# Shell function definitions:
230
208
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
231
209
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
232
210
      win32_nmres=`eval $NM -f posix -A $1 | \
233
 
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
 
211
        $SED -n -e '1,100{
 
212
                / I /{
 
213
                        s,.*,import,
 
214
                        p
 
215
                        q
 
216
                        }
 
217
                }'`
234
218
      case $win32_nmres in
235
219
      import*)  win32_libid_type="x86 archive import";;
236
220
      *)        win32_libid_type="x86 archive static";;
375
359
        *) my_xabs=`pwd`"/$my_xlib" ;;
376
360
      esac
377
361
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
378
 
      my_xdir="$my_gentop/$my_xlib"
 
362
      my_xlib_u=$my_xlib
 
363
      while :; do
 
364
        case " $extracted_archives " in
 
365
        *" $my_xlib_u "*)
 
366
          extracted_serial=`expr $extracted_serial + 1`
 
367
          my_xlib_u=lt$extracted_serial-$my_xlib ;;
 
368
        *) break ;;
 
369
        esac
 
370
      done
 
371
      extracted_archives="$extracted_archives $my_xlib_u"
 
372
      my_xdir="$my_gentop/$my_xlib_u"
379
373
 
380
374
      $show "${rm}r $my_xdir"
381
375
      $run ${rm}r "$my_xdir"
502
496
    ;;
503
497
 
504
498
  --version)
505
 
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
506
 
    $echo
507
 
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
508
 
    $echo "This is free software; see the source for copying conditions.  There is NO"
509
 
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
499
    echo "\
 
500
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
501
 
 
502
Copyright (C) 2007  Free Software Foundation, Inc.
 
503
This is free software; see the source for copying conditions.  There is NO
 
504
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
510
505
    exit $?
511
506
    ;;
512
507
 
803
798
    *.class) xform=class ;;
804
799
    *.cpp) xform=cpp ;;
805
800
    *.cxx) xform=cxx ;;
806
 
    *.f90) xform=f90 ;;
 
801
    *.[fF][09]?) xform=[fF][09]. ;;
807
802
    *.for) xform=for ;;
808
803
    *.java) xform=java ;;
 
804
    *.obj) xform=obj ;;
809
805
    esac
810
806
 
811
807
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1186
1182
    for arg
1187
1183
    do
1188
1184
      case $arg in
1189
 
      -all-static | -static)
1190
 
        if test "X$arg" = "X-all-static"; then
 
1185
      -all-static | -static | -static-libtool-libs)
 
1186
        case $arg in
 
1187
        -all-static)
1191
1188
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1192
1189
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1193
1190
          fi
1195
1192
            dlopen_self=$dlopen_self_static
1196
1193
          fi
1197
1194
          prefer_static_libs=yes
1198
 
        else
 
1195
          ;;
 
1196
        -static)
1199
1197
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1200
1198
            dlopen_self=$dlopen_self_static
1201
1199
          fi
1202
1200
          prefer_static_libs=built
1203
 
        fi
 
1201
          ;;
 
1202
        -static-libtool-libs)
 
1203
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1204
            dlopen_self=$dlopen_self_static
 
1205
          fi
 
1206
          prefer_static_libs=yes
 
1207
          ;;
 
1208
        esac
1204
1209
        build_libtool_libs=no
1205
1210
        build_old_libs=yes
1206
1211
        break
1648
1653
        continue
1649
1654
        ;;
1650
1655
 
1651
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
1656
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1652
1657
        compiler_flags="$compiler_flags $arg"
1653
1658
        compile_command="$compile_command $arg"
1654
1659
        finalize_command="$finalize_command $arg"
1668
1673
      # -m* pass through architecture-specific compiler args for GCC
1669
1674
      # -m*, -t[45]*, -txscale* pass through architecture-specific
1670
1675
      # compiler args for GCC
1671
 
      # -pg pass through profiling flag for GCC
 
1676
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
 
1677
      # -F/path gives path to uninstalled frameworks, gcc on darwin
1672
1678
      # @file GCC response files
1673
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1674
 
      -t[45]*|-txscale*|@*)
 
1679
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
 
1680
      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1675
1681
 
1676
1682
        # Unknown arguments in both finalize_command and compile_command need
1677
1683
        # to be aesthetically quoted because they are evaled later.
1760
1766
        continue
1761
1767
        ;;
1762
1768
 
1763
 
      -static)
 
1769
      -static | -static-libtool-libs)
1764
1770
        # The effects of -static are defined in a previous loop.
1765
1771
        # We used to do the same as -all-static on platforms that
1766
1772
        # didn't have a PIC flag, but the assumption that the effects
2142
2148
        lib=
2143
2149
        found=no
2144
2150
        case $deplib in
2145
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
2151
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2146
2152
          if test "$linkmode,$pass" = "prog,link"; then
2147
2153
            compile_deplibs="$deplib $compile_deplibs"
2148
2154
            finalize_deplibs="$deplib $finalize_deplibs"
2538
2544
 
2539
2545
        if test "$linkmode,$pass" = "prog,link"; then
2540
2546
          if test -n "$library_names" &&
2541
 
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2547
             { { test "$prefer_static_libs" = no ||
 
2548
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2549
               test -z "$old_library"; }; then
2542
2550
            # We need to hardcode the library path
2543
2551
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2544
2552
              # Make sure the rpath contains only unique directories.
3234
3242
          # which has an extra 1 added just for fun
3235
3243
          #
3236
3244
          case $version_type in
3237
 
          darwin|linux|osf|windows)
 
3245
          darwin|linux|osf|windows|none)
3238
3246
            current=`expr $number_major + $number_minor`
3239
3247
            age="$number_minor"
3240
3248
            revision="$number_revision"
3458
3466
      fi
3459
3467
 
3460
3468
      # Eliminate all temporary directories.
3461
 
      for path in $notinst_path; do
3462
 
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3463
 
        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3464
 
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3465
 
      done
 
3469
      #for path in $notinst_path; do
 
3470
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3471
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3472
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3473
      #done
3466
3474
 
3467
3475
      if test -n "$xrpath"; then
3468
3476
        # If the user specified any rpath flags, then add them.
3563
3571
          int main() { return 0; }
3564
3572
EOF
3565
3573
          $rm conftest
3566
 
          $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3567
 
          if test "$?" -eq 0 ; then
 
3574
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3568
3575
            ldd_output=`ldd conftest`
3569
3576
            for i in $deplibs; do
3570
3577
              name=`expr $i : '-l\(.*\)'`
3571
3578
              # If $name is empty we are operating on a -L argument.
3572
 
              if test "$name" != "" && test "$name" -ne "0"; then
 
3579
              if test "$name" != "" && test "$name" != "0"; then
3573
3580
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3574
3581
                  case " $predeps $postdeps " in
3575
3582
                  *" $i "*)
3608
3615
              # If $name is empty we are operating on a -L argument.
3609
3616
              if test "$name" != "" && test "$name" != "0"; then
3610
3617
                $rm conftest
3611
 
                $LTCC $LTCFLAGS -o conftest conftest.c $i
3612
 
                # Did it work?
3613
 
                if test "$?" -eq 0 ; then
 
3618
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3614
3619
                  ldd_output=`ldd conftest`
3615
3620
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3616
3621
                    case " $predeps $postdeps " in
3642
3647
                  droppeddeps=yes
3643
3648
                  $echo
3644
3649
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3645
 
                  $echo "***  make it link in!  You will probably need to install it or some"
 
3650
                  $echo "*** make it link in!  You will probably need to install it or some"
3646
3651
                  $echo "*** library that it depends on before this library will be fully"
3647
3652
                  $echo "*** functional.  Installing it before continuing would be even better."
3648
3653
                fi
3690
3695
                        *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3691
3696
                        esac
3692
3697
                      done
3693
 
                      # It is ok to link against an archive when
3694
 
                      # building a shared library.
3695
 
                      if $AR -t $potlib > /dev/null 2>&1; then
3696
 
                        newdeplibs="$newdeplibs $a_deplib"
3697
 
                        a_deplib=""
3698
 
                        break 2
3699
 
                      fi
3700
3698
                      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3701
3699
                         | ${SED} 10q \
3702
3700
                         | $EGREP "$file_magic_regex" > /dev/null; then
3935
3933
             test -n "$hardcode_libdirs"; then
3936
3934
            libdir="$hardcode_libdirs"
3937
3935
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3938
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
3936
              case $archive_cmds in
 
3937
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
 
3938
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
 
3939
              esac
3939
3940
            else
3940
3941
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3941
3942
            fi
4294
4295
      reload_conv_objs=
4295
4296
      gentop=
4296
4297
      # reload_cmds runs $LD directly, so let us get rid of
4297
 
      # -Wl from whole_archive_flag_spec
 
4298
      # -Wl from whole_archive_flag_spec and hope we can get by with
 
4299
      # turning comma into space..
4298
4300
      wl=
4299
4301
 
4300
4302
      if test -n "$convenience"; then
4301
4303
        if test -n "$whole_archive_flag_spec"; then
4302
 
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
 
4304
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
 
4305
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4303
4306
        else
4304
4307
          gentop="$output_objdir/${obj}x"
4305
4308
          generated="$generated $gentop"
4747
4750
          case $host in
4748
4751
          *cygwin* | *mingw* )
4749
4752
            if test -f "$output_objdir/${outputname}.def" ; then
4750
 
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4751
 
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
4753
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4754
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4752
4755
            else
4753
 
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4754
 
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4756
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4757
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4755
4758
             fi
4756
4759
            ;;
4757
4760
          * )
4758
 
            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4759
 
            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4761
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4762
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4760
4763
            ;;
4761
4764
          esac
4762
4765
          ;;
4771
4774
        # really was required.
4772
4775
 
4773
4776
        # Nullify the symbol file.
4774
 
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4775
 
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4777
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4778
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4776
4779
      fi
4777
4780
 
4778
4781
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4779
4782
        # Replace the output file specification.
4780
 
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
 
4783
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4781
4784
        link_command="$compile_command$compile_rpath"
4782
4785
 
4783
4786
        # We have no uninstalled library dependencies, so finalize right now.
4864
4867
        if test "$fast_install" != no; then
4865
4868
          link_command="$finalize_var$compile_command$finalize_rpath"
4866
4869
          if test "$fast_install" = yes; then
4867
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
 
4870
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4868
4871
          else
4869
4872
            # fast_install is set to needless
4870
4873
            relink_command=
4901
4904
          fi
4902
4905
        done
4903
4906
        relink_command="(cd `pwd`; $relink_command)"
4904
 
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
4907
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4905
4908
      fi
4906
4909
 
4907
4910
      # Quote $echo for shipping.
5308
5311
Xsed='${SED} -e 1s/^X//'
5309
5312
sed_quote_subst='$sed_quote_subst'
5310
5313
 
 
5314
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
5315
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
 
5316
  emulate sh
 
5317
  NULLCMD=:
 
5318
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
 
5319
  # is contrary to our usage.  Disable this feature.
 
5320
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
5321
  setopt NO_GLOB_SUBST
 
5322
else
 
5323
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
 
5324
fi
 
5325
BIN_SH=xpg4; export BIN_SH # for Tru64
 
5326
DUALCASE=1; export DUALCASE # for MKS sh
 
5327
 
5311
5328
# The HP-UX ksh and POSIX shell print the target directory to stdout
5312
5329
# if CDPATH is set.
5313
5330
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5455
5472
          ;;
5456
5473
        esac
5457
5474
        $echo >> $output "\
5458
 
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
 
5475
      \$echo \"\$0: cannot exec \$program \$*\"
5459
5476
      exit $EXIT_FAILURE
5460
5477
    fi
5461
5478
  else
5641
5658
      done
5642
5659
      # Quote the link command for shipping.
5643
5660
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5644
 
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
5661
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5645
5662
      if test "$hardcode_automatic" = yes ; then
5646
5663
        relink_command=
5647
5664
      fi
6034
6051
 
6035
6052
          if test -n "$inst_prefix_dir"; then
6036
6053
            # Stick the inst_prefix_dir data into the link command.
6037
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
 
6054
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6038
6055
          else
6039
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
 
6056
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6040
6057
          fi
6041
6058
 
6042
6059
          $echo "$modename: warning: relinking \`$file'" 1>&2
6245
6262
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6246
6263
              outputname="$tmpdir/$file"
6247
6264
              # Replace the output file specification.
6248
 
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
 
6265
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6249
6266
 
6250
6267
              $show "$relink_command"
6251
6268
              if $run eval "$relink_command"; then :
6456
6473
        if test -f "$dir/$objdir/$dlname"; then
6457
6474
          dir="$dir/$objdir"
6458
6475
        else
6459
 
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6460
 
          exit $EXIT_FAILURE
 
6476
          if test ! -f "$dir/$dlname"; then
 
6477
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6478
            exit $EXIT_FAILURE
 
6479
          fi
6461
6480
        fi
6462
6481
        ;;
6463
6482
 
6521
6540
      fi
6522
6541
 
6523
6542
      # Restore saved environment variables
6524
 
      if test "${save_LC_ALL+set}" = set; then
6525
 
        LC_ALL="$save_LC_ALL"; export LC_ALL
6526
 
      fi
6527
 
      if test "${save_LANG+set}" = set; then
6528
 
        LANG="$save_LANG"; export LANG
6529
 
      fi
 
6543
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6544
      do
 
6545
        eval "if test \"\${save_$lt_var+set}\" = set; then
 
6546
                $lt_var=\$save_$lt_var; export $lt_var
 
6547
              else
 
6548
                $lt_unset $lt_var
 
6549
              fi"
 
6550
      done
6530
6551
 
6531
6552
      # Now prepare to actually exec the command.
6532
6553
      exec_cmd="\$cmd$args"
6883
6904
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6884
6905
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6885
6906
  -export-symbols SYMFILE
6886
 
                    try to export only the symbols listed in SYMFILE
 
6907
                    try to export only the symbols listed in SYMFILE
6887
6908
  -export-symbols-regex REGEX
6888
 
                    try to export only the symbols matching REGEX
 
6909
                    try to export only the symbols matching REGEX
6889
6910
  -LLIBDIR          search LIBDIR for required installed libraries
6890
6911
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6891
6912
  -module           build a library that can dlopened
6899
6920
  -release RELEASE  specify package release information
6900
6921
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6901
6922
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6902
 
  -static           do not do any dynamic linking of libtool libraries
 
6923
  -static           do not do any dynamic linking of uninstalled libtool libraries
 
6924
  -static-libtool-libs
 
6925
                    do not do any dynamic linking of libtool libraries
6903
6926
  -version-info CURRENT[:REVISION[:AGE]]
6904
 
                    specify library version info [each variable defaults to 0]
 
6927
                    specify library version info [each variable defaults to 0]
6905
6928
 
6906
6929
All other options (arguments beginning with \`-') are ignored.
6907
6930