~ubuntu-branches/ubuntu/raring/libx11/raring-proposed

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois
  • Date: 2012-06-16 20:32:52 UTC
  • mfrom: (1.5.3) (2.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20120616203252-wh2r9eidf5765ldo
Tags: 2:1.5.0-1
* New upstream release. Visible changes:
  - Add APL support, yay!
  - A few duplicated Compose sequences were tweaked or removed. Affected
    characters are: Ã / µ / Ñ / ñ / ¹ / ² / ³ / Ó / ó / Ǻ / ǻ.
* Drop patch, fixed upstream:
  - 001-configure-check-if-issetugid-is-declared.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
# libtool (GNU libtool) 2.4
 
2
# libtool (GNU libtool) 2.4.2
3
3
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
4
 
5
5
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6
 
# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
6
# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
7
7
# This is free software; see the source for copying conditions.  There is NO
8
8
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
9
 
41
41
#       --quiet, --silent    don't print informational messages
42
42
#       --no-quiet, --no-silent
43
43
#                            print informational messages (default)
 
44
#       --no-warn            don't display warning messages
44
45
#       --tag=TAG            use configuration variables from tag TAG
45
46
#   -v, --verbose            print more informational messages than default
46
47
#       --no-verbose         don't print the extra informational messages
69
70
#         compiler:             $LTCC
70
71
#         compiler flags:               $LTCFLAGS
71
72
#         linker:               $LD (gnu? $with_gnu_ld)
72
 
#         $progname:    (GNU libtool) 2.4
 
73
#         $progname:    (GNU libtool) 2.4.2
73
74
#         automake:     $automake_version
74
75
#         autoconf:     $autoconf_version
75
76
#
79
80
 
80
81
PROGRAM=libtool
81
82
PACKAGE=libtool
82
 
VERSION=2.4
 
83
VERSION=2.4.2
83
84
TIMESTAMP=""
84
 
package_revision=1.3293
 
85
package_revision=1.3337
85
86
 
86
87
# Be Bourne compatible
87
88
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
136
137
 
137
138
: ${CP="cp -f"}
138
139
test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139
 
: ${EGREP="/bin/grep -E"}
140
 
: ${FGREP="/bin/grep -F"}
141
 
: ${GREP="/bin/grep"}
142
 
: ${LN_S="ln -s"}
143
140
: ${MAKE="make"}
144
141
: ${MKDIR="mkdir"}
145
142
: ${MV="mv -f"}
146
143
: ${RM="rm -f"}
147
 
: ${SED="/bin/sed"}
148
144
: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
149
145
: ${Xsed="$SED -e 1s/^X//"}
150
146
 
387
383
     ;;
388
384
  *)
389
385
     save_IFS="$IFS"
390
 
     IFS=:
 
386
     IFS=${PATH_SEPARATOR-:}
391
387
     for progdir in $PATH; do
392
388
       IFS="$save_IFS"
393
389
       test -x "$progdir/$progname" && break
771
767
        s*\$LTCFLAGS*'"$LTCFLAGS"'*
772
768
        s*\$LD*'"$LD"'*
773
769
        s/\$with_gnu_ld/'"$with_gnu_ld"'/
774
 
        s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
775
 
        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
 
770
        s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
 
771
        s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
776
772
        p
777
773
        d
778
774
     }
1052
1048
opt_help=false
1053
1049
opt_help_all=false
1054
1050
opt_silent=:
 
1051
opt_warning=:
1055
1052
opt_verbose=:
1056
1053
opt_silent=false
1057
1054
opt_verbose=false
1120
1117
                        opt_silent=false
1121
1118
func_append preserve_args " $opt"
1122
1119
                        ;;
 
1120
      --no-warning|--no-warn)
 
1121
                        opt_warning=false
 
1122
func_append preserve_args " $opt"
 
1123
                        ;;
1123
1124
      --no-verbose)
1124
1125
                        opt_verbose=false
1125
1126
func_append preserve_args " $opt"
2059
2060
    *.[cCFSifmso] | \
2060
2061
    *.ada | *.adb | *.ads | *.asm | \
2061
2062
    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2062
 
    *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
 
2063
    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
2063
2064
      func_xform "$libobj"
2064
2065
      libobj=$func_xform_result
2065
2066
      ;;
3201
3202
 
3202
3203
      # Set up the ranlib parameters.
3203
3204
      oldlib="$destdir/$name"
 
3205
      func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
 
3206
      tool_oldlib=$func_to_tool_file_result
3204
3207
 
3205
3208
      func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3206
3209
 
3207
3210
      if test -n "$stripme" && test -n "$old_striplib"; then
3208
 
        func_show_eval "$old_striplib $oldlib" 'exit $?'
 
3211
        func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
3209
3212
      fi
3210
3213
 
3211
3214
      # Do each command in the postinstall commands.
3470
3473
          # linked before any other PIC object.  But we must not use
3471
3474
          # pic_flag when linking with -static.  The problem exists in
3472
3475
          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3473
 
          *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
 
3476
          *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3474
3477
            pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3475
3478
          *-*-hpux*)
3476
3479
            pic_flag_for_symtable=" $pic_flag"  ;;
3982
3985
# launches target application with the remaining arguments.
3983
3986
func_exec_program ()
3984
3987
{
3985
 
  for lt_wr_arg
3986
 
  do
3987
 
    case \$lt_wr_arg in
3988
 
    --lt-*) ;;
3989
 
    *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3990
 
    esac
3991
 
    shift
3992
 
  done
 
3988
  case \" \$* \" in
 
3989
  *\\ --lt-*)
 
3990
    for lt_wr_arg
 
3991
    do
 
3992
      case \$lt_wr_arg in
 
3993
      --lt-*) ;;
 
3994
      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
 
3995
      esac
 
3996
      shift
 
3997
    done ;;
 
3998
  esac
3993
3999
  func_exec_program_core \${1+\"\$@\"}
3994
4000
}
3995
4001
 
5057
5063
{
5058
5064
EOF
5059
5065
            func_emit_wrapper yes |
5060
 
              $SED -e 's/\([\\"]\)/\\\1/g' \
5061
 
                   -e 's/^/  fputs ("/' -e 's/$/\\n", f);/'
5062
 
 
 
5066
              $SED -n -e '
 
5067
s/^\(.\{79\}\)\(..*\)/\1\
 
5068
\2/
 
5069
h
 
5070
s/\([\\"]\)/\\\1/g
 
5071
s/$/\\n/
 
5072
s/\([^\n]*\).*/  fputs ("\1", f);/p
 
5073
g
 
5074
D'
5063
5075
            cat <<"EOF"
5064
5076
}
5065
5077
EOF
5643
5655
        continue
5644
5656
        ;;
5645
5657
 
5646
 
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
5658
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
 
5659
      |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5647
5660
        func_append compiler_flags " $arg"
5648
5661
        func_append compile_command " $arg"
5649
5662
        func_append finalize_command " $arg"
6147
6160
        lib=
6148
6161
        found=no
6149
6162
        case $deplib in
6150
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
6163
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
 
6164
        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6151
6165
          if test "$linkmode,$pass" = "prog,link"; then
6152
6166
            compile_deplibs="$deplib $compile_deplibs"
6153
6167
            finalize_deplibs="$deplib $finalize_deplibs"
6831
6845
                 test "$hardcode_direct_absolute" = no; then
6832
6846
                add="$dir/$linklib"
6833
6847
              elif test "$hardcode_minus_L" = yes; then
6834
 
                add_dir="-L$dir"
 
6848
                add_dir="-L$absdir"
6835
6849
                # Try looking first in the location we're being installed to.
6836
6850
                if test -n "$inst_prefix_dir"; then
6837
6851
                  case $libdir in
7316
7330
          # which has an extra 1 added just for fun
7317
7331
          #
7318
7332
          case $version_type in
 
7333
          # correct linux to gnu/linux during the next big refactor
7319
7334
          darwin|linux|osf|windows|none)
7320
7335
            func_arith $number_major + $number_minor
7321
7336
            current=$func_arith_result
7432
7447
          versuffix="$major.$revision"
7433
7448
          ;;
7434
7449
 
7435
 
        linux)
 
7450
        linux) # correct to gnu/linux during the next big refactor
7436
7451
          func_arith $current - $age
7437
7452
          major=.$func_arith_result
7438
7453
          versuffix="$major.$age.$revision"
8020
8035
 
8021
8036
      # Test again, we may have decided not to build it any more
8022
8037
      if test "$build_libtool_libs" = yes; then
 
8038
        # Remove ${wl} instances when linking with ld.
 
8039
        # FIXME: should test the right _cmds variable.
 
8040
        case $archive_cmds in
 
8041
          *\$LD\ *) wl= ;;
 
8042
        esac
8023
8043
        if test "$hardcode_into_libs" = yes; then
8024
8044
          # Hardcode the library paths
8025
8045
          hardcode_libdirs=
8050
8070
            elif test -n "$runpath_var"; then
8051
8071
              case "$perm_rpath " in
8052
8072
              *" $libdir "*) ;;
8053
 
              *) func_apped perm_rpath " $libdir" ;;
 
8073
              *) func_append perm_rpath " $libdir" ;;
8054
8074
              esac
8055
8075
            fi
8056
8076
          done
8058
8078
          if test -n "$hardcode_libdir_separator" &&
8059
8079
             test -n "$hardcode_libdirs"; then
8060
8080
            libdir="$hardcode_libdirs"
8061
 
            if test -n "$hardcode_libdir_flag_spec_ld"; then
8062
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8063
 
            else
8064
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8065
 
            fi
 
8081
            eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
8066
8082
          fi
8067
8083
          if test -n "$runpath_var" && test -n "$perm_rpath"; then
8068
8084
            # We should set the runpath_var.
9152
9168
            esac
9153
9169
          done
9154
9170
        fi
 
9171
        func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
 
9172
        tool_oldlib=$func_to_tool_file_result
9155
9173
        eval cmds=\"$old_archive_cmds\"
9156
9174
 
9157
9175
        func_len " $cmds"
9261
9279
              *.la)
9262
9280
                func_basename "$deplib"
9263
9281
                name="$func_basename_result"
9264
 
                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
 
9282
                func_resolve_sysroot "$deplib"
 
9283
                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9265
9284
                test -z "$libdir" && \
9266
9285
                  func_fatal_error "\`$deplib' is not a valid libtool archive"
9267
9286
                func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"