~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

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, 2008  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
43
43
 
44
44
PROGRAM=ltmain.sh
45
45
PACKAGE=libtool
46
 
VERSION=1.5.22
47
 
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
 
46
VERSION=1.5.26
 
47
TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
48
48
 
49
 
# See if we are running on zsh, and set the options which allow our
50
 
# commands through without removal of \ escapes.
51
 
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+"$@"}'='"$@"'
52
56
  setopt NO_GLOB_SUBST
 
57
else
 
58
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
53
59
fi
 
60
BIN_SH=xpg4; export BIN_SH # for Tru64
 
61
DUALCASE=1; export DUALCASE # for MKS sh
54
62
 
55
63
# Check that we have a working $echo.
56
64
if test "X$1" = X--no-reexec; then
105
113
# These must not be set unconditionally because not all systems understand
106
114
# e.g. LANG=C (notably SCO).
107
115
# We save the old values to restore during execute mode.
108
 
if test "${LC_ALL+set}" = set; then
109
 
  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
110
 
fi
111
 
if test "${LANG+set}" = set; then
112
 
  save_LANG="$LANG"; LANG=C; export LANG
 
116
lt_env=
 
117
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
118
do
 
119
  eval "if test \"\${$lt_var+set}\" = set; then
 
120
          save_$lt_var=\$$lt_var
 
121
          lt_env=\"$lt_var=\$$lt_var \$lt_env\"
 
122
          $lt_var=C
 
123
          export $lt_var
 
124
        fi"
 
125
done
 
126
 
 
127
if test -n "$lt_env"; then
 
128
  lt_env="env $lt_env"
113
129
fi
114
130
 
115
131
# Make sure IFS has a sensible default
136
152
preserve_args=
137
153
lo2o="s/\\.lo\$/.${objext}/"
138
154
o2lo="s/\\.${objext}\$/.lo/"
 
155
extracted_archives=
 
156
extracted_serial=0
139
157
 
140
158
#####################################
141
159
# Shell function definitions:
196
214
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
197
215
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
198
216
      win32_nmres=`eval $NM -f posix -A $1 | \
199
 
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
 
217
        $SED -n -e '1,100{
 
218
                / I /{
 
219
                        s,.*,import,
 
220
                        p
 
221
                        q
 
222
                        }
 
223
                }'`
200
224
      case $win32_nmres in
201
225
      import*)  win32_libid_type="x86 archive import";;
202
226
      *)        win32_libid_type="x86 archive static";;
327
351
        *) my_xabs=`pwd`"/$my_xlib" ;;
328
352
      esac
329
353
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
330
 
      my_xdir="$my_gentop/$my_xlib"
 
354
      my_xlib_u=$my_xlib
 
355
      while :; do
 
356
        case " $extracted_archives " in
 
357
        *" $my_xlib_u "*)
 
358
          extracted_serial=`expr $extracted_serial + 1`
 
359
          my_xlib_u=lt$extracted_serial-$my_xlib ;;
 
360
        *) break ;;
 
361
        esac
 
362
      done
 
363
      extracted_archives="$extracted_archives $my_xlib_u"
 
364
      my_xdir="$my_gentop/$my_xlib_u"
331
365
 
332
366
      $show "${rm}r $my_xdir"
333
367
      $run ${rm}r "$my_xdir"
454
488
    ;;
455
489
 
456
490
  --version)
457
 
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
458
 
    $echo
459
 
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
460
 
    $echo "This is free software; see the source for copying conditions.  There is NO"
461
 
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
491
    echo "\
 
492
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
493
 
 
494
Copyright (C) 2008  Free Software Foundation, Inc.
 
495
This is free software; see the source for copying conditions.  There is NO
 
496
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
462
497
    exit $?
463
498
    ;;
464
499
 
755
790
    *.class) xform=class ;;
756
791
    *.cpp) xform=cpp ;;
757
792
    *.cxx) xform=cxx ;;
758
 
    *.f90) xform=f90 ;;
 
793
    *.[fF][09]?) xform=[fF][09]. ;;
759
794
    *.for) xform=for ;;
760
795
    *.java) xform=java ;;
 
796
    *.obj) xform=obj ;;
 
797
    *.sx) xform=sx ;;
761
798
    esac
762
799
 
763
800
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
926
963
      $run $rm "$lobj" "$output_obj"
927
964
 
928
965
      $show "$command"
929
 
      if $run eval "$command"; then :
 
966
      if $run eval $lt_env "$command"; then :
930
967
      else
931
968
        test -n "$output_obj" && $run $rm $removelist
932
969
        exit $EXIT_FAILURE
998
1035
      command="$command$suppress_output"
999
1036
      $run $rm "$obj" "$output_obj"
1000
1037
      $show "$command"
1001
 
      if $run eval "$command"; then :
 
1038
      if $run eval $lt_env "$command"; then :
1002
1039
      else
1003
1040
        $run $rm $removelist
1004
1041
        exit $EXIT_FAILURE
1131
1168
    thread_safe=no
1132
1169
    vinfo=
1133
1170
    vinfo_number=no
 
1171
    single_module="${wl}-single_module"
1134
1172
 
1135
1173
    func_infer_tag $base_compile
1136
1174
 
1138
1176
    for arg
1139
1177
    do
1140
1178
      case $arg in
1141
 
      -all-static | -static)
1142
 
        if test "X$arg" = "X-all-static"; then
 
1179
      -all-static | -static | -static-libtool-libs)
 
1180
        case $arg in
 
1181
        -all-static)
1143
1182
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1144
1183
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1145
1184
          fi
1147
1186
            dlopen_self=$dlopen_self_static
1148
1187
          fi
1149
1188
          prefer_static_libs=yes
1150
 
        else
 
1189
          ;;
 
1190
        -static)
1151
1191
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1152
1192
            dlopen_self=$dlopen_self_static
1153
1193
          fi
1154
1194
          prefer_static_libs=built
1155
 
        fi
 
1195
          ;;
 
1196
        -static-libtool-libs)
 
1197
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1198
            dlopen_self=$dlopen_self_static
 
1199
          fi
 
1200
          prefer_static_libs=yes
 
1201
          ;;
 
1202
        esac
1156
1203
        build_libtool_libs=no
1157
1204
        build_old_libs=yes
1158
1205
        break
1600
1647
        continue
1601
1648
        ;;
1602
1649
 
1603
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
1650
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1604
1651
        compiler_flags="$compiler_flags $arg"
1605
1652
        compile_command="$compile_command $arg"
1606
1653
        finalize_command="$finalize_command $arg"
1607
1654
        continue
1608
1655
        ;;
1609
1656
 
 
1657
      -multi_module)
 
1658
        single_module="${wl}-multi_module"
 
1659
        continue
 
1660
        ;;
 
1661
 
1610
1662
      -module)
1611
1663
        module=yes
1612
1664
        continue
1620
1672
      # -m* pass through architecture-specific compiler args for GCC
1621
1673
      # -m*, -t[45]*, -txscale* pass through architecture-specific
1622
1674
      # compiler args for GCC
1623
 
      # -pg pass through profiling flag for GCC
 
1675
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
 
1676
      # -F/path gives path to uninstalled frameworks, gcc on darwin
1624
1677
      # @file GCC response files
1625
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626
 
      -t[45]*|-txscale*|@*)
 
1678
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
 
1679
      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1627
1680
 
1628
1681
        # Unknown arguments in both finalize_command and compile_command need
1629
1682
        # to be aesthetically quoted because they are evaled later.
1651
1704
 
1652
1705
      -no-install)
1653
1706
        case $host in
1654
 
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1707
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1655
1708
          # The PATH hackery in wrapper scripts is required on Windows
1656
 
          # in order for the loader to find any dlls it needs.
 
1709
          # and Darwin in order for the loader to find any dlls it needs.
1657
1710
          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1658
1711
          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1659
1712
          fast_install=no
1712
1765
        continue
1713
1766
        ;;
1714
1767
 
1715
 
      -static)
 
1768
      -static | -static-libtool-libs)
1716
1769
        # The effects of -static are defined in a previous loop.
1717
1770
        # We used to do the same as -all-static on platforms that
1718
1771
        # didn't have a PIC flag, but the assumption that the effects
2094
2147
        lib=
2095
2148
        found=no
2096
2149
        case $deplib in
2097
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
2150
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2098
2151
          if test "$linkmode,$pass" = "prog,link"; then
2099
2152
            compile_deplibs="$deplib $compile_deplibs"
2100
2153
            finalize_deplibs="$deplib $finalize_deplibs"
2109
2162
            continue
2110
2163
          fi
2111
2164
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2112
 
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
 
2165
          if test "$linkmode" = lib; then
 
2166
            searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
 
2167
          else
 
2168
            searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
 
2169
          fi
 
2170
          for searchdir in $searchdirs; do
2113
2171
            for search_ext in .la $std_shrext .so .a; do
2114
2172
              # Search the libtool library
2115
2173
              lib="$searchdir/lib${name}${search_ext}"
2490
2548
 
2491
2549
        if test "$linkmode,$pass" = "prog,link"; then
2492
2550
          if test -n "$library_names" &&
2493
 
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2551
             { { test "$prefer_static_libs" = no ||
 
2552
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2553
               test -z "$old_library"; }; then
2494
2554
            # We need to hardcode the library path
2495
2555
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2496
2556
              # Make sure the rpath contains only unique directories.
2892
2952
                    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2893
2953
                    exit $EXIT_FAILURE
2894
2954
                  fi
2895
 
                  if test "$absdir" != "$libdir"; then
2896
 
                    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2897
 
                  fi
 
2955
                  #if test "$absdir" != "$libdir"; then
 
2956
                  #  $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
 
2957
                  #fi
2898
2958
                  path="$absdir"
2899
2959
                fi
2900
2960
                depdepl=
2903
2963
                  # we do not want to link against static libs,
2904
2964
                  # but need to link against shared
2905
2965
                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
 
2966
                  eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2906
2967
                  if test -n "$deplibrary_names" ; then
2907
2968
                    for tmp in $deplibrary_names ; do
2908
2969
                      depdepl=$tmp
2909
2970
                    done
2910
 
                    if test -f "$path/$depdepl" ; then
 
2971
                    if test -f "$deplibdir/$depdepl" ; then
 
2972
                      depdepl="$deplibdir/$depdepl"
 
2973
                    elif test -f "$path/$depdepl" ; then
2911
2974
                      depdepl="$path/$depdepl"
 
2975
                    else
 
2976
                      # Can't find it, oh well...
 
2977
                      depdepl=
2912
2978
                    fi
2913
2979
                    # do not add paths which are already there
2914
2980
                    case " $newlib_search_path " in
3056
3122
 
3057
3123
    case $linkmode in
3058
3124
    oldlib)
3059
 
      if test -n "$deplibs"; then
3060
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3061
 
      fi
 
3125
      case " $deplibs" in
 
3126
      *\ -l* | *\ -L*)
 
3127
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
 
3128
      esac
3062
3129
 
3063
3130
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3064
3131
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3186
3253
          # which has an extra 1 added just for fun
3187
3254
          #
3188
3255
          case $version_type in
3189
 
          darwin|linux|osf|windows)
 
3256
          darwin|linux|osf|windows|none)
3190
3257
            current=`expr $number_major + $number_minor`
3191
3258
            age="$number_minor"
3192
3259
            revision="$number_revision"
3197
3264
            age="0"
3198
3265
            ;;
3199
3266
          irix|nonstopux)
3200
 
            current=`expr $number_major + $number_minor - 1`
 
3267
            current=`expr $number_major + $number_minor`
3201
3268
            age="$number_minor"
3202
3269
            revision="$number_minor"
 
3270
            lt_irix_increment=no
3203
3271
            ;;
3204
3272
          esac
3205
3273
          ;;
3258
3326
          versuffix="$major.$age.$revision"
3259
3327
          # Darwin ld doesn't like 0 for these options...
3260
3328
          minor_current=`expr $current + 1`
3261
 
          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
 
3329
          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
 
3330
          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3262
3331
          ;;
3263
3332
 
3264
3333
        freebsd-aout)
3272
3341
          ;;
3273
3342
 
3274
3343
        irix | nonstopux)
3275
 
          major=`expr $current - $age + 1`
3276
 
 
 
3344
          if test "X$lt_irix_increment" = "Xno"; then
 
3345
            major=`expr $current - $age`
 
3346
          else
 
3347
            major=`expr $current - $age + 1`
 
3348
          fi
3277
3349
          case $version_type in
3278
3350
            nonstopux) verstring_prefix=nonstopux ;;
3279
3351
            *)         verstring_prefix=sgi ;;
3410
3482
      fi
3411
3483
 
3412
3484
      # Eliminate all temporary directories.
3413
 
      for path in $notinst_path; do
3414
 
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3415
 
        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3416
 
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3417
 
      done
 
3485
      #for path in $notinst_path; do
 
3486
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3487
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3488
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3489
      #done
3418
3490
 
3419
3491
      if test -n "$xrpath"; then
3420
3492
        # If the user specified any rpath flags, then add them.
3515
3587
          int main() { return 0; }
3516
3588
EOF
3517
3589
          $rm conftest
3518
 
          $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3519
 
          if test "$?" -eq 0 ; then
 
3590
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3520
3591
            ldd_output=`ldd conftest`
3521
3592
            for i in $deplibs; do
3522
3593
              name=`expr $i : '-l\(.*\)'`
3523
3594
              # If $name is empty we are operating on a -L argument.
3524
 
              if test "$name" != "" && test "$name" -ne "0"; then
 
3595
              if test "$name" != "" && test "$name" != "0"; then
3525
3596
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3526
3597
                  case " $predeps $postdeps " in
3527
3598
                  *" $i "*)
3560
3631
              # If $name is empty we are operating on a -L argument.
3561
3632
              if test "$name" != "" && test "$name" != "0"; then
3562
3633
                $rm conftest
3563
 
                $LTCC $LTCFLAGS -o conftest conftest.c $i
3564
 
                # Did it work?
3565
 
                if test "$?" -eq 0 ; then
 
3634
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3566
3635
                  ldd_output=`ldd conftest`
3567
3636
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3568
3637
                    case " $predeps $postdeps " in
3594
3663
                  droppeddeps=yes
3595
3664
                  $echo
3596
3665
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3597
 
                  $echo "***  make it link in!  You will probably need to install it or some"
 
3666
                  $echo "*** make it link in!  You will probably need to install it or some"
3598
3667
                  $echo "*** library that it depends on before this library will be fully"
3599
3668
                  $echo "*** functional.  Installing it before continuing would be even better."
3600
3669
                fi
3880
3949
             test -n "$hardcode_libdirs"; then
3881
3950
            libdir="$hardcode_libdirs"
3882
3951
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3883
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
3952
              case $archive_cmds in
 
3953
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
 
3954
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
 
3955
              esac
3884
3956
            else
3885
3957
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3886
3958
            fi
4190
4262
      ;;
4191
4263
 
4192
4264
    obj)
4193
 
      if test -n "$deplibs"; then
4194
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4195
 
      fi
 
4265
      case " $deplibs" in
 
4266
      *\ -l* | *\ -L*)
 
4267
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
 
4268
      esac
4196
4269
 
4197
4270
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4198
4271
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4239
4312
      reload_conv_objs=
4240
4313
      gentop=
4241
4314
      # reload_cmds runs $LD directly, so let us get rid of
4242
 
      # -Wl from whole_archive_flag_spec
 
4315
      # -Wl from whole_archive_flag_spec and hope we can get by with
 
4316
      # turning comma into space..
4243
4317
      wl=
4244
4318
 
4245
4319
      if test -n "$convenience"; then
4246
4320
        if test -n "$whole_archive_flag_spec"; then
4247
 
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
 
4321
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
 
4322
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4248
4323
        else
4249
4324
          gentop="$output_objdir/${obj}x"
4250
4325
          generated="$generated $gentop"
4692
4767
          case $host in
4693
4768
          *cygwin* | *mingw* )
4694
4769
            if test -f "$output_objdir/${outputname}.def" ; then
4695
 
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4696
 
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
4770
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4771
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4697
4772
            else
4698
 
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4699
 
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4773
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4774
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4700
4775
             fi
4701
4776
            ;;
4702
4777
          * )
4703
 
            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4704
 
            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4778
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4779
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4705
4780
            ;;
4706
4781
          esac
4707
4782
          ;;
4716
4791
        # really was required.
4717
4792
 
4718
4793
        # Nullify the symbol file.
4719
 
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4720
 
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4794
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4795
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4721
4796
      fi
4722
4797
 
4723
4798
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4724
4799
        # Replace the output file specification.
4725
 
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
 
4800
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4726
4801
        link_command="$compile_command$compile_rpath"
4727
4802
 
4728
4803
        # We have no uninstalled library dependencies, so finalize right now.
4809
4884
        if test "$fast_install" != no; then
4810
4885
          link_command="$finalize_var$compile_command$finalize_rpath"
4811
4886
          if test "$fast_install" = yes; then
4812
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
 
4887
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4813
4888
          else
4814
4889
            # fast_install is set to needless
4815
4890
            relink_command=
4846
4921
          fi
4847
4922
        done
4848
4923
        relink_command="(cd `pwd`; $relink_command)"
4849
 
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
4924
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4850
4925
      fi
4851
4926
 
4852
4927
      # Quote $echo for shipping.
5253
5328
Xsed='${SED} -e 1s/^X//'
5254
5329
sed_quote_subst='$sed_quote_subst'
5255
5330
 
 
5331
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
5332
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
 
5333
  emulate sh
 
5334
  NULLCMD=:
 
5335
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
 
5336
  # is contrary to our usage.  Disable this feature.
 
5337
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
5338
  setopt NO_GLOB_SUBST
 
5339
else
 
5340
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
 
5341
fi
 
5342
BIN_SH=xpg4; export BIN_SH # for Tru64
 
5343
DUALCASE=1; export DUALCASE # for MKS sh
 
5344
 
5256
5345
# The HP-UX ksh and POSIX shell print the target directory to stdout
5257
5346
# if CDPATH is set.
5258
5347
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5395
5484
          ;;
5396
5485
        esac
5397
5486
        $echo >> $output "\
5398
 
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
 
5487
      \$echo \"\$0: cannot exec \$program \$*\"
5399
5488
      exit $EXIT_FAILURE
5400
5489
    fi
5401
5490
  else
5581
5670
      done
5582
5671
      # Quote the link command for shipping.
5583
5672
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5584
 
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
5673
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5585
5674
      if test "$hardcode_automatic" = yes ; then
5586
5675
        relink_command=
5587
5676
      fi
5926
6015
 
5927
6016
          if test -n "$inst_prefix_dir"; then
5928
6017
            # Stick the inst_prefix_dir data into the link command.
5929
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
 
6018
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5930
6019
          else
5931
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
 
6020
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5932
6021
          fi
5933
6022
 
5934
6023
          $echo "$modename: warning: relinking \`$file'" 1>&2
6137
6226
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6138
6227
              outputname="$tmpdir/$file"
6139
6228
              # Replace the output file specification.
6140
 
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
 
6229
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6141
6230
 
6142
6231
              $show "$relink_command"
6143
6232
              if $run eval "$relink_command"; then :
6348
6437
        if test -f "$dir/$objdir/$dlname"; then
6349
6438
          dir="$dir/$objdir"
6350
6439
        else
6351
 
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6352
 
          exit $EXIT_FAILURE
 
6440
          if test ! -f "$dir/$dlname"; then
 
6441
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6442
            exit $EXIT_FAILURE
 
6443
          fi
6353
6444
        fi
6354
6445
        ;;
6355
6446
 
6413
6504
      fi
6414
6505
 
6415
6506
      # Restore saved environment variables
6416
 
      if test "${save_LC_ALL+set}" = set; then
6417
 
        LC_ALL="$save_LC_ALL"; export LC_ALL
6418
 
      fi
6419
 
      if test "${save_LANG+set}" = set; then
6420
 
        LANG="$save_LANG"; export LANG
6421
 
      fi
 
6507
      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6508
      do
 
6509
        eval "if test \"\${save_$lt_var+set}\" = set; then
 
6510
                $lt_var=\$save_$lt_var; export $lt_var
 
6511
              fi"
 
6512
      done
6422
6513
 
6423
6514
      # Now prepare to actually exec the command.
6424
6515
      exec_cmd="\$cmd$args"
6775
6866
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6776
6867
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6777
6868
  -export-symbols SYMFILE
6778
 
                    try to export only the symbols listed in SYMFILE
 
6869
                    try to export only the symbols listed in SYMFILE
6779
6870
  -export-symbols-regex REGEX
6780
 
                    try to export only the symbols matching REGEX
 
6871
                    try to export only the symbols matching REGEX
6781
6872
  -LLIBDIR          search LIBDIR for required installed libraries
6782
6873
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6783
6874
  -module           build a library that can dlopened
6791
6882
  -release RELEASE  specify package release information
6792
6883
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6793
6884
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6794
 
  -static           do not do any dynamic linking of libtool libraries
 
6885
  -static           do not do any dynamic linking of uninstalled libtool libraries
 
6886
  -static-libtool-libs
 
6887
                    do not do any dynamic linking of libtool libraries
6795
6888
  -version-info CURRENT[:REVISION[:AGE]]
6796
 
                    specify library version info [each variable defaults to 0]
 
6889
                    specify library version info [each variable defaults to 0]
6797
6890
 
6798
6891
All other options (arguments beginning with \`-') are ignored.
6799
6892