added the dlfcn functions support
This commit is contained in:
		| @ -4,7 +4,7 @@ | ||||
| me=ar-lib | ||||
| scriptversion=2012-03-01.08; # UTC | ||||
|  | ||||
| # Copyright (C) 2010-2014 Free Software Foundation, Inc. | ||||
| # Copyright (C) 2010-2013 Free Software Foundation, Inc. | ||||
| # Written by Peter Rosin <peda@lysator.liu.se>. | ||||
| # | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
|  | ||||
| scriptversion=2012-10-14.11; # UTC | ||||
|  | ||||
| # Copyright (C) 1999-2014 Free Software Foundation, Inc. | ||||
| # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||||
| # Written by Tom Tromey <tromey@cygnus.com>. | ||||
| # | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
|  | ||||
							
								
								
									
										174
									
								
								moo/ac/config.guess
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										174
									
								
								moo/ac/config.guess
									
									
									
									
										vendored
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| #! /bin/sh | ||||
| # Attempt to guess a canonical system name. | ||||
| #   Copyright 1992-2016 Free Software Foundation, Inc. | ||||
| #   Copyright 1992-2014 Free Software Foundation, Inc. | ||||
|  | ||||
| timestamp='2016-10-02' | ||||
| timestamp='2014-03-23' | ||||
|  | ||||
| # This file is free software; you can redistribute it and/or modify it | ||||
| # under the terms of the GNU General Public License as published by | ||||
| @ -24,12 +24,12 @@ timestamp='2016-10-02' | ||||
| # program.  This Exception is an additional permission under section 7 | ||||
| # of the GNU General Public License, version 3 ("GPLv3"). | ||||
| # | ||||
| # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | ||||
| # Originally written by Per Bothner. | ||||
| # | ||||
| # You can get the latest version of this script from: | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||||
| # | ||||
| # Please send patches to <config-patches@gnu.org>. | ||||
| # Please send patches with a ChangeLog entry to config-patches@gnu.org. | ||||
|  | ||||
|  | ||||
| me=`echo "$0" | sed -e 's,.*/,,'` | ||||
| @ -50,7 +50,7 @@ version="\ | ||||
| GNU config.guess ($timestamp) | ||||
|  | ||||
| Originally written by Per Bothner. | ||||
| Copyright 1992-2016 Free Software Foundation, Inc. | ||||
| Copyright 1992-2014 Free Software Foundation, Inc. | ||||
|  | ||||
| This is free software; see the source for copying conditions.  There is NO | ||||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||||
| @ -168,29 +168,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	# Note: NetBSD doesn't particularly care about the vendor | ||||
| 	# portion of the name.  We always set it to "unknown". | ||||
| 	sysctl="sysctl -n hw.machine_arch" | ||||
| 	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | ||||
| 	    /sbin/$sysctl 2>/dev/null || \ | ||||
| 	    /usr/sbin/$sysctl 2>/dev/null || \ | ||||
| 	    echo unknown)` | ||||
| 	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | ||||
| 	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | ||||
| 	case "${UNAME_MACHINE_ARCH}" in | ||||
| 	    armeb) machine=armeb-unknown ;; | ||||
| 	    arm*) machine=arm-unknown ;; | ||||
| 	    sh3el) machine=shl-unknown ;; | ||||
| 	    sh3eb) machine=sh-unknown ;; | ||||
| 	    sh5el) machine=sh5le-unknown ;; | ||||
| 	    earmv*) | ||||
| 		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | ||||
| 		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` | ||||
| 		machine=${arch}${endian}-unknown | ||||
| 		;; | ||||
| 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | ||||
| 	esac | ||||
| 	# The Operating System including object format, if it has switched | ||||
| 	# to ELF recently (or will in the future) and ABI. | ||||
| 	# to ELF recently, or will in the future. | ||||
| 	case "${UNAME_MACHINE_ARCH}" in | ||||
| 	    earm*) | ||||
| 		os=netbsdelf | ||||
| 		;; | ||||
| 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax) | ||||
| 		eval $set_cc_for_build | ||||
| 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||||
| @ -207,13 +197,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 		os=netbsd | ||||
| 		;; | ||||
| 	esac | ||||
| 	# Determine ABI tags. | ||||
| 	case "${UNAME_MACHINE_ARCH}" in | ||||
| 	    earm*) | ||||
| 		expr='s/^earmv[0-9]/-eabi/;s/eb$//' | ||||
| 		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` | ||||
| 		;; | ||||
| 	esac | ||||
| 	# The OS release | ||||
| 	# Debian GNU/NetBSD machines have a different userland, and | ||||
| 	# thus, need a distinct triplet. However, they do not need | ||||
| @ -224,13 +207,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 		release='-gnu' | ||||
| 		;; | ||||
| 	    *) | ||||
| 		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` | ||||
| 		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||||
| 		;; | ||||
| 	esac | ||||
| 	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | ||||
| 	# contains redundant information, the shorter form: | ||||
| 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||||
| 	echo "${machine}-${os}${release}${abi}" | ||||
| 	echo "${machine}-${os}${release}" | ||||
| 	exit ;; | ||||
|     *:Bitrig:*:*) | ||||
| 	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | ||||
| @ -240,10 +223,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | ||||
| 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:LibertyBSD:*:*) | ||||
| 	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | ||||
| 	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:ekkoBSD:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
| @ -256,9 +235,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
|     *:MirBSD:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:Sortix:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-sortix | ||||
| 	exit ;; | ||||
|     alpha:OSF1:*:*) | ||||
| 	case $UNAME_RELEASE in | ||||
| 	*4.0) | ||||
| @ -275,42 +251,42 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1` | ||||
| 	case "$ALPHA_CPU_TYPE" in | ||||
| 	    "EV4 (21064)") | ||||
| 		UNAME_MACHINE=alpha ;; | ||||
| 		UNAME_MACHINE="alpha" ;; | ||||
| 	    "EV4.5 (21064)") | ||||
| 		UNAME_MACHINE=alpha ;; | ||||
| 		UNAME_MACHINE="alpha" ;; | ||||
| 	    "LCA4 (21066/21068)") | ||||
| 		UNAME_MACHINE=alpha ;; | ||||
| 		UNAME_MACHINE="alpha" ;; | ||||
| 	    "EV5 (21164)") | ||||
| 		UNAME_MACHINE=alphaev5 ;; | ||||
| 		UNAME_MACHINE="alphaev5" ;; | ||||
| 	    "EV5.6 (21164A)") | ||||
| 		UNAME_MACHINE=alphaev56 ;; | ||||
| 		UNAME_MACHINE="alphaev56" ;; | ||||
| 	    "EV5.6 (21164PC)") | ||||
| 		UNAME_MACHINE=alphapca56 ;; | ||||
| 		UNAME_MACHINE="alphapca56" ;; | ||||
| 	    "EV5.7 (21164PC)") | ||||
| 		UNAME_MACHINE=alphapca57 ;; | ||||
| 		UNAME_MACHINE="alphapca57" ;; | ||||
| 	    "EV6 (21264)") | ||||
| 		UNAME_MACHINE=alphaev6 ;; | ||||
| 		UNAME_MACHINE="alphaev6" ;; | ||||
| 	    "EV6.7 (21264A)") | ||||
| 		UNAME_MACHINE=alphaev67 ;; | ||||
| 		UNAME_MACHINE="alphaev67" ;; | ||||
| 	    "EV6.8CB (21264C)") | ||||
| 		UNAME_MACHINE=alphaev68 ;; | ||||
| 		UNAME_MACHINE="alphaev68" ;; | ||||
| 	    "EV6.8AL (21264B)") | ||||
| 		UNAME_MACHINE=alphaev68 ;; | ||||
| 		UNAME_MACHINE="alphaev68" ;; | ||||
| 	    "EV6.8CX (21264D)") | ||||
| 		UNAME_MACHINE=alphaev68 ;; | ||||
| 		UNAME_MACHINE="alphaev68" ;; | ||||
| 	    "EV6.9A (21264/EV69A)") | ||||
| 		UNAME_MACHINE=alphaev69 ;; | ||||
| 		UNAME_MACHINE="alphaev69" ;; | ||||
| 	    "EV7 (21364)") | ||||
| 		UNAME_MACHINE=alphaev7 ;; | ||||
| 		UNAME_MACHINE="alphaev7" ;; | ||||
| 	    "EV7.9 (21364A)") | ||||
| 		UNAME_MACHINE=alphaev79 ;; | ||||
| 		UNAME_MACHINE="alphaev79" ;; | ||||
| 	esac | ||||
| 	# A Pn.n version is a patched version. | ||||
| 	# A Vn.n version is a released version. | ||||
| 	# A Tn.n version is a released field test version. | ||||
| 	# A Xn.n version is an unreleased experimental baselevel. | ||||
| 	# 1.2 uses "1.2" for uname -r. | ||||
| 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | ||||
| 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||||
| 	# Reset EXIT trap before exiting to avoid spurious non-zero exit code. | ||||
| 	exitcode=$? | ||||
| 	trap '' 0 | ||||
| @ -383,16 +359,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	exit ;; | ||||
|     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	SUN_ARCH=i386 | ||||
| 	SUN_ARCH="i386" | ||||
| 	# If there is a compiler, see if it is configured for 64-bit objects. | ||||
| 	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | ||||
| 	# This test works for both compilers. | ||||
| 	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | ||||
| 	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||||
| 	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||||
| 		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||||
| 		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||||
| 		grep IS_64BIT_ARCH >/dev/null | ||||
| 	    then | ||||
| 		SUN_ARCH=x86_64 | ||||
| 		SUN_ARCH="x86_64" | ||||
| 	    fi | ||||
| 	fi | ||||
| 	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||||
| @ -417,7 +393,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	exit ;; | ||||
|     sun*:*:4.2BSD:*) | ||||
| 	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | ||||
| 	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 | ||||
| 	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | ||||
| 	case "`/bin/arch`" in | ||||
| 	    sun3) | ||||
| 		echo m68k-sun-sunos${UNAME_RELEASE} | ||||
| @ -603,9 +579,8 @@ EOF | ||||
| 	else | ||||
| 		IBM_ARCH=powerpc | ||||
| 	fi | ||||
| 	if [ -x /usr/bin/lslpp ] ; then | ||||
| 		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | ||||
| 			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | ||||
| 	if [ -x /usr/bin/oslevel ] ; then | ||||
| 		IBM_REV=`/usr/bin/oslevel` | ||||
| 	else | ||||
| 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||||
| 	fi | ||||
| @ -642,13 +617,13 @@ EOF | ||||
| 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | ||||
| 		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | ||||
| 		    case "${sc_cpu_version}" in | ||||
| 		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | ||||
| 		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | ||||
| 		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | ||||
| 		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | ||||
| 		      532)                      # CPU_PA_RISC2_0 | ||||
| 			case "${sc_kernel_bits}" in | ||||
| 			  32) HP_ARCH=hppa2.0n ;; | ||||
| 			  64) HP_ARCH=hppa2.0w ;; | ||||
| 			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20 | ||||
| 			  32) HP_ARCH="hppa2.0n" ;; | ||||
| 			  64) HP_ARCH="hppa2.0w" ;; | ||||
| 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20 | ||||
| 			esac ;; | ||||
| 		    esac | ||||
| 		fi | ||||
| @ -687,11 +662,11 @@ EOF | ||||
| 		    exit (0); | ||||
| 		} | ||||
| EOF | ||||
| 		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | ||||
| 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | ||||
| 		    test -z "$HP_ARCH" && HP_ARCH=hppa | ||||
| 		fi ;; | ||||
| 	esac | ||||
| 	if [ ${HP_ARCH} = hppa2.0w ] | ||||
| 	if [ ${HP_ARCH} = "hppa2.0w" ] | ||||
| 	then | ||||
| 	    eval $set_cc_for_build | ||||
|  | ||||
| @ -704,12 +679,12 @@ EOF | ||||
| 	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | ||||
| 	    # => hppa64-hp-hpux11.23 | ||||
|  | ||||
| 	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | ||||
| 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | ||||
| 		grep -q __LP64__ | ||||
| 	    then | ||||
| 		HP_ARCH=hppa2.0w | ||||
| 		HP_ARCH="hppa2.0w" | ||||
| 	    else | ||||
| 		HP_ARCH=hppa64 | ||||
| 		HP_ARCH="hppa64" | ||||
| 	    fi | ||||
| 	fi | ||||
| 	echo ${HP_ARCH}-hp-hpux${HPUX_REV} | ||||
| @ -814,14 +789,14 @@ EOF | ||||
| 	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||||
| 	exit ;; | ||||
|     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | ||||
| 	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | ||||
| 	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | ||||
| 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||||
| 	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||||
| 	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | ||||
| 	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||||
| 	exit ;; | ||||
|     5000:UNIX_System_V:4.*:*) | ||||
| 	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | ||||
| 	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | ||||
| 	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||||
| 	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | ||||
| 	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||||
| 	exit ;; | ||||
|     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | ||||
| @ -903,7 +878,7 @@ EOF | ||||
| 	exit ;; | ||||
|     *:GNU/*:*:*) | ||||
| 	# other systems with GNU libc and userland | ||||
| 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | ||||
| 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | ||||
| 	exit ;; | ||||
|     i*86:Minix:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-minix | ||||
| @ -926,7 +901,7 @@ EOF | ||||
| 	  EV68*) UNAME_MACHINE=alphaev68 ;; | ||||
| 	esac | ||||
| 	objdump --private-headers /bin/sh | grep -q ld.so.1 | ||||
| 	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | ||||
| 	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     arc:Linux:*:* | arceb:Linux:*:*) | ||||
| @ -957,9 +932,6 @@ EOF | ||||
|     crisv32:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-axis-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     e2k:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     frv:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
| @ -972,9 +944,6 @@ EOF | ||||
|     ia64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     k1om:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     m32r*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
| @ -1000,9 +969,6 @@ EOF | ||||
| 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | ||||
| 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | ||||
| 	;; | ||||
|     mips64el:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     openrisc*:Linux:*:*) | ||||
| 	echo or1k-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
| @ -1035,9 +1001,6 @@ EOF | ||||
|     ppcle:Linux:*:*) | ||||
| 	echo powerpcle-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     riscv32:Linux:*:* | riscv64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     s390:Linux:*:* | s390x:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | ||||
| 	exit ;; | ||||
| @ -1057,7 +1020,7 @@ EOF | ||||
| 	echo ${UNAME_MACHINE}-dec-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     x86_64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-linux-${LIBC} | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     xtensa*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| @ -1136,7 +1099,7 @@ EOF | ||||
| 	# uname -m prints for DJGPP always 'pc', but it prints nothing about | ||||
| 	# the processor, so we play safe by assuming i586. | ||||
| 	# Note: whatever this is, it MUST be the same as what config.sub | ||||
| 	# prints for the "djgpp" host, or else GDB configure will decide that | ||||
| 	# prints for the "djgpp" host, or else GDB configury will decide that | ||||
| 	# this is a cross-build. | ||||
| 	echo i586-pc-msdosdjgpp | ||||
| 	exit ;; | ||||
| @ -1285,9 +1248,6 @@ EOF | ||||
|     SX-8R:SUPER-UX:*:*) | ||||
| 	echo sx8r-nec-superux${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     SX-ACE:SUPER-UX:*:*) | ||||
| 	echo sxace-nec-superux${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     Power*:Rhapsody:*:*) | ||||
| 	echo powerpc-apple-rhapsody${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
| @ -1301,9 +1261,9 @@ EOF | ||||
| 	    UNAME_PROCESSOR=powerpc | ||||
| 	fi | ||||
| 	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | ||||
| 	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | ||||
| 	    if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||||
| 		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||||
| 		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||||
| 		    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||||
| 		    grep IS_64BIT_ARCH >/dev/null | ||||
| 		then | ||||
| 		    case $UNAME_PROCESSOR in | ||||
| @ -1325,7 +1285,7 @@ EOF | ||||
| 	exit ;; | ||||
|     *:procnto*:*:* | *:QNX:[0123456789]*:*) | ||||
| 	UNAME_PROCESSOR=`uname -p` | ||||
| 	if test "$UNAME_PROCESSOR" = x86; then | ||||
| 	if test "$UNAME_PROCESSOR" = "x86"; then | ||||
| 		UNAME_PROCESSOR=i386 | ||||
| 		UNAME_MACHINE=pc | ||||
| 	fi | ||||
| @ -1356,7 +1316,7 @@ EOF | ||||
| 	# "uname -m" is not consistent, so use $cputype instead. 386 | ||||
| 	# is converted to i386 for consistency with other x86 | ||||
| 	# operating systems. | ||||
| 	if test "$cputype" = 386; then | ||||
| 	if test "$cputype" = "386"; then | ||||
| 	    UNAME_MACHINE=i386 | ||||
| 	else | ||||
| 	    UNAME_MACHINE="$cputype" | ||||
| @ -1398,7 +1358,7 @@ EOF | ||||
| 	echo i386-pc-xenix | ||||
| 	exit ;; | ||||
|     i*86:skyos:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` | ||||
| 	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | ||||
| 	exit ;; | ||||
|     i*86:rdos:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-rdos | ||||
| @ -1409,25 +1369,23 @@ EOF | ||||
|     x86_64:VMkernel:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-esx | ||||
| 	exit ;; | ||||
|     amd64:Isilon\ OneFS:*:*) | ||||
| 	echo x86_64-unknown-onefs | ||||
| 	exit ;; | ||||
| esac | ||||
|  | ||||
| cat >&2 <<EOF | ||||
| $0: unable to guess system type | ||||
|  | ||||
| This script (version $timestamp), has failed to recognize the | ||||
| operating system you are using. If your script is old, overwrite | ||||
| config.guess and config.sub with the latest versions from: | ||||
| This script, last modified $timestamp, has failed to recognize | ||||
| the operating system you are using. It is advised that you | ||||
| download the most up to date version of the config scripts from | ||||
|  | ||||
|   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | ||||
|   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||||
| and | ||||
|   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | ||||
|   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||||
|  | ||||
| If $0 has already been updated, send the following data and any | ||||
| information you think might be pertinent to config-patches@gnu.org to | ||||
| provide the necessary information to handle your system. | ||||
| If the version you run ($0) is already up to date, please | ||||
| send the following data and any information you think might be | ||||
| pertinent to <config-patches@gnu.org> in order to provide the needed | ||||
| information to handle your system. | ||||
|  | ||||
| config.guess timestamp = $timestamp | ||||
|  | ||||
|  | ||||
							
								
								
									
										66
									
								
								moo/ac/config.sub
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										66
									
								
								moo/ac/config.sub
									
									
									
									
										vendored
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| #! /bin/sh | ||||
| # Configuration validation subroutine script. | ||||
| #   Copyright 1992-2016 Free Software Foundation, Inc. | ||||
| #   Copyright 1992-2014 Free Software Foundation, Inc. | ||||
|  | ||||
| timestamp='2016-11-04' | ||||
| timestamp='2014-09-11' | ||||
|  | ||||
| # This file is free software; you can redistribute it and/or modify it | ||||
| # under the terms of the GNU General Public License as published by | ||||
| @ -25,7 +25,7 @@ timestamp='2016-11-04' | ||||
| # of the GNU General Public License, version 3 ("GPLv3"). | ||||
|  | ||||
|  | ||||
| # Please send patches to <config-patches@gnu.org>. | ||||
| # Please send patches with a ChangeLog entry to config-patches@gnu.org. | ||||
| # | ||||
| # Configuration subroutine to validate and canonicalize a configuration type. | ||||
| # Supply the specified configuration type as an argument. | ||||
| @ -33,7 +33,7 @@ timestamp='2016-11-04' | ||||
| # Otherwise, we print the canonical config type on stdout and succeed. | ||||
|  | ||||
| # You can get the latest version of this script from: | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||||
|  | ||||
| # This file is supposed to be the same for all GNU packages | ||||
| # and recognize all the CPU types, system types and aliases | ||||
| @ -53,7 +53,8 @@ timestamp='2016-11-04' | ||||
| me=`echo "$0" | sed -e 's,.*/,,'` | ||||
|  | ||||
| usage="\ | ||||
| Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | ||||
| Usage: $0 [OPTION] CPU-MFR-OPSYS | ||||
|        $0 [OPTION] ALIAS | ||||
|  | ||||
| Canonicalize a configuration name. | ||||
|  | ||||
| @ -67,7 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>." | ||||
| version="\ | ||||
| GNU config.sub ($timestamp) | ||||
|  | ||||
| Copyright 1992-2016 Free Software Foundation, Inc. | ||||
| Copyright 1992-2014 Free Software Foundation, Inc. | ||||
|  | ||||
| This is free software; see the source for copying conditions.  There is NO | ||||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||||
| @ -116,8 +117,8 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | ||||
| case $maybe_os in | ||||
|   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | ||||
|   linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | ||||
|   knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ | ||||
|   kopensolaris*-gnu* | cloudabi*-eabi* | \ | ||||
|   knetbsd*-gnu* | netbsd*-gnu* | \ | ||||
|   kopensolaris*-gnu* | \ | ||||
|   storm-chaos* | os2-emx* | rtmk-nova*) | ||||
|     os=-$maybe_os | ||||
|     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||||
| @ -254,13 +255,12 @@ case $basic_machine in | ||||
| 	| arc | arceb \ | ||||
| 	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | ||||
| 	| avr | avr32 \ | ||||
| 	| ba \ | ||||
| 	| be32 | be64 \ | ||||
| 	| bfin \ | ||||
| 	| c4x | c8051 | clipper \ | ||||
| 	| d10v | d30v | dlx | dsp16xx \ | ||||
| 	| e2k | epiphany \ | ||||
| 	| fido | fr30 | frv | ft32 \ | ||||
| 	| epiphany \ | ||||
| 	| fido | fr30 | frv \ | ||||
| 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||||
| 	| hexagon \ | ||||
| 	| i370 | i860 | i960 | ia64 \ | ||||
| @ -301,12 +301,11 @@ case $basic_machine in | ||||
| 	| open8 | or1k | or1knd | or32 \ | ||||
| 	| pdp10 | pdp11 | pj | pjl \ | ||||
| 	| powerpc | powerpc64 | powerpc64le | powerpcle \ | ||||
| 	| pru \ | ||||
| 	| pyramid \ | ||||
| 	| riscv32 | riscv64 \ | ||||
| 	| rl78 | rx \ | ||||
| 	| score \ | ||||
| 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||||
| 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||||
| 	| sh64 | sh64le \ | ||||
| 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||||
| 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||||
| @ -314,7 +313,6 @@ case $basic_machine in | ||||
| 	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||||
| 	| ubicom32 \ | ||||
| 	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | ||||
| 	| visium \ | ||||
| 	| we32k \ | ||||
| 	| x86 | xc16x | xstormy16 | xtensa \ | ||||
| 	| z8k | z80) | ||||
| @ -329,9 +327,6 @@ case $basic_machine in | ||||
| 	c6x) | ||||
| 		basic_machine=tic6x-unknown | ||||
| 		;; | ||||
| 	leon|leon[3-9]) | ||||
| 		basic_machine=sparc-$basic_machine | ||||
| 		;; | ||||
| 	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | ||||
| 		basic_machine=$basic_machine-unknown | ||||
| 		os=-none | ||||
| @ -377,13 +372,12 @@ case $basic_machine in | ||||
| 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | ||||
| 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \ | ||||
| 	| avr-* | avr32-* \ | ||||
| 	| ba-* \ | ||||
| 	| be32-* | be64-* \ | ||||
| 	| bfin-* | bs2000-* \ | ||||
| 	| c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||||
| 	| c8051-* | clipper-* | craynv-* | cydra-* \ | ||||
| 	| d10v-* | d30v-* | dlx-* \ | ||||
| 	| e2k-* | elxsi-* \ | ||||
| 	| elxsi-* \ | ||||
| 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | ||||
| 	| h8300-* | h8500-* \ | ||||
| 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||||
| @ -429,15 +423,13 @@ case $basic_machine in | ||||
| 	| orion-* \ | ||||
| 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||||
| 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | ||||
| 	| pru-* \ | ||||
| 	| pyramid-* \ | ||||
| 	| riscv32-* | riscv64-* \ | ||||
| 	| rl78-* | romp-* | rs6000-* | rx-* \ | ||||
| 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | ||||
| 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||||
| 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||||
| 	| sparclite-* \ | ||||
| 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | ||||
| 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | ||||
| 	| tahoe-* \ | ||||
| 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||||
| 	| tile*-* \ | ||||
| @ -445,7 +437,6 @@ case $basic_machine in | ||||
| 	| ubicom32-* \ | ||||
| 	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | ||||
| 	| vax-* \ | ||||
| 	| visium-* \ | ||||
| 	| we32k-* \ | ||||
| 	| x86-* | x86_64-* | xc16x-* | xps100-* \ | ||||
| 	| xstormy16-* | xtensa*-* \ | ||||
| @ -522,9 +513,6 @@ case $basic_machine in | ||||
| 		basic_machine=i386-pc | ||||
| 		os=-aros | ||||
| 		;; | ||||
| 	asmjs) | ||||
| 		basic_machine=asmjs-unknown | ||||
| 		;; | ||||
| 	aux) | ||||
| 		basic_machine=m68k-apple | ||||
| 		os=-aux | ||||
| @ -645,14 +633,6 @@ case $basic_machine in | ||||
| 		basic_machine=m68k-bull | ||||
| 		os=-sysv3 | ||||
| 		;; | ||||
| 	e500v[12]) | ||||
| 		basic_machine=powerpc-unknown | ||||
| 		os=$os"spe" | ||||
| 		;; | ||||
| 	e500v[12]-*) | ||||
| 		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		os=$os"spe" | ||||
| 		;; | ||||
| 	ebmon29k) | ||||
| 		basic_machine=a29k-amd | ||||
| 		os=-ebmon | ||||
| @ -794,9 +774,6 @@ case $basic_machine in | ||||
| 		basic_machine=m68k-isi | ||||
| 		os=-sysv | ||||
| 		;; | ||||
| 	leon-*|leon[3-9]-*) | ||||
| 		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` | ||||
| 		;; | ||||
| 	m68knommu) | ||||
| 		basic_machine=m68k-unknown | ||||
| 		os=-linux | ||||
| @ -1032,7 +1009,7 @@ case $basic_machine in | ||||
| 	ppc-* | ppcbe-*) | ||||
| 		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	ppcle | powerpclittle) | ||||
| 	ppcle | powerpclittle | ppc-le | powerpc-little) | ||||
| 		basic_machine=powerpcle-unknown | ||||
| 		;; | ||||
| 	ppcle-* | powerpclittle-*) | ||||
| @ -1042,7 +1019,7 @@ case $basic_machine in | ||||
| 		;; | ||||
| 	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	ppc64le | powerpc64little) | ||||
| 	ppc64le | powerpc64little | ppc64-le | powerpc64-little) | ||||
| 		basic_machine=powerpc64le-unknown | ||||
| 		;; | ||||
| 	ppc64le-* | powerpc64little-*) | ||||
| @ -1388,18 +1365,18 @@ case $os in | ||||
| 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | ||||
| 	      | -sym* | -kopensolaris* | -plan9* \ | ||||
| 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||||
| 	      | -aos* | -aros* | -cloudabi* | -sortix* \ | ||||
| 	      | -aos* | -aros* \ | ||||
| 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||||
| 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | ||||
| 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | ||||
| 	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | ||||
| 	      | -bitrig* | -openbsd* | -solidbsd* \ | ||||
| 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | ||||
| 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | ||||
| 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | ||||
| 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | ||||
| 	      | -chorusos* | -chorusrdb* | -cegcc* \ | ||||
| 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||||
| 	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | ||||
| 	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | ||||
| 	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | ||||
| 	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | ||||
| 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | ||||
| @ -1408,8 +1385,7 @@ case $os in | ||||
| 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | ||||
| 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | ||||
| 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | ||||
| 	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | ||||
| 	      | -onefs* | -tirtos* | -phoenix* | -fuchsia*) | ||||
| 	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) | ||||
| 	# Remember, each alternative MUST END IN *, to match a version number. | ||||
| 		;; | ||||
| 	-qnx*) | ||||
| @ -1541,8 +1517,6 @@ case $os in | ||||
| 		;; | ||||
| 	-nacl*) | ||||
| 		;; | ||||
| 	-ios) | ||||
| 		;; | ||||
| 	-none) | ||||
| 		;; | ||||
| 	*) | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
|  | ||||
| scriptversion=2013-05-30.07; # UTC | ||||
|  | ||||
| # Copyright (C) 1999-2014 Free Software Foundation, Inc. | ||||
| # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||||
|  | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| #!/bin/sh | ||||
| # install - install a program, script, or datafile | ||||
|  | ||||
| scriptversion=2014-09-12.12; # UTC | ||||
| scriptversion=2011-11-20.07; # UTC | ||||
|  | ||||
| # This originates from X11R5 (mit/util/scripts/install.sh), which was | ||||
| # later released in X11R6 (xc/config/util/install.sh) with the | ||||
| @ -41,15 +41,19 @@ scriptversion=2014-09-12.12; # UTC | ||||
| # This script is compatible with the BSD install script, but was written | ||||
| # from scratch. | ||||
|  | ||||
| tab='	' | ||||
| nl=' | ||||
| ' | ||||
| IFS=" $tab$nl" | ||||
| IFS=" ""	$nl" | ||||
|  | ||||
| # Set DOITPROG to "echo" to test this script. | ||||
| # set DOITPROG to echo to test this script | ||||
|  | ||||
| # Don't use :- since 4.3BSD and earlier shells don't like it. | ||||
| doit=${DOITPROG-} | ||||
| doit_exec=${doit:-exec} | ||||
| if test -z "$doit"; then | ||||
|   doit_exec=exec | ||||
| else | ||||
|   doit_exec=$doit | ||||
| fi | ||||
|  | ||||
| # Put in absolute file names if you don't have them in your path; | ||||
| # or use environment vars. | ||||
| @ -64,6 +68,17 @@ mvprog=${MVPROG-mv} | ||||
| rmprog=${RMPROG-rm} | ||||
| stripprog=${STRIPPROG-strip} | ||||
|  | ||||
| posix_glob='?' | ||||
| initialize_posix_glob=' | ||||
|   test "$posix_glob" != "?" || { | ||||
|     if (set -f) 2>/dev/null; then | ||||
|       posix_glob= | ||||
|     else | ||||
|       posix_glob=: | ||||
|     fi | ||||
|   } | ||||
| ' | ||||
|  | ||||
| posix_mkdir= | ||||
|  | ||||
| # Desired mode of installed file. | ||||
| @ -82,7 +97,7 @@ dir_arg= | ||||
| dst_arg= | ||||
|  | ||||
| copy_on_change=false | ||||
| is_target_a_directory=possibly | ||||
| no_target_directory= | ||||
|  | ||||
| usage="\ | ||||
| Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | ||||
| @ -122,57 +137,46 @@ while test $# -ne 0; do | ||||
|     -d) dir_arg=true;; | ||||
|  | ||||
|     -g) chgrpcmd="$chgrpprog $2" | ||||
|         shift;; | ||||
| 	shift;; | ||||
|  | ||||
|     --help) echo "$usage"; exit $?;; | ||||
|  | ||||
|     -m) mode=$2 | ||||
|         case $mode in | ||||
|           *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) | ||||
|             echo "$0: invalid mode: $mode" >&2 | ||||
|             exit 1;; | ||||
|         esac | ||||
|         shift;; | ||||
| 	case $mode in | ||||
| 	  *' '* | *'	'* | *' | ||||
| '*	  | *'*'* | *'?'* | *'['*) | ||||
| 	    echo "$0: invalid mode: $mode" >&2 | ||||
| 	    exit 1;; | ||||
| 	esac | ||||
| 	shift;; | ||||
|  | ||||
|     -o) chowncmd="$chownprog $2" | ||||
|         shift;; | ||||
| 	shift;; | ||||
|  | ||||
|     -s) stripcmd=$stripprog;; | ||||
|  | ||||
|     -t) | ||||
|         is_target_a_directory=always | ||||
|         dst_arg=$2 | ||||
|         # Protect names problematic for 'test' and other utilities. | ||||
|         case $dst_arg in | ||||
|           -* | [=\(\)!]) dst_arg=./$dst_arg;; | ||||
|         esac | ||||
|         shift;; | ||||
|     -t) dst_arg=$2 | ||||
| 	# Protect names problematic for 'test' and other utilities. | ||||
| 	case $dst_arg in | ||||
| 	  -* | [=\(\)!]) dst_arg=./$dst_arg;; | ||||
| 	esac | ||||
| 	shift;; | ||||
|  | ||||
|     -T) is_target_a_directory=never;; | ||||
|     -T) no_target_directory=true;; | ||||
|  | ||||
|     --version) echo "$0 $scriptversion"; exit $?;; | ||||
|  | ||||
|     --) shift | ||||
|         break;; | ||||
|     --)	shift | ||||
| 	break;; | ||||
|  | ||||
|     -*) echo "$0: invalid option: $1" >&2 | ||||
|         exit 1;; | ||||
|     -*)	echo "$0: invalid option: $1" >&2 | ||||
| 	exit 1;; | ||||
|  | ||||
|     *)  break;; | ||||
|   esac | ||||
|   shift | ||||
| done | ||||
|  | ||||
| # We allow the use of options -d and -T together, by making -d | ||||
| # take the precedence; this is for compatibility with GNU install. | ||||
|  | ||||
| if test -n "$dir_arg"; then | ||||
|   if test -n "$dst_arg"; then | ||||
|     echo "$0: target directory not allowed when installing a directory." >&2 | ||||
|     exit 1 | ||||
|   fi | ||||
| fi | ||||
|  | ||||
| if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | ||||
|   # When -d is used, all remaining arguments are directories to create. | ||||
|   # When -t is used, the destination is already specified. | ||||
| @ -203,15 +207,6 @@ if test $# -eq 0; then | ||||
|   exit 0 | ||||
| fi | ||||
|  | ||||
| if test -z "$dir_arg"; then | ||||
|   if test $# -gt 1 || test "$is_target_a_directory" = always; then | ||||
|     if test ! -d "$dst_arg"; then | ||||
|       echo "$0: $dst_arg: Is not a directory." >&2 | ||||
|       exit 1 | ||||
|     fi | ||||
|   fi | ||||
| fi | ||||
|  | ||||
| if test -z "$dir_arg"; then | ||||
|   do_exit='(exit $ret); exit $ret' | ||||
|   trap "ret=129; $do_exit" 1 | ||||
| @ -228,16 +223,16 @@ if test -z "$dir_arg"; then | ||||
|  | ||||
|     *[0-7]) | ||||
|       if test -z "$stripcmd"; then | ||||
|         u_plus_rw= | ||||
| 	u_plus_rw= | ||||
|       else | ||||
|         u_plus_rw='% 200' | ||||
| 	u_plus_rw='% 200' | ||||
|       fi | ||||
|       cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | ||||
|     *) | ||||
|       if test -z "$stripcmd"; then | ||||
|         u_plus_rw= | ||||
| 	u_plus_rw= | ||||
|       else | ||||
|         u_plus_rw=,u+rw | ||||
| 	u_plus_rw=,u+rw | ||||
|       fi | ||||
|       cp_umask=$mode$u_plus_rw;; | ||||
|   esac | ||||
| @ -274,15 +269,41 @@ do | ||||
|     # If destination is a directory, append the input filename; won't work | ||||
|     # if double slashes aren't ignored. | ||||
|     if test -d "$dst"; then | ||||
|       if test "$is_target_a_directory" = never; then | ||||
|         echo "$0: $dst_arg: Is a directory" >&2 | ||||
|         exit 1 | ||||
|       if test -n "$no_target_directory"; then | ||||
| 	echo "$0: $dst_arg: Is a directory" >&2 | ||||
| 	exit 1 | ||||
|       fi | ||||
|       dstdir=$dst | ||||
|       dst=$dstdir/`basename "$src"` | ||||
|       dstdir_status=0 | ||||
|     else | ||||
|       dstdir=`dirname "$dst"` | ||||
|       # Prefer dirname, but fall back on a substitute if dirname fails. | ||||
|       dstdir=` | ||||
| 	(dirname "$dst") 2>/dev/null || | ||||
| 	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
| 	     X"$dst" : 'X\(//\)[^/]' \| \ | ||||
| 	     X"$dst" : 'X\(//\)$' \| \ | ||||
| 	     X"$dst" : 'X\(/\)' \| . 2>/dev/null || | ||||
| 	echo X"$dst" | | ||||
| 	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
| 		   s//\1/ | ||||
| 		   q | ||||
| 		 } | ||||
| 		 /^X\(\/\/\)[^/].*/{ | ||||
| 		   s//\1/ | ||||
| 		   q | ||||
| 		 } | ||||
| 		 /^X\(\/\/\)$/{ | ||||
| 		   s//\1/ | ||||
| 		   q | ||||
| 		 } | ||||
| 		 /^X\(\/\).*/{ | ||||
| 		   s//\1/ | ||||
| 		   q | ||||
| 		 } | ||||
| 		 s/.*/./; q' | ||||
|       ` | ||||
|  | ||||
|       test -d "$dstdir" | ||||
|       dstdir_status=$? | ||||
|     fi | ||||
| @ -293,81 +314,81 @@ do | ||||
|   if test $dstdir_status != 0; then | ||||
|     case $posix_mkdir in | ||||
|       '') | ||||
|         # Create intermediate dirs using mode 755 as modified by the umask. | ||||
|         # This is like FreeBSD 'install' as of 1997-10-28. | ||||
|         umask=`umask` | ||||
|         case $stripcmd.$umask in | ||||
|           # Optimize common cases. | ||||
|           *[2367][2367]) mkdir_umask=$umask;; | ||||
|           .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | ||||
| 	# Create intermediate dirs using mode 755 as modified by the umask. | ||||
| 	# This is like FreeBSD 'install' as of 1997-10-28. | ||||
| 	umask=`umask` | ||||
| 	case $stripcmd.$umask in | ||||
| 	  # Optimize common cases. | ||||
| 	  *[2367][2367]) mkdir_umask=$umask;; | ||||
| 	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | ||||
|  | ||||
|           *[0-7]) | ||||
|             mkdir_umask=`expr $umask + 22 \ | ||||
|               - $umask % 100 % 40 + $umask % 20 \ | ||||
|               - $umask % 10 % 4 + $umask % 2 | ||||
|             `;; | ||||
|           *) mkdir_umask=$umask,go-w;; | ||||
|         esac | ||||
| 	  *[0-7]) | ||||
| 	    mkdir_umask=`expr $umask + 22 \ | ||||
| 	      - $umask % 100 % 40 + $umask % 20 \ | ||||
| 	      - $umask % 10 % 4 + $umask % 2 | ||||
| 	    `;; | ||||
| 	  *) mkdir_umask=$umask,go-w;; | ||||
| 	esac | ||||
|  | ||||
|         # With -d, create the new directory with the user-specified mode. | ||||
|         # Otherwise, rely on $mkdir_umask. | ||||
|         if test -n "$dir_arg"; then | ||||
|           mkdir_mode=-m$mode | ||||
|         else | ||||
|           mkdir_mode= | ||||
|         fi | ||||
| 	# With -d, create the new directory with the user-specified mode. | ||||
| 	# Otherwise, rely on $mkdir_umask. | ||||
| 	if test -n "$dir_arg"; then | ||||
| 	  mkdir_mode=-m$mode | ||||
| 	else | ||||
| 	  mkdir_mode= | ||||
| 	fi | ||||
|  | ||||
|         posix_mkdir=false | ||||
|         case $umask in | ||||
|           *[123567][0-7][0-7]) | ||||
|             # POSIX mkdir -p sets u+wx bits regardless of umask, which | ||||
|             # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | ||||
|             ;; | ||||
|           *) | ||||
| 	posix_mkdir=false | ||||
| 	case $umask in | ||||
| 	  *[123567][0-7][0-7]) | ||||
| 	    # POSIX mkdir -p sets u+wx bits regardless of umask, which | ||||
| 	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | ||||
| 	    ;; | ||||
| 	  *) | ||||
|             # $RANDOM is not portable (e.g. dash);  use it when possible to | ||||
|             # lower collision chance | ||||
|             tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | ||||
|             trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 | ||||
| 	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | ||||
| 	    trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 | ||||
|  | ||||
|             # As "mkdir -p" follows symlinks and we work in /tmp possibly;  so | ||||
|             # create the $tmpdir first (and fail if unsuccessful) to make sure | ||||
|             # that nobody tries to guess the $tmpdir name. | ||||
|             if (umask $mkdir_umask && | ||||
|                 $mkdirprog $mkdir_mode "$tmpdir" && | ||||
|                 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 | ||||
|             then | ||||
|               if test -z "$dir_arg" || { | ||||
|                    # Check for POSIX incompatibilities with -m. | ||||
|                    # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | ||||
|                    # other-writable bit of parent directory when it shouldn't. | ||||
|                    # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | ||||
|                    test_tmpdir="$tmpdir/a" | ||||
|                    ls_ld_tmpdir=`ls -ld "$test_tmpdir"` | ||||
|                    case $ls_ld_tmpdir in | ||||
|                      d????-?r-*) different_mode=700;; | ||||
|                      d????-?--*) different_mode=755;; | ||||
|                      *) false;; | ||||
|                    esac && | ||||
|                    $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { | ||||
|                      ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` | ||||
|                      test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | ||||
|                    } | ||||
|                  } | ||||
|               then posix_mkdir=: | ||||
|               fi | ||||
|               rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" | ||||
|             else | ||||
|               # Remove any dirs left behind by ancient mkdir implementations. | ||||
|               rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null | ||||
|             fi | ||||
|             trap '' 0;; | ||||
|         esac;; | ||||
| 	     # As "mkdir -p" follows symlinks and we work in /tmp possibly;  so | ||||
| 	     # create the $tmpdir first (and fail if unsuccessful) to make sure | ||||
| 	     # that nobody tries to guess the $tmpdir name. | ||||
| 	    if (umask $mkdir_umask && | ||||
| 		$mkdirprog $mkdir_mode "$tmpdir" && | ||||
| 		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 | ||||
| 	    then | ||||
| 	      if test -z "$dir_arg" || { | ||||
| 		   # Check for POSIX incompatibilities with -m. | ||||
| 		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | ||||
| 		   # other-writable bit of parent directory when it shouldn't. | ||||
| 		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | ||||
| 		   test_tmpdir="$tmpdir/a" | ||||
| 		   ls_ld_tmpdir=`ls -ld "$test_tmpdir"` | ||||
| 		   case $ls_ld_tmpdir in | ||||
| 		     d????-?r-*) different_mode=700;; | ||||
| 		     d????-?--*) different_mode=755;; | ||||
| 		     *) false;; | ||||
| 		   esac && | ||||
| 		   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { | ||||
| 		     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` | ||||
| 		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | ||||
| 		   } | ||||
| 		 } | ||||
| 	      then posix_mkdir=: | ||||
| 	      fi | ||||
| 	      rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" | ||||
| 	    else | ||||
| 	      # Remove any dirs left behind by ancient mkdir implementations. | ||||
| 	      rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null | ||||
| 	    fi | ||||
| 	    trap '' 0;; | ||||
| 	esac;; | ||||
|     esac | ||||
|  | ||||
|     if | ||||
|       $posix_mkdir && ( | ||||
|         umask $mkdir_umask && | ||||
|         $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | ||||
| 	umask $mkdir_umask && | ||||
| 	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | ||||
|       ) | ||||
|     then : | ||||
|     else | ||||
| @ -377,51 +398,53 @@ do | ||||
|       # directory the slow way, step by step, checking for races as we go. | ||||
|  | ||||
|       case $dstdir in | ||||
|         /*) prefix='/';; | ||||
|         [-=\(\)!]*) prefix='./';; | ||||
|         *)  prefix='';; | ||||
| 	/*) prefix='/';; | ||||
| 	[-=\(\)!]*) prefix='./';; | ||||
| 	*)  prefix='';; | ||||
|       esac | ||||
|  | ||||
|       eval "$initialize_posix_glob" | ||||
|  | ||||
|       oIFS=$IFS | ||||
|       IFS=/ | ||||
|       set -f | ||||
|       $posix_glob set -f | ||||
|       set fnord $dstdir | ||||
|       shift | ||||
|       set +f | ||||
|       $posix_glob set +f | ||||
|       IFS=$oIFS | ||||
|  | ||||
|       prefixes= | ||||
|  | ||||
|       for d | ||||
|       do | ||||
|         test X"$d" = X && continue | ||||
| 	test X"$d" = X && continue | ||||
|  | ||||
|         prefix=$prefix$d | ||||
|         if test -d "$prefix"; then | ||||
|           prefixes= | ||||
|         else | ||||
|           if $posix_mkdir; then | ||||
|             (umask=$mkdir_umask && | ||||
|              $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | ||||
|             # Don't fail if two instances are running concurrently. | ||||
|             test -d "$prefix" || exit 1 | ||||
|           else | ||||
|             case $prefix in | ||||
|               *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | ||||
|               *) qprefix=$prefix;; | ||||
|             esac | ||||
|             prefixes="$prefixes '$qprefix'" | ||||
|           fi | ||||
|         fi | ||||
|         prefix=$prefix/ | ||||
| 	prefix=$prefix$d | ||||
| 	if test -d "$prefix"; then | ||||
| 	  prefixes= | ||||
| 	else | ||||
| 	  if $posix_mkdir; then | ||||
| 	    (umask=$mkdir_umask && | ||||
| 	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | ||||
| 	    # Don't fail if two instances are running concurrently. | ||||
| 	    test -d "$prefix" || exit 1 | ||||
| 	  else | ||||
| 	    case $prefix in | ||||
| 	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | ||||
| 	      *) qprefix=$prefix;; | ||||
| 	    esac | ||||
| 	    prefixes="$prefixes '$qprefix'" | ||||
| 	  fi | ||||
| 	fi | ||||
| 	prefix=$prefix/ | ||||
|       done | ||||
|  | ||||
|       if test -n "$prefixes"; then | ||||
|         # Don't fail if two instances are running concurrently. | ||||
|         (umask $mkdir_umask && | ||||
|          eval "\$doit_exec \$mkdirprog $prefixes") || | ||||
|           test -d "$dstdir" || exit 1 | ||||
|         obsolete_mkdir_used=true | ||||
| 	# Don't fail if two instances are running concurrently. | ||||
| 	(umask $mkdir_umask && | ||||
| 	 eval "\$doit_exec \$mkdirprog $prefixes") || | ||||
| 	  test -d "$dstdir" || exit 1 | ||||
| 	obsolete_mkdir_used=true | ||||
|       fi | ||||
|     fi | ||||
|   fi | ||||
| @ -456,12 +479,15 @@ do | ||||
|  | ||||
|     # If -C, don't bother to copy if it wouldn't change the file. | ||||
|     if $copy_on_change && | ||||
|        old=`LC_ALL=C ls -dlL "$dst"     2>/dev/null` && | ||||
|        new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` && | ||||
|        set -f && | ||||
|        old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` && | ||||
|        new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` && | ||||
|  | ||||
|        eval "$initialize_posix_glob" && | ||||
|        $posix_glob set -f && | ||||
|        set X $old && old=:$2:$4:$5:$6 && | ||||
|        set X $new && new=:$2:$4:$5:$6 && | ||||
|        set +f && | ||||
|        $posix_glob set +f && | ||||
|  | ||||
|        test "$old" = "$new" && | ||||
|        $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | ||||
|     then | ||||
| @ -474,24 +500,24 @@ do | ||||
|       # to itself, or perhaps because mv is so ancient that it does not | ||||
|       # support -f. | ||||
|       { | ||||
|         # Now remove or move aside any old file at destination location. | ||||
|         # We try this two ways since rm can't unlink itself on some | ||||
|         # systems and the destination file might be busy for other | ||||
|         # reasons.  In this case, the final cleanup might fail but the new | ||||
|         # file should still install successfully. | ||||
|         { | ||||
|           test ! -f "$dst" || | ||||
|           $doit $rmcmd -f "$dst" 2>/dev/null || | ||||
|           { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | ||||
|             { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | ||||
|           } || | ||||
|           { echo "$0: cannot unlink or rename $dst" >&2 | ||||
|             (exit 1); exit 1 | ||||
|           } | ||||
|         } && | ||||
| 	# Now remove or move aside any old file at destination location. | ||||
| 	# We try this two ways since rm can't unlink itself on some | ||||
| 	# systems and the destination file might be busy for other | ||||
| 	# reasons.  In this case, the final cleanup might fail but the new | ||||
| 	# file should still install successfully. | ||||
| 	{ | ||||
| 	  test ! -f "$dst" || | ||||
| 	  $doit $rmcmd -f "$dst" 2>/dev/null || | ||||
| 	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | ||||
| 	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | ||||
| 	  } || | ||||
| 	  { echo "$0: cannot unlink or rename $dst" >&2 | ||||
| 	    (exit 1); exit 1 | ||||
| 	  } | ||||
| 	} && | ||||
|  | ||||
|         # Now rename the file to the real destination. | ||||
|         $doit $mvcmd "$dsttmp" "$dst" | ||||
| 	# Now rename the file to the real destination. | ||||
| 	$doit $mvcmd "$dsttmp" "$dst" | ||||
|       } | ||||
|     fi || exit 1 | ||||
|  | ||||
|  | ||||
							
								
								
									
										5669
									
								
								moo/ac/ltmain.sh
									
									
									
									
									
								
							
							
						
						
									
										5669
									
								
								moo/ac/ltmain.sh
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -3,7 +3,7 @@ | ||||
|  | ||||
| scriptversion=2013-10-28.13; # UTC | ||||
|  | ||||
| # Copyright (C) 1996-2014 Free Software Foundation, Inc. | ||||
| # Copyright (C) 1996-2013 Free Software Foundation, Inc. | ||||
| # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | ||||
|  | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
|  | ||||
		Reference in New Issue
	
	Block a user