~ubuntu-branches/ubuntu/karmic/libxslt/karmic

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-11-10 21:24:02 UTC
  • Revision ID: james.westby@ubuntu.com-20051110212402-c1ghkka0v0hn4k35
Tags: 1.1.15-1ubuntu1
* Resynchronize with Debian:
  - drop support for Python 2.2 and 2.3.
  - keep libxslt1

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# function.
34
34
progpath="$0"
35
35
 
36
 
# RH: define SED for historic ltconfig's generated by Libtool 1.3
37
 
[ -z "$SED" ] && SED=sed
38
 
 
39
36
# The name of this program:
40
37
progname=`echo "$progpath" | $SED $basename`
41
38
modename="$progname"
47
44
PROGRAM=ltmain.sh
48
45
PACKAGE=libtool
49
46
VERSION=1.5.6
50
 
TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
 
47
TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
51
48
 
52
49
 
53
50
# Check that we have a working $echo.
1841
1838
        case $pass in
1842
1839
        dlopen) libs="$dlfiles" ;;
1843
1840
        dlpreopen) libs="$dlprefiles" ;;
1844
 
        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
 
1841
        link)
 
1842
          libs="$deplibs %DEPLIBS%"
 
1843
          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
 
1844
          ;;
1845
1845
        esac
1846
1846
      fi
1847
1847
      if test "$pass" = dlopen; then
1867
1867
            $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1868
1868
            continue
1869
1869
          fi
1870
 
          if test "$pass" = conv; then
1871
 
            deplibs="$deplib $deplibs"
1872
 
            continue
1873
 
          fi
1874
1870
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1875
1871
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1876
1872
            for search_ext in .la $std_shrext .so .a; do
2933
2929
            age="$number_minor"
2934
2930
            revision="$number_minor"
2935
2931
            ;;
 
2932
          *)
 
2933
            $echo "$modename: unknown library version type \`$version_type'" 1>&2
 
2934
            $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
 
2935
            exit $EXIT_FAILURE
 
2936
            ;;
2936
2937
          esac
2937
2938
          ;;
2938
2939
        no)
2944
2945
 
2945
2946
        # Check that each of the things are valid numbers.
2946
2947
        case $current in
2947
 
        [0-9]*) ;;
 
2948
        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2948
2949
        *)
2949
2950
          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
2950
2951
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2953
2954
        esac
2954
2955
 
2955
2956
        case $revision in
2956
 
        [0-9]*) ;;
 
2957
        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2957
2958
        *)
2958
2959
          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
2959
2960
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2962
2963
        esac
2963
2964
 
2964
2965
        case $age in
2965
 
        [0-9]*) ;;
 
2966
        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2966
2967
        *)
2967
2968
          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
2968
2969
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2