~ubuntu-branches/ubuntu/karmic/mergeant/karmic

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo R. Montesino
  • Date: 2007-11-29 08:44:48 UTC
  • mfrom: (2.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20071129084448-6aon73d22bv6hzfw
Tags: 0.67-3
* Re-enable installation of the mime files in mergeant.install
* mergeant.dirs: create usr/share/mime/packages to make dh_installmime add
  the update-mime-database code snippets

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
5
 
# Free Software Foundation, Inc.
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
 
5
# 2007  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
17
17
#
18
18
# You should have received a copy of the GNU General Public License
19
19
# along with this program; if not, write to the Free Software
20
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
21
#
22
22
# As a special exception to the GNU General Public License, if you
23
23
# distribute this file as part of a program that contains a
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"
46
43
 
47
44
PROGRAM=ltmain.sh
48
45
PACKAGE=libtool
49
 
VERSION=1.5.6
50
 
TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
 
46
VERSION="1.5.24 Debian 1.5.24-1ubuntu1"
 
47
TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
51
48
 
 
49
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
50
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
51
  emulate sh
 
52
  NULLCMD=:
 
53
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
54
  # is contrary to our usage.  Disable this feature.
 
55
  alias -g '${1+"$@"}'='"$@"'
 
56
  setopt NO_GLOB_SUBST
 
57
else
 
58
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
59
fi
 
60
BIN_SH=xpg4; export BIN_SH # for Tru64
 
61
DUALCASE=1; export DUALCASE # for MKS sh
52
62
 
53
63
# Check that we have a working $echo.
54
64
if test "X$1" = X--no-reexec; then
86
96
Xsed="${SED}"' -e 1s/^X//'
87
97
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
88
98
# test EBCDIC or ASCII
89
 
case `echo A|tr A '\301'` in
90
 
 A) # EBCDIC based system
91
 
  SP2NL="tr '\100' '\n'"
92
 
  NL2SP="tr '\r\n' '\100\100'"
 
99
case `echo X|tr X '\101'` in
 
100
 A) # ASCII based system
 
101
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
102
  SP2NL='tr \040 \012'
 
103
  NL2SP='tr \015\012 \040\040'
93
104
  ;;
94
 
 *) # Assume ASCII based system
95
 
  SP2NL="tr '\040' '\012'"
96
 
  NL2SP="tr '\015\012' '\040\040'"
 
105
 *) # EBCDIC based system
 
106
  SP2NL='tr \100 \n'
 
107
  NL2SP='tr \r\n \100\100'
97
108
  ;;
98
109
esac
99
110
 
102
113
# These must not be set unconditionally because not all systems understand
103
114
# e.g. LANG=C (notably SCO).
104
115
# We save the old values to restore during execute mode.
105
 
if test "${LC_ALL+set}" = set; then
106
 
  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
107
 
fi
108
 
if test "${LANG+set}" = set; then
109
 
  save_LANG="$LANG"; LANG=C; export LANG
110
 
fi
 
116
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
117
do
 
118
  eval "if test \"\${$lt_var+set}\" = set; then
 
119
          save_$lt_var=\$$lt_var
 
120
          $lt_var=C
 
121
          export $lt_var
 
122
        fi"
 
123
done
111
124
 
112
125
# Make sure IFS has a sensible default
113
 
: ${IFS="       
114
 
"}
 
126
lt_nl='
 
127
'
 
128
IFS="   $lt_nl"
115
129
 
116
130
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
117
131
  $echo "$modename: not configured to build any kind of library" 1>&2
128
142
show="$echo"
129
143
show_help=
130
144
execute_dlfiles=
 
145
duplicate_deps=no
 
146
preserve_args=
131
147
lo2o="s/\\.lo\$/.${objext}/"
132
148
o2lo="s/\\.${objext}\$/.lo/"
 
149
extracted_archives=
 
150
extracted_serial=0
133
151
 
134
152
#####################################
135
153
# Shell function definitions:
136
154
# This seems to be the best place for them
137
155
 
 
156
# func_mktempdir [string]
 
157
# Make a temporary directory that won't clash with other running
 
158
# libtool processes, and avoids race conditions if possible.  If
 
159
# given, STRING is the basename for that directory.
 
160
func_mktempdir ()
 
161
{
 
162
    my_template="${TMPDIR-/tmp}/${1-$progname}"
 
163
 
 
164
    if test "$run" = ":"; then
 
165
      # Return a directory name, but don't create it in dry-run mode
 
166
      my_tmpdir="${my_template}-$$"
 
167
    else
 
168
 
 
169
      # If mktemp works, use that first and foremost
 
170
      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
 
171
 
 
172
      if test ! -d "$my_tmpdir"; then
 
173
        # Failing that, at least try and use $RANDOM to avoid a race
 
174
        my_tmpdir="${my_template}-${RANDOM-0}$$"
 
175
 
 
176
        save_mktempdir_umask=`umask`
 
177
        umask 0077
 
178
        $mkdir "$my_tmpdir"
 
179
        umask $save_mktempdir_umask
 
180
      fi
 
181
 
 
182
      # If we're not in dry-run mode, bomb out on failure
 
183
      test -d "$my_tmpdir" || {
 
184
        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
 
185
        exit $EXIT_FAILURE
 
186
      }
 
187
    fi
 
188
 
 
189
    $echo "X$my_tmpdir" | $Xsed
 
190
}
 
191
 
 
192
 
138
193
# func_win32_libid arg
139
194
# return the library type of file 'arg'
140
195
#
141
196
# Need a lot of goo to handle *both* DLLs and import libs
142
197
# Has to be a shell function in order to 'eat' the argument
143
198
# that is supplied when $file_magic_command is called.
144
 
func_win32_libid () {
 
199
func_win32_libid ()
 
200
{
145
201
  win32_libid_type="unknown"
146
202
  win32_fileres=`file -L $1 2>/dev/null`
147
203
  case $win32_fileres in
152
208
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
153
209
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
154
210
      win32_nmres=`eval $NM -f posix -A $1 | \
155
 
        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
156
 
      if test "X$win32_nmres" = "Ximport" ; then
157
 
        win32_libid_type="x86 archive import"
158
 
      else
159
 
        win32_libid_type="x86 archive static"
160
 
      fi
 
211
        $SED -n -e '1,100{
 
212
                / I /{
 
213
                        s,.*,import,
 
214
                        p
 
215
                        q
 
216
                        }
 
217
                }'`
 
218
      case $win32_nmres in
 
219
      import*)  win32_libid_type="x86 archive import";;
 
220
      *)        win32_libid_type="x86 archive static";;
 
221
      esac
161
222
    fi
162
223
    ;;
163
224
  *DLL*)
181
242
# Only attempt this if the compiler in the base compile
182
243
# command doesn't match the default compiler.
183
244
# arg is usually of the form 'gcc ...'
184
 
func_infer_tag () {
 
245
func_infer_tag ()
 
246
{
185
247
    if test -n "$available_tags" && test -z "$tagname"; then
186
248
      CC_quoted=
187
249
      for arg in $CC; do
238
300
      esac
239
301
    fi
240
302
}
 
303
 
 
304
 
 
305
# func_extract_an_archive dir oldlib
 
306
func_extract_an_archive ()
 
307
{
 
308
    f_ex_an_ar_dir="$1"; shift
 
309
    f_ex_an_ar_oldlib="$1"
 
310
 
 
311
    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
 
312
    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
 
313
    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
 
314
     :
 
315
    else
 
316
      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
 
317
      exit $EXIT_FAILURE
 
318
    fi
 
319
}
 
320
 
 
321
# func_extract_archives gentop oldlib ...
 
322
func_extract_archives ()
 
323
{
 
324
    my_gentop="$1"; shift
 
325
    my_oldlibs=${1+"$@"}
 
326
    my_oldobjs=""
 
327
    my_xlib=""
 
328
    my_xabs=""
 
329
    my_xdir=""
 
330
    my_status=""
 
331
 
 
332
    $show "${rm}r $my_gentop"
 
333
    $run ${rm}r "$my_gentop"
 
334
    $show "$mkdir $my_gentop"
 
335
    $run $mkdir "$my_gentop"
 
336
    my_status=$?
 
337
    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
 
338
      exit $my_status
 
339
    fi
 
340
 
 
341
    for my_xlib in $my_oldlibs; do
 
342
      # Extract the objects.
 
343
      case $my_xlib in
 
344
        [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
 
345
        *) my_xabs=`pwd`"/$my_xlib" ;;
 
346
      esac
 
347
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
 
348
      my_xlib_u=$my_xlib
 
349
      while :; do
 
350
        case " $extracted_archives " in
 
351
        *" $my_xlib_u "*)
 
352
          extracted_serial=`expr $extracted_serial + 1`
 
353
          my_xlib_u=lt$extracted_serial-$my_xlib ;;
 
354
        *) break ;;
 
355
        esac
 
356
      done
 
357
      extracted_archives="$extracted_archives $my_xlib_u"
 
358
      my_xdir="$my_gentop/$my_xlib_u"
 
359
 
 
360
      $show "${rm}r $my_xdir"
 
361
      $run ${rm}r "$my_xdir"
 
362
      $show "$mkdir $my_xdir"
 
363
      $run $mkdir "$my_xdir"
 
364
      exit_status=$?
 
365
      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
 
366
        exit $exit_status
 
367
      fi
 
368
      case $host in
 
369
      *-darwin*)
 
370
        $show "Extracting $my_xabs"
 
371
        # Do not bother doing anything if just a dry run
 
372
        if test -z "$run"; then
 
373
          darwin_orig_dir=`pwd`
 
374
          cd $my_xdir || exit $?
 
375
          darwin_archive=$my_xabs
 
376
          darwin_curdir=`pwd`
 
377
          darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
 
378
          darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
 
379
          if test -n "$darwin_arches"; then 
 
380
            darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
 
381
            darwin_arch=
 
382
            $show "$darwin_base_archive has multiple architectures $darwin_arches"
 
383
            for darwin_arch in  $darwin_arches ; do
 
384
              mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
 
385
              lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
 
386
              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
 
387
              func_extract_an_archive "`pwd`" "${darwin_base_archive}"
 
388
              cd "$darwin_curdir"
 
389
              $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
 
390
            done # $darwin_arches
 
391
      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
 
392
            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
 
393
            darwin_file=
 
394
            darwin_files=
 
395
            for darwin_file in $darwin_filelist; do
 
396
              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
 
397
              lipo -create -output "$darwin_file" $darwin_files
 
398
            done # $darwin_filelist
 
399
            ${rm}r unfat-$$
 
400
            cd "$darwin_orig_dir"
 
401
          else
 
402
            cd "$darwin_orig_dir"
 
403
            func_extract_an_archive "$my_xdir" "$my_xabs"
 
404
          fi # $darwin_arches
 
405
        fi # $run
 
406
        ;;
 
407
      *)
 
408
        func_extract_an_archive "$my_xdir" "$my_xabs"
 
409
        ;;
 
410
      esac
 
411
      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
 
412
    done
 
413
    func_extract_archives_result="$my_oldobjs"
 
414
}
241
415
# End of Shell function definitions
242
416
#####################################
243
417
 
244
418
# Darwin sucks
245
419
eval std_shrext=\"$shrext_cmds\"
246
420
 
 
421
disable_libs=no
 
422
 
247
423
# Parse our command line options once, thoroughly.
248
424
while test "$#" -gt 0
249
425
do
306
482
    ;;
307
483
 
308
484
  --version)
309
 
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
310
 
    $echo
311
 
    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
312
 
    $echo "This is free software; see the source for copying conditions.  There is NO"
313
 
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
314
 
    exit $EXIT_SUCCESS
 
485
    echo "\
 
486
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
487
 
 
488
Copyright (C) 2007  Free Software Foundation, Inc.
 
489
This is free software; see the source for copying conditions.  There is NO
 
490
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
491
    exit $?
315
492
    ;;
316
493
 
317
494
  --config)
320
497
    for tagname in $taglist; do
321
498
      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
322
499
    done
323
 
    exit $EXIT_SUCCESS
 
500
    exit $?
324
501
    ;;
325
502
 
326
503
  --debug)
345
522
    else
346
523
      $echo "disable static libraries"
347
524
    fi
348
 
    exit $EXIT_SUCCESS
 
525
    exit $?
349
526
    ;;
350
527
 
351
528
  --finish) mode="finish" ;;
360
537
    preserve_args="$preserve_args $arg"
361
538
    ;;
362
539
 
363
 
  --tag) prevopt="--tag" prev=tag ;;
 
540
  --tag)
 
541
    prevopt="--tag"
 
542
    prev=tag
 
543
    preserve_args="$preserve_args --tag"
 
544
    ;;
364
545
  --tag=*)
365
546
    set tag "$optarg" ${1+"$@"}
366
547
    shift
392
573
  exit $EXIT_FAILURE
393
574
fi
394
575
 
 
576
case $disable_libs in
 
577
no) 
 
578
  ;;
 
579
shared)
 
580
  build_libtool_libs=no
 
581
  build_old_libs=yes
 
582
  ;;
 
583
static)
 
584
  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
 
585
  ;;
 
586
esac
 
587
 
395
588
# If this variable is set in any of the actions, the command in it
396
589
# will be execed at the end.  This prevents here-documents from being
397
590
# left over by shells.
402
595
  # Infer the operation mode.
403
596
  if test -z "$mode"; then
404
597
    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
405
 
    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
 
598
    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
406
599
    case $nonopt in
407
600
    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
408
601
      mode=link
468
661
 
469
662
    for arg
470
663
    do
471
 
      case "$arg_mode" in
 
664
      case $arg_mode in
472
665
      arg  )
473
666
        # do not "continue".  Instead, add this to base_compile
474
667
        lastarg="$arg"
550
743
      case $lastarg in
551
744
      # Double-quote args containing other shell metacharacters.
552
745
      # Many Bourne shells cannot handle close brackets correctly
553
 
      # in scan sets, so we specify it separately.
 
746
      # in scan sets, and some SunOS ksh mistreat backslash-escaping
 
747
      # in scan sets (worked around with variable expansion),
 
748
      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
 
749
      # at all, so we specify them separately.
554
750
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
555
751
        lastarg="\"$lastarg\""
556
752
        ;;
588
784
    *.class) xform=class ;;
589
785
    *.cpp) xform=cpp ;;
590
786
    *.cxx) xform=cxx ;;
591
 
    *.f90) xform=f90 ;;
 
787
    *.[fF][09]?) xform=[fF][09]. ;;
592
788
    *.for) xform=for ;;
593
789
    *.java) xform=java ;;
 
790
    *.obj) xform=obj ;;
594
791
    esac
595
792
 
596
793
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
624
821
      esac
625
822
    done
626
823
 
 
824
    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
 
825
    case $qlibobj in
 
826
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
 
827
        qlibobj="\"$qlibobj\"" ;;
 
828
    esac
 
829
    test "X$libobj" != "X$qlibobj" \
 
830
        && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
 
831
        && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
627
832
    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
628
833
    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
629
834
    if test "X$xdir" = "X$obj"; then
696
901
        $run $rm $removelist
697
902
        exit $EXIT_FAILURE
698
903
      fi
699
 
      $echo $srcfile > "$lockfile"
 
904
      $echo "$srcfile" > "$lockfile"
700
905
    fi
701
906
 
702
907
    if test -n "$fix_srcfile_path"; then
703
908
      eval srcfile=\"$fix_srcfile_path\"
704
909
    fi
 
910
    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
 
911
    case $qsrcfile in
 
912
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
 
913
      qsrcfile="\"$qsrcfile\"" ;;
 
914
    esac
705
915
 
706
916
    $run $rm "$libobj" "${libobj}T"
707
917
 
723
933
      fbsd_hideous_sh_bug=$base_compile
724
934
 
725
935
      if test "$pic_mode" != no; then
726
 
        command="$base_compile $srcfile $pic_flag"
 
936
        command="$base_compile $qsrcfile $pic_flag"
727
937
      else
728
938
        # Don't build PIC code
729
 
        command="$base_compile $srcfile"
 
939
        command="$base_compile $qsrcfile"
730
940
      fi
731
941
 
732
942
      if test ! -d "${xdir}$objdir"; then
733
943
        $show "$mkdir ${xdir}$objdir"
734
944
        $run $mkdir ${xdir}$objdir
735
 
        status=$?
736
 
        if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
737
 
          exit $status
 
945
        exit_status=$?
 
946
        if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
 
947
          exit $exit_status
738
948
        fi
739
949
      fi
740
950
 
806
1016
    if test "$build_old_libs" = yes; then
807
1017
      if test "$pic_mode" != yes; then
808
1018
        # Don't build PIC code
809
 
        command="$base_compile $srcfile"
 
1019
        command="$base_compile $qsrcfile"
810
1020
      else
811
 
        command="$base_compile $srcfile $pic_flag"
 
1021
        command="$base_compile $qsrcfile $pic_flag"
812
1022
      fi
813
1023
      if test "$compiler_c_o" = yes; then
814
1024
        command="$command -o $obj"
937
1147
    no_install=no
938
1148
    objs=
939
1149
    non_pic_objects=
 
1150
    notinst_path= # paths that contain not-installed libtool libraries
940
1151
    precious_files_regex=
941
1152
    prefer_static_libs=no
942
1153
    preload=no
957
1168
    for arg
958
1169
    do
959
1170
      case $arg in
960
 
      -all-static | -static)
961
 
        if test "X$arg" = "X-all-static"; then
 
1171
      -all-static | -static | -static-libtool-libs)
 
1172
        case $arg in
 
1173
        -all-static)
962
1174
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
963
1175
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
964
1176
          fi
965
1177
          if test -n "$link_static_flag"; then
966
1178
            dlopen_self=$dlopen_self_static
967
1179
          fi
968
 
        else
969
 
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
970
 
            dlopen_self=$dlopen_self_static
971
 
          fi
972
 
        fi
 
1180
          prefer_static_libs=yes
 
1181
          ;;
 
1182
        -static)
 
1183
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1184
            dlopen_self=$dlopen_self_static
 
1185
          fi
 
1186
          prefer_static_libs=built
 
1187
          ;;
 
1188
        -static-libtool-libs)
 
1189
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1190
            dlopen_self=$dlopen_self_static
 
1191
          fi
 
1192
          prefer_static_libs=yes
 
1193
          ;;
 
1194
        esac
973
1195
        build_libtool_libs=no
974
1196
        build_old_libs=yes
975
 
        prefer_static_libs=yes
976
1197
        break
977
1198
        ;;
978
1199
      esac
1147
1368
                  if test -z "$pic_object" || test "$pic_object" = none ; then
1148
1369
                    arg="$non_pic_object"
1149
1370
                  fi
 
1371
                else
 
1372
                  # If the PIC object exists, use it instead.
 
1373
                  # $xdir was prepended to $pic_object above.
 
1374
                  non_pic_object="$pic_object"
 
1375
                  non_pic_objects="$non_pic_objects $non_pic_object"
1150
1376
                fi
1151
1377
              else
1152
1378
                # Only an error if not doing a dry-run.
1230
1456
          prev=
1231
1457
          continue
1232
1458
          ;;
 
1459
        darwin_framework|darwin_framework_skip)
 
1460
          test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
 
1461
          compile_command="$compile_command $arg"
 
1462
          finalize_command="$finalize_command $arg"
 
1463
          prev=
 
1464
          continue
 
1465
          ;;
1233
1466
        *)
1234
1467
          eval "$prev=\"\$arg\""
1235
1468
          prev=
1288
1521
        continue
1289
1522
        ;;
1290
1523
 
 
1524
      -framework|-arch|-isysroot)
 
1525
        case " $CC " in
 
1526
          *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
 
1527
                prev=darwin_framework_skip ;;
 
1528
          *) compiler_flags="$compiler_flags $arg"
 
1529
             prev=darwin_framework ;;
 
1530
        esac
 
1531
        compile_command="$compile_command $arg"
 
1532
        finalize_command="$finalize_command $arg"
 
1533
        continue
 
1534
        ;;
 
1535
 
1291
1536
      -inst-prefix-dir)
1292
1537
        prev=inst_prefix
1293
1538
        continue
1314
1559
          absdir=`cd "$dir" && pwd`
1315
1560
          if test -z "$absdir"; then
1316
1561
            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1317
 
            exit $EXIT_FAILURE
 
1562
            absdir="$dir"
 
1563
            notinst_path="$notinst_path $dir"
1318
1564
          fi
1319
1565
          dir="$absdir"
1320
1566
          ;;
1328
1574
        esac
1329
1575
        case $host in
1330
1576
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1577
          testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1331
1578
          case :$dllsearchpath: in
1332
1579
          *":$dir:"*) ;;
1333
1580
          *) dllsearchpath="$dllsearchpath:$dir";;
1334
1581
          esac
 
1582
          case :$dllsearchpath: in
 
1583
          *":$testbindir:"*) ;;
 
1584
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
1585
          esac
1335
1586
          ;;
1336
1587
        esac
1337
1588
        continue
1340
1591
      -l*)
1341
1592
        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1342
1593
          case $host in
1343
 
          *-*-cygwin* | *-*-pw32* | *-*-beos*)
 
1594
          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1344
1595
            # These systems don't actually have a C or math library (as such)
1345
1596
            continue
1346
1597
            ;;
1347
 
          *-*-mingw* | *-*-os2*)
 
1598
          *-*-os2*)
1348
1599
            # These systems don't actually have a C library (as such)
1349
1600
            test "X$arg" = "X-lc" && continue
1350
1601
            ;;
1351
 
          *-*-openbsd* | *-*-freebsd*)
 
1602
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1352
1603
            # Do not include libc due to us having libc/libc_r.
1353
1604
            test "X$arg" = "X-lc" && continue
1354
1605
            ;;
1356
1607
            # Rhapsody C and math libraries are in the System framework
1357
1608
            deplibs="$deplibs -framework System"
1358
1609
            continue
 
1610
            ;;
 
1611
          *-*-sco3.2v5* | *-*-sco5v6*)
 
1612
            # Causes problems with __ctype
 
1613
            test "X$arg" = "X-lc" && continue
 
1614
            ;;
 
1615
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
1616
            # Compiler inserts libc in the correct place for threads to work
 
1617
            test "X$arg" = "X-lc" && continue
 
1618
            ;;
1359
1619
          esac
1360
1620
        elif test "X$arg" = "X-lc_r"; then
1361
1621
         case $host in
1362
 
         *-*-openbsd* | *-*-freebsd*)
 
1622
         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1363
1623
           # Do not include libc_r directly, use -pthread flag.
1364
1624
           continue
1365
1625
           ;;
1369
1629
        continue
1370
1630
        ;;
1371
1631
 
1372
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1373
 
        deplibs="$deplibs $arg"
 
1632
      # Tru64 UNIX uses -model [arg] to determine the layout of C++
 
1633
      # classes, name mangling, and exception handling.
 
1634
      -model)
 
1635
        compile_command="$compile_command $arg"
 
1636
        compiler_flags="$compiler_flags $arg"
 
1637
        finalize_command="$finalize_command $arg"
 
1638
        prev=xcompiler
 
1639
        continue
 
1640
        ;;
 
1641
 
 
1642
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
1643
        compiler_flags="$compiler_flags $arg"
 
1644
        compile_command="$compile_command $arg"
 
1645
        finalize_command="$finalize_command $arg"
1374
1646
        continue
1375
1647
        ;;
1376
1648
 
1379
1651
        continue
1380
1652
        ;;
1381
1653
 
1382
 
      # gcc -m* arguments should be passed to the linker via $compiler_flags
1383
 
      # in order to pass architecture information to the linker
1384
 
      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
1385
 
      # but this is not reliable with gcc because gcc may use -mfoo to
1386
 
      # select a different linker, different libraries, etc, while
1387
 
      # -Wl,-mfoo simply passes -mfoo to the linker.
1388
 
      -m*)
 
1654
      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
 
1655
      # -r[0-9][0-9]* specifies the processor on the SGI compiler
 
1656
      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
 
1657
      # +DA*, +DD* enable 64-bit mode on the HP compiler
 
1658
      # -q* pass through compiler args for the IBM compiler
 
1659
      # -m* pass through architecture-specific compiler args for GCC
 
1660
      # -m*, -t[45]*, -txscale* pass through architecture-specific
 
1661
      # compiler args for GCC
 
1662
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
 
1663
      # -F/path gives path to uninstalled frameworks, gcc on darwin
 
1664
      # @file GCC response files
 
1665
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
 
1666
      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
 
1667
 
1389
1668
        # Unknown arguments in both finalize_command and compile_command need
1390
1669
        # to be aesthetically quoted because they are evaled later.
1391
1670
        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1396
1675
        esac
1397
1676
        compile_command="$compile_command $arg"
1398
1677
        finalize_command="$finalize_command $arg"
1399
 
        if test "$with_gcc" = "yes" ; then
1400
 
          compiler_flags="$compiler_flags $arg"
1401
 
        fi
 
1678
        compiler_flags="$compiler_flags $arg"
1402
1679
        continue
1403
1680
        ;;
1404
1681
 
1414
1691
 
1415
1692
      -no-install)
1416
1693
        case $host in
1417
 
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1694
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1418
1695
          # The PATH hackery in wrapper scripts is required on Windows
1419
 
          # in order for the loader to find any dlls it needs.
 
1696
          # and Darwin in order for the loader to find any dlls it needs.
1420
1697
          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1421
1698
          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1422
1699
          fast_install=no
1475
1752
        continue
1476
1753
        ;;
1477
1754
 
1478
 
      -static)
 
1755
      -static | -static-libtool-libs)
1479
1756
        # The effects of -static are defined in a previous loop.
1480
1757
        # We used to do the same as -all-static on platforms that
1481
1758
        # didn't have a PIC flag, but the assumption that the effects
1636
1913
            if test -z "$pic_object" || test "$pic_object" = none ; then
1637
1914
              arg="$non_pic_object"
1638
1915
            fi
 
1916
          else
 
1917
            # If the PIC object exists, use it instead.
 
1918
            # $xdir was prepended to $pic_object above.
 
1919
            non_pic_object="$pic_object"
 
1920
            non_pic_objects="$non_pic_objects $non_pic_object"
1639
1921
          fi
1640
1922
        else
1641
1923
          # Only an error if not doing a dry-run.
1741
2023
    if test ! -d "$output_objdir"; then
1742
2024
      $show "$mkdir $output_objdir"
1743
2025
      $run $mkdir $output_objdir
1744
 
      status=$?
1745
 
      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1746
 
        exit $status
 
2026
      exit_status=$?
 
2027
      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
 
2028
        exit $exit_status
1747
2029
      fi
1748
2030
    fi
1749
2031
 
1806
2088
    newlib_search_path=
1807
2089
    need_relink=no # whether we're linking any uninstalled libtool libraries
1808
2090
    notinst_deplibs= # not-installed libtool libraries
1809
 
    notinst_path= # paths that contain not-installed libtool libraries
1810
2091
    case $linkmode in
1811
2092
    lib)
1812
2093
        passes="conv link"
1841
2122
        case $pass in
1842
2123
        dlopen) libs="$dlfiles" ;;
1843
2124
        dlpreopen) libs="$dlprefiles" ;;
1844
 
        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
 
2125
        link)
 
2126
          libs="$deplibs %DEPLIBS%"
 
2127
          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
 
2128
          ;;
1845
2129
        esac
1846
2130
      fi
1847
2131
      if test "$pass" = dlopen; then
1853
2137
        lib=
1854
2138
        found=no
1855
2139
        case $deplib in
1856
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
2140
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1857
2141
          if test "$linkmode,$pass" = "prog,link"; then
1858
2142
            compile_deplibs="$deplib $compile_deplibs"
1859
2143
            finalize_deplibs="$deplib $finalize_deplibs"
1860
2144
          else
1861
 
            deplibs="$deplib $deplibs"
 
2145
            compiler_flags="$compiler_flags $deplib"
1862
2146
          fi
1863
2147
          continue
1864
2148
          ;;
1867
2151
            $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1868
2152
            continue
1869
2153
          fi
1870
 
          if test "$pass" = conv; then
1871
 
            deplibs="$deplib $deplibs"
1872
 
            continue
1873
 
          fi
1874
2154
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1875
2155
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1876
2156
            for search_ext in .la $std_shrext .so .a; do
1981
2261
          fi
1982
2262
          case $linkmode in
1983
2263
          lib)
1984
 
            if test "$deplibs_check_method" != pass_all; then
 
2264
            valid_a_lib=no
 
2265
            case $deplibs_check_method in
 
2266
              match_pattern*)
 
2267
                set dummy $deplibs_check_method
 
2268
                match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
 
2269
                if eval $echo \"$deplib\" 2>/dev/null \
 
2270
                    | $SED 10q \
 
2271
                    | $EGREP "$match_pattern_regex" > /dev/null; then
 
2272
                  valid_a_lib=yes
 
2273
                fi
 
2274
                ;;
 
2275
              pass_all)
 
2276
                valid_a_lib=yes
 
2277
                ;;
 
2278
            esac
 
2279
            if test "$valid_a_lib" != yes; then
1985
2280
              $echo
1986
2281
              $echo "*** Warning: Trying to link with static lib archive $deplib."
1987
2282
              $echo "*** I have the capability to make that library automatically link in when"
2031
2326
        esac # case $deplib
2032
2327
        if test "$found" = yes || test -f "$lib"; then :
2033
2328
        else
2034
 
          $echo "$modename: cannot find the library \`$lib'" 1>&2
 
2329
          $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2035
2330
          exit $EXIT_FAILURE
2036
2331
        fi
2037
2332
 
2055
2350
        # it will not redefine variables installed, or shouldnotlink
2056
2351
        installed=yes
2057
2352
        shouldnotlink=no
 
2353
        avoidtemprpath=
 
2354
 
2058
2355
 
2059
2356
        # Read the .la file
2060
2357
        case $lib in
2153
2450
            dir="$libdir"
2154
2451
            absdir="$libdir"
2155
2452
          fi
 
2453
          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2156
2454
        else
2157
 
          dir="$ladir/$objdir"
2158
 
          absdir="$abs_ladir/$objdir"
2159
 
          # Remove this search path later
2160
 
          notinst_path="$notinst_path $abs_ladir"
 
2455
          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
 
2456
            dir="$ladir"
 
2457
            absdir="$abs_ladir"
 
2458
            # Remove this search path later
 
2459
            notinst_path="$notinst_path $abs_ladir"
 
2460
          else
 
2461
            dir="$ladir/$objdir"
 
2462
            absdir="$abs_ladir/$objdir"
 
2463
            # Remove this search path later
 
2464
            notinst_path="$notinst_path $abs_ladir"
 
2465
          fi
2161
2466
        fi # $installed = yes
2162
2467
        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2163
2468
 
2228
2533
 
2229
2534
        if test "$linkmode,$pass" = "prog,link"; then
2230
2535
          if test -n "$library_names" &&
2231
 
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2536
             { { test "$prefer_static_libs" = no ||
 
2537
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2538
               test -z "$old_library"; }; then
2232
2539
            # We need to hardcode the library path
2233
 
            if test -n "$shlibpath_var"; then
 
2540
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2234
2541
              # Make sure the rpath contains only unique directories.
2235
2542
              case "$temp_rpath " in
2236
2543
              *" $dir "*) ;;
2237
2544
              *" $absdir "*) ;;
2238
 
              *) temp_rpath="$temp_rpath $dir" ;;
 
2545
              *) temp_rpath="$temp_rpath $absdir" ;;
2239
2546
              esac
2240
2547
            fi
2241
2548
 
2272
2579
        fi
2273
2580
 
2274
2581
        link_static=no # Whether the deplib will be linked statically
 
2582
        use_static_libs=$prefer_static_libs
 
2583
        if test "$use_static_libs" = built && test "$installed" = yes ; then
 
2584
          use_static_libs=no
 
2585
        fi
2275
2586
        if test -n "$library_names" &&
2276
 
           { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2587
           { test "$use_static_libs" = no || test -z "$old_library"; }; then
2277
2588
          if test "$installed" = no; then
2278
2589
            notinst_deplibs="$notinst_deplibs $lib"
2279
2590
            need_relink=yes
2386
2697
              if test "$hardcode_direct" = no; then
2387
2698
                add="$dir/$linklib"
2388
2699
                case $host in
2389
 
                  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
 
2700
                  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
 
2701
                  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
 
2702
                  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
 
2703
                    *-*-unixware7*) add_dir="-L$dir" ;;
2390
2704
                  *-*-darwin* )
2391
2705
                    # if the lib is a module then we can not link against
2392
2706
                    # it, someone is ignoring the new warnings I added
2393
 
                    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
 
2707
                    if /usr/bin/file -L $add 2> /dev/null |
 
2708
                      $EGREP ": [^:]* bundle" >/dev/null ; then
2394
2709
                      $echo "** Warning, lib $linklib is a module, not a shared library"
2395
2710
                      if test -z "$old_library" ; then
2396
2711
                        $echo
2421
2736
                add_dir="-L$dir"
2422
2737
                # Try looking first in the location we're being installed to.
2423
2738
                if test -n "$inst_prefix_dir"; then
2424
 
                  case "$libdir" in
 
2739
                  case $libdir in
2425
2740
                    [\\/]*)
2426
2741
                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
2427
2742
                      ;;
2494
2809
              add_dir="-L$libdir"
2495
2810
              # Try looking first in the location we're being installed to.
2496
2811
              if test -n "$inst_prefix_dir"; then
2497
 
                case "$libdir" in
 
2812
                case $libdir in
2498
2813
                  [\\/]*)
2499
2814
                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
2500
2815
                    ;;
2555
2870
              fi
2556
2871
            fi
2557
2872
          else
2558
 
            convenience="$convenience $dir/$old_library"
2559
 
            old_convenience="$old_convenience $dir/$old_library"
2560
2873
            deplibs="$dir/$old_library $deplibs"
2561
2874
            link_static=yes
2562
2875
          fi
2674
2987
              *) continue ;;
2675
2988
              esac
2676
2989
              case " $deplibs " in
 
2990
              *" $path "*) ;;
 
2991
              *) deplibs="$path $deplibs" ;;
 
2992
              esac
 
2993
              case " $deplibs " in
2677
2994
              *" $depdepl "*) ;;
2678
2995
              *) deplibs="$depdepl $deplibs" ;;
2679
2996
              esac
2680
 
              case " $deplibs " in
2681
 
              *" $path "*) ;;
2682
 
              *) deplibs="$deplibs $path" ;;
2683
 
              esac
2684
2997
            done
2685
2998
          fi # link_all_deplibs != no
2686
2999
        fi # linkmode = lib
2918
3231
          # which has an extra 1 added just for fun
2919
3232
          #
2920
3233
          case $version_type in
2921
 
          darwin|linux|osf|windows)
 
3234
          darwin|linux|osf|windows|none)
2922
3235
            current=`expr $number_major + $number_minor`
2923
3236
            age="$number_minor"
2924
3237
            revision="$number_revision"
2929
3242
            age="0"
2930
3243
            ;;
2931
3244
          irix|nonstopux)
2932
 
            current=`expr $number_major + $number_minor - 1`
 
3245
            current=`expr $number_major + $number_minor`
2933
3246
            age="$number_minor"
2934
3247
            revision="$number_minor"
 
3248
            lt_irix_increment=no
 
3249
            ;;
 
3250
          *)
 
3251
            $echo "$modename: unknown library version type \`$version_type'" 1>&2
 
3252
            $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
 
3253
            exit $EXIT_FAILURE
2935
3254
            ;;
2936
3255
          esac
2937
3256
          ;;
2944
3263
 
2945
3264
        # Check that each of the things are valid numbers.
2946
3265
        case $current in
2947
 
        [0-9]*) ;;
 
3266
        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
3267
        *)
2949
 
          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
 
3268
          $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
2950
3269
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2951
3270
          exit $EXIT_FAILURE
2952
3271
          ;;
2953
3272
        esac
2954
3273
 
2955
3274
        case $revision in
2956
 
        [0-9]*) ;;
 
3275
        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
3276
        *)
2958
 
          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
 
3277
          $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
2959
3278
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2960
3279
          exit $EXIT_FAILURE
2961
3280
          ;;
2962
3281
        esac
2963
3282
 
2964
3283
        case $age in
2965
 
        [0-9]*) ;;
 
3284
        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
3285
        *)
2967
 
          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
 
3286
          $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
2968
3287
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2969
3288
          exit $EXIT_FAILURE
2970
3289
          ;;
2990
3309
          versuffix="$major.$age.$revision"
2991
3310
          # Darwin ld doesn't like 0 for these options...
2992
3311
          minor_current=`expr $current + 1`
 
3312
          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
2993
3313
          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
2994
3314
          ;;
2995
3315
 
3004
3324
          ;;
3005
3325
 
3006
3326
        irix | nonstopux)
3007
 
          major=`expr $current - $age + 1`
3008
 
 
 
3327
          if test "X$lt_irix_increment" = "Xno"; then
 
3328
            major=`expr $current - $age`
 
3329
          else
 
3330
            major=`expr $current - $age + 1`
 
3331
          fi
3009
3332
          case $version_type in
3010
3333
            nonstopux) verstring_prefix=nonstopux ;;
3011
3334
            *)         verstring_prefix=sgi ;;
3142
3465
      fi
3143
3466
 
3144
3467
      # Eliminate all temporary directories.
3145
 
      for path in $notinst_path; do
3146
 
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3147
 
        deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3148
 
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
3149
 
      done
 
3468
      #for path in $notinst_path; do
 
3469
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3470
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3471
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3472
      #done
3150
3473
 
3151
3474
      if test -n "$xrpath"; then
3152
3475
        # If the user specified any rpath flags, then add them.
3196
3519
          *-*-netbsd*)
3197
3520
            # Don't link with libc until the a.out ld.so is fixed.
3198
3521
            ;;
3199
 
          *-*-openbsd* | *-*-freebsd*)
 
3522
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3200
3523
            # Do not include libc due to us having libc/libc_r.
3201
 
            test "X$arg" = "X-lc" && continue
 
3524
            ;;
 
3525
          *-*-sco3.2v5* | *-*-sco5v6*)
 
3526
            # Causes problems with __ctype
 
3527
            ;;
 
3528
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
3529
            # Compiler inserts libc in the correct place for threads to work
3202
3530
            ;;
3203
3531
          *)
3204
3532
            # Add libc to deplibs on all other systems if necessary.
3242
3570
          int main() { return 0; }
3243
3571
EOF
3244
3572
          $rm conftest
3245
 
          $LTCC -o conftest conftest.c $deplibs
3246
 
          if test "$?" -eq 0 ; then
 
3573
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3247
3574
            ldd_output=`ldd conftest`
3248
3575
            for i in $deplibs; do
3249
 
              name="`expr $i : '-l\(.*\)'`"
 
3576
              name=`expr $i : '-l\(.*\)'`
3250
3577
              # If $name is empty we are operating on a -L argument.
3251
 
              if test "$name" != "" && test "$name" -ne "0"; then
 
3578
              if test "$name" != "" && test "$name" != "0"; then
3252
3579
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3253
3580
                  case " $predeps $postdeps " in
3254
3581
                  *" $i "*)
3283
3610
            # Error occurred in the first compile.  Let's try to salvage
3284
3611
            # the situation: Compile a separate program for each library.
3285
3612
            for i in $deplibs; do
3286
 
              name="`expr $i : '-l\(.*\)'`"
 
3613
              name=`expr $i : '-l\(.*\)'`
3287
3614
              # If $name is empty we are operating on a -L argument.
3288
3615
              if test "$name" != "" && test "$name" != "0"; then
3289
3616
                $rm conftest
3290
 
                $LTCC -o conftest conftest.c $i
3291
 
                # Did it work?
3292
 
                if test "$?" -eq 0 ; then
 
3617
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3293
3618
                  ldd_output=`ldd conftest`
3294
3619
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3295
3620
                    case " $predeps $postdeps " in
3321
3646
                  droppeddeps=yes
3322
3647
                  $echo
3323
3648
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3324
 
                  $echo "***  make it link in!  You will probably need to install it or some"
 
3649
                  $echo "*** make it link in!  You will probably need to install it or some"
3325
3650
                  $echo "*** library that it depends on before this library will be fully"
3326
3651
                  $echo "*** functional.  Installing it before continuing would be even better."
3327
3652
                fi
3335
3660
          set dummy $deplibs_check_method
3336
3661
          file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3337
3662
          for a_deplib in $deplibs; do
3338
 
            name="`expr $a_deplib : '-l\(.*\)'`"
 
3663
            name=`expr $a_deplib : '-l\(.*\)'`
3339
3664
            # If $name is empty we are operating on a -L argument.
3340
3665
            if test "$name" != "" && test  "$name" != "0"; then
3341
3666
              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3404
3729
          set dummy $deplibs_check_method
3405
3730
          match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3406
3731
          for a_deplib in $deplibs; do
3407
 
            name="`expr $a_deplib : '-l\(.*\)'`"
 
3732
            name=`expr $a_deplib : '-l\(.*\)'`
3408
3733
            # If $name is empty we are operating on a -L argument.
3409
3734
            if test -n "$name" && test "$name" != "0"; then
3410
3735
              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3534
3859
        deplibs=$newdeplibs
3535
3860
      fi
3536
3861
 
 
3862
 
 
3863
      # move library search paths that coincide with paths to not yet
 
3864
      # installed libraries to the beginning of the library search list
 
3865
      new_libs=
 
3866
      for path in $notinst_path; do
 
3867
        case " $new_libs " in
 
3868
        *" -L$path/$objdir "*) ;;
 
3869
        *)
 
3870
          case " $deplibs " in
 
3871
          *" -L$path/$objdir "*)
 
3872
            new_libs="$new_libs -L$path/$objdir" ;;
 
3873
          esac
 
3874
          ;;
 
3875
        esac
 
3876
      done
 
3877
      for deplib in $deplibs; do
 
3878
        case $deplib in
 
3879
        -L*)
 
3880
          case " $new_libs " in
 
3881
          *" $deplib "*) ;;
 
3882
          *) new_libs="$new_libs $deplib" ;;
 
3883
          esac
 
3884
          ;;
 
3885
        *) new_libs="$new_libs $deplib" ;;
 
3886
        esac
 
3887
      done
 
3888
      deplibs="$new_libs"
 
3889
 
 
3890
 
3537
3891
      # All the library-specific variables (install_libdir is set above).
3538
3892
      library_names=
3539
3893
      old_library=
3578
3932
             test -n "$hardcode_libdirs"; then
3579
3933
            libdir="$hardcode_libdirs"
3580
3934
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3581
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
3935
              case $archive_cmds in
 
3936
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
 
3937
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
 
3938
              esac
3582
3939
            else
3583
3940
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3584
3941
            fi
3617
3974
        fi
3618
3975
 
3619
3976
        lib="$output_objdir/$realname"
 
3977
        linknames=
3620
3978
        for link
3621
3979
        do
3622
3980
          linknames="$linknames $link"
3645
4003
                # The command line is too long to execute in one step.
3646
4004
                $show "using reloadable object file for export list..."
3647
4005
                skipped_export=:
 
4006
                # Break out early, otherwise skipped_export may be
 
4007
                # set to false by a later but shorter cmd.
 
4008
                break
3648
4009
              fi
3649
4010
            done
3650
4011
            IFS="$save_ifs"
3678
4039
            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3679
4040
          else
3680
4041
            gentop="$output_objdir/${outputname}x"
3681
 
            $show "${rm}r $gentop"
3682
 
            $run ${rm}r "$gentop"
3683
 
            $show "$mkdir $gentop"
3684
 
            $run $mkdir "$gentop"
3685
 
            status=$?
3686
 
            if test "$status" -ne 0 && test ! -d "$gentop"; then
3687
 
              exit $status
3688
 
            fi
3689
4042
            generated="$generated $gentop"
3690
4043
 
3691
 
            for xlib in $convenience; do
3692
 
              # Extract the objects.
3693
 
              case $xlib in
3694
 
              [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3695
 
              *) xabs=`pwd`"/$xlib" ;;
3696
 
              esac
3697
 
              xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3698
 
              xdir="$gentop/$xlib"
3699
 
 
3700
 
              $show "${rm}r $xdir"
3701
 
              $run ${rm}r "$xdir"
3702
 
              $show "$mkdir $xdir"
3703
 
              $run $mkdir "$xdir"
3704
 
              status=$?
3705
 
              if test "$status" -ne 0 && test ! -d "$xdir"; then
3706
 
                exit $status
3707
 
              fi
3708
 
              # We will extract separately just the conflicting names and we will no
3709
 
              # longer touch any unique names. It is faster to leave these extract
3710
 
              # automatically by $AR in one run.
3711
 
              $show "(cd $xdir && $AR x $xabs)"
3712
 
              $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3713
 
              if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3714
 
                :
3715
 
              else
3716
 
                $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3717
 
                $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3718
 
                $AR t "$xabs" | sort | uniq -cd | while read -r count name
3719
 
                do
3720
 
                  i=1
3721
 
                  while test "$i" -le "$count"
3722
 
                  do
3723
 
                   # Put our $i before any first dot (extension)
3724
 
                   # Never overwrite any file
3725
 
                   name_to="$name"
3726
 
                   while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3727
 
                   do
3728
 
                     name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3729
 
                   done
3730
 
                   $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3731
 
                   $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3732
 
                   i=`expr $i + 1`
3733
 
                  done
3734
 
                done
3735
 
              fi
3736
 
 
3737
 
              libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3738
 
            done
 
4044
            func_extract_archives $gentop $convenience
 
4045
            libobjs="$libobjs $func_extract_archives_result"
3739
4046
          fi
3740
4047
        fi
3741
 
 
 
4048
        
3742
4049
        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3743
4050
          eval flag=\"$thread_safe_flag_spec\"
3744
4051
          linker_flags="$linker_flags $flag"
3768
4075
          fi
3769
4076
        fi
3770
4077
 
3771
 
        if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
 
4078
        if test "X$skipped_export" != "X:" &&
 
4079
           len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3772
4080
           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3773
4081
          :
3774
4082
        else
3787
4095
            save_libobjs=$libobjs
3788
4096
          fi
3789
4097
          save_output=$output
 
4098
          output_la=`$echo "X$output" | $Xsed -e "$basename"`
3790
4099
 
3791
4100
          # Clear the reloadable object creation command queue and
3792
4101
          # initialize k to one.
3796
4105
          delfiles=
3797
4106
          last_robj=
3798
4107
          k=1
3799
 
          output=$output_objdir/$save_output-${k}.$objext
 
4108
          output=$output_objdir/$output_la-${k}.$objext
3800
4109
          # Loop over the list of objects to be linked.
3801
4110
          for obj in $save_libobjs
3802
4111
          do
3803
4112
            eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3804
4113
            if test "X$objlist" = X ||
3805
 
               { len=`expr "X$test_cmds" : ".*"` &&
 
4114
               { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3806
4115
                 test "$len" -le "$max_cmd_len"; }; then
3807
4116
              objlist="$objlist $obj"
3808
4117
            else
3816
4125
                # the last one created.
3817
4126
                eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3818
4127
              fi
3819
 
              last_robj=$output_objdir/$save_output-${k}.$objext
 
4128
              last_robj=$output_objdir/$output_la-${k}.$objext
3820
4129
              k=`expr $k + 1`
3821
 
              output=$output_objdir/$save_output-${k}.$objext
 
4130
              output=$output_objdir/$output_la-${k}.$objext
3822
4131
              objlist=$obj
3823
4132
              len=1
3824
4133
            fi
3838
4147
            eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3839
4148
          fi
3840
4149
 
3841
 
          # Set up a command to remove the reloadale object files
 
4150
          # Set up a command to remove the reloadable object files
3842
4151
          # after they are used.
3843
4152
          i=0
3844
4153
          while test "$i" -lt "$k"
3845
4154
          do
3846
4155
            i=`expr $i + 1`
3847
 
            delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
 
4156
            delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
3848
4157
          done
3849
4158
 
3850
4159
          $echo "creating a temporary reloadable object file: $output"
3892
4201
          IFS="$save_ifs"
3893
4202
          eval cmd=\"$cmd\"
3894
4203
          $show "$cmd"
3895
 
          $run eval "$cmd" || exit $?
 
4204
          $run eval "$cmd" || {
 
4205
            lt_exit=$?
 
4206
 
 
4207
            # Restore the uninstalled library and exit
 
4208
            if test "$mode" = relink; then
 
4209
              $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
 
4210
            fi
 
4211
 
 
4212
            exit $lt_exit
 
4213
          }
3896
4214
        done
3897
4215
        IFS="$save_ifs"
3898
4216
 
3899
4217
        # Restore the uninstalled library and exit
3900
4218
        if test "$mode" = relink; then
3901
4219
          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
 
4220
 
 
4221
          if test -n "$convenience"; then
 
4222
            if test -z "$whole_archive_flag_spec"; then
 
4223
              $show "${rm}r $gentop"
 
4224
              $run ${rm}r "$gentop"
 
4225
            fi
 
4226
          fi
 
4227
 
3902
4228
          exit $EXIT_SUCCESS
3903
4229
        fi
3904
4230
 
3968
4294
      reload_conv_objs=
3969
4295
      gentop=
3970
4296
      # reload_cmds runs $LD directly, so let us get rid of
3971
 
      # -Wl from whole_archive_flag_spec
 
4297
      # -Wl from whole_archive_flag_spec and hope we can get by with
 
4298
      # turning comma into space..
3972
4299
      wl=
3973
4300
 
3974
4301
      if test -n "$convenience"; then
3975
4302
        if test -n "$whole_archive_flag_spec"; then
3976
 
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
 
4303
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
 
4304
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
3977
4305
        else
3978
4306
          gentop="$output_objdir/${obj}x"
3979
 
          $show "${rm}r $gentop"
3980
 
          $run ${rm}r "$gentop"
3981
 
          $show "$mkdir $gentop"
3982
 
          $run $mkdir "$gentop"
3983
 
          status=$?
3984
 
          if test "$status" -ne 0 && test ! -d "$gentop"; then
3985
 
            exit $status
3986
 
          fi
3987
4307
          generated="$generated $gentop"
3988
4308
 
3989
 
          for xlib in $convenience; do
3990
 
            # Extract the objects.
3991
 
            case $xlib in
3992
 
            [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3993
 
            *) xabs=`pwd`"/$xlib" ;;
3994
 
            esac
3995
 
            xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3996
 
            xdir="$gentop/$xlib"
3997
 
 
3998
 
            $show "${rm}r $xdir"
3999
 
            $run ${rm}r "$xdir"
4000
 
            $show "$mkdir $xdir"
4001
 
            $run $mkdir "$xdir"
4002
 
            status=$?
4003
 
            if test "$status" -ne 0 && test ! -d "$xdir"; then
4004
 
              exit $status
4005
 
            fi
4006
 
            # We will extract separately just the conflicting names and we will no
4007
 
            # longer touch any unique names. It is faster to leave these extract
4008
 
            # automatically by $AR in one run.
4009
 
            $show "(cd $xdir && $AR x $xabs)"
4010
 
            $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4011
 
            if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4012
 
              :
4013
 
            else
4014
 
              $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4015
 
              $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4016
 
              $AR t "$xabs" | sort | uniq -cd | while read -r count name
4017
 
              do
4018
 
                i=1
4019
 
                while test "$i" -le "$count"
4020
 
                do
4021
 
                 # Put our $i before any first dot (extension)
4022
 
                 # Never overwrite any file
4023
 
                 name_to="$name"
4024
 
                 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4025
 
                 do
4026
 
                   name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4027
 
                 done
4028
 
                 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4029
 
                 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4030
 
                 i=`expr $i + 1`
4031
 
                done
4032
 
              done
4033
 
            fi
4034
 
 
4035
 
            reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4036
 
          done
 
4309
          func_extract_archives $gentop $convenience
 
4310
          reload_conv_objs="$reload_objs $func_extract_archives_result"
4037
4311
        fi
4038
4312
      fi
4039
4313
 
4134
4408
        ;;
4135
4409
      esac
4136
4410
 
 
4411
 
 
4412
      # move library search paths that coincide with paths to not yet
 
4413
      # installed libraries to the beginning of the library search list
 
4414
      new_libs=
 
4415
      for path in $notinst_path; do
 
4416
        case " $new_libs " in
 
4417
        *" -L$path/$objdir "*) ;;
 
4418
        *)
 
4419
          case " $compile_deplibs " in
 
4420
          *" -L$path/$objdir "*)
 
4421
            new_libs="$new_libs -L$path/$objdir" ;;
 
4422
          esac
 
4423
          ;;
 
4424
        esac
 
4425
      done
 
4426
      for deplib in $compile_deplibs; do
 
4427
        case $deplib in
 
4428
        -L*)
 
4429
          case " $new_libs " in
 
4430
          *" $deplib "*) ;;
 
4431
          *) new_libs="$new_libs $deplib" ;;
 
4432
          esac
 
4433
          ;;
 
4434
        *) new_libs="$new_libs $deplib" ;;
 
4435
        esac
 
4436
      done
 
4437
      compile_deplibs="$new_libs"
 
4438
 
 
4439
 
4137
4440
      compile_command="$compile_command $compile_deplibs"
4138
4441
      finalize_command="$finalize_command $finalize_deplibs"
4139
4442
 
4178
4481
        fi
4179
4482
        case $host in
4180
4483
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
4484
          testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4181
4485
          case :$dllsearchpath: in
4182
4486
          *":$libdir:"*) ;;
4183
4487
          *) dllsearchpath="$dllsearchpath:$libdir";;
4184
4488
          esac
 
4489
          case :$dllsearchpath: in
 
4490
          *":$testbindir:"*) ;;
 
4491
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
4492
          esac
4185
4493
          ;;
4186
4494
        esac
4187
4495
      done
4295
4603
 
4296
4604
            # Prepare the list of exported symbols
4297
4605
            if test -z "$export_symbols"; then
4298
 
              export_symbols="$output_objdir/$output.exp"
 
4606
              export_symbols="$output_objdir/$outputname.exp"
4299
4607
              $run $rm $export_symbols
4300
 
              $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
4608
              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
4609
              case $host in
 
4610
              *cygwin* | *mingw* )
 
4611
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4612
                $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
 
4613
                ;;
 
4614
              esac
4301
4615
            else
4302
 
              $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
4303
 
              $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
 
4616
              $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
 
4617
              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4304
4618
              $run eval 'mv "$nlist"T "$nlist"'
 
4619
              case $host in
 
4620
              *cygwin* | *mingw* )
 
4621
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4622
                $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
 
4623
                ;;
 
4624
              esac
4305
4625
            fi
4306
4626
          fi
4307
4627
 
4352
4672
#endif
4353
4673
 
4354
4674
/* The mapping between symbol names and symbols. */
 
4675
"
 
4676
 
 
4677
            case $host in
 
4678
            *cygwin* | *mingw* )
 
4679
          $echo >> "$output_objdir/$dlsyms" "\
 
4680
/* DATA imports from DLLs on WIN32 can't be const, because
 
4681
   runtime relocations are performed -- see ld's documentation
 
4682
   on pseudo-relocs */
 
4683
struct {
 
4684
"
 
4685
              ;;
 
4686
            * )
 
4687
          $echo >> "$output_objdir/$dlsyms" "\
4355
4688
const struct {
 
4689
"
 
4690
              ;;
 
4691
            esac
 
4692
 
 
4693
 
 
4694
          $echo >> "$output_objdir/$dlsyms" "\
4356
4695
  const char *name;
4357
4696
  lt_ptr address;
4358
4697
}
4399
4738
          esac
4400
4739
 
4401
4740
          # Now compile the dynamic symbol file.
4402
 
          $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4403
 
          $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
 
4741
          $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
 
4742
          $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4404
4743
 
4405
4744
          # Clean up the generated files.
4406
4745
          $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4407
4746
          $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4408
4747
 
4409
4748
          # Transform the symbol file into the correct name.
4410
 
          compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4411
 
          finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4749
          case $host in
 
4750
          *cygwin* | *mingw* )
 
4751
            if test -f "$output_objdir/${outputname}.def" ; then
 
4752
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4753
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4754
            else
 
4755
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4756
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4757
             fi
 
4758
            ;;
 
4759
          * )
 
4760
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4761
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4762
            ;;
 
4763
          esac
4412
4764
          ;;
4413
4765
        *)
4414
4766
          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4421
4773
        # really was required.
4422
4774
 
4423
4775
        # Nullify the symbol file.
4424
 
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4425
 
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4776
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4777
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4426
4778
      fi
4427
4779
 
4428
4780
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4429
4781
        # Replace the output file specification.
4430
 
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
 
4782
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4431
4783
        link_command="$compile_command$compile_rpath"
4432
4784
 
4433
4785
        # We have no uninstalled library dependencies, so finalize right now.
4434
4786
        $show "$link_command"
4435
4787
        $run eval "$link_command"
4436
 
        status=$?
 
4788
        exit_status=$?
4437
4789
 
4438
4790
        # Delete the generated files.
4439
4791
        if test -n "$dlsyms"; then
4441
4793
          $run $rm "$output_objdir/${outputname}S.${objext}"
4442
4794
        fi
4443
4795
 
4444
 
        exit $status
 
4796
        exit $exit_status
4445
4797
      fi
4446
4798
 
4447
4799
      if test -n "$shlibpath_var"; then
4514
4866
        if test "$fast_install" != no; then
4515
4867
          link_command="$finalize_var$compile_command$finalize_rpath"
4516
4868
          if test "$fast_install" = yes; then
4517
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
 
4869
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4518
4870
          else
4519
4871
            # fast_install is set to needless
4520
4872
            relink_command=
4551
4903
          fi
4552
4904
        done
4553
4905
        relink_command="(cd `pwd`; $relink_command)"
4554
 
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
4906
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4555
4907
      fi
4556
4908
 
4557
4909
      # Quote $echo for shipping.
4581
4933
        esac
4582
4934
        case $host in
4583
4935
          *cygwin* | *mingw* )
4584
 
            cwrappersource=`$echo ${objdir}/lt-${output}.c`
4585
 
            cwrapper=`$echo ${output}.exe`
4586
 
            $rm $cwrappersource $cwrapper
4587
 
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
 
4936
            output_name=`basename $output`
 
4937
            output_path=`dirname $output`
 
4938
            cwrappersource="$output_path/$objdir/lt-$output_name.c"
 
4939
            cwrapper="$output_path/$output_name.exe"
 
4940
            $rm $cwrappersource $cwrapper
 
4941
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4588
4942
 
4589
4943
            cat > $cwrappersource <<EOF
4590
4944
 
4609
4963
#include <malloc.h>
4610
4964
#include <stdarg.h>
4611
4965
#include <assert.h>
 
4966
#include <string.h>
 
4967
#include <ctype.h>
 
4968
#include <sys/stat.h>
4612
4969
 
4613
4970
#if defined(PATH_MAX)
4614
4971
# define LT_PATHMAX PATH_MAX
4619
4976
#endif
4620
4977
 
4621
4978
#ifndef DIR_SEPARATOR
4622
 
#define DIR_SEPARATOR '/'
 
4979
# define DIR_SEPARATOR '/'
 
4980
# define PATH_SEPARATOR ':'
4623
4981
#endif
4624
4982
 
4625
4983
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4626
4984
  defined (__OS2__)
4627
 
#define HAVE_DOS_BASED_FILE_SYSTEM
4628
 
#ifndef DIR_SEPARATOR_2
4629
 
#define DIR_SEPARATOR_2 '\\'
4630
 
#endif
 
4985
# define HAVE_DOS_BASED_FILE_SYSTEM
 
4986
# ifndef DIR_SEPARATOR_2
 
4987
#  define DIR_SEPARATOR_2 '\\'
 
4988
# endif
 
4989
# ifndef PATH_SEPARATOR_2
 
4990
#  define PATH_SEPARATOR_2 ';'
 
4991
# endif
4631
4992
#endif
4632
4993
 
4633
4994
#ifndef DIR_SEPARATOR_2
4637
4998
        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4638
4999
#endif /* DIR_SEPARATOR_2 */
4639
5000
 
 
5001
#ifndef PATH_SEPARATOR_2
 
5002
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
 
5003
#else /* PATH_SEPARATOR_2 */
 
5004
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
 
5005
#endif /* PATH_SEPARATOR_2 */
 
5006
 
4640
5007
#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
4641
5008
#define XFREE(stale) do { \
4642
5009
  if (stale) { free ((void *) stale); stale = 0; } \
4643
5010
} while (0)
4644
5011
 
 
5012
/* -DDEBUG is fairly common in CFLAGS.  */
 
5013
#undef DEBUG
 
5014
#if defined DEBUGWRAPPER
 
5015
# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
 
5016
#else
 
5017
# define DEBUG(format, ...)
 
5018
#endif
 
5019
 
4645
5020
const char *program_name = NULL;
4646
5021
 
4647
5022
void * xmalloc (size_t num);
4648
5023
char * xstrdup (const char *string);
4649
 
char * basename (const char *name);
4650
 
char * fnqualify(const char *path);
 
5024
const char * base_name (const char *name);
 
5025
char * find_executable(const char *wrapper);
 
5026
int    check_executable(const char *path);
4651
5027
char * strendzap(char *str, const char *pat);
4652
5028
void lt_fatal (const char *message, ...);
4653
5029
 
4657
5033
  char **newargz;
4658
5034
  int i;
4659
5035
 
4660
 
  program_name = (char *) xstrdup ((char *) basename (argv[0]));
 
5036
  program_name = (char *) xstrdup (base_name (argv[0]));
 
5037
  DEBUG("(main) argv[0]      : %s\n",argv[0]);
 
5038
  DEBUG("(main) program_name : %s\n",program_name);
4661
5039
  newargz = XMALLOC(char *, argc+2);
4662
5040
EOF
4663
5041
 
4664
 
            cat >> $cwrappersource <<EOF
4665
 
  newargz[0] = "$SHELL";
 
5042
            cat >> $cwrappersource <<EOF
 
5043
  newargz[0] = (char *) xstrdup("$SHELL");
4666
5044
EOF
4667
5045
 
4668
 
            cat >> $cwrappersource <<"EOF"
4669
 
  newargz[1] = fnqualify(argv[0]);
 
5046
            cat >> $cwrappersource <<"EOF"
 
5047
  newargz[1] = find_executable(argv[0]);
 
5048
  if (newargz[1] == NULL)
 
5049
    lt_fatal("Couldn't find %s", argv[0]);
 
5050
  DEBUG("(main) found exe at : %s\n",newargz[1]);
4670
5051
  /* we know the script has the same name, without the .exe */
4671
5052
  /* so make sure newargz[1] doesn't end in .exe */
4672
5053
  strendzap(newargz[1],".exe");
4673
5054
  for (i = 1; i < argc; i++)
4674
5055
    newargz[i+1] = xstrdup(argv[i]);
4675
5056
  newargz[argc+1] = NULL;
4676
 
EOF
4677
 
 
4678
 
            cat >> $cwrappersource <<EOF
 
5057
 
 
5058
  for (i=0; i<argc+1; i++)
 
5059
  {
 
5060
    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
 
5061
    ;
 
5062
  }
 
5063
 
 
5064
EOF
 
5065
 
 
5066
            case $host_os in
 
5067
              mingw*)
 
5068
                cat >> $cwrappersource <<EOF
 
5069
  execv("$SHELL",(char const **)newargz);
 
5070
EOF
 
5071
              ;;
 
5072
              *)
 
5073
                cat >> $cwrappersource <<EOF
4679
5074
  execv("$SHELL",newargz);
4680
5075
EOF
 
5076
              ;;
 
5077
            esac
4681
5078
 
4682
 
            cat >> $cwrappersource <<"EOF"
 
5079
            cat >> $cwrappersource <<"EOF"
 
5080
  return 127;
4683
5081
}
4684
5082
 
4685
5083
void *
4699
5097
;
4700
5098
}
4701
5099
 
4702
 
char *
4703
 
basename (const char *name)
 
5100
const char *
 
5101
base_name (const char *name)
4704
5102
{
4705
5103
  const char *base;
4706
5104
 
4707
5105
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4708
5106
  /* Skip over the disk name in MSDOS pathnames. */
4709
 
  if (isalpha (name[0]) && name[1] == ':')
 
5107
  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4710
5108
    name += 2;
4711
5109
#endif
4712
5110
 
4713
5111
  for (base = name; *name; name++)
4714
5112
    if (IS_DIR_SEPARATOR (*name))
4715
5113
      base = name + 1;
4716
 
  return (char *) base;
4717
 
}
4718
 
 
 
5114
  return base;
 
5115
}
 
5116
 
 
5117
int
 
5118
check_executable(const char * path)
 
5119
{
 
5120
  struct stat st;
 
5121
 
 
5122
  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
 
5123
  if ((!path) || (!*path))
 
5124
    return 0;
 
5125
 
 
5126
  if ((stat (path, &st) >= 0) &&
 
5127
      (
 
5128
        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
 
5129
#if defined (S_IXOTH)
 
5130
       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
 
5131
#endif
 
5132
#if defined (S_IXGRP)
 
5133
       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
 
5134
#endif
 
5135
       ((st.st_mode & S_IXUSR) == S_IXUSR))
 
5136
      )
 
5137
    return 1;
 
5138
  else
 
5139
    return 0;
 
5140
}
 
5141
 
 
5142
/* Searches for the full path of the wrapper.  Returns
 
5143
   newly allocated full path name if found, NULL otherwise */
4719
5144
char *
4720
 
fnqualify(const char *path)
 
5145
find_executable (const char* wrapper)
4721
5146
{
4722
 
  size_t size;
4723
 
  char *p;
 
5147
  int has_slash = 0;
 
5148
  const char* p;
 
5149
  const char* p_next;
 
5150
  /* static buffer for getcwd */
4724
5151
  char tmp[LT_PATHMAX + 1];
4725
 
 
4726
 
  assert(path != NULL);
4727
 
 
4728
 
  /* Is it qualified already? */
4729
 
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4730
 
  if (isalpha (path[0]) && path[1] == ':')
4731
 
    return xstrdup (path);
4732
 
#endif
4733
 
  if (IS_DIR_SEPARATOR (path[0]))
4734
 
    return xstrdup (path);
4735
 
 
4736
 
  /* prepend the current directory */
4737
 
  /* doesn't handle '~' */
 
5152
  int tmp_len;
 
5153
  char* concat_name;
 
5154
 
 
5155
  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
 
5156
 
 
5157
  if ((wrapper == NULL) || (*wrapper == '\0'))
 
5158
    return NULL;
 
5159
 
 
5160
  /* Absolute path? */
 
5161
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5162
  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
 
5163
  {
 
5164
    concat_name = xstrdup (wrapper);
 
5165
    if (check_executable(concat_name))
 
5166
      return concat_name;
 
5167
    XFREE(concat_name);
 
5168
  }
 
5169
  else
 
5170
  {
 
5171
#endif
 
5172
    if (IS_DIR_SEPARATOR (wrapper[0]))
 
5173
    {
 
5174
      concat_name = xstrdup (wrapper);
 
5175
      if (check_executable(concat_name))
 
5176
        return concat_name;
 
5177
      XFREE(concat_name);
 
5178
    }
 
5179
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5180
  }
 
5181
#endif
 
5182
 
 
5183
  for (p = wrapper; *p; p++)
 
5184
    if (*p == '/')
 
5185
    {
 
5186
      has_slash = 1;
 
5187
      break;
 
5188
    }
 
5189
  if (!has_slash)
 
5190
  {
 
5191
    /* no slashes; search PATH */
 
5192
    const char* path = getenv ("PATH");
 
5193
    if (path != NULL)
 
5194
    {
 
5195
      for (p = path; *p; p = p_next)
 
5196
      {
 
5197
        const char* q;
 
5198
        size_t p_len;
 
5199
        for (q = p; *q; q++)
 
5200
          if (IS_PATH_SEPARATOR(*q))
 
5201
            break;
 
5202
        p_len = q - p;
 
5203
        p_next = (*q == '\0' ? q : q + 1);
 
5204
        if (p_len == 0)
 
5205
        {
 
5206
          /* empty path: current directory */
 
5207
          if (getcwd (tmp, LT_PATHMAX) == NULL)
 
5208
            lt_fatal ("getcwd failed");
 
5209
          tmp_len = strlen(tmp);
 
5210
          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5211
          memcpy (concat_name, tmp, tmp_len);
 
5212
          concat_name[tmp_len] = '/';
 
5213
          strcpy (concat_name + tmp_len + 1, wrapper);
 
5214
        }
 
5215
        else
 
5216
        {
 
5217
          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
 
5218
          memcpy (concat_name, p, p_len);
 
5219
          concat_name[p_len] = '/';
 
5220
          strcpy (concat_name + p_len + 1, wrapper);
 
5221
        }
 
5222
        if (check_executable(concat_name))
 
5223
          return concat_name;
 
5224
        XFREE(concat_name);
 
5225
      }
 
5226
    }
 
5227
    /* not found in PATH; assume curdir */
 
5228
  }
 
5229
  /* Relative path | not found in path: prepend cwd */
4738
5230
  if (getcwd (tmp, LT_PATHMAX) == NULL)
4739
5231
    lt_fatal ("getcwd failed");
4740
 
  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4741
 
  p = XMALLOC(char, size);
4742
 
  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4743
 
  return p;
 
5232
  tmp_len = strlen(tmp);
 
5233
  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5234
  memcpy (concat_name, tmp, tmp_len);
 
5235
  concat_name[tmp_len] = '/';
 
5236
  strcpy (concat_name + tmp_len + 1, wrapper);
 
5237
 
 
5238
  if (check_executable(concat_name))
 
5239
    return concat_name;
 
5240
  XFREE(concat_name);
 
5241
  return NULL;
4744
5242
}
4745
5243
 
4746
5244
char *
4784
5282
  va_end (ap);
4785
5283
}
4786
5284
EOF
4787
 
          # we should really use a build-platform specific compiler
4788
 
          # here, but OTOH, the wrappers (shell script and this C one)
4789
 
          # are only useful if you want to execute the "real" binary.
4790
 
          # Since the "real" binary is built for $host, then this
4791
 
          # wrapper might as well be built for $host, too.
4792
 
          $run $LTCC -s -o $cwrapper $cwrappersource
4793
 
          ;;
4794
 
        esac
4795
 
        $rm $output
4796
 
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
 
5285
          # we should really use a build-platform specific compiler
 
5286
          # here, but OTOH, the wrappers (shell script and this C one)
 
5287
          # are only useful if you want to execute the "real" binary.
 
5288
          # Since the "real" binary is built for $host, then this
 
5289
          # wrapper might as well be built for $host, too.
 
5290
          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
 
5291
          ;;
 
5292
        esac
 
5293
        $rm $output
 
5294
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4797
5295
 
4798
5296
        $echo > $output "\
4799
5297
#! $SHELL
4812
5310
Xsed='${SED} -e 1s/^X//'
4813
5311
sed_quote_subst='$sed_quote_subst'
4814
5312
 
 
5313
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
5314
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
 
5315
  emulate sh
 
5316
  NULLCMD=:
 
5317
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
 
5318
  # is contrary to our usage.  Disable this feature.
 
5319
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
5320
  setopt NO_GLOB_SUBST
 
5321
else
 
5322
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
 
5323
fi
 
5324
BIN_SH=xpg4; export BIN_SH # for Tru64
 
5325
DUALCASE=1; export DUALCASE # for MKS sh
 
5326
 
4815
5327
# The HP-UX ksh and POSIX shell print the target directory to stdout
4816
5328
# if CDPATH is set.
4817
 
if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
 
5329
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4818
5330
 
4819
5331
relink_command=\"$relink_command\"
4820
5332
 
4943
5455
        # Backslashes separate directories on plain windows
4944
5456
        *-*-mingw | *-*-os2*)
4945
5457
          $echo >> $output "\
4946
 
      exec \$progdir\\\\\$program \${1+\"\$@\"}
 
5458
      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
4947
5459
"
4948
5460
          ;;
4949
5461
 
4950
5462
        *)
4951
5463
          $echo >> $output "\
4952
 
      exec \$progdir/\$program \${1+\"\$@\"}
 
5464
      exec \"\$progdir/\$program\" \${1+\"\$@\"}
4953
5465
"
4954
5466
          ;;
4955
5467
        esac
4956
5468
        $echo >> $output "\
4957
 
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
 
5469
      \$echo \"\$0: cannot exec \$program \$*\"
4958
5470
      exit $EXIT_FAILURE
4959
5471
    fi
4960
5472
  else
4961
5473
    # The program doesn't exist.
4962
 
    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
 
5474
    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4963
5475
    \$echo \"This script is just a wrapper for \$program.\" 1>&2
4964
5476
    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4965
5477
    exit $EXIT_FAILURE
4991
5503
 
4992
5504
      if test -n "$addlibs"; then
4993
5505
        gentop="$output_objdir/${outputname}x"
4994
 
        $show "${rm}r $gentop"
4995
 
        $run ${rm}r "$gentop"
4996
 
        $show "$mkdir $gentop"
4997
 
        $run $mkdir "$gentop"
4998
 
        status=$?
4999
 
        if test "$status" -ne 0 && test ! -d "$gentop"; then
5000
 
          exit $status
5001
 
        fi
5002
5506
        generated="$generated $gentop"
5003
5507
 
5004
 
        # Add in members from convenience archives.
5005
 
        for xlib in $addlibs; do
5006
 
          # Extract the objects.
5007
 
          case $xlib in
5008
 
          [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5009
 
          *) xabs=`pwd`"/$xlib" ;;
5010
 
          esac
5011
 
          xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5012
 
          xdir="$gentop/$xlib"
5013
 
 
5014
 
          $show "${rm}r $xdir"
5015
 
          $run ${rm}r "$xdir"
5016
 
          $show "$mkdir $xdir"
5017
 
          $run $mkdir "$xdir"
5018
 
          status=$?
5019
 
          if test "$status" -ne 0 && test ! -d "$xdir"; then
5020
 
            exit $status
5021
 
          fi
5022
 
          # We will extract separately just the conflicting names and we will no
5023
 
          # longer touch any unique names. It is faster to leave these extract
5024
 
          # automatically by $AR in one run.
5025
 
          $show "(cd $xdir && $AR x $xabs)"
5026
 
          $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5027
 
          if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5028
 
            :
5029
 
          else
5030
 
            $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5031
 
            $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5032
 
            $AR t "$xabs" | sort | uniq -cd | while read -r count name
5033
 
            do
5034
 
              i=1
5035
 
              while test "$i" -le "$count"
5036
 
              do
5037
 
               # Put our $i before any first dot (extension)
5038
 
               # Never overwrite any file
5039
 
               name_to="$name"
5040
 
               while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5041
 
               do
5042
 
                 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5043
 
               done
5044
 
               $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5045
 
               $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5046
 
               i=`expr $i + 1`
5047
 
              done
5048
 
            done
5049
 
          fi
5050
 
 
5051
 
          oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5052
 
        done
 
5508
        func_extract_archives $gentop $addlibs
 
5509
        oldobjs="$oldobjs $func_extract_archives_result"
5053
5510
      fi
5054
5511
 
5055
5512
      # Do each command in the archive commands.
5056
5513
      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5057
5514
       cmds=$old_archive_from_new_cmds
5058
5515
      else
 
5516
        # POSIX demands no paths to be encoded in archives.  We have
 
5517
        # to avoid creating archives with duplicate basenames if we
 
5518
        # might have to extract them afterwards, e.g., when creating a
 
5519
        # static archive out of a convenience library, or when linking
 
5520
        # the entirety of a libtool archive into another (currently
 
5521
        # not supported by libtool).
 
5522
        if (for obj in $oldobjs
 
5523
            do
 
5524
              $echo "X$obj" | $Xsed -e 's%^.*/%%'
 
5525
            done | sort | sort -uc >/dev/null 2>&1); then
 
5526
          :
 
5527
        else
 
5528
          $echo "copying selected object files to avoid basename conflicts..."
 
5529
 
 
5530
          if test -z "$gentop"; then
 
5531
            gentop="$output_objdir/${outputname}x"
 
5532
            generated="$generated $gentop"
 
5533
 
 
5534
            $show "${rm}r $gentop"
 
5535
            $run ${rm}r "$gentop"
 
5536
            $show "$mkdir $gentop"
 
5537
            $run $mkdir "$gentop"
 
5538
            exit_status=$?
 
5539
            if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
 
5540
              exit $exit_status
 
5541
            fi
 
5542
          fi
 
5543
 
 
5544
          save_oldobjs=$oldobjs
 
5545
          oldobjs=
 
5546
          counter=1
 
5547
          for obj in $save_oldobjs
 
5548
          do
 
5549
            objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
 
5550
            case " $oldobjs " in
 
5551
            " ") oldobjs=$obj ;;
 
5552
            *[\ /]"$objbase "*)
 
5553
              while :; do
 
5554
                # Make sure we don't pick an alternate name that also
 
5555
                # overlaps.
 
5556
                newobj=lt$counter-$objbase
 
5557
                counter=`expr $counter + 1`
 
5558
                case " $oldobjs " in
 
5559
                *[\ /]"$newobj "*) ;;
 
5560
                *) if test ! -f "$gentop/$newobj"; then break; fi ;;
 
5561
                esac
 
5562
              done
 
5563
              $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
 
5564
              $run ln "$obj" "$gentop/$newobj" ||
 
5565
              $run cp "$obj" "$gentop/$newobj"
 
5566
              oldobjs="$oldobjs $gentop/$newobj"
 
5567
              ;;
 
5568
            *) oldobjs="$oldobjs $obj" ;;
 
5569
            esac
 
5570
          done
 
5571
        fi
 
5572
 
5059
5573
        eval cmds=\"$old_archive_cmds\"
5060
5574
 
5061
5575
        if len=`expr "X$cmds" : ".*"` &&
5069
5583
          objlist=
5070
5584
          concat_cmds=
5071
5585
          save_oldobjs=$oldobjs
5072
 
          # GNU ar 2.10+ was changed to match POSIX; thus no paths are
5073
 
          # encoded into archives.  This makes 'ar r' malfunction in
5074
 
          # this piecewise linking case whenever conflicting object
5075
 
          # names appear in distinct ar calls; check, warn and compensate.
5076
 
            if (for obj in $save_oldobjs
5077
 
            do
5078
 
              $echo "X$obj" | $Xsed -e 's%^.*/%%'
5079
 
            done | sort | sort -uc >/dev/null 2>&1); then
5080
 
            :
5081
 
          else
5082
 
            $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5083
 
            $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5084
 
            AR_FLAGS=cq
5085
 
          fi
 
5586
 
5086
5587
          # Is there a better way of finding the last object in the list?
5087
5588
          for obj in $save_oldobjs
5088
5589
          do
5093
5594
            oldobjs="$objlist $obj"
5094
5595
            objlist="$objlist $obj"
5095
5596
            eval test_cmds=\"$old_archive_cmds\"
5096
 
            if len=`expr "X$test_cmds" : ".*"` &&
 
5597
            if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5097
5598
               test "$len" -le "$max_cmd_len"; then
5098
5599
              :
5099
5600
            else
5151
5652
      done
5152
5653
      # Quote the link command for shipping.
5153
5654
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5154
 
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
5655
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5155
5656
      if test "$hardcode_automatic" = yes ; then
5156
5657
        relink_command=
5157
5658
      fi
5290
5791
    # install_prog (especially on Windows NT).
5291
5792
    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5292
5793
       # Allow the use of GNU shtool's install command.
5293
 
       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
 
5794
       $echo "X$nonopt" | grep shtool > /dev/null; then
5294
5795
      # Aesthetically quote it.
5295
5796
      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5296
5797
      case $arg in
5297
 
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
 
5798
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5298
5799
        arg="\"$arg\""
5299
5800
        ;;
5300
5801
      esac
5303
5804
      shift
5304
5805
    else
5305
5806
      install_prog=
5306
 
      arg="$nonopt"
 
5807
      arg=$nonopt
5307
5808
    fi
5308
5809
 
5309
5810
    # The real first argument should be the name of the installation program.
5310
5811
    # Aesthetically quote it.
5311
5812
    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5312
5813
    case $arg in
5313
 
    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*)
 
5814
    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
5314
5815
      arg="\"$arg\""
5315
5816
      ;;
5316
5817
    esac
5328
5829
    do
5329
5830
      if test -n "$dest"; then
5330
5831
        files="$files $dest"
5331
 
        dest="$arg"
 
5832
        dest=$arg
5332
5833
        continue
5333
5834
      fi
5334
5835
 
5335
5836
      case $arg in
5336
5837
      -d) isdir=yes ;;
5337
 
      -f) prev="-f" ;;
5338
 
      -g) prev="-g" ;;
5339
 
      -m) prev="-m" ;;
5340
 
      -o) prev="-o" ;;
 
5838
      -f) 
 
5839
        case " $install_prog " in
 
5840
        *[\\\ /]cp\ *) ;;
 
5841
        *) prev=$arg ;;
 
5842
        esac
 
5843
        ;;
 
5844
      -g | -m | -o) prev=$arg ;;
5341
5845
      -s)
5342
5846
        stripme=" -s"
5343
5847
        continue
5344
5848
        ;;
5345
 
      -*) ;;
5346
 
 
 
5849
      -*)
 
5850
        ;;
5347
5851
      *)
5348
5852
        # If the previous option needed an argument, then skip it.
5349
5853
        if test -n "$prev"; then
5350
5854
          prev=
5351
5855
        else
5352
 
          dest="$arg"
 
5856
          dest=$arg
5353
5857
          continue
5354
5858
        fi
5355
5859
        ;;
5358
5862
      # Aesthetically quote the argument.
5359
5863
      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5360
5864
      case $arg in
5361
 
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
 
5865
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5362
5866
        arg="\"$arg\""
5363
5867
        ;;
5364
5868
      esac
5493
5997
 
5494
5998
          if test -n "$inst_prefix_dir"; then
5495
5999
            # Stick the inst_prefix_dir data into the link command.
5496
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
 
6000
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5497
6001
          else
5498
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
 
6002
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5499
6003
          fi
5500
6004
 
5501
6005
          $echo "$modename: warning: relinking \`$file'" 1>&2
5527
6031
 
5528
6032
          if test "$#" -gt 0; then
5529
6033
            # Delete the old symlinks, and create new ones.
 
6034
            # Try `ln -sf' first, because the `ln' binary might depend on
 
6035
            # the symlink we replace!  Solaris /bin/ln does not understand -f,
 
6036
            # so we also need to try rm && ln -s.
5530
6037
            for linkname
5531
6038
            do
5532
6039
              if test "$linkname" != "$realname"; then
5533
 
                $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5534
 
                $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
 
6040
                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
 
6041
                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5535
6042
              fi
5536
6043
            done
5537
6044
          fi
5544
6051
            IFS="$save_ifs"
5545
6052
            eval cmd=\"$cmd\"
5546
6053
            $show "$cmd"
5547
 
            $run eval "$cmd" || exit $?
 
6054
            $run eval "$cmd" || {
 
6055
              lt_exit=$?
 
6056
 
 
6057
              # Restore the uninstalled library and exit
 
6058
              if test "$mode" = relink; then
 
6059
                $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
 
6060
              fi
 
6061
 
 
6062
              exit $lt_exit
 
6063
            }
5548
6064
          done
5549
6065
          IFS="$save_ifs"
5550
6066
        fi
5638
6154
          notinst_deplibs=
5639
6155
          relink_command=
5640
6156
 
5641
 
          # To insure that "foo" is sourced, and not "foo.exe",
5642
 
          # finese the cygwin/MSYS system by explicitly sourcing "foo."
5643
 
          # which disallows the automatic-append-.exe behavior.
5644
 
          case $build in
5645
 
          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5646
 
          *) wrapperdot=${wrapper} ;;
5647
 
          esac
 
6157
          # Note that it is not necessary on cygwin/mingw to append a dot to
 
6158
          # foo even if both foo and FILE.exe exist: automatic-append-.exe
 
6159
          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
 
6160
          # `FILE.' does not work on cygwin managed mounts.
 
6161
          #
5648
6162
          # If there is no directory component, then add one.
5649
 
          case $file in
5650
 
          */* | *\\*) . ${wrapperdot} ;;
5651
 
          *) . ./${wrapperdot} ;;
 
6163
          case $wrapper in
 
6164
          */* | *\\*) . ${wrapper} ;;
 
6165
          *) . ./${wrapper} ;;
5652
6166
          esac
5653
6167
 
5654
6168
          # Check the variables that should have been set.
5676
6190
          done
5677
6191
 
5678
6192
          relink_command=
5679
 
          # To insure that "foo" is sourced, and not "foo.exe",
5680
 
          # finese the cygwin/MSYS system by explicitly sourcing "foo."
5681
 
          # which disallows the automatic-append-.exe behavior.
5682
 
          case $build in
5683
 
          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5684
 
          *) wrapperdot=${wrapper} ;;
5685
 
          esac
 
6193
          # Note that it is not necessary on cygwin/mingw to append a dot to
 
6194
          # foo even if both foo and FILE.exe exist: automatic-append-.exe
 
6195
          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
 
6196
          # `FILE.' does not work on cygwin managed mounts.
 
6197
          #
5686
6198
          # If there is no directory component, then add one.
5687
 
          case $file in
5688
 
          */* | *\\*) . ${wrapperdot} ;;
5689
 
          *) . ./${wrapperdot} ;;
 
6199
          case $wrapper in
 
6200
          */* | *\\*) . ${wrapper} ;;
 
6201
          *) . ./${wrapper} ;;
5690
6202
          esac
5691
6203
 
5692
6204
          outputname=
5693
6205
          if test "$fast_install" = no && test -n "$relink_command"; then
5694
6206
            if test "$finalize" = yes && test -z "$run"; then
5695
 
              tmpdir="/tmp"
5696
 
              test -n "$TMPDIR" && tmpdir="$TMPDIR"
5697
 
              tmpdir="$tmpdir/libtool-$$"
5698
 
              save_umask=`umask`
5699
 
              umask 0077
5700
 
              if $mkdir "$tmpdir"; then
5701
 
                umask $save_umask
5702
 
              else
5703
 
                umask $save_umask
5704
 
                $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5705
 
                continue
5706
 
              fi
 
6207
              tmpdir=`func_mktempdir`
5707
6208
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5708
6209
              outputname="$tmpdir/$file"
5709
6210
              # Replace the output file specification.
5710
 
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
 
6211
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
5711
6212
 
5712
6213
              $show "$relink_command"
5713
6214
              if $run eval "$relink_command"; then :
5727
6228
        fi
5728
6229
 
5729
6230
        # remove .exe since cygwin /usr/bin/install will append another
5730
 
        # one anyways
 
6231
        # one anyway 
5731
6232
        case $install_prog,$host in
5732
6233
        */usr/bin/install*,*cygwin*)
5733
6234
          case $file:$destfile in
5827
6328
    # Exit here if they wanted silent mode.
5828
6329
    test "$show" = : && exit $EXIT_SUCCESS
5829
6330
 
5830
 
    $echo "----------------------------------------------------------------------"
 
6331
    $echo "X----------------------------------------------------------------------" | $Xsed
5831
6332
    $echo "Libraries have been installed in:"
5832
6333
    for libdir in $libdirs; do
5833
6334
      $echo "   $libdir"
5860
6361
    $echo
5861
6362
    $echo "See any operating system documentation about shared libraries for"
5862
6363
    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5863
 
    $echo "----------------------------------------------------------------------"
 
6364
    $echo "X----------------------------------------------------------------------" | $Xsed
5864
6365
    exit $EXIT_SUCCESS
5865
6366
    ;;
5866
6367
 
5918
6419
        if test -f "$dir/$objdir/$dlname"; then
5919
6420
          dir="$dir/$objdir"
5920
6421
        else
5921
 
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
5922
 
          exit $EXIT_FAILURE
 
6422
          if test ! -f "$dir/$dlname"; then
 
6423
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6424
            exit $EXIT_FAILURE
 
6425
          fi
5923
6426
        fi
5924
6427
        ;;
5925
6428
 
5983
6486
      fi
5984
6487
 
5985
6488
      # Restore saved environment variables
5986
 
      if test "${save_LC_ALL+set}" = set; then
5987
 
        LC_ALL="$save_LC_ALL"; export LC_ALL
5988
 
      fi
5989
 
      if test "${save_LANG+set}" = set; then
5990
 
        LANG="$save_LANG"; export LANG
5991
 
      fi
 
6489
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6490
      do
 
6491
        eval "if test \"\${save_$lt_var+set}\" = set; then
 
6492
                $lt_var=\$save_$lt_var; export $lt_var
 
6493
              fi"
 
6494
      done
5992
6495
 
5993
6496
      # Now prepare to actually exec the command.
5994
6497
      exec_cmd="\$cmd$args"
6077
6580
            rmfiles="$rmfiles $objdir/$n"
6078
6581
          done
6079
6582
          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6080
 
          test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6081
6583
 
6082
 
          if test "$mode" = uninstall; then
 
6584
          case "$mode" in
 
6585
          clean)
 
6586
            case "  $library_names " in
 
6587
            # "  " in the beginning catches empty $dlname
 
6588
            *" $dlname "*) ;;
 
6589
            *) rmfiles="$rmfiles $objdir/$dlname" ;;
 
6590
            esac
 
6591
             test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
 
6592
            ;;
 
6593
          uninstall)
6083
6594
            if test -n "$library_names"; then
6084
6595
              # Do each command in the postuninstall commands.
6085
6596
              cmds=$postuninstall_cmds
6112
6623
              IFS="$save_ifs"
6113
6624
            fi
6114
6625
            # FIXME: should reinstall the best remaining shared library.
6115
 
          fi
 
6626
            ;;
 
6627
          esac
6116
6628
        fi
6117
6629
        ;;
6118
6630
 
6336
6848
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6337
6849
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6338
6850
  -export-symbols SYMFILE
6339
 
                    try to export only the symbols listed in SYMFILE
 
6851
                    try to export only the symbols listed in SYMFILE
6340
6852
  -export-symbols-regex REGEX
6341
 
                    try to export only the symbols matching REGEX
 
6853
                    try to export only the symbols matching REGEX
6342
6854
  -LLIBDIR          search LIBDIR for required installed libraries
6343
6855
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6344
6856
  -module           build a library that can dlopened
6352
6864
  -release RELEASE  specify package release information
6353
6865
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6354
6866
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6355
 
  -static           do not do any dynamic linking of libtool libraries
 
6867
  -static           do not do any dynamic linking of uninstalled libtool libraries
 
6868
  -static-libtool-libs
 
6869
                    do not do any dynamic linking of libtool libraries
6356
6870
  -version-info CURRENT[:REVISION[:AGE]]
6357
 
                    specify library version info [each variable defaults to 0]
 
6871
                    specify library version info [each variable defaults to 0]
6358
6872
 
6359
6873
All other options (arguments beginning with \`-') are ignored.
6360
6874
 
6397
6911
$echo
6398
6912
$echo "Try \`$modename --help' for more information about other modes."
6399
6913
 
6400
 
exit $EXIT_SUCCESS
 
6914
exit $?
6401
6915
 
6402
6916
# The TAGs below are defined such that we never get into a situation
6403
6917
# in which we disable both kinds of libraries.  Given conflicting
6411
6925
# configuration.  But we'll never go from static-only to shared-only.
6412
6926
 
6413
6927
# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6414
 
build_libtool_libs=no
6415
 
build_old_libs=yes
 
6928
disable_libs=shared
6416
6929
# ### END LIBTOOL TAG CONFIG: disable-shared
6417
6930
 
6418
6931
# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6419
 
build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
 
6932
disable_libs=static
6420
6933
# ### END LIBTOOL TAG CONFIG: disable-static
6421
6934
 
6422
6935
# Local Variables: