~ubuntu-branches/ubuntu/trusty/globus-gssapi-gsi/trusty

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2011-12-27 15:18:29 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20111227151829-wtxfg8n50mup50fo
Tags: 10.2-1
* Update to Globus Toolkit 5.2.0
* Make doc package architecture independent

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, 2006,
5
 
# 2007, 2008  Free Software Foundation, Inc.
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
5
# 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.26
47
 
TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
 
46
VERSION=1.5.22
 
47
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48
48
 
49
49
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50
50
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
57
57
else
58
58
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
59
59
fi
60
 
BIN_SH=xpg4; export BIN_SH # for Tru64
61
 
DUALCASE=1; export DUALCASE # for MKS sh
62
60
 
63
61
# Check that we have a working $echo.
64
62
if test "X$1" = X--no-reexec; then
113
111
# These must not be set unconditionally because not all systems understand
114
112
# e.g. LANG=C (notably SCO).
115
113
# We save the old values to restore during execute mode.
116
 
lt_env=
117
 
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
114
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
118
115
do
119
116
  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"
 
117
         save_$lt_var=\$$lt_var
 
118
         $lt_var=C
 
119
         export $lt_var
 
120
       fi"
125
121
done
126
122
 
127
 
if test -n "$lt_env"; then
128
 
  lt_env="env $lt_env"
129
 
fi
130
 
 
131
123
# Make sure IFS has a sensible default
132
124
lt_nl='
133
125
'
214
206
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
215
207
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
216
208
      win32_nmres=`eval $NM -f posix -A $1 | \
217
 
        $SED -n -e '1,100{
218
 
                / I /{
219
 
                        s,.*,import,
220
 
                        p
221
 
                        q
222
 
                        }
223
 
                }'`
 
209
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
224
210
      case $win32_nmres in
225
211
      import*)  win32_libid_type="x86 archive import";;
226
212
      *)        win32_libid_type="x86 archive static";;
354
340
      my_xlib_u=$my_xlib
355
341
      while :; do
356
342
        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
 
343
       *" $my_xlib_u "*)
 
344
         extracted_serial=`expr $extracted_serial + 1`
 
345
         my_xlib_u=lt$extracted_serial-$my_xlib ;;
 
346
       *) break ;;
 
347
       esac
362
348
      done
363
349
      extracted_archives="$extracted_archives $my_xlib_u"
364
350
      my_xdir="$my_gentop/$my_xlib_u"
488
474
    ;;
489
475
 
490
476
  --version)
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."
 
477
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
 
478
    $echo
 
479
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
 
480
    $echo "This is free software; see the source for copying conditions.  There is NO"
 
481
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
497
482
    exit $?
498
483
    ;;
499
484
 
790
775
    *.class) xform=class ;;
791
776
    *.cpp) xform=cpp ;;
792
777
    *.cxx) xform=cxx ;;
793
 
    *.[fF][09]?) xform=[fF][09]. ;;
 
778
    *.f90) xform=f90 ;;
794
779
    *.for) xform=for ;;
795
780
    *.java) xform=java ;;
796
781
    *.obj) xform=obj ;;
797
 
    *.sx) xform=sx ;;
798
782
    esac
799
783
 
800
784
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
963
947
      $run $rm "$lobj" "$output_obj"
964
948
 
965
949
      $show "$command"
966
 
      if $run eval $lt_env "$command"; then :
 
950
      if $run eval "$command"; then :
967
951
      else
968
952
        test -n "$output_obj" && $run $rm $removelist
969
953
        exit $EXIT_FAILURE
1035
1019
      command="$command$suppress_output"
1036
1020
      $run $rm "$obj" "$output_obj"
1037
1021
      $show "$command"
1038
 
      if $run eval $lt_env "$command"; then :
 
1022
      if $run eval "$command"; then :
1039
1023
      else
1040
1024
        $run $rm $removelist
1041
1025
        exit $EXIT_FAILURE
1168
1152
    thread_safe=no
1169
1153
    vinfo=
1170
1154
    vinfo_number=no
1171
 
    single_module="${wl}-single_module"
1172
1155
 
1173
1156
    func_infer_tag $base_compile
1174
1157
 
1177
1160
    do
1178
1161
      case $arg in
1179
1162
      -all-static | -static | -static-libtool-libs)
1180
 
        case $arg in
1181
 
        -all-static)
 
1163
    case $arg in
 
1164
    -all-static)
1182
1165
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1183
1166
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1184
1167
          fi
1187
1170
          fi
1188
1171
          prefer_static_libs=yes
1189
1172
          ;;
1190
 
        -static)
 
1173
    -static)
1191
1174
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1192
1175
            dlopen_self=$dlopen_self_static
1193
1176
          fi
1194
1177
          prefer_static_libs=built
1195
1178
          ;;
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
 
1179
    -static-libtool-libs)
 
1180
      if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1181
        dlopen_self=$dlopen_self_static
 
1182
      fi
 
1183
      prefer_static_libs=yes
 
1184
      ;;
 
1185
    esac
1203
1186
        build_libtool_libs=no
1204
1187
        build_old_libs=yes
1205
1188
        break
1647
1630
        continue
1648
1631
        ;;
1649
1632
 
1650
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
1633
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1651
1634
        compiler_flags="$compiler_flags $arg"
1652
1635
        compile_command="$compile_command $arg"
1653
1636
        finalize_command="$finalize_command $arg"
1654
1637
        continue
1655
1638
        ;;
1656
1639
 
1657
 
      -multi_module)
1658
 
        single_module="${wl}-multi_module"
1659
 
        continue
1660
 
        ;;
1661
 
 
1662
1640
      -module)
1663
1641
        module=yes
1664
1642
        continue
1672
1650
      # -m* pass through architecture-specific compiler args for GCC
1673
1651
      # -m*, -t[45]*, -txscale* pass through architecture-specific
1674
1652
      # compiler args for GCC
1675
 
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1676
 
      # -F/path gives path to uninstalled frameworks, gcc on darwin
 
1653
      # -pg pass through profiling flag for GCC
1677
1654
      # @file GCC response files
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*|@*)
 
1655
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
 
1656
      -t[45]*|-txscale*|@*)
1680
1657
 
1681
1658
        # Unknown arguments in both finalize_command and compile_command need
1682
1659
        # to be aesthetically quoted because they are evaled later.
1704
1681
 
1705
1682
      -no-install)
1706
1683
        case $host in
1707
 
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
 
1684
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1708
1685
          # The PATH hackery in wrapper scripts is required on Windows
1709
 
          # and Darwin in order for the loader to find any dlls it needs.
 
1686
          # in order for the loader to find any dlls it needs.
1710
1687
          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1711
1688
          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1712
1689
          fast_install=no
2147
2124
        lib=
2148
2125
        found=no
2149
2126
        case $deplib in
2150
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
2127
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
2151
2128
          if test "$linkmode,$pass" = "prog,link"; then
2152
2129
            compile_deplibs="$deplib $compile_deplibs"
2153
2130
            finalize_deplibs="$deplib $finalize_deplibs"
2162
2139
            continue
2163
2140
          fi
2164
2141
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
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
 
2142
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2171
2143
            for search_ext in .la $std_shrext .so .a; do
2172
2144
              # Search the libtool library
2173
2145
              lib="$searchdir/lib${name}${search_ext}"
2393
2365
            convenience="$convenience $ladir/$objdir/$old_library"
2394
2366
            old_convenience="$old_convenience $ladir/$objdir/$old_library"
2395
2367
            tmp_libs=
 
2368
            for deplib in $dependency_libs; do
 
2369
              deplibs="$deplib $deplibs"
 
2370
              if test "X$duplicate_deps" = "Xyes" ; then
 
2371
                case "$tmp_libs " in
 
2372
                *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
 
2373
                esac
 
2374
              fi
 
2375
              tmp_libs="$tmp_libs $deplib"
 
2376
            done
2396
2377
          elif test "$linkmode" != prog && test "$linkmode" != lib; then
2397
2378
            $echo "$modename: \`$lib' is not a convenience library" 1>&2
2398
2379
            exit $EXIT_FAILURE
2448
2429
        # Find the relevant object directory and library name.
2449
2430
        if test "X$installed" = Xyes; then
2450
2431
          if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2451
 
            #$echo "$modename: warning: library \`$lib' was moved." 1>&2
 
2432
            $echo "$modename: warning: library \`$lib' was moved." 1>&2
2452
2433
            dir="$ladir"
2453
2434
            absdir="$abs_ladir"
2454
2435
            libdir="$abs_ladir"
2521
2502
            esac
2522
2503
            # Need to link against all dependency_libs?
2523
2504
            if test "$linkalldeplibs" = yes; then
2524
 
              deplibs="$deplibs"
 
2505
              deplibs="$deplib $deplibs"
2525
2506
            else
2526
2507
              # Need to hardcode shared library paths
2527
2508
              # or/and link against static libraries
2539
2520
 
2540
2521
        if test "$linkmode,$pass" = "prog,link"; then
2541
2522
          if test -n "$library_names" &&
2542
 
             { { test "$prefer_static_libs" = no ||
2543
 
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2544
 
               test -z "$old_library"; }; then
 
2523
         { { test "$prefer_static_libs" = no ||
 
2524
             test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2525
           test -z "$old_library"; }; then
2545
2526
            # We need to hardcode the library path
2546
2527
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2547
2528
              # Make sure the rpath contains only unique directories.
2905
2886
          # Link against this library
2906
2887
          test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2907
2888
          # ... and its dependency_libs
 
2889
          tmp_libs=
 
2890
          for deplib in $dependency_libs; do
 
2891
            newdependency_libs="$deplib $newdependency_libs"
 
2892
            if test "X$duplicate_deps" = "Xyes" ; then
 
2893
              case "$tmp_libs " in
 
2894
              *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
 
2895
              esac
 
2896
            fi
 
2897
            tmp_libs="$tmp_libs $deplib"
 
2898
          done
2908
2899
 
2909
2900
          if test "$link_all_deplibs" != no; then
2910
2901
            # Add the search paths of all dependency libraries
2928
2919
                if grep "^installed=no" $deplib > /dev/null; then
2929
2920
                  path="$absdir/$objdir"
2930
2921
                else
2931
 
                  libdir="$absdir"
 
2922
                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
 
2923
                  if test -z "$libdir"; then
 
2924
                    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
 
2925
                    exit $EXIT_FAILURE
 
2926
                  fi
 
2927
                  if test "$absdir" != "$libdir"; then
 
2928
                    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
 
2929
                  fi
2932
2930
                  path="$absdir"
2933
2931
                fi
2934
2932
                depdepl=
2937
2935
                  # we do not want to link against static libs,
2938
2936
                  # but need to link against shared
2939
2937
                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2940
 
                  eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2941
2938
                  if test -n "$deplibrary_names" ; then
2942
2939
                    for tmp in $deplibrary_names ; do
2943
2940
                      depdepl=$tmp
2944
2941
                    done
2945
 
                    if test -f "$deplibdir/$depdepl" ; then
2946
 
                      depdepl="$deplibdir/$depdepl"
2947
 
                    elif test -f "$path/$depdepl" ; then
 
2942
                    if test -f "$path/$depdepl" ; then
2948
2943
                      depdepl="$path/$depdepl"
2949
 
                    else
2950
 
                      # Can't find it, oh well...
2951
 
                      depdepl=
2952
2944
                    fi
2953
2945
                    # do not add paths which are already there
2954
2946
                    case " $newlib_search_path " in
3096
3088
 
3097
3089
    case $linkmode in
3098
3090
    oldlib)
3099
 
      case " $deplibs" in
3100
 
      *\ -l* | *\ -L*)
3101
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3102
 
      esac
 
3091
      if test -n "$deplibs"; then
 
3092
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
 
3093
      fi
3103
3094
 
3104
3095
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3105
3096
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3238
3229
            age="0"
3239
3230
            ;;
3240
3231
          irix|nonstopux)
3241
 
            current=`expr $number_major + $number_minor`
 
3232
            current=`expr $number_major + $number_minor - 1`
3242
3233
            age="$number_minor"
3243
3234
            revision="$number_minor"
3244
 
            lt_irix_increment=no
3245
3235
            ;;
3246
3236
          esac
3247
3237
          ;;
3300
3290
          versuffix="$major.$age.$revision"
3301
3291
          # Darwin ld doesn't like 0 for these options...
3302
3292
          minor_current=`expr $current + 1`
3303
 
          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3304
 
          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
 
3293
          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3305
3294
          ;;
3306
3295
 
3307
3296
        freebsd-aout)
3315
3304
          ;;
3316
3305
 
3317
3306
        irix | nonstopux)
3318
 
          if test "X$lt_irix_increment" = "Xno"; then
3319
 
            major=`expr $current - $age`
3320
 
          else
3321
 
            major=`expr $current - $age + 1`
3322
 
          fi
 
3307
          major=`expr $current - $age + 1`
 
3308
 
3323
3309
          case $version_type in
3324
3310
            nonstopux) verstring_prefix=nonstopux ;;
3325
3311
            *)         verstring_prefix=sgi ;;
3456
3442
      fi
3457
3443
 
3458
3444
      # Eliminate all temporary directories.
3459
 
      #for path in $notinst_path; do
3460
 
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3461
 
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3462
 
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3463
 
      #done
 
3445
#      for path in $notinst_path; do
 
3446
#       lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3447
#       deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3448
#       dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3449
#      done
3464
3450
 
3465
3451
      if test -n "$xrpath"; then
3466
3452
        # If the user specified any rpath flags, then add them.
3561
3547
          int main() { return 0; }
3562
3548
EOF
3563
3549
          $rm conftest
3564
 
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
 
3550
      if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3565
3551
            ldd_output=`ldd conftest`
3566
3552
            for i in $deplibs; do
3567
3553
              name=`expr $i : '-l\(.*\)'`
3923
3909
             test -n "$hardcode_libdirs"; then
3924
3910
            libdir="$hardcode_libdirs"
3925
3911
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3926
 
              case $archive_cmds in
3927
 
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3928
 
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3929
 
              esac
 
3912
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
3930
3913
            else
3931
3914
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3932
3915
            fi
4236
4219
      ;;
4237
4220
 
4238
4221
    obj)
4239
 
      case " $deplibs" in
4240
 
      *\ -l* | *\ -L*)
4241
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4242
 
      esac
 
4222
      if test -n "$deplibs"; then
 
4223
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
 
4224
      fi
4243
4225
 
4244
4226
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4245
4227
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4293
4275
      if test -n "$convenience"; then
4294
4276
        if test -n "$whole_archive_flag_spec"; then
4295
4277
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4296
 
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
 
4278
      reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4297
4279
        else
4298
4280
          gentop="$output_objdir/${obj}x"
4299
4281
          generated="$generated $gentop"
5313
5295
else
5314
5296
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5315
5297
fi
5316
 
BIN_SH=xpg4; export BIN_SH # for Tru64
5317
 
DUALCASE=1; export DUALCASE # for MKS sh
5318
5298
 
5319
5299
# The HP-UX ksh and POSIX shell print the target directory to stdout
5320
5300
# if CDPATH is set.
6411
6391
        if test -f "$dir/$objdir/$dlname"; then
6412
6392
          dir="$dir/$objdir"
6413
6393
        else
6414
 
          if test ! -f "$dir/$dlname"; then
6415
 
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6416
 
            exit $EXIT_FAILURE
6417
 
          fi
 
6394
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6395
          exit $EXIT_FAILURE
6418
6396
        fi
6419
6397
        ;;
6420
6398
 
6478
6456
      fi
6479
6457
 
6480
6458
      # Restore saved environment variables
6481
 
      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6459
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6482
6460
      do
6483
 
        eval "if test \"\${save_$lt_var+set}\" = set; then
6484
 
                $lt_var=\$save_$lt_var; export $lt_var
6485
 
              fi"
 
6461
       eval "if test \"\${save_$lt_var+set}\" = set; then
 
6462
               $lt_var=\$save_$lt_var; export $lt_var
 
6463
             else
 
6464
               $lt_unset $lt_var
 
6465
             fi"
6486
6466
      done
6487
6467
 
 
6468
 
6488
6469
      # Now prepare to actually exec the command.
6489
6470
      exec_cmd="\$cmd$args"
6490
6471
    else