~ubuntu-branches/ubuntu/trusty/htop/trusty-proposed

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Eugene V. Lyubimkin
  • Date: 2009-04-05 11:51:34 UTC
  • mfrom: (1.1.13 upstream) (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090405115134-xyuzxp308k5qos0k
Tags: 0.8.1+svn149-1
* New upstream development snapshot:
  - Allow building withough PLPA support. (Closes: #521861)
* debian/patches:
  - 010-make-desktop-file-valid.patch: deleted, merged upstream.
  - 100-upstream-sort-by-processor-and-session.patch: deleted, merged
    upstream.
  - 110-upstream-fix-page-size-on-BSD.patch: deleted, merged upstream.
  - 120-upstream-explain-cpu-bars-in-monochrome-mode.patch: deleted, merged
    upstream.
  - 200-filter-non-printable-characters.patch: deleted, upstream has own
    version of this patch.
  - 610-rename-veid-to-ctid.patch: deleted, merged upstream.
  - 600-openvz-veid-on-kernels-gt-2.6.18.patch: refreshed.
  - 800-tree-view-without-userland-threads.patch: deleted, merged upstream.
  - 700-ltrace-support.patch: refreshed, added the description.
* debian/rules:
  - Deal more robustly with config.{sub,guess} files, thanks to Roger Leigh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# NOTE: Changing this file will not affect anything until you rerun configure.
3
3
#
4
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5
 
# 2007  Free Software Foundation, Inc.
 
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.24
47
 
TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)"
 
46
VERSION="1.5.26 Debian 1.5.26-4"
 
47
TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
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
113
113
# These must not be set unconditionally because not all systems understand
114
114
# e.g. LANG=C (notably SCO).
115
115
# We save the old values to restore during execute mode.
116
 
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
116
lt_env=
 
117
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117
118
do
118
119
  eval "if test \"\${$lt_var+set}\" = set; then
119
120
          save_$lt_var=\$$lt_var
 
121
          lt_env=\"$lt_var=\$$lt_var \$lt_env\"
120
122
          $lt_var=C
121
123
          export $lt_var
122
124
        fi"
123
125
done
124
126
 
 
127
if test -n "$lt_env"; then
 
128
  lt_env="env $lt_env"
 
129
fi
 
130
 
125
131
# Make sure IFS has a sensible default
126
132
lt_nl='
127
133
'
485
491
    echo "\
486
492
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
487
493
 
488
 
Copyright (C) 2007  Free Software Foundation, Inc.
 
494
Copyright (C) 2008  Free Software Foundation, Inc.
489
495
This is free software; see the source for copying conditions.  There is NO
490
496
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
491
497
    exit $?
788
794
    *.for) xform=for ;;
789
795
    *.java) xform=java ;;
790
796
    *.obj) xform=obj ;;
 
797
    *.sx) xform=sx ;;
791
798
    esac
792
799
 
793
800
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
956
963
      $run $rm "$lobj" "$output_obj"
957
964
 
958
965
      $show "$command"
959
 
      if $run eval "$command"; then :
 
966
      if $run eval $lt_env "$command"; then :
960
967
      else
961
968
        test -n "$output_obj" && $run $rm $removelist
962
969
        exit $EXIT_FAILURE
1028
1035
      command="$command$suppress_output"
1029
1036
      $run $rm "$obj" "$output_obj"
1030
1037
      $show "$command"
1031
 
      if $run eval "$command"; then :
 
1038
      if $run eval $lt_env "$command"; then :
1032
1039
      else
1033
1040
        $run $rm $removelist
1034
1041
        exit $EXIT_FAILURE
1161
1168
    thread_safe=no
1162
1169
    vinfo=
1163
1170
    vinfo_number=no
 
1171
    single_module="${wl}-single_module"
1164
1172
 
1165
1173
    func_infer_tag $base_compile
1166
1174
 
1646
1654
        continue
1647
1655
        ;;
1648
1656
 
 
1657
      -multi_module)
 
1658
        single_module="${wl}-multi_module"
 
1659
        continue
 
1660
        ;;
 
1661
 
1649
1662
      -module)
1650
1663
        module=yes
1651
1664
        continue
2122
2135
        case $pass in
2123
2136
        dlopen) libs="$dlfiles" ;;
2124
2137
        dlpreopen) libs="$dlprefiles" ;;
2125
 
        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
 
2138
        link)
 
2139
          libs="$deplibs %DEPLIBS%"
 
2140
          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
 
2141
          ;;
2126
2142
        esac
2127
2143
      fi
2128
2144
      if test "$pass" = dlopen; then
2149
2165
            continue
2150
2166
          fi
2151
2167
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2152
 
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
 
2168
          if test "$linkmode" = lib; then
 
2169
            searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
 
2170
          else
 
2171
            searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
 
2172
          fi
 
2173
          for searchdir in $searchdirs; do
2153
2174
            for search_ext in .la $std_shrext .so .a; do
2154
2175
              # Search the libtool library
2155
2176
              lib="$searchdir/lib${name}${search_ext}"
2945
2966
                  # we do not want to link against static libs,
2946
2967
                  # but need to link against shared
2947
2968
                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
 
2969
                  eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2948
2970
                  if test -n "$deplibrary_names" ; then
2949
2971
                    for tmp in $deplibrary_names ; do
2950
2972
                      depdepl=$tmp
2951
2973
                    done
2952
 
                    if test -f "$path/$depdepl" ; then
 
2974
                    if test -f "$deplibdir/$depdepl" ; then
 
2975
                      depdepl="$deplibdir/$depdepl"
 
2976
                    elif test -f "$path/$depdepl" ; then
2953
2977
                      depdepl="$path/$depdepl"
 
2978
                    else
 
2979
                      # Can't find it, oh well...
 
2980
                      depdepl=
2954
2981
                    fi
2955
2982
                    # do not add paths which are already there
2956
2983
                    case " $newlib_search_path " in
3098
3125
 
3099
3126
    case $linkmode in
3100
3127
    oldlib)
3101
 
      if test -n "$deplibs"; then
3102
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3103
 
      fi
 
3128
      case " $deplibs" in
 
3129
      *\ -l* | *\ -L*)
 
3130
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
 
3131
      esac
3104
3132
 
3105
3133
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3106
3134
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3244
3272
            revision="$number_minor"
3245
3273
            lt_irix_increment=no
3246
3274
            ;;
 
3275
          *)
 
3276
            $echo "$modename: unknown library version type \`$version_type'" 1>&2
 
3277
            $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
 
3278
            exit $EXIT_FAILURE
 
3279
            ;;
3247
3280
          esac
3248
3281
          ;;
3249
3282
        no)
4237
4270
      ;;
4238
4271
 
4239
4272
    obj)
4240
 
      if test -n "$deplibs"; then
4241
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4242
 
      fi
 
4273
      case " $deplibs" in
 
4274
      *\ -l* | *\ -L*)
 
4275
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
 
4276
      esac
4243
4277
 
4244
4278
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4245
4279
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
6478
6512
      fi
6479
6513
 
6480
6514
      # Restore saved environment variables
6481
 
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6515
      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6482
6516
      do
6483
6517
        eval "if test \"\${save_$lt_var+set}\" = set; then
6484
6518
                $lt_var=\$save_$lt_var; export $lt_var