diff options
Diffstat (limited to 'build-aux')
| -rwxr-xr-x | build-aux/config.guess | 36 | ||||
| -rwxr-xr-x | build-aux/config.sub | 48 | ||||
| -rwxr-xr-x | build-aux/depcomp | 33 | ||||
| -rwxr-xr-x | build-aux/install-sh | 228 | ||||
| -rw-r--r-- | build-aux/ltmain.sh | 58 |
5 files changed, 244 insertions, 159 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess index 951383e..f32079a 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | # Inc. | 5 | # Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | timestamp='2007-05-17' | 7 | timestamp='2008-01-23' |
| 8 | 8 | ||
| 9 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
| 10 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
| @@ -56,8 +56,8 @@ version="\ | |||
| 56 | GNU config.guess ($timestamp) | 56 | GNU config.guess ($timestamp) |
| 57 | 57 | ||
| 58 | Originally written by Per Bothner. | 58 | Originally written by Per Bothner. |
| 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 60 | Free Software Foundation, Inc. | 60 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 61 | 61 | ||
| 62 | This is free software; see the source for copying conditions. There is NO | 62 | This is free software; see the source for copying conditions. There is NO |
| 63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| @@ -330,7 +330,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |||
| 330 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 330 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
| 331 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 331 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 332 | exit ;; | 332 | exit ;; |
| 333 | i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*) | 333 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
| 334 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 334 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 335 | exit ;; | 335 | exit ;; |
| 336 | sun4*:SunOS:6*:*) | 336 | sun4*:SunOS:6*:*) |
| @@ -532,7 +532,7 @@ EOF | |||
| 532 | echo rs6000-ibm-aix3.2 | 532 | echo rs6000-ibm-aix3.2 |
| 533 | fi | 533 | fi |
| 534 | exit ;; | 534 | exit ;; |
| 535 | *:AIX:*:[45]) | 535 | *:AIX:*:[456]) |
| 536 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 536 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
| 537 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | 537 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
| 538 | IBM_ARCH=rs6000 | 538 | IBM_ARCH=rs6000 |
| @@ -793,12 +793,15 @@ EOF | |||
| 793 | exit ;; | 793 | exit ;; |
| 794 | *:Interix*:[3456]*) | 794 | *:Interix*:[3456]*) |
| 795 | case ${UNAME_MACHINE} in | 795 | case ${UNAME_MACHINE} in |
| 796 | x86) | 796 | x86) |
| 797 | echo i586-pc-interix${UNAME_RELEASE} | 797 | echo i586-pc-interix${UNAME_RELEASE} |
| 798 | exit ;; | 798 | exit ;; |
| 799 | EM64T | authenticamd) | 799 | EM64T | authenticamd) |
| 800 | echo x86_64-unknown-interix${UNAME_RELEASE} | 800 | echo x86_64-unknown-interix${UNAME_RELEASE} |
| 801 | exit ;; | 801 | exit ;; |
| 802 | IA64) | ||
| 803 | echo ia64-unknown-interix${UNAME_RELEASE} | ||
| 804 | exit ;; | ||
| 802 | esac ;; | 805 | esac ;; |
| 803 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 806 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
| 804 | echo i${UNAME_MACHINE}-pc-mks | 807 | echo i${UNAME_MACHINE}-pc-mks |
| @@ -833,7 +836,14 @@ EOF | |||
| 833 | echo ${UNAME_MACHINE}-pc-minix | 836 | echo ${UNAME_MACHINE}-pc-minix |
| 834 | exit ;; | 837 | exit ;; |
| 835 | arm*:Linux:*:*) | 838 | arm*:Linux:*:*) |
| 836 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 839 | eval $set_cc_for_build |
| 840 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
| 841 | | grep -q __ARM_EABI__ | ||
| 842 | then | ||
| 843 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
| 844 | else | ||
| 845 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | ||
| 846 | fi | ||
| 837 | exit ;; | 847 | exit ;; |
| 838 | avr32*:Linux:*:*) | 848 | avr32*:Linux:*:*) |
| 839 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 849 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| @@ -954,8 +964,8 @@ EOF | |||
| 954 | x86_64:Linux:*:*) | 964 | x86_64:Linux:*:*) |
| 955 | echo x86_64-unknown-linux-gnu | 965 | echo x86_64-unknown-linux-gnu |
| 956 | exit ;; | 966 | exit ;; |
| 957 | xtensa:Linux:*:*) | 967 | xtensa*:Linux:*:*) |
| 958 | echo xtensa-unknown-linux-gnu | 968 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 959 | exit ;; | 969 | exit ;; |
| 960 | i*86:Linux:*:*) | 970 | i*86:Linux:*:*) |
| 961 | # The BFD linker knows what the default object file format is, so | 971 | # The BFD linker knows what the default object file format is, so |
| @@ -1474,9 +1484,9 @@ This script, last modified $timestamp, has failed to recognize | |||
| 1474 | the operating system you are using. It is advised that you | 1484 | the operating system you are using. It is advised that you |
| 1475 | download the most up to date version of the config scripts from | 1485 | download the most up to date version of the config scripts from |
| 1476 | 1486 | ||
| 1477 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess | 1487 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
| 1478 | and | 1488 | and |
| 1479 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub | 1489 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| 1480 | 1490 | ||
| 1481 | If the version you run ($0) is already up to date, please | 1491 | If the version you run ($0) is already up to date, please |
| 1482 | send the following data and any information you think might be | 1492 | send the following data and any information you think might be |
diff --git a/build-aux/config.sub b/build-aux/config.sub index c060f44..6759825 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | # Inc. | 5 | # Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | timestamp='2007-04-29' | 7 | timestamp='2008-01-16' |
| 8 | 8 | ||
| 9 | # This file is (in principle) common to ALL GNU software. | 9 | # This file is (in principle) common to ALL GNU software. |
| 10 | # The presence of a machine in this file suggests that SOME GNU software | 10 | # The presence of a machine in this file suggests that SOME GNU software |
| @@ -72,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>." | |||
| 72 | version="\ | 72 | version="\ |
| 73 | GNU config.sub ($timestamp) | 73 | GNU config.sub ($timestamp) |
| 74 | 74 | ||
| 75 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 75 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 76 | Free Software Foundation, Inc. | 76 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 77 | 77 | ||
| 78 | This is free software; see the source for copying conditions. There is NO | 78 | This is free software; see the source for copying conditions. There is NO |
| 79 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 79 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| @@ -369,10 +369,14 @@ case $basic_machine in | |||
| 369 | | v850-* | v850e-* | vax-* \ | 369 | | v850-* | v850e-* | vax-* \ |
| 370 | | we32k-* \ | 370 | | we32k-* \ |
| 371 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 371 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| 372 | | xstormy16-* | xtensa-* \ | 372 | | xstormy16-* | xtensa*-* \ |
| 373 | | ymp-* \ | 373 | | ymp-* \ |
| 374 | | z8k-*) | 374 | | z8k-*) |
| 375 | ;; | 375 | ;; |
| 376 | # Recognize the basic CPU types without company name, with glob match. | ||
| 377 | xtensa*) | ||
| 378 | basic_machine=$basic_machine-unknown | ||
| 379 | ;; | ||
| 376 | # Recognize the various machine names and aliases which stand | 380 | # Recognize the various machine names and aliases which stand |
| 377 | # for a CPU type and a company and sometimes even an OS. | 381 | # for a CPU type and a company and sometimes even an OS. |
| 378 | 386bsd) | 382 | 386bsd) |
| @@ -443,6 +447,14 @@ case $basic_machine in | |||
| 443 | basic_machine=ns32k-sequent | 447 | basic_machine=ns32k-sequent |
| 444 | os=-dynix | 448 | os=-dynix |
| 445 | ;; | 449 | ;; |
| 450 | blackfin) | ||
| 451 | basic_machine=bfin-unknown | ||
| 452 | os=-linux | ||
| 453 | ;; | ||
| 454 | blackfin-*) | ||
| 455 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
| 456 | os=-linux | ||
| 457 | ;; | ||
| 446 | c90) | 458 | c90) |
| 447 | basic_machine=c90-cray | 459 | basic_machine=c90-cray |
| 448 | os=-unicos | 460 | os=-unicos |
| @@ -475,8 +487,8 @@ case $basic_machine in | |||
| 475 | basic_machine=craynv-cray | 487 | basic_machine=craynv-cray |
| 476 | os=-unicosmp | 488 | os=-unicosmp |
| 477 | ;; | 489 | ;; |
| 478 | cr16c) | 490 | cr16) |
| 479 | basic_machine=cr16c-unknown | 491 | basic_machine=cr16-unknown |
| 480 | os=-elf | 492 | os=-elf |
| 481 | ;; | 493 | ;; |
| 482 | crds | unos) | 494 | crds | unos) |
| @@ -668,6 +680,14 @@ case $basic_machine in | |||
| 668 | basic_machine=m68k-isi | 680 | basic_machine=m68k-isi |
| 669 | os=-sysv | 681 | os=-sysv |
| 670 | ;; | 682 | ;; |
| 683 | m68knommu) | ||
| 684 | basic_machine=m68k-unknown | ||
| 685 | os=-linux | ||
| 686 | ;; | ||
| 687 | m68knommu-*) | ||
| 688 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
| 689 | os=-linux | ||
| 690 | ;; | ||
| 671 | m88k-omron*) | 691 | m88k-omron*) |
| 672 | basic_machine=m88k-omron | 692 | basic_machine=m88k-omron |
| 673 | ;; | 693 | ;; |
| @@ -813,6 +833,14 @@ case $basic_machine in | |||
| 813 | basic_machine=i860-intel | 833 | basic_machine=i860-intel |
| 814 | os=-osf | 834 | os=-osf |
| 815 | ;; | 835 | ;; |
| 836 | parisc) | ||
| 837 | basic_machine=hppa-unknown | ||
| 838 | os=-linux | ||
| 839 | ;; | ||
| 840 | parisc-*) | ||
| 841 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
| 842 | os=-linux | ||
| 843 | ;; | ||
| 816 | pbd) | 844 | pbd) |
| 817 | basic_machine=sparc-tti | 845 | basic_machine=sparc-tti |
| 818 | ;; | 846 | ;; |
| @@ -1021,6 +1049,10 @@ case $basic_machine in | |||
| 1021 | basic_machine=tic6x-unknown | 1049 | basic_machine=tic6x-unknown |
| 1022 | os=-coff | 1050 | os=-coff |
| 1023 | ;; | 1051 | ;; |
| 1052 | tile*) | ||
| 1053 | basic_machine=tile-unknown | ||
| 1054 | os=-linux-gnu | ||
| 1055 | ;; | ||
| 1024 | tx39) | 1056 | tx39) |
| 1025 | basic_machine=mipstx39-unknown | 1057 | basic_machine=mipstx39-unknown |
| 1026 | ;; | 1058 | ;; |
diff --git a/build-aux/depcomp b/build-aux/depcomp index ca5ea4e..e5f9736 100755 --- a/build-aux/depcomp +++ b/build-aux/depcomp | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # depcomp - compile a program generating dependencies as side-effects | 2 | # depcomp - compile a program generating dependencies as side-effects |
| 3 | 3 | ||
| 4 | scriptversion=2006-10-15.18 | 4 | scriptversion=2007-03-29.01 |
| 5 | 5 | ||
| 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software | 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software |
| 7 | # Foundation, Inc. | 7 | # Foundation, Inc. |
| 8 | 8 | ||
| 9 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
| @@ -215,34 +215,39 @@ aix) | |||
| 215 | # current directory. Also, the AIX compiler puts `$object:' at the | 215 | # current directory. Also, the AIX compiler puts `$object:' at the |
| 216 | # start of each line; $object doesn't have directory information. | 216 | # start of each line; $object doesn't have directory information. |
| 217 | # Version 6 uses the directory in both cases. | 217 | # Version 6 uses the directory in both cases. |
| 218 | stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` | 218 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` |
| 219 | tmpdepfile="$stripped.u" | 219 | test "x$dir" = "x$object" && dir= |
| 220 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
| 220 | if test "$libtool" = yes; then | 221 | if test "$libtool" = yes; then |
| 222 | tmpdepfile1=$dir$base.u | ||
| 223 | tmpdepfile2=$base.u | ||
| 224 | tmpdepfile3=$dir.libs/$base.u | ||
| 221 | "$@" -Wc,-M | 225 | "$@" -Wc,-M |
| 222 | else | 226 | else |
| 227 | tmpdepfile1=$dir$base.u | ||
| 228 | tmpdepfile2=$dir$base.u | ||
| 229 | tmpdepfile3=$dir$base.u | ||
| 223 | "$@" -M | 230 | "$@" -M |
| 224 | fi | 231 | fi |
| 225 | stat=$? | 232 | stat=$? |
| 226 | 233 | ||
| 227 | if test -f "$tmpdepfile"; then : | ||
| 228 | else | ||
| 229 | stripped=`echo "$stripped" | sed 's,^.*/,,'` | ||
| 230 | tmpdepfile="$stripped.u" | ||
| 231 | fi | ||
| 232 | |||
| 233 | if test $stat -eq 0; then : | 234 | if test $stat -eq 0; then : |
| 234 | else | 235 | else |
| 235 | rm -f "$tmpdepfile" | 236 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
| 236 | exit $stat | 237 | exit $stat |
| 237 | fi | 238 | fi |
| 238 | 239 | ||
| 240 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||
| 241 | do | ||
| 242 | test -f "$tmpdepfile" && break | ||
| 243 | done | ||
| 239 | if test -f "$tmpdepfile"; then | 244 | if test -f "$tmpdepfile"; then |
| 240 | outname="$stripped.o" | ||
| 241 | # Each line is of the form `foo.o: dependent.h'. | 245 | # Each line is of the form `foo.o: dependent.h'. |
| 242 | # Do two passes, one to just change these to | 246 | # Do two passes, one to just change these to |
| 243 | # `$object: dependent.h' and one to simply `dependent.h:'. | 247 | # `$object: dependent.h' and one to simply `dependent.h:'. |
| 244 | sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" | 248 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" |
| 245 | sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" | 249 | # That's a tab and a space in the []. |
| 250 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
| 246 | else | 251 | else |
| 247 | # The sourcefile does not contain any dependencies, so just | 252 | # The sourcefile does not contain any dependencies, so just |
| 248 | # store a dummy comment line, to avoid errors with the Makefile | 253 | # store a dummy comment line, to avoid errors with the Makefile |
diff --git a/build-aux/install-sh b/build-aux/install-sh index 4fbbae7..a5897de 100755 --- a/build-aux/install-sh +++ b/build-aux/install-sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # install - install a program, script, or datafile | 2 | # install - install a program, script, or datafile |
| 3 | 3 | ||
| 4 | scriptversion=2006-10-14.15 | 4 | scriptversion=2006-12-25.00 |
| 5 | 5 | ||
| 6 | # This originates from X11R5 (mit/util/scripts/install.sh), which was | 6 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
| 7 | # later released in X11R6 (xc/config/util/install.sh) with the | 7 | # later released in X11R6 (xc/config/util/install.sh) with the |
| @@ -48,7 +48,7 @@ IFS=" "" $nl" | |||
| 48 | # set DOITPROG to echo to test this script | 48 | # set DOITPROG to echo to test this script |
| 49 | 49 | ||
| 50 | # Don't use :- since 4.3BSD and earlier shells don't like it. | 50 | # Don't use :- since 4.3BSD and earlier shells don't like it. |
| 51 | doit="${DOITPROG-}" | 51 | doit=${DOITPROG-} |
| 52 | if test -z "$doit"; then | 52 | if test -z "$doit"; then |
| 53 | doit_exec=exec | 53 | doit_exec=exec |
| 54 | else | 54 | else |
| @@ -58,34 +58,49 @@ fi | |||
| 58 | # Put in absolute file names if you don't have them in your path; | 58 | # Put in absolute file names if you don't have them in your path; |
| 59 | # or use environment vars. | 59 | # or use environment vars. |
| 60 | 60 | ||
| 61 | mvprog="${MVPROG-mv}" | 61 | chgrpprog=${CHGRPPROG-chgrp} |
| 62 | cpprog="${CPPROG-cp}" | 62 | chmodprog=${CHMODPROG-chmod} |
| 63 | chmodprog="${CHMODPROG-chmod}" | 63 | chownprog=${CHOWNPROG-chown} |
| 64 | chownprog="${CHOWNPROG-chown}" | 64 | cmpprog=${CMPPROG-cmp} |
| 65 | chgrpprog="${CHGRPPROG-chgrp}" | 65 | cpprog=${CPPROG-cp} |
| 66 | stripprog="${STRIPPROG-strip}" | 66 | mkdirprog=${MKDIRPROG-mkdir} |
| 67 | rmprog="${RMPROG-rm}" | 67 | mvprog=${MVPROG-mv} |
| 68 | mkdirprog="${MKDIRPROG-mkdir}" | 68 | rmprog=${RMPROG-rm} |
| 69 | stripprog=${STRIPPROG-strip} | ||
| 70 | |||
| 71 | posix_glob='?' | ||
| 72 | initialize_posix_glob=' | ||
| 73 | test "$posix_glob" != "?" || { | ||
| 74 | if (set -f) 2>/dev/null; then | ||
| 75 | posix_glob= | ||
| 76 | else | ||
| 77 | posix_glob=: | ||
| 78 | fi | ||
| 79 | } | ||
| 80 | ' | ||
| 69 | 81 | ||
| 70 | posix_glob= | ||
| 71 | posix_mkdir= | 82 | posix_mkdir= |
| 72 | 83 | ||
| 73 | # Desired mode of installed file. | 84 | # Desired mode of installed file. |
| 74 | mode=0755 | 85 | mode=0755 |
| 75 | 86 | ||
| 87 | chgrpcmd= | ||
| 76 | chmodcmd=$chmodprog | 88 | chmodcmd=$chmodprog |
| 77 | chowncmd= | 89 | chowncmd= |
| 78 | chgrpcmd= | 90 | mvcmd=$mvprog |
| 79 | stripcmd= | ||
| 80 | rmcmd="$rmprog -f" | 91 | rmcmd="$rmprog -f" |
| 81 | mvcmd="$mvprog" | 92 | stripcmd= |
| 93 | |||
| 82 | src= | 94 | src= |
| 83 | dst= | 95 | dst= |
| 84 | dir_arg= | 96 | dir_arg= |
| 85 | dstarg= | 97 | dst_arg= |
| 98 | |||
| 99 | copy_on_change=false | ||
| 86 | no_target_directory= | 100 | no_target_directory= |
| 87 | 101 | ||
| 88 | usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | 102 | usage="\ |
| 103 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | ||
| 89 | or: $0 [OPTION]... SRCFILES... DIRECTORY | 104 | or: $0 [OPTION]... SRCFILES... DIRECTORY |
| 90 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... | 105 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... |
| 91 | or: $0 [OPTION]... -d DIRECTORIES... | 106 | or: $0 [OPTION]... -d DIRECTORIES... |
| @@ -95,65 +110,55 @@ In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. | |||
| 95 | In the 4th, create DIRECTORIES. | 110 | In the 4th, create DIRECTORIES. |
| 96 | 111 | ||
| 97 | Options: | 112 | Options: |
| 98 | -c (ignored) | 113 | --help display this help and exit. |
| 99 | -d create directories instead of installing files. | 114 | --version display version info and exit. |
| 100 | -g GROUP $chgrpprog installed files to GROUP. | 115 | |
| 101 | -m MODE $chmodprog installed files to MODE. | 116 | -c (ignored) |
| 102 | -o USER $chownprog installed files to USER. | 117 | -C install only if different (preserve the last data modification time) |
| 103 | -s $stripprog installed files. | 118 | -d create directories instead of installing files. |
| 104 | -t DIRECTORY install into DIRECTORY. | 119 | -g GROUP $chgrpprog installed files to GROUP. |
| 105 | -T report an error if DSTFILE is a directory. | 120 | -m MODE $chmodprog installed files to MODE. |
| 106 | --help display this help and exit. | 121 | -o USER $chownprog installed files to USER. |
| 107 | --version display version info and exit. | 122 | -s $stripprog installed files. |
| 123 | -t DIRECTORY install into DIRECTORY. | ||
| 124 | -T report an error if DSTFILE is a directory. | ||
| 108 | 125 | ||
| 109 | Environment variables override the default commands: | 126 | Environment variables override the default commands: |
| 110 | CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG | 127 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG |
| 128 | RMPROG STRIPPROG | ||
| 111 | " | 129 | " |
| 112 | 130 | ||
| 113 | while test $# -ne 0; do | 131 | while test $# -ne 0; do |
| 114 | case $1 in | 132 | case $1 in |
| 115 | -c) shift | 133 | -c) ;; |
| 116 | continue;; | 134 | |
| 135 | -C) copy_on_change=true;; | ||
| 117 | 136 | ||
| 118 | -d) dir_arg=true | 137 | -d) dir_arg=true;; |
| 119 | shift | ||
| 120 | continue;; | ||
| 121 | 138 | ||
| 122 | -g) chgrpcmd="$chgrpprog $2" | 139 | -g) chgrpcmd="$chgrpprog $2" |
| 123 | shift | 140 | shift;; |
| 124 | shift | ||
| 125 | continue;; | ||
| 126 | 141 | ||
| 127 | --help) echo "$usage"; exit $?;; | 142 | --help) echo "$usage"; exit $?;; |
| 128 | 143 | ||
| 129 | -m) mode=$2 | 144 | -m) mode=$2 |
| 130 | shift | ||
| 131 | shift | ||
| 132 | case $mode in | 145 | case $mode in |
| 133 | *' '* | *' '* | *' | 146 | *' '* | *' '* | *' |
| 134 | '* | *'*'* | *'?'* | *'['*) | 147 | '* | *'*'* | *'?'* | *'['*) |
| 135 | echo "$0: invalid mode: $mode" >&2 | 148 | echo "$0: invalid mode: $mode" >&2 |
| 136 | exit 1;; | 149 | exit 1;; |
| 137 | esac | 150 | esac |
| 138 | continue;; | 151 | shift;; |
| 139 | 152 | ||
| 140 | -o) chowncmd="$chownprog $2" | 153 | -o) chowncmd="$chownprog $2" |
| 141 | shift | 154 | shift;; |
| 142 | shift | ||
| 143 | continue;; | ||
| 144 | 155 | ||
| 145 | -s) stripcmd=$stripprog | 156 | -s) stripcmd=$stripprog;; |
| 146 | shift | ||
| 147 | continue;; | ||
| 148 | 157 | ||
| 149 | -t) dstarg=$2 | 158 | -t) dst_arg=$2 |
| 150 | shift | 159 | shift;; |
| 151 | shift | ||
| 152 | continue;; | ||
| 153 | 160 | ||
| 154 | -T) no_target_directory=true | 161 | -T) no_target_directory=true;; |
| 155 | shift | ||
| 156 | continue;; | ||
| 157 | 162 | ||
| 158 | --version) echo "$0 $scriptversion"; exit $?;; | 163 | --version) echo "$0 $scriptversion"; exit $?;; |
| 159 | 164 | ||
| @@ -165,21 +170,22 @@ while test $# -ne 0; do | |||
| 165 | 170 | ||
| 166 | *) break;; | 171 | *) break;; |
| 167 | esac | 172 | esac |
| 173 | shift | ||
| 168 | done | 174 | done |
| 169 | 175 | ||
| 170 | if test $# -ne 0 && test -z "$dir_arg$dstarg"; then | 176 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then |
| 171 | # When -d is used, all remaining arguments are directories to create. | 177 | # When -d is used, all remaining arguments are directories to create. |
| 172 | # When -t is used, the destination is already specified. | 178 | # When -t is used, the destination is already specified. |
| 173 | # Otherwise, the last argument is the destination. Remove it from $@. | 179 | # Otherwise, the last argument is the destination. Remove it from $@. |
| 174 | for arg | 180 | for arg |
| 175 | do | 181 | do |
| 176 | if test -n "$dstarg"; then | 182 | if test -n "$dst_arg"; then |
| 177 | # $@ is not empty: it contains at least $arg. | 183 | # $@ is not empty: it contains at least $arg. |
| 178 | set fnord "$@" "$dstarg" | 184 | set fnord "$@" "$dst_arg" |
| 179 | shift # fnord | 185 | shift # fnord |
| 180 | fi | 186 | fi |
| 181 | shift # arg | 187 | shift # arg |
| 182 | dstarg=$arg | 188 | dst_arg=$arg |
| 183 | done | 189 | done |
| 184 | fi | 190 | fi |
| 185 | 191 | ||
| @@ -224,7 +230,7 @@ for src | |||
| 224 | do | 230 | do |
| 225 | # Protect names starting with `-'. | 231 | # Protect names starting with `-'. |
| 226 | case $src in | 232 | case $src in |
| 227 | -*) src=./$src ;; | 233 | -*) src=./$src;; |
| 228 | esac | 234 | esac |
| 229 | 235 | ||
| 230 | if test -n "$dir_arg"; then | 236 | if test -n "$dir_arg"; then |
| @@ -242,22 +248,22 @@ do | |||
| 242 | exit 1 | 248 | exit 1 |
| 243 | fi | 249 | fi |
| 244 | 250 | ||
| 245 | if test -z "$dstarg"; then | 251 | if test -z "$dst_arg"; then |
| 246 | echo "$0: no destination specified." >&2 | 252 | echo "$0: no destination specified." >&2 |
| 247 | exit 1 | 253 | exit 1 |
| 248 | fi | 254 | fi |
| 249 | 255 | ||
| 250 | dst=$dstarg | 256 | dst=$dst_arg |
| 251 | # Protect names starting with `-'. | 257 | # Protect names starting with `-'. |
| 252 | case $dst in | 258 | case $dst in |
| 253 | -*) dst=./$dst ;; | 259 | -*) dst=./$dst;; |
| 254 | esac | 260 | esac |
| 255 | 261 | ||
| 256 | # If destination is a directory, append the input filename; won't work | 262 | # If destination is a directory, append the input filename; won't work |
| 257 | # if double slashes aren't ignored. | 263 | # if double slashes aren't ignored. |
| 258 | if test -d "$dst"; then | 264 | if test -d "$dst"; then |
| 259 | if test -n "$no_target_directory"; then | 265 | if test -n "$no_target_directory"; then |
| 260 | echo "$0: $dstarg: Is a directory" >&2 | 266 | echo "$0: $dst_arg: Is a directory" >&2 |
| 261 | exit 1 | 267 | exit 1 |
| 262 | fi | 268 | fi |
| 263 | dstdir=$dst | 269 | dstdir=$dst |
| @@ -378,26 +384,19 @@ do | |||
| 378 | # directory the slow way, step by step, checking for races as we go. | 384 | # directory the slow way, step by step, checking for races as we go. |
| 379 | 385 | ||
| 380 | case $dstdir in | 386 | case $dstdir in |
| 381 | /*) prefix=/ ;; | 387 | /*) prefix='/';; |
| 382 | -*) prefix=./ ;; | 388 | -*) prefix='./';; |
| 383 | *) prefix= ;; | 389 | *) prefix='';; |
| 384 | esac | 390 | esac |
| 385 | 391 | ||
| 386 | case $posix_glob in | 392 | eval "$initialize_posix_glob" |
| 387 | '') | ||
| 388 | if (set -f) 2>/dev/null; then | ||
| 389 | posix_glob=true | ||
| 390 | else | ||
| 391 | posix_glob=false | ||
| 392 | fi ;; | ||
| 393 | esac | ||
| 394 | 393 | ||
| 395 | oIFS=$IFS | 394 | oIFS=$IFS |
| 396 | IFS=/ | 395 | IFS=/ |
| 397 | $posix_glob && set -f | 396 | $posix_glob set -f |
| 398 | set fnord $dstdir | 397 | set fnord $dstdir |
| 399 | shift | 398 | shift |
| 400 | $posix_glob && set +f | 399 | $posix_glob set +f |
| 401 | IFS=$oIFS | 400 | IFS=$oIFS |
| 402 | 401 | ||
| 403 | prefixes= | 402 | prefixes= |
| @@ -459,41 +458,54 @@ do | |||
| 459 | # ignore errors from any of these, just make sure not to ignore | 458 | # ignore errors from any of these, just make sure not to ignore |
| 460 | # errors from the above "$doit $cpprog $src $dsttmp" command. | 459 | # errors from the above "$doit $cpprog $src $dsttmp" command. |
| 461 | # | 460 | # |
| 462 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ | 461 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && |
| 463 | && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ | 462 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && |
| 464 | && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ | 463 | { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && |
| 465 | && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | 464 | { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && |
| 466 | 465 | ||
| 467 | # Now rename the file to the real destination. | 466 | # If -C, don't bother to copy if it wouldn't change the file. |
| 468 | { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \ | 467 | if $copy_on_change && |
| 469 | || { | 468 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && |
| 470 | # The rename failed, perhaps because mv can't rename something else | 469 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && |
| 471 | # to itself, or perhaps because mv is so ancient that it does not | 470 | |
| 472 | # support -f. | 471 | eval "$initialize_posix_glob" && |
| 473 | 472 | $posix_glob set -f && | |
| 474 | # Now remove or move aside any old file at destination location. | 473 | set X $old && old=:$2:$4:$5:$6 && |
| 475 | # We try this two ways since rm can't unlink itself on some | 474 | set X $new && new=:$2:$4:$5:$6 && |
| 476 | # systems and the destination file might be busy for other | 475 | $posix_glob set +f && |
| 477 | # reasons. In this case, the final cleanup might fail but the new | 476 | |
| 478 | # file should still install successfully. | 477 | test "$old" = "$new" && |
| 479 | { | 478 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 |
| 480 | if test -f "$dst"; then | 479 | then |
| 481 | $doit $rmcmd -f "$dst" 2>/dev/null \ | 480 | rm -f "$dsttmp" |
| 482 | || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \ | 481 | else |
| 483 | && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\ | 482 | # Rename the file to the real destination. |
| 484 | || { | 483 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || |
| 485 | echo "$0: cannot unlink or rename $dst" >&2 | 484 | |
| 486 | (exit 1); exit 1 | 485 | # The rename failed, perhaps because mv can't rename something else |
| 487 | } | 486 | # to itself, or perhaps because mv is so ancient that it does not |
| 488 | else | 487 | # support -f. |
| 489 | : | 488 | { |
| 490 | fi | 489 | # Now remove or move aside any old file at destination location. |
| 491 | } && | 490 | # We try this two ways since rm can't unlink itself on some |
| 492 | 491 | # systems and the destination file might be busy for other | |
| 493 | # Now rename the file to the real destination. | 492 | # reasons. In this case, the final cleanup might fail but the new |
| 494 | $doit $mvcmd "$dsttmp" "$dst" | 493 | # file should still install successfully. |
| 495 | } | 494 | { |
| 496 | } || exit 1 | 495 | test ! -f "$dst" || |
| 496 | $doit $rmcmd -f "$dst" 2>/dev/null || | ||
| 497 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | ||
| 498 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | ||
| 499 | } || | ||
| 500 | { echo "$0: cannot unlink or rename $dst" >&2 | ||
| 501 | (exit 1); exit 1 | ||
| 502 | } | ||
| 503 | } && | ||
| 504 | |||
| 505 | # Now rename the file to the real destination. | ||
| 506 | $doit $mvcmd "$dsttmp" "$dst" | ||
| 507 | } | ||
| 508 | fi || exit 1 | ||
| 497 | 509 | ||
| 498 | trap '' 0 | 510 | trap '' 0 |
| 499 | fi | 511 | fi |
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh index 4598ec6..27d498a 100644 --- a/build-aux/ltmain.sh +++ b/build-aux/ltmain.sh | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # NOTE: Changing this file will not affect anything until you rerun configure. | 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, 2005, 2006, | 4 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
| 5 | # 2007 Free Software Foundation, Inc. | 5 | # 2007, 2008 Free Software Foundation, Inc. |
| 6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7 | # | 7 | # |
| 8 | # This program is free software; you can redistribute it and/or modify | 8 | # This program is free software; you can redistribute it and/or modify |
| @@ -43,8 +43,8 @@ EXIT_FAILURE=1 | |||
| 43 | 43 | ||
| 44 | PROGRAM=ltmain.sh | 44 | PROGRAM=ltmain.sh |
| 45 | PACKAGE=libtool | 45 | PACKAGE=libtool |
| 46 | VERSION=1.5.24 | 46 | VERSION=1.5.26 |
| 47 | TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" | 47 | TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)" |
| 48 | 48 | ||
| 49 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). | 49 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). |
| 50 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 50 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| @@ -113,15 +113,21 @@ esac | |||
| 113 | # These must not be set unconditionally because not all systems understand | 113 | # These must not be set unconditionally because not all systems understand |
| 114 | # e.g. LANG=C (notably SCO). | 114 | # e.g. LANG=C (notably SCO). |
| 115 | # We save the old values to restore during execute mode. | 115 | # We save the old values to restore during execute mode. |
| 116 | for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | 116 | lt_env= |
| 117 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | ||
| 117 | do | 118 | do |
| 118 | eval "if test \"\${$lt_var+set}\" = set; then | 119 | eval "if test \"\${$lt_var+set}\" = set; then |
| 119 | save_$lt_var=\$$lt_var | 120 | save_$lt_var=\$$lt_var |
| 121 | lt_env=\"$lt_var=\$$lt_var \$lt_env\" | ||
| 120 | $lt_var=C | 122 | $lt_var=C |
| 121 | export $lt_var | 123 | export $lt_var |
| 122 | fi" | 124 | fi" |
| 123 | done | 125 | done |
| 124 | 126 | ||
| 127 | if test -n "$lt_env"; then | ||
| 128 | lt_env="env $lt_env" | ||
| 129 | fi | ||
| 130 | |||
| 125 | # Make sure IFS has a sensible default | 131 | # Make sure IFS has a sensible default |
| 126 | lt_nl=' | 132 | lt_nl=' |
| 127 | ' | 133 | ' |
| @@ -485,7 +491,7 @@ do | |||
| 485 | echo "\ | 491 | echo "\ |
| 486 | $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP | 492 | $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP |
| 487 | 493 | ||
| 488 | Copyright (C) 2007 Free Software Foundation, Inc. | 494 | Copyright (C) 2008 Free Software Foundation, Inc. |
| 489 | This is free software; see the source for copying conditions. There is NO | 495 | 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." | 496 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 491 | exit $? | 497 | exit $? |
| @@ -788,6 +794,7 @@ if test -z "$show_help"; then | |||
| 788 | *.for) xform=for ;; | 794 | *.for) xform=for ;; |
| 789 | *.java) xform=java ;; | 795 | *.java) xform=java ;; |
| 790 | *.obj) xform=obj ;; | 796 | *.obj) xform=obj ;; |
| 797 | *.sx) xform=sx ;; | ||
| 791 | esac | 798 | esac |
| 792 | 799 | ||
| 793 | libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` | 800 | libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` |
| @@ -956,7 +963,7 @@ EOF | |||
| 956 | $run $rm "$lobj" "$output_obj" | 963 | $run $rm "$lobj" "$output_obj" |
| 957 | 964 | ||
| 958 | $show "$command" | 965 | $show "$command" |
| 959 | if $run eval "$command"; then : | 966 | if $run eval $lt_env "$command"; then : |
| 960 | else | 967 | else |
| 961 | test -n "$output_obj" && $run $rm $removelist | 968 | test -n "$output_obj" && $run $rm $removelist |
| 962 | exit $EXIT_FAILURE | 969 | exit $EXIT_FAILURE |
| @@ -1028,7 +1035,7 @@ EOF | |||
| 1028 | command="$command$suppress_output" | 1035 | command="$command$suppress_output" |
| 1029 | $run $rm "$obj" "$output_obj" | 1036 | $run $rm "$obj" "$output_obj" |
| 1030 | $show "$command" | 1037 | $show "$command" |
| 1031 | if $run eval "$command"; then : | 1038 | if $run eval $lt_env "$command"; then : |
| 1032 | else | 1039 | else |
| 1033 | $run $rm $removelist | 1040 | $run $rm $removelist |
| 1034 | exit $EXIT_FAILURE | 1041 | exit $EXIT_FAILURE |
| @@ -1161,6 +1168,7 @@ EOF | |||
| 1161 | thread_safe=no | 1168 | thread_safe=no |
| 1162 | vinfo= | 1169 | vinfo= |
| 1163 | vinfo_number=no | 1170 | vinfo_number=no |
| 1171 | single_module="${wl}-single_module" | ||
| 1164 | 1172 | ||
| 1165 | func_infer_tag $base_compile | 1173 | func_infer_tag $base_compile |
| 1166 | 1174 | ||
| @@ -1646,6 +1654,11 @@ EOF | |||
| 1646 | continue | 1654 | continue |
| 1647 | ;; | 1655 | ;; |
| 1648 | 1656 | ||
| 1657 | -multi_module) | ||
| 1658 | single_module="${wl}-multi_module" | ||
| 1659 | continue | ||
| 1660 | ;; | ||
| 1661 | |||
| 1649 | -module) | 1662 | -module) |
| 1650 | module=yes | 1663 | module=yes |
| 1651 | continue | 1664 | continue |
| @@ -2149,7 +2162,12 @@ EOF | |||
| 2149 | continue | 2162 | continue |
| 2150 | fi | 2163 | fi |
| 2151 | name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` | 2164 | name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` |
| 2152 | for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do | 2165 | if test "$linkmode" = lib; then |
| 2166 | searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" | ||
| 2167 | else | ||
| 2168 | searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" | ||
| 2169 | fi | ||
| 2170 | for searchdir in $searchdirs; do | ||
| 2153 | for search_ext in .la $std_shrext .so .a; do | 2171 | for search_ext in .la $std_shrext .so .a; do |
| 2154 | # Search the libtool library | 2172 | # Search the libtool library |
| 2155 | lib="$searchdir/lib${name}${search_ext}" | 2173 | lib="$searchdir/lib${name}${search_ext}" |
| @@ -2945,12 +2963,18 @@ EOF | |||
| 2945 | # we do not want to link against static libs, | 2963 | # we do not want to link against static libs, |
| 2946 | # but need to link against shared | 2964 | # but need to link against shared |
| 2947 | eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` | 2965 | eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` |
| 2966 | eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
| 2948 | if test -n "$deplibrary_names" ; then | 2967 | if test -n "$deplibrary_names" ; then |
| 2949 | for tmp in $deplibrary_names ; do | 2968 | for tmp in $deplibrary_names ; do |
| 2950 | depdepl=$tmp | 2969 | depdepl=$tmp |
| 2951 | done | 2970 | done |
| 2952 | if test -f "$path/$depdepl" ; then | 2971 | if test -f "$deplibdir/$depdepl" ; then |
| 2972 | depdepl="$deplibdir/$depdepl" | ||
| 2973 | elif test -f "$path/$depdepl" ; then | ||
| 2953 | depdepl="$path/$depdepl" | 2974 | depdepl="$path/$depdepl" |
| 2975 | else | ||
| 2976 | # Can't find it, oh well... | ||
| 2977 | depdepl= | ||
| 2954 | fi | 2978 | fi |
| 2955 | # do not add paths which are already there | 2979 | # do not add paths which are already there |
| 2956 | case " $newlib_search_path " in | 2980 | case " $newlib_search_path " in |
| @@ -3098,9 +3122,10 @@ EOF | |||
| 3098 | 3122 | ||
| 3099 | case $linkmode in | 3123 | case $linkmode in |
| 3100 | oldlib) | 3124 | oldlib) |
| 3101 | if test -n "$deplibs"; then | 3125 | case " $deplibs" in |
| 3102 | $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 | 3126 | *\ -l* | *\ -L*) |
| 3103 | fi | 3127 | $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;; |
| 3128 | esac | ||
| 3104 | 3129 | ||
| 3105 | if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then | 3130 | if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then |
| 3106 | $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 | 3131 | $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 |
| @@ -4237,9 +4262,10 @@ EOF | |||
| 4237 | ;; | 4262 | ;; |
| 4238 | 4263 | ||
| 4239 | obj) | 4264 | obj) |
| 4240 | if test -n "$deplibs"; then | 4265 | case " $deplibs" in |
| 4241 | $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 | 4266 | *\ -l* | *\ -L*) |
| 4242 | fi | 4267 | $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;; |
| 4268 | esac | ||
| 4243 | 4269 | ||
| 4244 | if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then | 4270 | if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then |
| 4245 | $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 | 4271 | $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 |
| @@ -6478,7 +6504,7 @@ relink_command=\"$relink_command\"" | |||
| 6478 | fi | 6504 | fi |
| 6479 | 6505 | ||
| 6480 | # Restore saved environment variables | 6506 | # Restore saved environment variables |
| 6481 | for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | 6507 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES |
| 6482 | do | 6508 | do |
| 6483 | eval "if test \"\${save_$lt_var+set}\" = set; then | 6509 | eval "if test \"\${save_$lt_var+set}\" = set; then |
| 6484 | $lt_var=\$save_$lt_var; export $lt_var | 6510 | $lt_var=\$save_$lt_var; export $lt_var |
