~ubuntu-branches/ubuntu/raring/suphp/raring

« back to all changes in this revision

Viewing changes to config/ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2006-11-08 10:06:32 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061108100632-eqtcg37a0zjvsnap
Tags: 0.6.1.20061108-1
* New upstream snapshot (closes: #395929)
* debian/patches/04_apache2.2.dpatch: removed (included upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
PROGRAM=ltmain.sh
48
48
PACKAGE=libtool
49
 
VERSION=1.5.18
50
 
TIMESTAMP=" (1.1220.2.246 2005/05/16 10:00:18)"
 
49
VERSION=1.5.22
 
50
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
51
51
 
52
52
# See if we are running on zsh, and set the options which allow our
53
53
# commands through without removal of \ escapes.
98
98
Xsed="${SED}"' -e 1s/^X//'
99
99
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
100
100
# test EBCDIC or ASCII
101
 
case `echo A|tr A '\301'` in
102
 
 A) # EBCDIC based system
103
 
  SP2NL="tr '\100' '\n'"
104
 
  NL2SP="tr '\r\n' '\100\100'"
 
101
case `echo X|tr X '\101'` in
 
102
 A) # ASCII based system
 
103
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
104
  SP2NL='tr \040 \012'
 
105
  NL2SP='tr \015\012 \040\040'
105
106
  ;;
106
 
 *) # Assume ASCII based system
107
 
  SP2NL="tr '\040' '\012'"
108
 
  NL2SP="tr '\015\012' '\040\040'"
 
107
 *) # EBCDIC based system
 
108
  SP2NL='tr \100 \n'
 
109
  NL2SP='tr \r\n \100\100'
109
110
  ;;
110
111
esac
111
112
 
141
142
show="$echo"
142
143
show_help=
143
144
execute_dlfiles=
 
145
duplicate_deps=no
 
146
preserve_args=
144
147
lo2o="s/\\.lo\$/.${objext}/"
145
148
o2lo="s/\\.${objext}\$/.lo/"
146
 
quote_scanset='[[~#^*{};<>?'"'"'        ]'
147
149
 
148
150
if test -z "$max_cmd_len"; then
149
151
  i=0
173
175
# Shell function definitions:
174
176
# This seems to be the best place for them
175
177
 
 
178
# func_mktempdir [string]
 
179
# Make a temporary directory that won't clash with other running
 
180
# libtool processes, and avoids race conditions if possible.  If
 
181
# given, STRING is the basename for that directory.
 
182
func_mktempdir ()
 
183
{
 
184
    my_template="${TMPDIR-/tmp}/${1-$progname}"
 
185
 
 
186
    if test "$run" = ":"; then
 
187
      # Return a directory name, but don't create it in dry-run mode
 
188
      my_tmpdir="${my_template}-$$"
 
189
    else
 
190
 
 
191
      # If mktemp works, use that first and foremost
 
192
      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
 
193
 
 
194
      if test ! -d "$my_tmpdir"; then
 
195
        # Failing that, at least try and use $RANDOM to avoid a race
 
196
        my_tmpdir="${my_template}-${RANDOM-0}$$"
 
197
 
 
198
        save_mktempdir_umask=`umask`
 
199
        umask 0077
 
200
        $mkdir "$my_tmpdir"
 
201
        umask $save_mktempdir_umask
 
202
      fi
 
203
 
 
204
      # If we're not in dry-run mode, bomb out on failure
 
205
      test -d "$my_tmpdir" || {
 
206
        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
 
207
        exit $EXIT_FAILURE
 
208
      }
 
209
    fi
 
210
 
 
211
    $echo "X$my_tmpdir" | $Xsed
 
212
}
 
213
 
 
214
 
176
215
# func_win32_libid arg
177
216
# return the library type of file 'arg'
178
217
#
191
230
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
192
231
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
193
232
      win32_nmres=`eval $NM -f posix -A $1 | \
194
 
        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
195
 
      if test "X$win32_nmres" = "Ximport" ; then
196
 
        win32_libid_type="x86 archive import"
197
 
      else
198
 
        win32_libid_type="x86 archive static"
199
 
      fi
 
233
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
 
234
      case $win32_nmres in
 
235
      import*)  win32_libid_type="x86 archive import";;
 
236
      *)        win32_libid_type="x86 archive static";;
 
237
      esac
200
238
    fi
201
239
    ;;
202
240
  *DLL*)
226
264
      CC_quoted=
227
265
      for arg in $CC; do
228
266
        case $arg in
229
 
          *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
267
          *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
230
268
          arg="\"$arg\""
231
269
          ;;
232
270
        esac
247
285
            for arg in $CC; do
248
286
            # Double-quote args containing other shell metacharacters.
249
287
            case $arg in
250
 
              *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
288
              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
251
289
              arg="\"$arg\""
252
290
              ;;
253
291
            esac
257
295
            trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
258
296
            # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
259
297
            extendcc=${host}-${CC}
 
298
            # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc  
 
299
            # (Gentoo-specific hack because we always export $CHOST)
 
300
            mungedcc=${CHOST-${host}}-${trimedcc}
260
301
            case "$@ " in
261
302
              "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
262
303
              "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
264
305
              break ;;
265
306
              "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
266
307
              "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
 
308
              "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
267
309
              " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
268
310
              # The compiler in the base compile command matches
269
311
              # the one in the tagged configuration.
339
381
      $run ${rm}r "$my_xdir"
340
382
      $show "$mkdir $my_xdir"
341
383
      $run $mkdir "$my_xdir"
342
 
      status=$?
343
 
      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
344
 
        exit $status
 
384
      exit_status=$?
 
385
      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
 
386
        exit $exit_status
345
387
      fi
346
388
      case $host in
347
389
      *-darwin*)
381
423
            func_extract_an_archive "$my_xdir" "$my_xabs"
382
424
          fi # $darwin_arches
383
425
        fi # $run
384
 
      ;;
 
426
        ;;
385
427
      *)
386
428
        func_extract_an_archive "$my_xdir" "$my_xabs"
387
429
        ;;
396
438
# Darwin sucks
397
439
eval std_shrext=\"$shrext_cmds\"
398
440
 
 
441
disable_libs=no
 
442
 
399
443
# Parse our command line options once, thoroughly.
400
444
while test "$#" -gt 0
401
445
do
512
556
    preserve_args="$preserve_args $arg"
513
557
    ;;
514
558
 
515
 
  --tag) prevopt="--tag" prev=tag ;;
 
559
  --tag)
 
560
    prevopt="--tag"
 
561
    prev=tag
 
562
    preserve_args="$preserve_args --tag"
 
563
    ;;
516
564
  --tag=*)
517
565
    set tag "$optarg" ${1+"$@"}
518
566
    shift
544
592
  exit $EXIT_FAILURE
545
593
fi
546
594
 
 
595
case $disable_libs in
 
596
no) 
 
597
  ;;
 
598
shared)
 
599
  build_libtool_libs=no
 
600
  build_old_libs=yes
 
601
  ;;
 
602
static)
 
603
  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
 
604
  ;;
 
605
esac
 
606
 
547
607
# If this variable is set in any of the actions, the command in it
548
608
# will be execed at the end.  This prevents here-documents from being
549
609
# left over by shells.
620
680
 
621
681
    for arg
622
682
    do
623
 
      case "$arg_mode" in
 
683
      case $arg_mode in
624
684
      arg  )
625
685
        # do not "continue".  Instead, add this to base_compile
626
686
        lastarg="$arg"
671
731
            # Many Bourne shells cannot handle close brackets correctly
672
732
            # in scan sets, so we specify it separately.
673
733
            case $arg in
674
 
              *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
734
              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
675
735
              arg="\"$arg\""
676
736
              ;;
677
737
            esac
706
766
      # in scan sets (worked around with variable expansion),
707
767
      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
708
768
      # at all, so we specify them separately.
709
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
769
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
710
770
        lastarg="\"$lastarg\""
711
771
        ;;
712
772
      esac
781
841
 
782
842
    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
783
843
    case $qlibobj in
784
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
844
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
785
845
        qlibobj="\"$qlibobj\"" ;;
786
846
    esac
787
 
    if test "X$libobj" != "X$qlibobj"; then
788
 
        $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
789
 
        exit $EXIT_FAILURE
790
 
    fi
 
847
    test "X$libobj" != "X$qlibobj" \
 
848
        && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
 
849
        && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
791
850
    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
792
851
    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
793
852
    if test "X$xdir" = "X$obj"; then
868
927
    fi
869
928
    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
870
929
    case $qsrcfile in
871
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
930
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
872
931
      qsrcfile="\"$qsrcfile\"" ;;
873
932
    esac
874
933
 
901
960
      if test ! -d "${xdir}$objdir"; then
902
961
        $show "$mkdir ${xdir}$objdir"
903
962
        $run $mkdir ${xdir}$objdir
904
 
        status=$?
905
 
        if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
906
 
          exit $status
 
963
        exit_status=$?
 
964
        if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
 
965
          exit $exit_status
907
966
        fi
908
967
      fi
909
968
 
1106
1165
    no_install=no
1107
1166
    objs=
1108
1167
    non_pic_objects=
 
1168
    notinst_path= # paths that contain not-installed libtool libraries
1109
1169
    precious_files_regex=
1110
1170
    prefer_static_libs=no
1111
1171
    preload=no
1134
1194
          if test -n "$link_static_flag"; then
1135
1195
            dlopen_self=$dlopen_self_static
1136
1196
          fi
 
1197
          prefer_static_libs=yes
1137
1198
        else
1138
1199
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1139
1200
            dlopen_self=$dlopen_self_static
1140
1201
          fi
 
1202
          prefer_static_libs=built
1141
1203
        fi
1142
1204
        build_libtool_libs=no
1143
1205
        build_old_libs=yes
1144
 
        prefer_static_libs=yes
1145
1206
        break
1146
1207
        ;;
1147
1208
      esac
1155
1216
      arg="$1"
1156
1217
      shift
1157
1218
      case $arg in
1158
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1219
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
1159
1220
        qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1160
1221
        ;;
1161
1222
      *) qarg=$arg ;;
1316
1377
                  if test -z "$pic_object" || test "$pic_object" = none ; then
1317
1378
                    arg="$non_pic_object"
1318
1379
                  fi
 
1380
                else
 
1381
                  # If the PIC object exists, use it instead.
 
1382
                  # $xdir was prepended to $pic_object above.
 
1383
                  non_pic_object="$pic_object"
 
1384
                  non_pic_objects="$non_pic_objects $non_pic_object"
1319
1385
                fi
1320
1386
              else
1321
1387
                # Only an error if not doing a dry-run.
1399
1465
          prev=
1400
1466
          continue
1401
1467
          ;;
1402
 
        darwin_framework)
1403
 
          compiler_flags="$compiler_flags $arg"
 
1468
        darwin_framework|darwin_framework_skip)
 
1469
          test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1404
1470
          compile_command="$compile_command $arg"
1405
1471
          finalize_command="$finalize_command $arg"
1406
1472
          prev=
1464
1530
        continue
1465
1531
        ;;
1466
1532
 
1467
 
      -framework)
1468
 
        prev=darwin_framework
1469
 
        compiler_flags="$compiler_flags $arg"
 
1533
      -framework|-arch|-isysroot)
 
1534
        case " $CC " in
 
1535
          *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
 
1536
                prev=darwin_framework_skip ;;
 
1537
          *) compiler_flags="$compiler_flags $arg"
 
1538
             prev=darwin_framework ;;
 
1539
        esac
1470
1540
        compile_command="$compile_command $arg"
1471
1541
        finalize_command="$finalize_command $arg"
1472
 
        continue
1473
 
        ;;
 
1542
        continue
 
1543
        ;;
1474
1544
 
1475
1545
      -inst-prefix-dir)
1476
1546
        prev=inst_prefix
1498
1568
          absdir=`cd "$dir" && pwd`
1499
1569
          if test -z "$absdir"; then
1500
1570
            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1501
 
            exit $EXIT_FAILURE
 
1571
            absdir="$dir"
 
1572
            notinst_path="$notinst_path $dir"
1502
1573
          fi
1503
1574
          dir="$absdir"
1504
1575
          ;;
1512
1583
        esac
1513
1584
        case $host in
1514
1585
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1586
          testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1515
1587
          case :$dllsearchpath: in
1516
1588
          *":$dir:"*) ;;
1517
1589
          *) dllsearchpath="$dllsearchpath:$dir";;
1518
1590
          esac
 
1591
          case :$dllsearchpath: in
 
1592
          *":$testbindir:"*) ;;
 
1593
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
1594
          esac
1519
1595
          ;;
1520
1596
        esac
1521
1597
        continue
1524
1600
      -l*)
1525
1601
        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1526
1602
          case $host in
1527
 
          *-*-cygwin* | *-*-pw32* | *-*-beos*)
 
1603
          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1528
1604
            # These systems don't actually have a C or math library (as such)
1529
1605
            continue
1530
1606
            ;;
1531
 
          *-*-mingw* | *-*-os2*)
 
1607
          *-*-os2*)
1532
1608
            # These systems don't actually have a C library (as such)
1533
1609
            test "X$arg" = "X-lc" && continue
1534
1610
            ;;
1540
1616
            # Rhapsody C and math libraries are in the System framework
1541
1617
            deplibs="$deplibs -framework System"
1542
1618
            continue
 
1619
            ;;
 
1620
          *-*-sco3.2v5* | *-*-sco5v6*)
 
1621
            # Causes problems with __ctype
 
1622
            test "X$arg" = "X-lc" && continue
 
1623
            ;;
 
1624
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
1625
            # Compiler inserts libc in the correct place for threads to work
 
1626
            test "X$arg" = "X-lc" && continue
 
1627
            ;;
1543
1628
          esac
1544
1629
        elif test "X$arg" = "X-lc_r"; then
1545
1630
         case $host in
1581
1666
      # +DA*, +DD* enable 64-bit mode on the HP compiler
1582
1667
      # -q* pass through compiler args for the IBM compiler
1583
1668
      # -m* pass through architecture-specific compiler args for GCC
1584
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
 
1669
      # -m*, -t[45]*, -txscale* pass through architecture-specific
 
1670
      # compiler args for GCC
 
1671
      # -pg pass through profiling flag for GCC
 
1672
      # @file GCC response files
 
1673
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
 
1674
      -t[45]*|-txscale*|@*)
1585
1675
 
1586
1676
        # Unknown arguments in both finalize_command and compile_command need
1587
1677
        # to be aesthetically quoted because they are evaled later.
1588
1678
        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1589
1679
        case $arg in
1590
 
        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1680
        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1591
1681
          arg="\"$arg\""
1592
1682
          ;;
1593
1683
        esac
1594
1684
        compile_command="$compile_command $arg"
1595
1685
        finalize_command="$finalize_command $arg"
1596
 
        if test "$with_gcc" = "yes" ; then
1597
 
          compiler_flags="$compiler_flags $arg"
1598
 
        fi
 
1686
        compiler_flags="$compiler_flags $arg"
1599
1687
        continue
1600
1688
        ;;
1601
1689
 
1703
1791
        for flag in $args; do
1704
1792
          IFS="$save_ifs"
1705
1793
          case $flag in
1706
 
            *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1794
            *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
1707
1795
            flag="\"$flag\""
1708
1796
            ;;
1709
1797
          esac
1721
1809
        for flag in $args; do
1722
1810
          IFS="$save_ifs"
1723
1811
          case $flag in
1724
 
            *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1812
            *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
1725
1813
            flag="\"$flag\""
1726
1814
            ;;
1727
1815
          esac
1748
1836
        continue
1749
1837
        ;;
1750
1838
 
1751
 
      -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread )
1752
 
        compiler_flags="$compiler_flags $arg"
1753
 
        continue
1754
 
        ;;
1755
 
 
1756
1839
      # Some other compiler flag.
1757
1840
      -* | +*)
1758
1841
        # Unknown arguments in both finalize_command and compile_command need
1759
1842
        # to be aesthetically quoted because they are evaled later.
1760
1843
        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1761
1844
        case $arg in
1762
 
        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1845
        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1763
1846
          arg="\"$arg\""
1764
1847
          ;;
1765
1848
        esac
1838
1921
            if test -z "$pic_object" || test "$pic_object" = none ; then
1839
1922
              arg="$non_pic_object"
1840
1923
            fi
 
1924
          else
 
1925
            # If the PIC object exists, use it instead.
 
1926
            # $xdir was prepended to $pic_object above.
 
1927
            non_pic_object="$pic_object"
 
1928
            non_pic_objects="$non_pic_objects $non_pic_object"
1841
1929
          fi
1842
1930
        else
1843
1931
          # Only an error if not doing a dry-run.
1893
1981
        # to be aesthetically quoted because they are evaled later.
1894
1982
        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1895
1983
        case $arg in
1896
 
        *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
1984
        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
1897
1985
          arg="\"$arg\""
1898
1986
          ;;
1899
1987
        esac
1943
2031
    if test ! -d "$output_objdir"; then
1944
2032
      $show "$mkdir $output_objdir"
1945
2033
      $run $mkdir $output_objdir
1946
 
      status=$?
1947
 
      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1948
 
        exit $status
 
2034
      exit_status=$?
 
2035
      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
 
2036
        exit $exit_status
1949
2037
      fi
1950
2038
    fi
1951
2039
 
2008
2096
    newlib_search_path=
2009
2097
    need_relink=no # whether we're linking any uninstalled libtool libraries
2010
2098
    notinst_deplibs= # not-installed libtool libraries
2011
 
    notinst_path= # paths that contain not-installed libtool libraries
2012
2099
    case $linkmode in
2013
2100
    lib)
2014
2101
        passes="conv link"
2244
2331
        esac # case $deplib
2245
2332
        if test "$found" = yes || test -f "$lib"; then :
2246
2333
        else
2247
 
          $echo "$modename: cannot find the library \`$lib'" 1>&2
 
2334
          $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2248
2335
          exit $EXIT_FAILURE
2249
2336
        fi
2250
2337
 
2458
2545
              case "$temp_rpath " in
2459
2546
              *" $dir "*) ;;
2460
2547
              *" $absdir "*) ;;
2461
 
              *) temp_rpath="$temp_rpath $dir" ;;
 
2548
              *) temp_rpath="$temp_rpath $absdir" ;;
2462
2549
              esac
2463
2550
            fi
2464
2551
 
2495
2582
        fi
2496
2583
 
2497
2584
        link_static=no # Whether the deplib will be linked statically
 
2585
        use_static_libs=$prefer_static_libs
 
2586
        if test "$use_static_libs" = built && test "$installed" = yes ; then
 
2587
          use_static_libs=no
 
2588
        fi
2498
2589
        if test -n "$library_names" &&
2499
 
           { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2590
           { test "$use_static_libs" = no || test -z "$old_library"; }; then
2500
2591
          if test "$installed" = no; then
2501
2592
            notinst_deplibs="$notinst_deplibs $lib"
2502
2593
            need_relink=yes
2609
2700
              if test "$hardcode_direct" = no; then
2610
2701
                add="$dir/$linklib"
2611
2702
                case $host in
2612
 
                  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
 
2703
                  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
 
2704
                  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
 
2705
                  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
 
2706
                    *-*-unixware7*) add_dir="-L$dir" ;;
2613
2707
                  *-*-darwin* )
2614
2708
                    # if the lib is a module then we can not link against
2615
2709
                    # it, someone is ignoring the new warnings I added
2616
 
                    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
 
2710
                    if /usr/bin/file -L $add 2> /dev/null |
 
2711
                      $EGREP ": [^:]* bundle" >/dev/null ; then
2617
2712
                      $echo "** Warning, lib $linklib is a module, not a shared library"
2618
2713
                      if test -z "$old_library" ; then
2619
2714
                        $echo
2644
2739
                add_dir="-L$dir"
2645
2740
                # Try looking first in the location we're being installed to.
2646
2741
                if test -n "$inst_prefix_dir"; then
2647
 
                  case "$libdir" in
 
2742
                  case $libdir in
2648
2743
                    [\\/]*)
2649
2744
                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
2650
2745
                      ;;
2717
2812
              add_dir="-L$libdir"
2718
2813
              # Try looking first in the location we're being installed to.
2719
2814
              if test -n "$inst_prefix_dir"; then
2720
 
                case "$libdir" in
 
2815
                case $libdir in
2721
2816
                  [\\/]*)
2722
2817
                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
2723
2818
                    ;;
2778
2873
              fi
2779
2874
            fi
2780
2875
          else
2781
 
            convenience="$convenience $dir/$old_library"
2782
 
            old_convenience="$old_convenience $dir/$old_library"
2783
2876
            deplibs="$dir/$old_library $deplibs"
2784
2877
            link_static=yes
2785
2878
          fi
3366
3459
 
3367
3460
      # Eliminate all temporary directories.
3368
3461
      for path in $notinst_path; do
3369
 
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3370
 
        deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3371
 
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
 
3462
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3463
        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3464
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3372
3465
      done
3373
3466
 
3374
3467
      if test -n "$xrpath"; then
3421
3514
            ;;
3422
3515
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3423
3516
            # Do not include libc due to us having libc/libc_r.
3424
 
            test "X$arg" = "X-lc" && continue
 
3517
            ;;
 
3518
          *-*-sco3.2v5* | *-*-sco5v6*)
 
3519
            # Causes problems with __ctype
 
3520
            ;;
 
3521
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
3522
            # Compiler inserts libc in the correct place for threads to work
3425
3523
            ;;
3426
3524
          *)
3427
3525
            # Add libc to deplibs on all other systems if necessary.
3465
3563
          int main() { return 0; }
3466
3564
EOF
3467
3565
          $rm conftest
3468
 
          $LTCC -o conftest conftest.c $deplibs
 
3566
          $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3469
3567
          if test "$?" -eq 0 ; then
3470
3568
            ldd_output=`ldd conftest`
3471
3569
            for i in $deplibs; do
3472
 
              name="`expr $i : '-l\(.*\)'`"
 
3570
              name=`expr $i : '-l\(.*\)'`
3473
3571
              # If $name is empty we are operating on a -L argument.
3474
3572
              if test "$name" != "" && test "$name" -ne "0"; then
3475
3573
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3506
3604
            # Error occurred in the first compile.  Let's try to salvage
3507
3605
            # the situation: Compile a separate program for each library.
3508
3606
            for i in $deplibs; do
3509
 
              name="`expr $i : '-l\(.*\)'`"
 
3607
              name=`expr $i : '-l\(.*\)'`
3510
3608
              # If $name is empty we are operating on a -L argument.
3511
3609
              if test "$name" != "" && test "$name" != "0"; then
3512
3610
                $rm conftest
3513
 
                $LTCC -o conftest conftest.c $i
 
3611
                $LTCC $LTCFLAGS -o conftest conftest.c $i
3514
3612
                # Did it work?
3515
3613
                if test "$?" -eq 0 ; then
3516
3614
                  ldd_output=`ldd conftest`
3558
3656
          set dummy $deplibs_check_method
3559
3657
          file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3560
3658
          for a_deplib in $deplibs; do
3561
 
            name="`expr $a_deplib : '-l\(.*\)'`"
 
3659
            name=`expr $a_deplib : '-l\(.*\)'`
3562
3660
            # If $name is empty we are operating on a -L argument.
3563
3661
            if test "$name" != "" && test  "$name" != "0"; then
3564
3662
              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3634
3732
          set dummy $deplibs_check_method
3635
3733
          match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3636
3734
          for a_deplib in $deplibs; do
3637
 
            name="`expr $a_deplib : '-l\(.*\)'`"
 
3735
            name=`expr $a_deplib : '-l\(.*\)'`
3638
3736
            # If $name is empty we are operating on a -L argument.
3639
3737
            if test -n "$name" && test "$name" != "0"; then
3640
3738
              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3764
3862
        deplibs=$newdeplibs
3765
3863
      fi
3766
3864
 
 
3865
 
 
3866
      # move library search paths that coincide with paths to not yet
 
3867
      # installed libraries to the beginning of the library search list
 
3868
      new_libs=
 
3869
      for path in $notinst_path; do
 
3870
        case " $new_libs " in
 
3871
        *" -L$path/$objdir "*) ;;
 
3872
        *)
 
3873
          case " $deplibs " in
 
3874
          *" -L$path/$objdir "*)
 
3875
            new_libs="$new_libs -L$path/$objdir" ;;
 
3876
          esac
 
3877
          ;;
 
3878
        esac
 
3879
      done
 
3880
      for deplib in $deplibs; do
 
3881
        case $deplib in
 
3882
        -L*)
 
3883
          case " $new_libs " in
 
3884
          *" $deplib "*) ;;
 
3885
          *) new_libs="$new_libs $deplib" ;;
 
3886
          esac
 
3887
          ;;
 
3888
        *) new_libs="$new_libs $deplib" ;;
 
3889
        esac
 
3890
      done
 
3891
      deplibs="$new_libs"
 
3892
 
 
3893
 
3767
3894
      # All the library-specific variables (install_libdir is set above).
3768
3895
      library_names=
3769
3896
      old_library=
3847
3974
        fi
3848
3975
 
3849
3976
        lib="$output_objdir/$realname"
 
3977
        linknames=
3850
3978
        for link
3851
3979
        do
3852
3980
          linknames="$linknames $link"
3875
4003
                # The command line is too long to execute in one step.
3876
4004
                $show "using reloadable object file for export list..."
3877
4005
                skipped_export=:
 
4006
                # Break out early, otherwise skipped_export may be
 
4007
                # set to false by a later but shorter cmd.
 
4008
                break
3878
4009
              fi
3879
4010
            done
3880
4011
            IFS="$save_ifs"
3944
4075
          fi
3945
4076
        fi
3946
4077
 
3947
 
        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` &&
3948
4080
           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3949
4081
          :
3950
4082
        else
3979
4111
          do
3980
4112
            eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3981
4113
            if test "X$objlist" = X ||
3982
 
               { len=`expr "X$test_cmds" : ".*"` &&
 
4114
               { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3983
4115
                 test "$len" -le "$max_cmd_len"; }; then
3984
4116
              objlist="$objlist $obj"
3985
4117
            else
4069
4201
          IFS="$save_ifs"
4070
4202
          eval cmd=\"$cmd\"
4071
4203
          $show "$cmd"
4072
 
          $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
          }
4073
4214
        done
4074
4215
        IFS="$save_ifs"
4075
4216
 
4076
4217
        # Restore the uninstalled library and exit
4077
4218
        if test "$mode" = relink; then
4078
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
 
4079
4228
          exit $EXIT_SUCCESS
4080
4229
        fi
4081
4230
 
4257
4406
        ;;
4258
4407
      esac
4259
4408
 
 
4409
 
 
4410
      # move library search paths that coincide with paths to not yet
 
4411
      # installed libraries to the beginning of the library search list
 
4412
      new_libs=
 
4413
      for path in $notinst_path; do
 
4414
        case " $new_libs " in
 
4415
        *" -L$path/$objdir "*) ;;
 
4416
        *)
 
4417
          case " $compile_deplibs " in
 
4418
          *" -L$path/$objdir "*)
 
4419
            new_libs="$new_libs -L$path/$objdir" ;;
 
4420
          esac
 
4421
          ;;
 
4422
        esac
 
4423
      done
 
4424
      for deplib in $compile_deplibs; do
 
4425
        case $deplib in
 
4426
        -L*)
 
4427
          case " $new_libs " in
 
4428
          *" $deplib "*) ;;
 
4429
          *) new_libs="$new_libs $deplib" ;;
 
4430
          esac
 
4431
          ;;
 
4432
        *) new_libs="$new_libs $deplib" ;;
 
4433
        esac
 
4434
      done
 
4435
      compile_deplibs="$new_libs"
 
4436
 
 
4437
 
4260
4438
      compile_command="$compile_command $compile_deplibs"
4261
4439
      finalize_command="$finalize_command $finalize_deplibs"
4262
4440
 
4301
4479
        fi
4302
4480
        case $host in
4303
4481
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
4482
          testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4304
4483
          case :$dllsearchpath: in
4305
4484
          *":$libdir:"*) ;;
4306
4485
          *) dllsearchpath="$dllsearchpath:$libdir";;
4307
4486
          esac
 
4487
          case :$dllsearchpath: in
 
4488
          *":$testbindir:"*) ;;
 
4489
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
4490
          esac
4308
4491
          ;;
4309
4492
        esac
4310
4493
      done
4420
4603
            if test -z "$export_symbols"; then
4421
4604
              export_symbols="$output_objdir/$outputname.exp"
4422
4605
              $run $rm $export_symbols
4423
 
              $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
4606
              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
4607
              case $host in
 
4608
              *cygwin* | *mingw* )
 
4609
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4610
                $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
 
4611
                ;;
 
4612
              esac
4424
4613
            else
4425
 
              $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
 
4614
              $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4426
4615
              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4427
4616
              $run eval 'mv "$nlist"T "$nlist"'
 
4617
              case $host in
 
4618
              *cygwin* | *mingw* )
 
4619
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4620
                $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
 
4621
                ;;
 
4622
              esac
4428
4623
            fi
4429
4624
          fi
4430
4625
 
4541
4736
          esac
4542
4737
 
4543
4738
          # Now compile the dynamic symbol file.
4544
 
          $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4545
 
          $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
 
4739
          $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
 
4740
          $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4546
4741
 
4547
4742
          # Clean up the generated files.
4548
4743
          $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4549
4744
          $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4550
4745
 
4551
4746
          # Transform the symbol file into the correct name.
4552
 
          compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4553
 
          finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4747
          case $host in
 
4748
          *cygwin* | *mingw* )
 
4749
            if test -f "$output_objdir/${outputname}.def" ; then
 
4750
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
4751
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
4752
            else
 
4753
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4754
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4755
             fi
 
4756
            ;;
 
4757
          * )
 
4758
            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4759
            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4760
            ;;
 
4761
          esac
4554
4762
          ;;
4555
4763
        *)
4556
4764
          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4575
4783
        # We have no uninstalled library dependencies, so finalize right now.
4576
4784
        $show "$link_command"
4577
4785
        $run eval "$link_command"
4578
 
        status=$?
 
4786
        exit_status=$?
4579
4787
 
4580
4788
        # Delete the generated files.
4581
4789
        if test -n "$dlsyms"; then
4583
4791
          $run $rm "$output_objdir/${outputname}S.${objext}"
4584
4792
        fi
4585
4793
 
4586
 
        exit $status
 
4794
        exit $exit_status
4587
4795
      fi
4588
4796
 
4589
4797
      if test -n "$shlibpath_var"; then
4723
4931
        esac
4724
4932
        case $host in
4725
4933
          *cygwin* | *mingw* )
4726
 
            cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4727
 
            cwrapper=`$echo ${output}.exe`
4728
 
            $rm $cwrappersource $cwrapper
4729
 
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
 
4934
            output_name=`basename $output`
 
4935
            output_path=`dirname $output`
 
4936
            cwrappersource="$output_path/$objdir/lt-$output_name.c"
 
4937
            cwrapper="$output_path/$output_name.exe"
 
4938
            $rm $cwrappersource $cwrapper
 
4939
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4730
4940
 
4731
4941
            cat > $cwrappersource <<EOF
4732
4942
 
4751
4961
#include <malloc.h>
4752
4962
#include <stdarg.h>
4753
4963
#include <assert.h>
 
4964
#include <string.h>
 
4965
#include <ctype.h>
 
4966
#include <sys/stat.h>
4754
4967
 
4755
4968
#if defined(PATH_MAX)
4756
4969
# define LT_PATHMAX PATH_MAX
4761
4974
#endif
4762
4975
 
4763
4976
#ifndef DIR_SEPARATOR
4764
 
#define DIR_SEPARATOR '/'
 
4977
# define DIR_SEPARATOR '/'
 
4978
# define PATH_SEPARATOR ':'
4765
4979
#endif
4766
4980
 
4767
4981
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4768
4982
  defined (__OS2__)
4769
 
#define HAVE_DOS_BASED_FILE_SYSTEM
4770
 
#ifndef DIR_SEPARATOR_2
4771
 
#define DIR_SEPARATOR_2 '\\'
4772
 
#endif
 
4983
# define HAVE_DOS_BASED_FILE_SYSTEM
 
4984
# ifndef DIR_SEPARATOR_2
 
4985
#  define DIR_SEPARATOR_2 '\\'
 
4986
# endif
 
4987
# ifndef PATH_SEPARATOR_2
 
4988
#  define PATH_SEPARATOR_2 ';'
 
4989
# endif
4773
4990
#endif
4774
4991
 
4775
4992
#ifndef DIR_SEPARATOR_2
4779
4996
        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4780
4997
#endif /* DIR_SEPARATOR_2 */
4781
4998
 
 
4999
#ifndef PATH_SEPARATOR_2
 
5000
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
 
5001
#else /* PATH_SEPARATOR_2 */
 
5002
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
 
5003
#endif /* PATH_SEPARATOR_2 */
 
5004
 
4782
5005
#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
4783
5006
#define XFREE(stale) do { \
4784
5007
  if (stale) { free ((void *) stale); stale = 0; } \
4785
5008
} while (0)
4786
5009
 
 
5010
/* -DDEBUG is fairly common in CFLAGS.  */
 
5011
#undef DEBUG
 
5012
#if defined DEBUGWRAPPER
 
5013
# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
 
5014
#else
 
5015
# define DEBUG(format, ...)
 
5016
#endif
 
5017
 
4787
5018
const char *program_name = NULL;
4788
5019
 
4789
5020
void * xmalloc (size_t num);
4790
5021
char * xstrdup (const char *string);
4791
 
char * basename (const char *name);
4792
 
char * fnqualify(const char *path);
 
5022
const char * base_name (const char *name);
 
5023
char * find_executable(const char *wrapper);
 
5024
int    check_executable(const char *path);
4793
5025
char * strendzap(char *str, const char *pat);
4794
5026
void lt_fatal (const char *message, ...);
4795
5027
 
4799
5031
  char **newargz;
4800
5032
  int i;
4801
5033
 
4802
 
  program_name = (char *) xstrdup ((char *) basename (argv[0]));
 
5034
  program_name = (char *) xstrdup (base_name (argv[0]));
 
5035
  DEBUG("(main) argv[0]      : %s\n",argv[0]);
 
5036
  DEBUG("(main) program_name : %s\n",program_name);
4803
5037
  newargz = XMALLOC(char *, argc+2);
4804
5038
EOF
4805
5039
 
4806
 
            cat >> $cwrappersource <<EOF
4807
 
  newargz[0] = "$SHELL";
 
5040
            cat >> $cwrappersource <<EOF
 
5041
  newargz[0] = (char *) xstrdup("$SHELL");
4808
5042
EOF
4809
5043
 
4810
 
            cat >> $cwrappersource <<"EOF"
4811
 
  newargz[1] = fnqualify(argv[0]);
 
5044
            cat >> $cwrappersource <<"EOF"
 
5045
  newargz[1] = find_executable(argv[0]);
 
5046
  if (newargz[1] == NULL)
 
5047
    lt_fatal("Couldn't find %s", argv[0]);
 
5048
  DEBUG("(main) found exe at : %s\n",newargz[1]);
4812
5049
  /* we know the script has the same name, without the .exe */
4813
5050
  /* so make sure newargz[1] doesn't end in .exe */
4814
5051
  strendzap(newargz[1],".exe");
4815
5052
  for (i = 1; i < argc; i++)
4816
5053
    newargz[i+1] = xstrdup(argv[i]);
4817
5054
  newargz[argc+1] = NULL;
4818
 
EOF
4819
 
 
4820
 
            cat >> $cwrappersource <<EOF
 
5055
 
 
5056
  for (i=0; i<argc+1; i++)
 
5057
  {
 
5058
    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
 
5059
    ;
 
5060
  }
 
5061
 
 
5062
EOF
 
5063
 
 
5064
            case $host_os in
 
5065
              mingw*)
 
5066
                cat >> $cwrappersource <<EOF
 
5067
  execv("$SHELL",(char const **)newargz);
 
5068
EOF
 
5069
              ;;
 
5070
              *)
 
5071
                cat >> $cwrappersource <<EOF
4821
5072
  execv("$SHELL",newargz);
4822
5073
EOF
 
5074
              ;;
 
5075
            esac
4823
5076
 
4824
 
            cat >> $cwrappersource <<"EOF"
 
5077
            cat >> $cwrappersource <<"EOF"
 
5078
  return 127;
4825
5079
}
4826
5080
 
4827
5081
void *
4841
5095
;
4842
5096
}
4843
5097
 
4844
 
char *
4845
 
basename (const char *name)
 
5098
const char *
 
5099
base_name (const char *name)
4846
5100
{
4847
5101
  const char *base;
4848
5102
 
4849
5103
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4850
5104
  /* Skip over the disk name in MSDOS pathnames. */
4851
 
  if (isalpha (name[0]) && name[1] == ':')
 
5105
  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4852
5106
    name += 2;
4853
5107
#endif
4854
5108
 
4855
5109
  for (base = name; *name; name++)
4856
5110
    if (IS_DIR_SEPARATOR (*name))
4857
5111
      base = name + 1;
4858
 
  return (char *) base;
4859
 
}
4860
 
 
 
5112
  return base;
 
5113
}
 
5114
 
 
5115
int
 
5116
check_executable(const char * path)
 
5117
{
 
5118
  struct stat st;
 
5119
 
 
5120
  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
 
5121
  if ((!path) || (!*path))
 
5122
    return 0;
 
5123
 
 
5124
  if ((stat (path, &st) >= 0) &&
 
5125
      (
 
5126
        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
 
5127
#if defined (S_IXOTH)
 
5128
       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
 
5129
#endif
 
5130
#if defined (S_IXGRP)
 
5131
       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
 
5132
#endif
 
5133
       ((st.st_mode & S_IXUSR) == S_IXUSR))
 
5134
      )
 
5135
    return 1;
 
5136
  else
 
5137
    return 0;
 
5138
}
 
5139
 
 
5140
/* Searches for the full path of the wrapper.  Returns
 
5141
   newly allocated full path name if found, NULL otherwise */
4861
5142
char *
4862
 
fnqualify(const char *path)
 
5143
find_executable (const char* wrapper)
4863
5144
{
4864
 
  size_t size;
4865
 
  char *p;
 
5145
  int has_slash = 0;
 
5146
  const char* p;
 
5147
  const char* p_next;
 
5148
  /* static buffer for getcwd */
4866
5149
  char tmp[LT_PATHMAX + 1];
4867
 
 
4868
 
  assert(path != NULL);
4869
 
 
4870
 
  /* Is it qualified already? */
4871
 
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4872
 
  if (isalpha (path[0]) && path[1] == ':')
4873
 
    return xstrdup (path);
4874
 
#endif
4875
 
  if (IS_DIR_SEPARATOR (path[0]))
4876
 
    return xstrdup (path);
4877
 
 
4878
 
  /* prepend the current directory */
4879
 
  /* doesn't handle '~' */
 
5150
  int tmp_len;
 
5151
  char* concat_name;
 
5152
 
 
5153
  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
 
5154
 
 
5155
  if ((wrapper == NULL) || (*wrapper == '\0'))
 
5156
    return NULL;
 
5157
 
 
5158
  /* Absolute path? */
 
5159
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5160
  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
 
5161
  {
 
5162
    concat_name = xstrdup (wrapper);
 
5163
    if (check_executable(concat_name))
 
5164
      return concat_name;
 
5165
    XFREE(concat_name);
 
5166
  }
 
5167
  else
 
5168
  {
 
5169
#endif
 
5170
    if (IS_DIR_SEPARATOR (wrapper[0]))
 
5171
    {
 
5172
      concat_name = xstrdup (wrapper);
 
5173
      if (check_executable(concat_name))
 
5174
        return concat_name;
 
5175
      XFREE(concat_name);
 
5176
    }
 
5177
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5178
  }
 
5179
#endif
 
5180
 
 
5181
  for (p = wrapper; *p; p++)
 
5182
    if (*p == '/')
 
5183
    {
 
5184
      has_slash = 1;
 
5185
      break;
 
5186
    }
 
5187
  if (!has_slash)
 
5188
  {
 
5189
    /* no slashes; search PATH */
 
5190
    const char* path = getenv ("PATH");
 
5191
    if (path != NULL)
 
5192
    {
 
5193
      for (p = path; *p; p = p_next)
 
5194
      {
 
5195
        const char* q;
 
5196
        size_t p_len;
 
5197
        for (q = p; *q; q++)
 
5198
          if (IS_PATH_SEPARATOR(*q))
 
5199
            break;
 
5200
        p_len = q - p;
 
5201
        p_next = (*q == '\0' ? q : q + 1);
 
5202
        if (p_len == 0)
 
5203
        {
 
5204
          /* empty path: current directory */
 
5205
          if (getcwd (tmp, LT_PATHMAX) == NULL)
 
5206
            lt_fatal ("getcwd failed");
 
5207
          tmp_len = strlen(tmp);
 
5208
          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5209
          memcpy (concat_name, tmp, tmp_len);
 
5210
          concat_name[tmp_len] = '/';
 
5211
          strcpy (concat_name + tmp_len + 1, wrapper);
 
5212
        }
 
5213
        else
 
5214
        {
 
5215
          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
 
5216
          memcpy (concat_name, p, p_len);
 
5217
          concat_name[p_len] = '/';
 
5218
          strcpy (concat_name + p_len + 1, wrapper);
 
5219
        }
 
5220
        if (check_executable(concat_name))
 
5221
          return concat_name;
 
5222
        XFREE(concat_name);
 
5223
      }
 
5224
    }
 
5225
    /* not found in PATH; assume curdir */
 
5226
  }
 
5227
  /* Relative path | not found in path: prepend cwd */
4880
5228
  if (getcwd (tmp, LT_PATHMAX) == NULL)
4881
5229
    lt_fatal ("getcwd failed");
4882
 
  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4883
 
  p = XMALLOC(char, size);
4884
 
  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4885
 
  return p;
 
5230
  tmp_len = strlen(tmp);
 
5231
  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5232
  memcpy (concat_name, tmp, tmp_len);
 
5233
  concat_name[tmp_len] = '/';
 
5234
  strcpy (concat_name + tmp_len + 1, wrapper);
 
5235
 
 
5236
  if (check_executable(concat_name))
 
5237
    return concat_name;
 
5238
  XFREE(concat_name);
 
5239
  return NULL;
4886
5240
}
4887
5241
 
4888
5242
char *
4926
5280
  va_end (ap);
4927
5281
}
4928
5282
EOF
4929
 
          # we should really use a build-platform specific compiler
4930
 
          # here, but OTOH, the wrappers (shell script and this C one)
4931
 
          # are only useful if you want to execute the "real" binary.
4932
 
          # Since the "real" binary is built for $host, then this
4933
 
          # wrapper might as well be built for $host, too.
4934
 
          $run $LTCC -s -o $cwrapper $cwrappersource
4935
 
          ;;
4936
 
        esac
4937
 
        $rm $output
4938
 
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
 
5283
          # we should really use a build-platform specific compiler
 
5284
          # here, but OTOH, the wrappers (shell script and this C one)
 
5285
          # are only useful if you want to execute the "real" binary.
 
5286
          # Since the "real" binary is built for $host, then this
 
5287
          # wrapper might as well be built for $host, too.
 
5288
          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
 
5289
          ;;
 
5290
        esac
 
5291
        $rm $output
 
5292
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4939
5293
 
4940
5294
        $echo > $output "\
4941
5295
#! $SHELL
5080
5434
        $echo >> $output "\
5081
5435
    if test \"\$libtool_execute_magic\" != \"$magic\"; then
5082
5436
      # Run the actual program with our arguments.
 
5437
 
 
5438
      # Make sure env LD_LIBRARY_PATH does not mess us up
 
5439
      if test -n \"\${LD_LIBRARY_PATH+set}\"; then
 
5440
        export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
 
5441
      fi
5083
5442
"
5084
5443
        case $host in
5085
5444
        # Backslashes separate directories on plain windows
5086
5445
        *-*-mingw | *-*-os2*)
5087
5446
          $echo >> $output "\
5088
 
      exec \$progdir\\\\\$program \${1+\"\$@\"}
 
5447
      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5089
5448
"
5090
5449
          ;;
5091
5450
 
5092
5451
        *)
5093
5452
          $echo >> $output "\
5094
 
      exec \$progdir/\$program \${1+\"\$@\"}
 
5453
      exec \"\$progdir/\$program\" \${1+\"\$@\"}
5095
5454
"
5096
5455
          ;;
5097
5456
        esac
5101
5460
    fi
5102
5461
  else
5103
5462
    # The program doesn't exist.
5104
 
    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
 
5463
    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5105
5464
    \$echo \"This script is just a wrapper for \$program.\" 1>&2
5106
5465
    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5107
5466
    exit $EXIT_FAILURE
5165
5524
            $run ${rm}r "$gentop"
5166
5525
            $show "$mkdir $gentop"
5167
5526
            $run $mkdir "$gentop"
5168
 
            status=$?
5169
 
            if test "$status" -ne 0 && test ! -d "$gentop"; then
5170
 
              exit $status
 
5527
            exit_status=$?
 
5528
            if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
 
5529
              exit $exit_status
5171
5530
            fi
5172
5531
          fi
5173
5532
 
5224
5583
            oldobjs="$objlist $obj"
5225
5584
            objlist="$objlist $obj"
5226
5585
            eval test_cmds=\"$old_archive_cmds\"
5227
 
            if len=`expr "X$test_cmds" : ".*"` &&
 
5586
            if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5228
5587
               test "$len" -le "$max_cmd_len"; then
5229
5588
              :
5230
5589
            else
5334
5693
                  fi
5335
5694
                  # We do not want portage's build root ($S) present.
5336
5695
                  my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
 
5696
                  # We do not want portage's install root ($D) present.
 
5697
                  my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
5337
5698
                  if test -n "$my_little_ninja_foo_2" && test "$S"; then
5338
5699
                    mynewdependency_lib=""
5339
 
                  # We do not want portage's install root ($D) present.
5340
 
                  my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
5341
5700
                  elif test -n "$my_little_ninja_foo_3" && test "$D"; then
5342
5701
                    eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5343
5702
                  else
5469
5828
    # install_prog (especially on Windows NT).
5470
5829
    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5471
5830
       # Allow the use of GNU shtool's install command.
5472
 
       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
 
5831
       $echo "X$nonopt" | grep shtool > /dev/null; then
5473
5832
      # Aesthetically quote it.
5474
5833
      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5475
5834
      case $arg in
5476
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
5835
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5477
5836
        arg="\"$arg\""
5478
5837
        ;;
5479
5838
      esac
5482
5841
      shift
5483
5842
    else
5484
5843
      install_prog=
5485
 
      arg="$nonopt"
 
5844
      arg=$nonopt
5486
5845
    fi
5487
5846
 
5488
5847
    # The real first argument should be the name of the installation program.
5489
5848
    # Aesthetically quote it.
5490
5849
    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5491
5850
    case $arg in
5492
 
    *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
5851
    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
5493
5852
      arg="\"$arg\""
5494
5853
      ;;
5495
5854
    esac
5507
5866
    do
5508
5867
      if test -n "$dest"; then
5509
5868
        files="$files $dest"
5510
 
        dest="$arg"
 
5869
        dest=$arg
5511
5870
        continue
5512
5871
      fi
5513
5872
 
5514
5873
      case $arg in
5515
5874
      -d) isdir=yes ;;
5516
 
      -f) prev="-f" ;;
5517
 
      -g) prev="-g" ;;
5518
 
      -m) prev="-m" ;;
5519
 
      -o) prev="-o" ;;
 
5875
      -f) 
 
5876
        case " $install_prog " in
 
5877
        *[\\\ /]cp\ *) ;;
 
5878
        *) prev=$arg ;;
 
5879
        esac
 
5880
        ;;
 
5881
      -g | -m | -o) prev=$arg ;;
5520
5882
      -s)
5521
5883
        stripme=" -s"
5522
5884
        continue
5523
5885
        ;;
5524
 
      -*) ;;
5525
 
 
 
5886
      -*)
 
5887
        ;;
5526
5888
      *)
5527
5889
        # If the previous option needed an argument, then skip it.
5528
5890
        if test -n "$prev"; then
5529
5891
          prev=
5530
5892
        else
5531
 
          dest="$arg"
 
5893
          dest=$arg
5532
5894
          continue
5533
5895
        fi
5534
5896
        ;;
5537
5899
      # Aesthetically quote the argument.
5538
5900
      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5539
5901
      case $arg in
5540
 
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
 
5902
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
5541
5903
        arg="\"$arg\""
5542
5904
        ;;
5543
5905
      esac
5706
6068
 
5707
6069
          if test "$#" -gt 0; then
5708
6070
            # Delete the old symlinks, and create new ones.
 
6071
            # Try `ln -sf' first, because the `ln' binary might depend on
 
6072
            # the symlink we replace!  Solaris /bin/ln does not understand -f,
 
6073
            # so we also need to try rm && ln -s.
5709
6074
            for linkname
5710
6075
            do
5711
6076
              if test "$linkname" != "$realname"; then
5712
 
                $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5713
 
                $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
 
6077
                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
 
6078
                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5714
6079
              fi
5715
6080
            done
5716
6081
          fi
5723
6088
            IFS="$save_ifs"
5724
6089
            eval cmd=\"$cmd\"
5725
6090
            $show "$cmd"
5726
 
            $run eval "$cmd" || exit $?
 
6091
            $run eval "$cmd" || {
 
6092
              lt_exit=$?
 
6093
 
 
6094
              # Restore the uninstalled library and exit
 
6095
              if test "$mode" = relink; then
 
6096
                $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
 
6097
              fi
 
6098
 
 
6099
              exit $lt_exit
 
6100
            }
5727
6101
          done
5728
6102
          IFS="$save_ifs"
5729
6103
        fi
5817
6191
          notinst_deplibs=
5818
6192
          relink_command=
5819
6193
 
5820
 
          # To insure that "foo" is sourced, and not "foo.exe",
5821
 
          # finese the cygwin/MSYS system by explicitly sourcing "foo."
5822
 
          # which disallows the automatic-append-.exe behavior.
5823
 
          case $build in
5824
 
          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5825
 
          *) wrapperdot=${wrapper} ;;
5826
 
          esac
 
6194
          # Note that it is not necessary on cygwin/mingw to append a dot to
 
6195
          # foo even if both foo and FILE.exe exist: automatic-append-.exe
 
6196
          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
 
6197
          # `FILE.' does not work on cygwin managed mounts.
 
6198
          #
5827
6199
          # If there is no directory component, then add one.
5828
 
          case $file in
5829
 
          */* | *\\*) . ${wrapperdot} ;;
5830
 
          *) . ./${wrapperdot} ;;
 
6200
          case $wrapper in
 
6201
          */* | *\\*) . ${wrapper} ;;
 
6202
          *) . ./${wrapper} ;;
5831
6203
          esac
5832
6204
 
5833
6205
          # Check the variables that should have been set.
5855
6227
          done
5856
6228
 
5857
6229
          relink_command=
5858
 
          # To insure that "foo" is sourced, and not "foo.exe",
5859
 
          # finese the cygwin/MSYS system by explicitly sourcing "foo."
5860
 
          # which disallows the automatic-append-.exe behavior.
5861
 
          case $build in
5862
 
          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5863
 
          *) wrapperdot=${wrapper} ;;
5864
 
          esac
 
6230
          # Note that it is not necessary on cygwin/mingw to append a dot to
 
6231
          # foo even if both foo and FILE.exe exist: automatic-append-.exe
 
6232
          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
 
6233
          # `FILE.' does not work on cygwin managed mounts.
 
6234
          #
5865
6235
          # If there is no directory component, then add one.
5866
 
          case $file in
5867
 
          */* | *\\*) . ${wrapperdot} ;;
5868
 
          *) . ./${wrapperdot} ;;
 
6236
          case $wrapper in
 
6237
          */* | *\\*) . ${wrapper} ;;
 
6238
          *) . ./${wrapper} ;;
5869
6239
          esac
5870
6240
 
5871
6241
          outputname=
5872
6242
          if test "$fast_install" = no && test -n "$relink_command"; then
5873
6243
            if test "$finalize" = yes && test -z "$run"; then
5874
 
              tmpdir="/tmp"
5875
 
              test -n "$TMPDIR" && tmpdir="$TMPDIR"
5876
 
              tmpdir="$tmpdir/libtool-$$"
5877
 
              save_umask=`umask`
5878
 
              umask 0077
5879
 
              if $mkdir "$tmpdir"; then
5880
 
                umask $save_umask
5881
 
              else
5882
 
                umask $save_umask
5883
 
                $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5884
 
                continue
5885
 
              fi
 
6244
              tmpdir=`func_mktempdir`
5886
6245
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5887
6246
              outputname="$tmpdir/$file"
5888
6247
              # Replace the output file specification.
5906
6265
        fi
5907
6266
 
5908
6267
        # remove .exe since cygwin /usr/bin/install will append another
5909
 
        # one anyways
 
6268
        # one anyway 
5910
6269
        case $install_prog,$host in
5911
6270
        */usr/bin/install*,*cygwin*)
5912
6271
          case $file:$destfile in
6006
6365
    # Exit here if they wanted silent mode.
6007
6366
    test "$show" = : && exit $EXIT_SUCCESS
6008
6367
 
6009
 
    $echo "----------------------------------------------------------------------"
 
6368
    $echo "X----------------------------------------------------------------------" | $Xsed
6010
6369
    $echo "Libraries have been installed in:"
6011
6370
    for libdir in $libdirs; do
6012
6371
      $echo "   $libdir"
6039
6398
    $echo
6040
6399
    $echo "See any operating system documentation about shared libraries for"
6041
6400
    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6042
 
    $echo "----------------------------------------------------------------------"
 
6401
    $echo "X----------------------------------------------------------------------" | $Xsed
6043
6402
    exit $EXIT_SUCCESS
6044
6403
    ;;
6045
6404
 
6256
6615
            rmfiles="$rmfiles $objdir/$n"
6257
6616
          done
6258
6617
          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6259
 
          test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6260
6618
 
6261
 
          if test "$mode" = uninstall; then
 
6619
          case "$mode" in
 
6620
          clean)
 
6621
            case "  $library_names " in
 
6622
            # "  " in the beginning catches empty $dlname
 
6623
            *" $dlname "*) ;;
 
6624
            *) rmfiles="$rmfiles $objdir/$dlname" ;;
 
6625
            esac
 
6626
             test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
 
6627
            ;;
 
6628
          uninstall)
6262
6629
            if test -n "$library_names"; then
6263
6630
              # Do each command in the postuninstall commands.
6264
6631
              cmds=$postuninstall_cmds
6291
6658
              IFS="$save_ifs"
6292
6659
            fi
6293
6660
            # FIXME: should reinstall the best remaining shared library.
6294
 
          fi
 
6661
            ;;
 
6662
          esac
6295
6663
        fi
6296
6664
        ;;
6297
6665
 
6590
6958
# configuration.  But we'll never go from static-only to shared-only.
6591
6959
 
6592
6960
# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6593
 
build_libtool_libs=no
6594
 
build_old_libs=yes
 
6961
disable_libs=shared
6595
6962
# ### END LIBTOOL TAG CONFIG: disable-shared
6596
6963
 
6597
6964
# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6598
 
build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
 
6965
disable_libs=static
6599
6966
# ### END LIBTOOL TAG CONFIG: disable-static
6600
6967
 
6601
6968
# Local Variables: