~ubuntu-branches/ubuntu/quantal/imagemagick/quantal

« back to all changes in this revision

Viewing changes to config/ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-06-04 13:01:13 UTC
  • mfrom: (1.1.5 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090604130113-my9114jxmafpwew3
Tags: 7:6.5.1.0-1.1ubuntu1
* Merge from debian unstable, remaining changes:
  - (Build-)depend on libltdl7-dev instead of libltdl3-dev (the armel buildds
    currently have both available).
  - Don't build-dep on librsvg, it brings in excessive dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Generated from ltmain.m4sh.
2
2
 
3
 
# libtool (GNU libtool 1.3019 2008-10-28) 2.2.7a
 
3
# ltmain.sh (GNU libtool) 2.2.6
4
4
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5
5
 
6
6
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
32
32
#
33
33
# Provide generalized library-building support services.
34
34
#
35
 
#       --config             show all configuration variables
36
 
#       --debug              enable verbose shell tracing
37
 
#   -n, --dry-run            display commands without modifying any files
38
 
#       --features           display basic configuration information and exit
39
 
#       --mode=MODE          use operation mode MODE
40
 
#       --preserve-dup-deps  don't remove duplicate dependency libraries
41
 
#       --quiet, --silent    don't print informational messages
42
 
#       --tag=TAG            use configuration variables from tag TAG
43
 
#   -v, --verbose            print informational messages (default)
44
 
#       --version            print version information
45
 
#   -h, --help, --help-all   print short, long, or detailed help message
 
35
#     --config             show all configuration variables
 
36
#     --debug              enable verbose shell tracing
 
37
# -n, --dry-run            display commands without modifying any files
 
38
#     --features           display basic configuration information and exit
 
39
#     --mode=MODE          use operation mode MODE
 
40
#     --preserve-dup-deps  don't remove duplicate dependency libraries
 
41
#     --quiet, --silent    don't print informational messages
 
42
#     --tag=TAG            use configuration variables from tag TAG
 
43
# -v, --verbose            print informational messages (default)
 
44
#     --version            print version information
 
45
# -h, --help               print short or long help message
46
46
#
47
47
# MODE must be one of the following:
48
48
#
49
 
#         clean              remove files from the build directory
50
 
#         compile            compile a source file into a libtool object
51
 
#         execute            automatically set library path, then run a program
52
 
#         finish             complete the installation of libtool libraries
53
 
#         install            install libraries or executables
54
 
#         link               create a library or an executable
55
 
#         uninstall          remove libraries from an installed directory
 
49
#       clean              remove files from the build directory
 
50
#       compile            compile a source file into a libtool object
 
51
#       execute            automatically set library path, then run a program
 
52
#       finish             complete the installation of libtool libraries
 
53
#       install            install libraries or executables
 
54
#       link               create a library or an executable
 
55
#       uninstall          remove libraries from an installed directory
56
56
#
57
57
# MODE-ARGS vary depending on the MODE.
58
58
# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
60
60
# When reporting a bug, please describe a test case to reproduce it and
61
61
# include the following information:
62
62
#
63
 
#         host-triplet: $host
64
 
#         shell:                $SHELL
65
 
#         compiler:             $LTCC
66
 
#         compiler flags:               $LTCFLAGS
67
 
#         linker:               $LD (gnu? $with_gnu_ld)
68
 
#         $progname:    (GNU libtool 1.3019 2008-10-28) 2.2.7a
69
 
#         automake:     $automake_version
70
 
#         autoconf:     $autoconf_version
 
63
#       host-triplet:   $host
 
64
#       shell:          $SHELL
 
65
#       compiler:               $LTCC
 
66
#       compiler flags:         $LTCFLAGS
 
67
#       linker:         $LD (gnu? $with_gnu_ld)
 
68
#       $progname:              (GNU libtool) 2.2.6
 
69
#       automake:               $automake_version
 
70
#       autoconf:               $autoconf_version
71
71
#
72
72
# Report bugs to <bug-libtool@gnu.org>.
73
73
 
74
 
PROGRAM=libtool
 
74
PROGRAM=ltmain.sh
75
75
PACKAGE=libtool
76
 
VERSION=2.2.7a
77
 
TIMESTAMP=" 1.3019 2008-10-28"
78
 
package_revision=1.3019
 
76
VERSION=2.2.6
 
77
TIMESTAMP=""
 
78
package_revision=1.3012
79
79
 
80
80
# Be Bourne compatible
81
81
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
509
509
# Echo short help message to standard output and exit.
510
510
func_usage ()
511
511
{
512
 
    $SED -n '/^# Usage:/,/^#  *-h/ {
 
512
    $SED -n '/^# Usage:/,/# -h/ {
513
513
        s/^# //
514
514
        s/^# *$//
515
515
        s/\$progname/'$progname'/
520
520
    exit $?
521
521
}
522
522
 
523
 
# func_help [NOEXIT]
524
 
# Echo long help message to standard output and exit,
525
 
# unless 'noexit' is passed as argument.
 
523
# func_help
 
524
# Echo long help message to standard output and exit.
526
525
func_help ()
527
526
{
528
527
    $SED -n '/^# Usage:/,/# Report bugs to/ {
539
538
        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
540
539
        p
541
540
     }' < "$progpath"
542
 
    ret=$?
543
 
    if test -z "$1"; then
544
 
      exit $ret
545
 
    fi
 
541
    exit $?
546
542
}
547
543
 
548
544
# func_missing_arg argname
797
793
 
798
794
      -\?|-h)           func_usage                                      ;;
799
795
      --help)           opt_help=:                                      ;;
800
 
      --help-all)       opt_help=': help-all'                           ;;
801
796
      --version)        func_version                                    ;;
802
797
 
803
798
      -*)               func_fatal_help "unrecognized option \`$opt'"   ;;
1450
1445
}
1451
1446
 
1452
1447
$opt_help || {
1453
 
  test "$mode" = compile && func_mode_compile ${1+"$@"}
 
1448
test "$mode" = compile && func_mode_compile ${1+"$@"}
1454
1449
}
1455
1450
 
1456
1451
func_mode_help ()
1491
1486
  -prefer-non-pic   try to building non-PIC objects only
1492
1487
  -shared           do not build a \`.o' file suitable for static linking
1493
1488
  -static           only build a \`.o' file suitable for static linking
1494
 
  -Wc,FLAG          pass FLAG directly to the compiler
1495
1489
 
1496
1490
COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1497
1491
from the given SOURCEFILE.
1592
1586
  -version-info CURRENT[:REVISION[:AGE]]
1593
1587
                    specify library version info [each variable defaults to 0]
1594
1588
  -weak LIBNAME     declare that the target provides the LIBNAME interface
1595
 
  -Wc,FLAG
1596
 
  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
1597
 
  -Wl,FLAG
1598
 
  -Xlinker FLAG     pass linker-specific FLAG directly to the linker
1599
 
  -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
1600
1589
 
1601
1590
All other options (arguments beginning with \`-') are ignored.
1602
1591
 
1636
1625
 
1637
1626
    $ECHO
1638
1627
    $ECHO "Try \`$progname --help' for more information about other modes."
 
1628
 
 
1629
    exit $?
1639
1630
}
1640
1631
 
1641
 
# Now that we've collected a possible --mode arg, show help if necessary
1642
 
if $opt_help; then
1643
 
  if test "$opt_help" = :; then
1644
 
    func_mode_help
1645
 
  else
1646
 
    {
1647
 
      func_help noexit
1648
 
      for mode in compile link execute install finish uninstall clean; do
1649
 
        func_mode_help
1650
 
      done
1651
 
    } | sed -n '1p; 2,$s/^Usage:/  or: /p'
1652
 
    {
1653
 
      func_help noexit
1654
 
      for mode in compile link execute install finish uninstall clean; do
1655
 
        echo
1656
 
        func_mode_help
1657
 
      done
1658
 
    } |
1659
 
    sed '1d
1660
 
      /^When reporting/,/^Report/{
1661
 
        H
1662
 
        d
1663
 
      }
1664
 
      $x
1665
 
      /information about other modes/d
1666
 
      /more detailed .*MODE/d
1667
 
      s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
1668
 
  fi
1669
 
  exit $?
1670
 
fi
 
1632
  # Now that we've collected a possible --mode arg, show help if necessary
 
1633
  $opt_help && func_mode_help
1671
1634
 
1672
1635
 
1673
1636
# func_mode_execute arg...
1904
1867
    # Aesthetically quote it.
1905
1868
    func_quote_for_eval "$arg"
1906
1869
    install_prog="$install_prog$func_quote_for_eval_result"
1907
 
    install_shared_prog=$install_prog
1908
1870
 
1909
1871
    # We need to accept at least all the BSD install flags.
1910
1872
    dest=
1914
1876
    install_type=
1915
1877
    isdir=no
1916
1878
    stripme=
1917
 
    no_mode=:
1918
1879
    for arg
1919
1880
    do
1920
 
      arg2=
1921
1881
      if test -n "$dest"; then
1922
1882
        files="$files $dest"
1923
1883
        dest=$arg
1944
1904
      *)
1945
1905
        # If the previous option needed an argument, then skip it.
1946
1906
        if test -n "$prev"; then
1947
 
          if test "x$prev" = x-m && test -n "$install_override_mode"; then
1948
 
            arg2=$install_override_mode
1949
 
            no_mode=false
1950
 
          fi
1951
1907
          prev=
1952
1908
        else
1953
1909
          dest=$arg
1959
1915
      # Aesthetically quote the argument.
1960
1916
      func_quote_for_eval "$arg"
1961
1917
      install_prog="$install_prog $func_quote_for_eval_result"
1962
 
      if test -n "$arg2"; then
1963
 
        func_quote_for_eval "$arg2"
1964
 
      fi
1965
 
      install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
1966
1918
    done
1967
1919
 
1968
1920
    test -z "$install_prog" && \
1971
1923
    test -n "$prev" && \
1972
1924
      func_fatal_help "the \`$prev' option requires an argument"
1973
1925
 
1974
 
    if test -n "$install_override_mode" && $no_mode; then
1975
 
      func_quote_for_eval "$install_override_mode"
1976
 
      install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
1977
 
    fi
1978
 
 
1979
1926
    if test -z "$files"; then
1980
1927
      if test -z "$dest"; then
1981
1928
        func_fatal_help "no file or destination specified"
2096
2043
          test -n "$relink_command" && srcname="$realname"T
2097
2044
 
2098
2045
          # Install the shared library and build the symlinks.
2099
 
          func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
 
2046
          func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2100
2047
              'exit $?'
2101
2048
          tstripme="$stripme"
2102
2049
          case $host_os in