Fossil SCM
Merge the new autosetup mechanism into the trunk.
Commit
f476744d602b78611a3b788868579e1324bd2d11
Parent
11f2f71f4ca93d2…
17 files changed
+11
-3
+44
+8
+35
+1
+93
+63
+30
+314
+307
+1
+10
+275
+130
+15
+2
+5
-1
~
BUILD.txt
~
GNUmakefile.in
~
auto.def
~
autosetup/LICENSE
~
autosetup/README.autosetup
~
autosetup/autosetup
~
autosetup/cc-lib.tcl
~
autosetup/cc-shared.tcl
~
autosetup/cc.tcl
~
autosetup/config.guess
~
autosetup/config.sub
~
autosetup/find-tclsh
~
autosetup/jimsh0.c
~
autosetup/system.tcl
~
autosetup/test-tclsh
~
configure
~
src/config.h
+11
-3
| --- BUILD.txt | ||
| +++ BUILD.txt | ||
| @@ -1,10 +1,18 @@ | ||
| 1 | -All of the source code for fossil is contained in the src/ subdirectory. | |
| 2 | -But there is a lot of generated code, so you will probably want to | |
| 3 | -use the Makefile. To do a complete build on unix, just type: | |
| 1 | +To do a complete build on most unix systems, just type: | |
| 4 | 2 | |
| 5 | 3 | make |
| 4 | + | |
| 5 | +If you have an unusual unix system for which the standard Makefile | |
| 6 | +will not work, or if you want to do some non-standard options, you can | |
| 7 | +also run: | |
| 8 | + | |
| 9 | + ./configure; make | |
| 10 | + | |
| 11 | +The ./configure script builds GNUmakefile which will be used in place | |
| 12 | +of Makefile. Run "./configure --help" for a listing of the available | |
| 13 | +options. | |
| 6 | 14 | |
| 7 | 15 | On a windows box, use one of the Makefiles in the win/ subdirectory, |
| 8 | 16 | according to your compiler and environment. If you have GCC and MSYS |
| 9 | 17 | installed on your system, the consider: |
| 10 | 18 | |
| 11 | 19 | |
| 12 | 20 | ADDED GNUmakefile.in |
| 13 | 21 | ADDED auto.def |
| 14 | 22 | ADDED autosetup/LICENSE |
| 15 | 23 | ADDED autosetup/README.autosetup |
| 16 | 24 | ADDED autosetup/autosetup |
| 17 | 25 | ADDED autosetup/cc-lib.tcl |
| 18 | 26 | ADDED autosetup/cc-shared.tcl |
| 19 | 27 | ADDED autosetup/cc.tcl |
| 20 | 28 | ADDED autosetup/config.guess |
| 21 | 29 | ADDED autosetup/config.sub |
| 22 | 30 | ADDED autosetup/find-tclsh |
| 23 | 31 | ADDED autosetup/jimsh0.c |
| 24 | 32 | ADDED autosetup/system.tcl |
| 25 | 33 | ADDED autosetup/test-tclsh |
| 26 | 34 | ADDED configure |
| --- BUILD.txt | |
| +++ BUILD.txt | |
| @@ -1,10 +1,18 @@ | |
| 1 | All of the source code for fossil is contained in the src/ subdirectory. |
| 2 | But there is a lot of generated code, so you will probably want to |
| 3 | use the Makefile. To do a complete build on unix, just type: |
| 4 | |
| 5 | make |
| 6 | |
| 7 | On a windows box, use one of the Makefiles in the win/ subdirectory, |
| 8 | according to your compiler and environment. If you have GCC and MSYS |
| 9 | installed on your system, the consider: |
| 10 | |
| 11 | |
| 12 | DDED GNUmakefile.in |
| 13 | DDED auto.def |
| 14 | DDED autosetup/LICENSE |
| 15 | DDED autosetup/README.autosetup |
| 16 | DDED autosetup/autosetup |
| 17 | DDED autosetup/cc-lib.tcl |
| 18 | DDED autosetup/cc-shared.tcl |
| 19 | DDED autosetup/cc.tcl |
| 20 | DDED autosetup/config.guess |
| 21 | DDED autosetup/config.sub |
| 22 | DDED autosetup/find-tclsh |
| 23 | DDED autosetup/jimsh0.c |
| 24 | DDED autosetup/system.tcl |
| 25 | DDED autosetup/test-tclsh |
| 26 | DDED configure |
| --- BUILD.txt | |
| +++ BUILD.txt | |
| @@ -1,10 +1,18 @@ | |
| 1 | To do a complete build on most unix systems, just type: |
| 2 | |
| 3 | make |
| 4 | |
| 5 | If you have an unusual unix system for which the standard Makefile |
| 6 | will not work, or if you want to do some non-standard options, you can |
| 7 | also run: |
| 8 | |
| 9 | ./configure; make |
| 10 | |
| 11 | The ./configure script builds GNUmakefile which will be used in place |
| 12 | of Makefile. Run "./configure --help" for a listing of the available |
| 13 | options. |
| 14 | |
| 15 | On a windows box, use one of the Makefiles in the win/ subdirectory, |
| 16 | according to your compiler and environment. If you have GCC and MSYS |
| 17 | installed on your system, the consider: |
| 18 | |
| 19 | |
| 20 | DDED GNUmakefile.in |
| 21 | DDED auto.def |
| 22 | DDED autosetup/LICENSE |
| 23 | DDED autosetup/README.autosetup |
| 24 | DDED autosetup/autosetup |
| 25 | DDED autosetup/cc-lib.tcl |
| 26 | DDED autosetup/cc-shared.tcl |
| 27 | DDED autosetup/cc.tcl |
| 28 | DDED autosetup/config.guess |
| 29 | DDED autosetup/config.sub |
| 30 | DDED autosetup/find-tclsh |
| 31 | DDED autosetup/jimsh0.c |
| 32 | DDED autosetup/system.tcl |
| 33 | DDED autosetup/test-tclsh |
| 34 | DDED configure |
+44
| --- a/GNUmakefile.in | ||
| +++ b/GNUmakefile.in | ||
| @@ -0,0 +1,44 @@ | ||
| 1 | +#!/usr/bin/make | |
| 2 | +# | |
| 3 | +# This is the top-level makefile for Fossil when the build is occurring | |
| 4 | +# on a unix platform. This works out-of-the-box on most unix platforms. | |
| 5 | +# But you are free to vary some of the definitions if desired. | |
| 6 | +# | |
| 7 | +#### The toplevel directory of the source tree. Fossil can be built | |
| 8 | +# in a directory that is separate from the source tree. Just change | |
| 9 | +# the following to point from the build directory to the src/ folder. | |
| 10 | +# | |
| 11 | +SRCDIR = @srcdir@/src | |
| 12 | + | |
| 13 | +#### The directory into which object code files should be written. | |
| 14 | +# | |
| 15 | +# | |
| 16 | +OBJDIR = ./bld | |
| 17 | + | |
| 18 | +#### C Compiler and options for use in building executables that | |
| 19 | +# will run on the platform that is doing the build. This is used | |
| 20 | +# to compile code-generator programs as part of the build process. | |
| 21 | +# See TCC below for the C compiler for building the finished binary. | |
| 22 | +# | |
| 23 | +BCC = @CC_FOR_BUILD@ | |
| 24 | + | |
| 25 | +#### The suffix to add to final executable file. When cross-compiling | |
| 26 | +# to windows, make this ".exe". Otherwise leave it blank. | |
| 27 | +# | |
| 28 | +E = @EXEEXT@ | |
| 29 | + | |
| 30 | +TCC = @CC@ | |
| 31 | + | |
| 32 | +#### Tcl shell for use in running the fossil testsuite. If you do not | |
| 33 | +# care about testing the end result, this can be blank. | |
| 34 | +# | |
| 35 | +TCLSH = tclsh | |
| 36 | + | |
| 37 | +LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ | |
| 38 | +TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHA:VE_AUTOCONFIG_H | |
| 39 | +:fix@/bin | |
| 40 | +USE_SYSTEM_SQLFORM_CHECK_KIND = disable | |
| 41 | + | |
| 42 | +include $(SRCDIR)/main.mk | |
| 43 | + | |
| 44 | +distcl |
| --- a/GNUmakefile.in | |
| +++ b/GNUmakefile.in | |
| @@ -0,0 +1,44 @@ | |
| --- a/GNUmakefile.in | |
| +++ b/GNUmakefile.in | |
| @@ -0,0 +1,44 @@ | |
| 1 | #!/usr/bin/make |
| 2 | # |
| 3 | # This is the top-level makefile for Fossil when the build is occurring |
| 4 | # on a unix platform. This works out-of-the-box on most unix platforms. |
| 5 | # But you are free to vary some of the definitions if desired. |
| 6 | # |
| 7 | #### The toplevel directory of the source tree. Fossil can be built |
| 8 | # in a directory that is separate from the source tree. Just change |
| 9 | # the following to point from the build directory to the src/ folder. |
| 10 | # |
| 11 | SRCDIR = @srcdir@/src |
| 12 | |
| 13 | #### The directory into which object code files should be written. |
| 14 | # |
| 15 | # |
| 16 | OBJDIR = ./bld |
| 17 | |
| 18 | #### C Compiler and options for use in building executables that |
| 19 | # will run on the platform that is doing the build. This is used |
| 20 | # to compile code-generator programs as part of the build process. |
| 21 | # See TCC below for the C compiler for building the finished binary. |
| 22 | # |
| 23 | BCC = @CC_FOR_BUILD@ |
| 24 | |
| 25 | #### The suffix to add to final executable file. When cross-compiling |
| 26 | # to windows, make this ".exe". Otherwise leave it blank. |
| 27 | # |
| 28 | E = @EXEEXT@ |
| 29 | |
| 30 | TCC = @CC@ |
| 31 | |
| 32 | #### Tcl shell for use in running the fossil testsuite. If you do not |
| 33 | # care about testing the end result, this can be blank. |
| 34 | # |
| 35 | TCLSH = tclsh |
| 36 | |
| 37 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 38 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHA:VE_AUTOCONFIG_H |
| 39 | :fix@/bin |
| 40 | USE_SYSTEM_SQLFORM_CHECK_KIND = disable |
| 41 | |
| 42 | include $(SRCDIR)/main.mk |
| 43 | |
| 44 | distcl |
M
auto.def
+8
| --- a/auto.def | ||
| +++ b/auto.def | ||
| @@ -0,0 +1,8 @@ | ||
| 1 | +D markdown=0 => {Build with markdown enginemarkdown]} { | |
| 2 | +MARKDOWMARKDOWipv6=1 =>GNUm qlite3_open sqlite3]} { | |
| 3 | + qlite3_open sqlite3 {-ldl}]} { | |
| 4 | +not found" | |
| 5 | +the libsqlite3.so file cannot be | |
| 6 | + # linked without also specifying -ldl. This is a bug in tEXTRA_LDFLAGS -ldl | |
| 7 | + } | |
| 8 | + } |
| --- a/auto.def | |
| +++ b/auto.def | |
| @@ -0,0 +1,8 @@ | |
| --- a/auto.def | |
| +++ b/auto.def | |
| @@ -0,0 +1,8 @@ | |
| 1 | D markdown=0 => {Build with markdown enginemarkdown]} { |
| 2 | MARKDOWMARKDOWipv6=1 =>GNUm qlite3_open sqlite3]} { |
| 3 | qlite3_open sqlite3 {-ldl}]} { |
| 4 | not found" |
| 5 | the libsqlite3.so file cannot be |
| 6 | # linked without also specifying -ldl. This is a bug in tEXTRA_LDFLAGS -ldl |
| 7 | } |
| 8 | } |
+35
| --- a/autosetup/LICENSE | ||
| +++ b/autosetup/LICENSE | ||
| @@ -0,0 +1,35 @@ | ||
| 1 | +Unless explicitly stated, all files which form part of autosetup | |
| 2 | +are released under the following license: | |
| 3 | + | |
| 4 | +--------------------------------------------------------------------- | |
| 5 | +autosetup - A build environment "autoconfigurator" | |
| 6 | + | |
| 7 | +Copyright (c) 2010-2011, WorkWare Systems <http://workware.net.au/> | |
| 8 | + | |
| 9 | +Redistribution and use in source and binary forms, with or without | |
| 10 | +modification, are permitted provided that the following conditions | |
| 11 | +are met: | |
| 12 | + | |
| 13 | +1. Redistributions of source code must retain the above copyright | |
| 14 | + notice, this list of conditions and the following disclaimer. | |
| 15 | +2. Redistributions in binary form must reproduce the above | |
| 16 | + copyright notice, this list of conditions and the following | |
| 17 | + disclaimer in the documentation and/or other materials | |
| 18 | + provided with the distribution. | |
| 19 | + | |
| 20 | +THIS SOFTWARE IS PROVIDED BY THE WORKWARE SYSTEMS ``AS IS'' AND ANY | |
| 21 | +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | |
| 22 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | |
| 23 | +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WORKWARE | |
| 24 | +SYSTEMS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |
| 25 | +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
| 26 | +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
| 27 | +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 28 | +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 29 | +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
| 30 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
| 31 | +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 32 | + | |
| 33 | +The views and conclusions contained in the software and documentation | |
| 34 | +are those of the authors and should not be interpreted as representing | |
| 35 | +official policies, either expressed or implied, of WorkWare Systems. |
| --- a/autosetup/LICENSE | |
| +++ b/autosetup/LICENSE | |
| @@ -0,0 +1,35 @@ | |
| --- a/autosetup/LICENSE | |
| +++ b/autosetup/LICENSE | |
| @@ -0,0 +1,35 @@ | |
| 1 | Unless explicitly stated, all files which form part of autosetup |
| 2 | are released under the following license: |
| 3 | |
| 4 | --------------------------------------------------------------------- |
| 5 | autosetup - A build environment "autoconfigurator" |
| 6 | |
| 7 | Copyright (c) 2010-2011, WorkWare Systems <http://workware.net.au/> |
| 8 | |
| 9 | Redistribution and use in source and binary forms, with or without |
| 10 | modification, are permitted provided that the following conditions |
| 11 | are met: |
| 12 | |
| 13 | 1. Redistributions of source code must retain the above copyright |
| 14 | notice, this list of conditions and the following disclaimer. |
| 15 | 2. Redistributions in binary form must reproduce the above |
| 16 | copyright notice, this list of conditions and the following |
| 17 | disclaimer in the documentation and/or other materials |
| 18 | provided with the distribution. |
| 19 | |
| 20 | THIS SOFTWARE IS PROVIDED BY THE WORKWARE SYSTEMS ``AS IS'' AND ANY |
| 21 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 22 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| 23 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WORKWARE |
| 24 | SYSTEMS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 25 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 27 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 28 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 29 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 30 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 31 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | |
| 33 | The views and conclusions contained in the software and documentation |
| 34 | are those of the authors and should not be interpreted as representing |
| 35 | official policies, either expressed or implied, of WorkWare Systems. |
| --- a/autosetup/README.autosetup | ||
| +++ b/autosetup/README.autosetup | ||
| @@ -0,0 +1 @@ | ||
| 1 | +This is autosetup v0.6.2. S |
| --- a/autosetup/README.autosetup | |
| +++ b/autosetup/README.autosetup | |
| @@ -0,0 +1 @@ | |
| --- a/autosetup/README.autosetup | |
| +++ b/autosetup/README.autosetup | |
| @@ -0,0 +1 @@ | |
| 1 | This is autosetup v0.6.2. S |
+93
| --- a/autosetup/autosetup | ||
| +++ b/autosetup/autosetup | ||
| @@ -0,0 +1,93 @@ | ||
| 1 | +#!/bin/sh | |
| 2 | +4 => "create an initiaefine | |
| 3 | + } else { | |
| 4 | + return $alias | |
| 5 | + }[error-location $msg]use cc cc-sharedupleve`"$dir/find-tclshexec $($(dirname "$0"bin/sh | |
| 6 | +${m}.tcl | |
| 7 | +uplevel #0 [list source $source]put2put3 "Looking for $source"![string m 2>/dev/null} { | |
| 8 | + set create_configure 1Use --initset cre#!/bin/sh | |
| 9 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 10 | + # we need to fetch the output ourselves | |
| 11 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 12 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 13 | + file delete $tmpfile | |
| 14 | + return -code $rc $result breakn/sh | |
| 15 | +4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh | |
| 16 | +4 => "create an initial 'confbool init]$source#!/bin/sh | |
| 17 | +parray define | |
| 18 | + } else { | |
| 19 | + return $alias | |
| 20 | + }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh | |
| 21 | +${m}.tcl | |
| 22 | +uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh | |
| 23 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 24 | + # we need to fetch the output ourselves | |
| 25 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 26 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 27 | + file delete $tmpfile | |
| 28 | + return -code $rc $result!/bin/sh | |
| 29 | +4 => "create anbool install]} { | |
| 30 | + if {[catch {mp | |
| 31 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 32 | + file delete $tmpfile | |
| 33 | + return -code $rc $result breakn/sh | |
| 34 | +4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh | |
| 35 | +4 => "create an initial 'confbool init]$source#!/bin/sh | |
| 36 | +parray define | |
| 37 | + } else { | |
| 38 | + return $alias | |
| 39 | + }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh | |
| 40 | +${m}.tcl | |
| 41 | +uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh | |
| 42 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 43 | + # we need to fetch the output ourselves | |
| 44 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 45 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 46 | + file delete $tmpfile | |
| 47 | + return -code $rc $result!/bin/sh | |
| 48 | +4 => "create anbool install]} { | |
| 49 | + if {[catch {#!/bn initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh | |
| 50 | +4 => "create an initial 'confbool init]$source#!/bin/sh | |
| 51 | +parray define | |
| 52 | + } else { | |
| 53 | + return $alias | |
| 54 | + }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh | |
| 55 | +${m}.tcl | |
| 56 | +uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh | |
| 57 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 58 | + # we need to fetch the output ourselves | |
| 59 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 60 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 61 | + file delete $tmpfile | |
| 62 | + return -code $rc $result!/bin/sh | |
| 63 | +4 => "create anbool install]} { | |
| 64 | + if {[catch {#!/bin/sh | |
| 65 | +4 => "create an initiaefine | |
| 66 | + } else { | |
| 67 | + return $alias | |
| 68 | + }[error-location $msg]use cc cc-sharedupleve`"$dir/find-tclsh" || echo false`eduplevel #0#!/bin/sh | |
| 69 | +${m}.tcl | |
| 70 | +uplevel #0 [list source $source]put2put3 "Looking for $source"![string m 2>/dev/null} { | |
| 71 | + set create_configure 1Use --initset cre#!/bin/sh | |
| 72 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 73 | + # we need to fetch the output ourselves | |
| 74 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 75 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 76 | + file delete $tmpfile | |
| 77 | + return -code $rc $result breakn/sh | |
| 78 | +4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh | |
| 79 | +4 => "create an initial 'confbool init]$source#!/bin/sh | |
| 80 | +parray define | |
| 81 | + } else { | |
| 82 | + return $alias | |
| 83 | + }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh | |
| 84 | +${m}.tcl | |
| 85 | +uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh | |
| 86 | +4 => "creat # Jim uses system() for exec under mingw, so | |
| 87 | + # we need to fetch the output ourselves | |
| 88 | + set tmpfile auto[format %04x [rand 10000]].tmp | |
| 89 | + set rc [catch [list exec {*}$readfile $tmpfile] | |
| 90 | + file delete $tmpfile | |
| 91 | + return -code $rc $result!/bin/sh | |
| 92 | +4 => "create anbool install]} { | |
| 93 | + if {[catch {miscini$(dirname "$0")$()0 && |
| --- a/autosetup/autosetup | |
| +++ b/autosetup/autosetup | |
| @@ -0,0 +1,93 @@ | |
| --- a/autosetup/autosetup | |
| +++ b/autosetup/autosetup | |
| @@ -0,0 +1,93 @@ | |
| 1 | #!/bin/sh |
| 2 | 4 => "create an initiaefine |
| 3 | } else { |
| 4 | return $alias |
| 5 | }[error-location $msg]use cc cc-sharedupleve`"$dir/find-tclshexec $($(dirname "$0"bin/sh |
| 6 | ${m}.tcl |
| 7 | uplevel #0 [list source $source]put2put3 "Looking for $source"![string m 2>/dev/null} { |
| 8 | set create_configure 1Use --initset cre#!/bin/sh |
| 9 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 10 | # we need to fetch the output ourselves |
| 11 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 12 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 13 | file delete $tmpfile |
| 14 | return -code $rc $result breakn/sh |
| 15 | 4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh |
| 16 | 4 => "create an initial 'confbool init]$source#!/bin/sh |
| 17 | parray define |
| 18 | } else { |
| 19 | return $alias |
| 20 | }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh |
| 21 | ${m}.tcl |
| 22 | uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh |
| 23 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 24 | # we need to fetch the output ourselves |
| 25 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 26 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 27 | file delete $tmpfile |
| 28 | return -code $rc $result!/bin/sh |
| 29 | 4 => "create anbool install]} { |
| 30 | if {[catch {mp |
| 31 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 32 | file delete $tmpfile |
| 33 | return -code $rc $result breakn/sh |
| 34 | 4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh |
| 35 | 4 => "create an initial 'confbool init]$source#!/bin/sh |
| 36 | parray define |
| 37 | } else { |
| 38 | return $alias |
| 39 | }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh |
| 40 | ${m}.tcl |
| 41 | uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh |
| 42 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 43 | # we need to fetch the output ourselves |
| 44 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 45 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 46 | file delete $tmpfile |
| 47 | return -code $rc $result!/bin/sh |
| 48 | 4 => "create anbool install]} { |
| 49 | if {[catch {#!/bn initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh |
| 50 | 4 => "create an initial 'confbool init]$source#!/bin/sh |
| 51 | parray define |
| 52 | } else { |
| 53 | return $alias |
| 54 | }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh |
| 55 | ${m}.tcl |
| 56 | uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh |
| 57 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 58 | # we need to fetch the output ourselves |
| 59 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 60 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 61 | file delete $tmpfile |
| 62 | return -code $rc $result!/bin/sh |
| 63 | 4 => "create anbool install]} { |
| 64 | if {[catch {#!/bin/sh |
| 65 | 4 => "create an initiaefine |
| 66 | } else { |
| 67 | return $alias |
| 68 | }[error-location $msg]use cc cc-sharedupleve`"$dir/find-tclsh" || echo false`eduplevel #0#!/bin/sh |
| 69 | ${m}.tcl |
| 70 | uplevel #0 [list source $source]put2put3 "Looking for $source"![string m 2>/dev/null} { |
| 71 | set create_configure 1Use --initset cre#!/bin/sh |
| 72 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 73 | # we need to fetch the output ourselves |
| 74 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 75 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 76 | file delete $tmpfile |
| 77 | return -code $rc $result breakn/sh |
| 78 | 4 => "create an in"create an initial 'c[lrange $argv $i end]`"$dir/find-tclsh" || echo false`autoconf-hsh |
| 79 | 4 => "create an initial 'confbool init]$source#!/bin/sh |
| 80 | parray define |
| 81 | } else { |
| 82 | return $alias |
| 83 | }[error-location $msg]use cc cc-shareduplevel #0#!/bin/sh |
| 84 | ${m}.tcl |
| 85 | uplevel #0 [list source $source]put2put3 m 2>/dev/nullcreate_configure 1Use --initset cre#!/bin/sh |
| 86 | 4 => "creat # Jim uses system() for exec under mingw, so |
| 87 | # we need to fetch the output ourselves |
| 88 | set tmpfile auto[format %04x [rand 10000]].tmp |
| 89 | set rc [catch [list exec {*}$readfile $tmpfile] |
| 90 | file delete $tmpfile |
| 91 | return -code $rc $result!/bin/sh |
| 92 | 4 => "create anbool install]} { |
| 93 | if {[catch {miscini$(dirname "$0")$()0 && |
+63
| --- a/autosetup/cc-lib.tcl | ||
| +++ b/autosetup/cc-lib.tcl | ||
| @@ -0,0 +1,63 @@ | ||
| 1 | +# Copyright (c) 2011 WorkWare Systems http://www.workware.net.au/ | |
| 2 | +# All rights reserved | |
| 3 | + | |
| 4 | +# @synopsis: | |
| 5 | +# | |
| 6 | +# Provides a library of common tests on top ofmodule-options {}of the 'cc' module. | |
| 7 | + | |
| 8 | +use cc | |
| 9 | + | |
| 10 | +# @cc-check-lfsAC_SYS_LARGEFILE macro | |
| 11 | +# | |
| 12 | +# defines 'HAVE_LFS' if L S is available, | |
| 13 | +# and defines '_FILE_OFFSET_BITS=64' if necessary | |
| 14 | +# | |
| 15 | +# Returns 1 if 'LFS' is available or 0 otherwise | |
| 16 | +# | |
| 17 | +proc cc-check-lfs {} { | |
| 18 | + cc-check-includes sys/types.h | |
| 19 | + msg-checking "Checking if -D_FILE_OFFSET_BITS=64 is needed..." | |
| 20 | + set lfs 1 | |
| 21 | + if {[msg-quiet cc-with {-includes sys/types.h} {cc-check-sizeof off_t}] == 8} { | |
| 22 | + msg-result no | |
| 23 | + } elseif {[msg-quiet cc-with {-includes sys/types.h -cflags -D_FILE_OFFSET_BITS=64} {cc-check-sizeof off_t}] == 8} { | |
| 24 | + define _FILE_OFFSET_BITS 64 | |
| 25 | + msg-result yes | |
| 26 | + } else { | |
| 27 | + set lfs 0 | |
| 28 | + msg-result none | |
| 29 | + } | |
| 30 | + define-feature lfs $lfs | |
| 31 | + return $lfs | |
| 32 | +} | |
| 33 | + | |
| 34 | +# @cc-check-endian | |
| 35 | +# | |
| 36 | +# The equivalent of th eAC_C_BIGENDIAN macroth e 'AC_C_BIGENDIAN' macro. | |
| 37 | +# | |
| 38 | +# defines 'HAVE_BIG_ENDIAN' if endian is known to be big, | |
| 39 | +# or 'HAVE_LITTLE_ENDIAN' if endian is known to be little. | |
| 40 | +# | |
| 41 | +# Returns 1 if determined, or 0 if not. | |
| 42 | +# | |
| 43 | +proc cc-check-endian {} { | |
| 44 | + cc-check-includes sys/types.h sys/param.h | |
| 45 | + set rc 0 | |
| 46 | + msg-checking "Checking endian..." | |
| 47 | + cc-with {-includes {sys/types.h sys/param.h}} { | |
| 48 | + if {[cctest -code { | |
| 49 | + #if! ! defined(LITTLE_ENDIAN) || !defined(BYTE_ORDER) | |
| 50 | + #error unknown | |
| 51 | + #elif BYTE_ORDER != LITTLE_ENDIAN | |
| 52 | + #error big | |
| 53 | + #endif | |
| 54 | + }]} { | |
| 55 | + define-feature little-endian | |
| 56 | + msg-result "little" | |
| 57 | + set rc 1 | |
| 58 | + } else { | |
| 59 | + msg-result "unknown" | |
| 60 | + } | |
| 61 | + } | |
| 62 | + return $rc | |
| 63 | +} |
| --- a/autosetup/cc-lib.tcl | |
| +++ b/autosetup/cc-lib.tcl | |
| @@ -0,0 +1,63 @@ | |
| --- a/autosetup/cc-lib.tcl | |
| +++ b/autosetup/cc-lib.tcl | |
| @@ -0,0 +1,63 @@ | |
| 1 | # Copyright (c) 2011 WorkWare Systems http://www.workware.net.au/ |
| 2 | # All rights reserved |
| 3 | |
| 4 | # @synopsis: |
| 5 | # |
| 6 | # Provides a library of common tests on top ofmodule-options {}of the 'cc' module. |
| 7 | |
| 8 | use cc |
| 9 | |
| 10 | # @cc-check-lfsAC_SYS_LARGEFILE macro |
| 11 | # |
| 12 | # defines 'HAVE_LFS' if L S is available, |
| 13 | # and defines '_FILE_OFFSET_BITS=64' if necessary |
| 14 | # |
| 15 | # Returns 1 if 'LFS' is available or 0 otherwise |
| 16 | # |
| 17 | proc cc-check-lfs {} { |
| 18 | cc-check-includes sys/types.h |
| 19 | msg-checking "Checking if -D_FILE_OFFSET_BITS=64 is needed..." |
| 20 | set lfs 1 |
| 21 | if {[msg-quiet cc-with {-includes sys/types.h} {cc-check-sizeof off_t}] == 8} { |
| 22 | msg-result no |
| 23 | } elseif {[msg-quiet cc-with {-includes sys/types.h -cflags -D_FILE_OFFSET_BITS=64} {cc-check-sizeof off_t}] == 8} { |
| 24 | define _FILE_OFFSET_BITS 64 |
| 25 | msg-result yes |
| 26 | } else { |
| 27 | set lfs 0 |
| 28 | msg-result none |
| 29 | } |
| 30 | define-feature lfs $lfs |
| 31 | return $lfs |
| 32 | } |
| 33 | |
| 34 | # @cc-check-endian |
| 35 | # |
| 36 | # The equivalent of th eAC_C_BIGENDIAN macroth e 'AC_C_BIGENDIAN' macro. |
| 37 | # |
| 38 | # defines 'HAVE_BIG_ENDIAN' if endian is known to be big, |
| 39 | # or 'HAVE_LITTLE_ENDIAN' if endian is known to be little. |
| 40 | # |
| 41 | # Returns 1 if determined, or 0 if not. |
| 42 | # |
| 43 | proc cc-check-endian {} { |
| 44 | cc-check-includes sys/types.h sys/param.h |
| 45 | set rc 0 |
| 46 | msg-checking "Checking endian..." |
| 47 | cc-with {-includes {sys/types.h sys/param.h}} { |
| 48 | if {[cctest -code { |
| 49 | #if! ! defined(LITTLE_ENDIAN) || !defined(BYTE_ORDER) |
| 50 | #error unknown |
| 51 | #elif BYTE_ORDER != LITTLE_ENDIAN |
| 52 | #error big |
| 53 | #endif |
| 54 | }]} { |
| 55 | define-feature little-endian |
| 56 | msg-result "little" |
| 57 | set rc 1 |
| 58 | } else { |
| 59 | msg-result "unknown" |
| 60 | } |
| 61 | } |
| 62 | return $rc |
| 63 | } |
+30
| --- a/autosetup/cc-shared.tcl | ||
| +++ b/autosetup/cc-shared.tcl | ||
| @@ -0,0 +1,30 @@ | ||
| 1 | +# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 2 | +# All rights reserved | |
| 3 | + | |
| 4 | +# @synopsis: | |
| 5 | +# | |
| 6 | +# The 'cc-shared' module provides support for shared libraries and shared objects. | |
| 7 | +# It defines the following variables: | |
| 8 | +# | |
| 9 | +## SH_CFLAGS Flags to use compiling sources destined for a shared library | |
| 10 | +## SH_LDFLAGS Flags to use linking t the soname when cread libs - %s = version | |
| 11 | +## SHOBJ_CFLAGS Flags to use compiling sources destined for a shared object | |
| 12 | +## ll symbols table, %s = path | |
| 13 | +## SH_LINKFLAGS Flags to use linking an executable which will load shared objects | |
| 14 | +## LD_LIBRARY_PATH Environment variable which specifie | |
| 15 | +module-options {} | |
| 16 | + | |
| 17 | +foreach i {SH_LINKFLAGS SH_CFLAGS SH_LDFLAGS SHOBJ_CFLAGS SHOBJ_LLD_LIBRARY_PATH define SHOBJ_LDFLAGS_R -bobject | |
| 18 | +## SHOBJ_LDFLAGS Flags to are System# Copyright ( Flags to usDYLD_LIBRARY_PATH | |
| 19 | + } | |
| 20 | + *-*-ming* {sharedOBJ_LDFLAGSshared} | |
| 21 | + *-*-solaris* { | |
| 22 | +# Copyright (c) 20mwed | |
| 23 | +## SHOBJ_LD-Kpic Flags to us-Kpic"-G" | |
| 24 | +define LD_LIBthe toolch-strip-unneeded | |
| 25 | + | |
| 26 | +# Note: Thiain | |
| 27 | +# http://sourceforge sparc* { | |
| 28 | +AGS SHOBJ_LDFLAGS_rdynamicference for identify-fPICshared Flags to us-fPIC} | |
| 29 | + * { | |
| 30 | + # Generic Unix settingsstems http://www.workwa# Copyrigference for identifying PICmicference for idCtify-fPfPICicference for identify-f |
| --- a/autosetup/cc-shared.tcl | |
| +++ b/autosetup/cc-shared.tcl | |
| @@ -0,0 +1,30 @@ | |
| --- a/autosetup/cc-shared.tcl | |
| +++ b/autosetup/cc-shared.tcl | |
| @@ -0,0 +1,30 @@ | |
| 1 | # Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 2 | # All rights reserved |
| 3 | |
| 4 | # @synopsis: |
| 5 | # |
| 6 | # The 'cc-shared' module provides support for shared libraries and shared objects. |
| 7 | # It defines the following variables: |
| 8 | # |
| 9 | ## SH_CFLAGS Flags to use compiling sources destined for a shared library |
| 10 | ## SH_LDFLAGS Flags to use linking t the soname when cread libs - %s = version |
| 11 | ## SHOBJ_CFLAGS Flags to use compiling sources destined for a shared object |
| 12 | ## ll symbols table, %s = path |
| 13 | ## SH_LINKFLAGS Flags to use linking an executable which will load shared objects |
| 14 | ## LD_LIBRARY_PATH Environment variable which specifie |
| 15 | module-options {} |
| 16 | |
| 17 | foreach i {SH_LINKFLAGS SH_CFLAGS SH_LDFLAGS SHOBJ_CFLAGS SHOBJ_LLD_LIBRARY_PATH define SHOBJ_LDFLAGS_R -bobject |
| 18 | ## SHOBJ_LDFLAGS Flags to are System# Copyright ( Flags to usDYLD_LIBRARY_PATH |
| 19 | } |
| 20 | *-*-ming* {sharedOBJ_LDFLAGSshared} |
| 21 | *-*-solaris* { |
| 22 | # Copyright (c) 20mwed |
| 23 | ## SHOBJ_LD-Kpic Flags to us-Kpic"-G" |
| 24 | define LD_LIBthe toolch-strip-unneeded |
| 25 | |
| 26 | # Note: Thiain |
| 27 | # http://sourceforge sparc* { |
| 28 | AGS SHOBJ_LDFLAGS_rdynamicference for identify-fPICshared Flags to us-fPIC} |
| 29 | * { |
| 30 | # Generic Unix settingsstems http://www.workwa# Copyrigference for identifying PICmicference for idCtify-fPfPICicference for identify-f |
+314
| --- a/autosetup/cc.tcl | ||
| +++ b/autosetup/cc.tcl | ||
| @@ -0,0 +1,314 @@ | ||
| 1 | +# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 2 | +# All rights reserved | |
| 3 | + | |
| 4 | +# @synopsis: | |
| 5 | +# | |
| 6 | +# The 'cc' module supports checking various 'features' of the C or C++ | |
| 7 | +# compiler/linker environment. Common commands are , | |
| 8 | +# cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: | |
| 9 | +# | |
| 10 | +## CC - C compiler | |
| 11 | +## CXX - C++ compiler | |
| 12 | +## CPP - C preprocessor | |
| 13 | +##CACHE - Set to "none" to disable automatic use of ccache | |
| 14 | +## Ciler flags | |
| 15 | +## CXXFLAGS - Additional C++ compiler flags | |
| 16 | +## LDFLAGS - Additional compiler flags during linking | |
| 17 | +## LINKFLAGS - ?How is this diffes to use (for all tests) | |
| 18 | +## CROSS - Tool prefix for cross compilation | |
| 19 | +# | |
| 20 | +# The following variables are defined from the corresponding | |
| 21 | +# environment variables if set. | |
| 22 | +# | |
| 23 | +## CC_FOR_BUILD | |
| 24 | +## LD | |
| 25 | + | |
| 26 | +use systPPFLAGS | |
| 27 | +## LINKFLAGSmodule-options {} | |
| 28 | + | |
| 29 | +# Checks for the existence of the giveNote that the return code is not meaningful | |
| 30 | +proc cc-check-something {name code} { | |
| 31 | + uplevel 1 $codee given type/strunction {function} { | |
| 32 | + cctest -link 1 -declare "extern void $function\(void);" -code "$function\();" | |
| 33 | +} | |
| 34 | + | |
| 35 | +# Checks for the existence of the given type by compiling | |
| 36 | +proc cctest_type {type} { | |
| 37 | + cctest -code "$type _x;" | |
| 38 | +} | |
| 39 | + | |
| 40 | +# Checks for the existence of the given type/structure member. | |
| 41 | +# e.g. "struct stat.st_mtime" | |
| 42 | +proc cctest_member {struct_member} { | |
| 43 | + # split at the first dot | |
| 44 | + regexp {^([^.]+)[.](.*)$} $lassign me;\n#endif" | |
| 45 | +} | |
| 46 | + | |
| 47 | +# @cc-ch | |
| 48 | +# e.g. "struct stypeses a variable with the 4 8 1 2 16 32} { | |
| 49 | + if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { | |
| 50 | + set size $i | |
| 51 | + break | |
| 52 | + } | |
| 53 | + } | |
| 54 | + msg-result $size | |
| 55 | + set define [feature-define-name $type SIZEOF_] | |
| 56 | + define $define $size | |
| 57 | + } | |
| 58 | + # Return the last result | |
| 59 | + get-define $define | |
| 60 | +} | |
| 61 | + | |
| 62 | +# Checks for each feature in $list by using the given script. | |
| 63 | +# | |
| 64 | +# When the script is evaluated, $each is set to the feature | |
| 65 | +# being checked, and $extra is set to any additional cctest args. | |
| 66 | +# | |
| 67 | +# Returns 1 if all features were found, or 0 otherwise. | |
| 68 | +proc cc-check-some-feature {list script} { | |
| 69 | + set ret 1 | |
| 70 | + foreach each $list { | |
| 71 | + if {![check-feature $each $script]} { | |
| 72 | + set ret 0 | |
| 73 | + } | |
| 74 | + } | |
| 75 | + return $ret | |
| 76 | +} | |
| 77 | + | |
| 78 | +# @cc-check-includes includes ... | |
| 79 | +# | |
| 80 | +# Checks that the given include files can be used. | |
| 81 | +proc cc-check-includes {args} { | |
| 82 | + c | |
| 83 | +procproc cctest_define {cc-check-some-xp {^([^.]+)[.](.*)$} $struct_member -> struct member | |
| 84 | + cctest -code "static $struct _s; return sizeof(_s.$member);" | |
| 85 | +} | |
| 86 | + | |
| 87 | +# Checks for the existence of the given define by compiling | |
| 88 | +# | |
| 89 | +proc cctest_define {name} { | |
| 90 | + cctest -code "#ifndef $name\n#error not defined\n#endif" | |
| 91 | +} | |
| 92 | + | |
| 93 | +# Checks forcks that the given include files can be used. | |
| 94 | +proc cc-check-includes {args} { | |
| 95 | + cc-check-some-feature $args { | |
| 96 | + set with {} | |
| 97 | + if {[dict exists $::autosetup(cc-include-deps) $each]} { | |
| 98 | + set deps! cc-check-include$exeecks tha]} { | |
| 99 | + cc-with [list -includes $w } | |
| 100 | + define $TOOL $exeed if set: | |
| 101 | +# | |
| 102 | +## CC | |
| 103 | +# @synopsis: | |
| 104 | +# | |
| 105 | +# The 'cc' module supports checking various 'features' of the C or C++ | |
| 106 | +# compiler/linker environment. Common commands are , | |
| 107 | +# cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: | |
| 108 | +# | |
| 109 | +## CC - C compiler | |
| 110 | +## CXX - C++ compiler | |
| 111 | +## CPP - C preprocessor | |
| 112 | +##CACHE - Set to "none" to disable automatic use of ccache | |
| 113 | +## Ciler flags | |
| 114 | +## CXXFLAGS - Additional C++ compiler flags | |
| 115 | +## LDFLAGS - Additional compiler flags during linking | |
| 116 | +## LINKFLAGS - ?How is this diffes to use (for all tests) | |
| 117 | +## CROSS - Tool prefix for cross compilation | |
| 118 | +# | |
| 119 | +# The following variables are defined from the corresponding | |
| 120 | +# environment variables if set. | |
| 121 | +# | |
| 122 | +## CC_FOR_BUILD | |
| 123 | +## LD | |
| 124 | + | |
| 125 | +use systPPFLAGS | |
| 126 | +## LINKFLAGSmodule-options {} | |
| 127 | + | |
| 128 | +# Checks for the existence of the giveNote that the return code is not meaningful | |
| 129 | +proc cc-check-something {name code} { | |
| 130 | + uplevel 1 $codee given type/strunction {function} { | |
| 131 | + cctest -link 1 -declare "extern void $function\(void);" -code "$function\();" | |
| 132 | +} | |
| 133 | + | |
| 134 | +# Checks for the existence of the given type by compiling | |
| 135 | +proc cctest_type {type} { | |
| 136 | + cctest -code "$type _x;" | |
| 137 | +} | |
| 138 | + | |
| 139 | +# Checks for the existence of the given type/structure member. | |
| 140 | +# e.g. "struct stat.st_mtime" | |
| 141 | +proc cctest_member {struct_member} { | |
| 142 | + # split at the first dot | |
| 143 | + regexp {^([^.]+)[.](.*)$} $lassign [split $struct_member .]rn sizeof(_s.$member);" | |
| 144 | +} | |
| 145 | + | |
| 146 | +# Checks for the existence of the given define by compiling | |
| 147 | +# | |
| 148 | +proc cctest_define {name} { | |
| 149 | + cctest -code "#ifndef $name\n#error not defined\n#endif" | |
| 150 | +} | |
| 151 | + | |
| 152 | +# Checks for the existence of the given name either as | |
| 153 | +# a macro (#define) or an rvalue (such as an enum) | |
| 154 | +# | |
| 155 | +proc cctest_decl {name} { | |
| 156 | + cctest -code "#ifndef $name\n(void)$name;\n#endif" | |
| 157 | +} | |
| 158 | + | |
| 159 | +# @cc-check-sizeof type ... | |
| 160 | +# | |
| 161 | +# Checks the size of the given types (between 1 and 32, inclusive). | |
| 162 | +# Defines a variable with the size determined, or 'unknown'"unknown"ng', defines 'SIZEOF_LSIZEOF_LONG_LONGe. | |
| 163 | +# | |
| 164 | +proc cc-check-sizeof {args} { | |
| 165 | + foreach type $args { | |
| 166 | + msg-checking "Checking for sizeof $type..." | |
| 167 | + set size unknown | |
| 168 | + # Try the most common sizes first | |
| 169 | + foreach i {4 8 1 2 16 32} { | |
| 170 | + if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { | |
| 171 | + set size $i | |
| 172 | + break | |
| 173 | + } | |
| 174 | + } | |
| 175 | + msg-result $size | |
| 176 | + set define [feature-define-name $type SIZEOF_] | |
| 177 | + define $define $size | |
| 178 | + } | |
| 179 | + # Return the last result | |
| 180 | + get-define $define | |
| 181 | +} | |
| 182 | + | |
| 183 | +# Checks for each feature in $list by using the given script. | |
| 184 | +# | |
| 185 | +# When the script is evaluated, $each is set to the feature | |
| 186 | +# being checked, and $extra is set to any additional cctest args. | |
| 187 | +# | |
| 188 | +# Returns 1 if all features were found, or 0 otherwise. | |
| 189 | +proc cc-check-some-feature {list script} { | |
| 190 | + set ret 1 | |
| 191 | + foreach each $list { | |
| 192 | + if {![check-feature $each $script]} { | |
| 193 | + set ret 0 | |
| 194 | + } | |
| 195 | + } | |
| 196 | + return $ret | |
| 197 | +} | |
| 198 | + | |
| 199 | +# @cc-check-includes includes ... | |
| 200 | +# | |
| 201 | +# Checks that the given include files can be used. | |
| 202 | +proc cc-check-includes {args} { | |
| 203 | + c | |
| 204 | +procproc cctest_define {cc-check-some-xp {^([^.]+)[.](.*)$} $struct_member -> struct member | |
| 205 | + cctest -code "static $struct _s; return sizeof(_s.$member);" | |
| 206 | +} | |
| 207 | + | |
| 208 | +# Checks for the existence of the given define by compiling | |
| 209 | +# | |
| 210 | +proc cctest_define {name} { | |
| 211 | + cctest -code "#ifndef $name\n#error not defined\n#endif" | |
| 212 | +} | |
| 213 | + | |
| 214 | +# Checks for the existence of the given name either as | |
| 215 | +# a macro (#define) or an rvalue (such as an enum) | |
| 216 | +# | |
| 217 | +proc cctest_decl {name} { | |
| 218 | + cctest -code "#ifndef $name\n(void)$name;\n#endif" | |
| 219 | +} | |
| 220 | + given types (bet#includeddetermined, or 'unknown' otherwise. | |
| 221 | +# e.g. for type 'long long', defines 'SIZEOF_LONG_LONG'. | |
| 222 | +# Returns the size of the last type. | |
| 223 | +# | |
| 224 | +proc cc-check-sizeof {args} { | |
| 225 | + foreach type $adfirst dot | |
| 226 | + regexp {^([^.]+)[.](.*)$} $struct_member -> struct member | |
| 227 | + cctest -code "static $struct _s; return sizeof(_s.$member);" | |
| 228 | +} | |
| 229 | + | |
| 230 | +# Checks for the existence of the given define by compiling | |
| 231 | +# | |
| 232 | +proc cctest_define FLAGS - ?How is this di# @synopsis: | |
| 233 | +# | |
| 234 | +# The 'cc' module supports checking various 'features' of the C or C++ | |
| 235 | +# compiler/linker environment. Common commands are , | |
| 236 | +# cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: | |
| 237 | +# | |
| 238 | +## CC - C compiler | |
| 239 | +## CXX - C++ compiler | |
| 240 | +## CPP - C preprocessor | |
| 241 | +##CACHE - Set to "none" to disfor a declsable automatic use of ccache | |
| 242 | +## Ciler flags | |
| 243 | +## C# Copyright (c) 2010 Work foreach type $args { | |
| 244 | + msg-checking "Checking for sizeof $type..." | |
| 245 | + set size unknown | |
| 246 | + # Try the most common sizes first | |
| 247 | + foreach i {4 8 1 2 16 32} { | |
| 248 | + if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { | |
| 249 | + set size $i | |
| 250 | + break | |
| 251 | + } | |
| 252 | + } | |
| 253 | + msg-result $size | |
| 254 | + set define [feature-define-name $type SIZEOF_] | |
| 255 | + define $define $size | |
| 256 | + } | |
| 257 | + # Return the last result | |
| 258 | + get-define $define | |
| 259 | +} | |
| 260 | + | |
| 261 | +# Checks for each feature in $list by using the given script. | |
| 262 | +# | |
| 263 | +# When the script is evaluated, $each is set to the feature | |
| 264 | +# being checked, and $extra is set to any additional cctest args. | |
| 265 | +# | |
| 266 | +# Returns 1 if all features were found, or 0 otherwise. | |
| 267 | +proc cc-check-some-feature {list script} { | |
| 268 | + set ret 1ch $script]} { | |
| 269 | + set ret 0 | |
| 270 | + } | |
| 271 | + } | |
| 272 | + return $ret | |
| 273 | +} | |
| 274 | + | |
| 275 | +# @cc-check-includes includes ... | |
| 276 | +# | |
| 277 | +# Checks that the given include files can be used. | |
| 278 | +proc cc-check-includes {args} { | |
| 279 | + cc-check-some-feature $args { | |
| 280 | + set with {} | |
| 281 | + if {[dict exists $::autosetup(cc-include-deps) $each]} { | |
| 282 | + set deps [dict keys [dict get $::autosetup(cc-include-deps) $each]] | |
| 283 | + msg-quiet cc-check-includes {*}$deps | |
| 284 | + foreach i $deps { | |
| 285 | + if {[have-feature $i]} { | |
| 286 | + lappend with $i | |
| 287 | +ure $each $scriptargs { | |
| 288 | + set new($name) $value | |
| 289 | + } $i]} { | |
| 290 | + lappend$newme\n(void)$name;\n#th]} { | |
| 291 | + cc-with [list -includes $with] { | |
| 292 | + cctest -includes $each | |
| 293 | + } | |
| 294 | + } else { | |
| 295 | + cctest -includes $each | |
| 296 | + } | |
| 297 | + } | |
| 298 | +} | |
| 299 | + | |
| 300 | +# @cc-include-needs include required ... | |
| 301 | +# | |
| 302 | +# Ensures that when checking for '$include', a check is first | |
| 303 | +# made for eachtk is first | |
| 304 | +# made for each '$required' file, and if found, it is included with '#include'. | |
| 305 | +proc cc-include-needs {file args} { | |
| 306 | + foreach depfile $args { | |
| 307 | + dict set ::autosetup(cc-include-deps) $file $depfile 1 | |
| 308 | + } | |
| 309 | +} | |
| 310 | + | |
| 311 | +# C *-*-darwin* { | |
| 312 | + # Don't-gstabs | |
| 313 | + } | |
| 314 | + }$value$valuecc-check-tools ld.o {CC_FOR_BUILD ccACHE |
| --- a/autosetup/cc.tcl | |
| +++ b/autosetup/cc.tcl | |
| @@ -0,0 +1,314 @@ | |
| --- a/autosetup/cc.tcl | |
| +++ b/autosetup/cc.tcl | |
| @@ -0,0 +1,314 @@ | |
| 1 | # Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 2 | # All rights reserved |
| 3 | |
| 4 | # @synopsis: |
| 5 | # |
| 6 | # The 'cc' module supports checking various 'features' of the C or C++ |
| 7 | # compiler/linker environment. Common commands are , |
| 8 | # cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: |
| 9 | # |
| 10 | ## CC - C compiler |
| 11 | ## CXX - C++ compiler |
| 12 | ## CPP - C preprocessor |
| 13 | ##CACHE - Set to "none" to disable automatic use of ccache |
| 14 | ## Ciler flags |
| 15 | ## CXXFLAGS - Additional C++ compiler flags |
| 16 | ## LDFLAGS - Additional compiler flags during linking |
| 17 | ## LINKFLAGS - ?How is this diffes to use (for all tests) |
| 18 | ## CROSS - Tool prefix for cross compilation |
| 19 | # |
| 20 | # The following variables are defined from the corresponding |
| 21 | # environment variables if set. |
| 22 | # |
| 23 | ## CC_FOR_BUILD |
| 24 | ## LD |
| 25 | |
| 26 | use systPPFLAGS |
| 27 | ## LINKFLAGSmodule-options {} |
| 28 | |
| 29 | # Checks for the existence of the giveNote that the return code is not meaningful |
| 30 | proc cc-check-something {name code} { |
| 31 | uplevel 1 $codee given type/strunction {function} { |
| 32 | cctest -link 1 -declare "extern void $function\(void);" -code "$function\();" |
| 33 | } |
| 34 | |
| 35 | # Checks for the existence of the given type by compiling |
| 36 | proc cctest_type {type} { |
| 37 | cctest -code "$type _x;" |
| 38 | } |
| 39 | |
| 40 | # Checks for the existence of the given type/structure member. |
| 41 | # e.g. "struct stat.st_mtime" |
| 42 | proc cctest_member {struct_member} { |
| 43 | # split at the first dot |
| 44 | regexp {^([^.]+)[.](.*)$} $lassign me;\n#endif" |
| 45 | } |
| 46 | |
| 47 | # @cc-ch |
| 48 | # e.g. "struct stypeses a variable with the 4 8 1 2 16 32} { |
| 49 | if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { |
| 50 | set size $i |
| 51 | break |
| 52 | } |
| 53 | } |
| 54 | msg-result $size |
| 55 | set define [feature-define-name $type SIZEOF_] |
| 56 | define $define $size |
| 57 | } |
| 58 | # Return the last result |
| 59 | get-define $define |
| 60 | } |
| 61 | |
| 62 | # Checks for each feature in $list by using the given script. |
| 63 | # |
| 64 | # When the script is evaluated, $each is set to the feature |
| 65 | # being checked, and $extra is set to any additional cctest args. |
| 66 | # |
| 67 | # Returns 1 if all features were found, or 0 otherwise. |
| 68 | proc cc-check-some-feature {list script} { |
| 69 | set ret 1 |
| 70 | foreach each $list { |
| 71 | if {![check-feature $each $script]} { |
| 72 | set ret 0 |
| 73 | } |
| 74 | } |
| 75 | return $ret |
| 76 | } |
| 77 | |
| 78 | # @cc-check-includes includes ... |
| 79 | # |
| 80 | # Checks that the given include files can be used. |
| 81 | proc cc-check-includes {args} { |
| 82 | c |
| 83 | procproc cctest_define {cc-check-some-xp {^([^.]+)[.](.*)$} $struct_member -> struct member |
| 84 | cctest -code "static $struct _s; return sizeof(_s.$member);" |
| 85 | } |
| 86 | |
| 87 | # Checks for the existence of the given define by compiling |
| 88 | # |
| 89 | proc cctest_define {name} { |
| 90 | cctest -code "#ifndef $name\n#error not defined\n#endif" |
| 91 | } |
| 92 | |
| 93 | # Checks forcks that the given include files can be used. |
| 94 | proc cc-check-includes {args} { |
| 95 | cc-check-some-feature $args { |
| 96 | set with {} |
| 97 | if {[dict exists $::autosetup(cc-include-deps) $each]} { |
| 98 | set deps! cc-check-include$exeecks tha]} { |
| 99 | cc-with [list -includes $w } |
| 100 | define $TOOL $exeed if set: |
| 101 | # |
| 102 | ## CC |
| 103 | # @synopsis: |
| 104 | # |
| 105 | # The 'cc' module supports checking various 'features' of the C or C++ |
| 106 | # compiler/linker environment. Common commands are , |
| 107 | # cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: |
| 108 | # |
| 109 | ## CC - C compiler |
| 110 | ## CXX - C++ compiler |
| 111 | ## CPP - C preprocessor |
| 112 | ##CACHE - Set to "none" to disable automatic use of ccache |
| 113 | ## Ciler flags |
| 114 | ## CXXFLAGS - Additional C++ compiler flags |
| 115 | ## LDFLAGS - Additional compiler flags during linking |
| 116 | ## LINKFLAGS - ?How is this diffes to use (for all tests) |
| 117 | ## CROSS - Tool prefix for cross compilation |
| 118 | # |
| 119 | # The following variables are defined from the corresponding |
| 120 | # environment variables if set. |
| 121 | # |
| 122 | ## CC_FOR_BUILD |
| 123 | ## LD |
| 124 | |
| 125 | use systPPFLAGS |
| 126 | ## LINKFLAGSmodule-options {} |
| 127 | |
| 128 | # Checks for the existence of the giveNote that the return code is not meaningful |
| 129 | proc cc-check-something {name code} { |
| 130 | uplevel 1 $codee given type/strunction {function} { |
| 131 | cctest -link 1 -declare "extern void $function\(void);" -code "$function\();" |
| 132 | } |
| 133 | |
| 134 | # Checks for the existence of the given type by compiling |
| 135 | proc cctest_type {type} { |
| 136 | cctest -code "$type _x;" |
| 137 | } |
| 138 | |
| 139 | # Checks for the existence of the given type/structure member. |
| 140 | # e.g. "struct stat.st_mtime" |
| 141 | proc cctest_member {struct_member} { |
| 142 | # split at the first dot |
| 143 | regexp {^([^.]+)[.](.*)$} $lassign [split $struct_member .]rn sizeof(_s.$member);" |
| 144 | } |
| 145 | |
| 146 | # Checks for the existence of the given define by compiling |
| 147 | # |
| 148 | proc cctest_define {name} { |
| 149 | cctest -code "#ifndef $name\n#error not defined\n#endif" |
| 150 | } |
| 151 | |
| 152 | # Checks for the existence of the given name either as |
| 153 | # a macro (#define) or an rvalue (such as an enum) |
| 154 | # |
| 155 | proc cctest_decl {name} { |
| 156 | cctest -code "#ifndef $name\n(void)$name;\n#endif" |
| 157 | } |
| 158 | |
| 159 | # @cc-check-sizeof type ... |
| 160 | # |
| 161 | # Checks the size of the given types (between 1 and 32, inclusive). |
| 162 | # Defines a variable with the size determined, or 'unknown'"unknown"ng', defines 'SIZEOF_LSIZEOF_LONG_LONGe. |
| 163 | # |
| 164 | proc cc-check-sizeof {args} { |
| 165 | foreach type $args { |
| 166 | msg-checking "Checking for sizeof $type..." |
| 167 | set size unknown |
| 168 | # Try the most common sizes first |
| 169 | foreach i {4 8 1 2 16 32} { |
| 170 | if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { |
| 171 | set size $i |
| 172 | break |
| 173 | } |
| 174 | } |
| 175 | msg-result $size |
| 176 | set define [feature-define-name $type SIZEOF_] |
| 177 | define $define $size |
| 178 | } |
| 179 | # Return the last result |
| 180 | get-define $define |
| 181 | } |
| 182 | |
| 183 | # Checks for each feature in $list by using the given script. |
| 184 | # |
| 185 | # When the script is evaluated, $each is set to the feature |
| 186 | # being checked, and $extra is set to any additional cctest args. |
| 187 | # |
| 188 | # Returns 1 if all features were found, or 0 otherwise. |
| 189 | proc cc-check-some-feature {list script} { |
| 190 | set ret 1 |
| 191 | foreach each $list { |
| 192 | if {![check-feature $each $script]} { |
| 193 | set ret 0 |
| 194 | } |
| 195 | } |
| 196 | return $ret |
| 197 | } |
| 198 | |
| 199 | # @cc-check-includes includes ... |
| 200 | # |
| 201 | # Checks that the given include files can be used. |
| 202 | proc cc-check-includes {args} { |
| 203 | c |
| 204 | procproc cctest_define {cc-check-some-xp {^([^.]+)[.](.*)$} $struct_member -> struct member |
| 205 | cctest -code "static $struct _s; return sizeof(_s.$member);" |
| 206 | } |
| 207 | |
| 208 | # Checks for the existence of the given define by compiling |
| 209 | # |
| 210 | proc cctest_define {name} { |
| 211 | cctest -code "#ifndef $name\n#error not defined\n#endif" |
| 212 | } |
| 213 | |
| 214 | # Checks for the existence of the given name either as |
| 215 | # a macro (#define) or an rvalue (such as an enum) |
| 216 | # |
| 217 | proc cctest_decl {name} { |
| 218 | cctest -code "#ifndef $name\n(void)$name;\n#endif" |
| 219 | } |
| 220 | given types (bet#includeddetermined, or 'unknown' otherwise. |
| 221 | # e.g. for type 'long long', defines 'SIZEOF_LONG_LONG'. |
| 222 | # Returns the size of the last type. |
| 223 | # |
| 224 | proc cc-check-sizeof {args} { |
| 225 | foreach type $adfirst dot |
| 226 | regexp {^([^.]+)[.](.*)$} $struct_member -> struct member |
| 227 | cctest -code "static $struct _s; return sizeof(_s.$member);" |
| 228 | } |
| 229 | |
| 230 | # Checks for the existence of the given define by compiling |
| 231 | # |
| 232 | proc cctest_define FLAGS - ?How is this di# @synopsis: |
| 233 | # |
| 234 | # The 'cc' module supports checking various 'features' of the C or C++ |
| 235 | # compiler/linker environment. Common commands are , |
| 236 | # cc-check-types, cc-check-functions, cc-with, make-autoconf-h and make-templatement variables are used if set: |
| 237 | # |
| 238 | ## CC - C compiler |
| 239 | ## CXX - C++ compiler |
| 240 | ## CPP - C preprocessor |
| 241 | ##CACHE - Set to "none" to disfor a declsable automatic use of ccache |
| 242 | ## Ciler flags |
| 243 | ## C# Copyright (c) 2010 Work foreach type $args { |
| 244 | msg-checking "Checking for sizeof $type..." |
| 245 | set size unknown |
| 246 | # Try the most common sizes first |
| 247 | foreach i {4 8 1 2 16 32} { |
| 248 | if {[cctest -code "static int _x\[sizeof($type) == $i ? 1 : -1\] = { 1 };"]} { |
| 249 | set size $i |
| 250 | break |
| 251 | } |
| 252 | } |
| 253 | msg-result $size |
| 254 | set define [feature-define-name $type SIZEOF_] |
| 255 | define $define $size |
| 256 | } |
| 257 | # Return the last result |
| 258 | get-define $define |
| 259 | } |
| 260 | |
| 261 | # Checks for each feature in $list by using the given script. |
| 262 | # |
| 263 | # When the script is evaluated, $each is set to the feature |
| 264 | # being checked, and $extra is set to any additional cctest args. |
| 265 | # |
| 266 | # Returns 1 if all features were found, or 0 otherwise. |
| 267 | proc cc-check-some-feature {list script} { |
| 268 | set ret 1ch $script]} { |
| 269 | set ret 0 |
| 270 | } |
| 271 | } |
| 272 | return $ret |
| 273 | } |
| 274 | |
| 275 | # @cc-check-includes includes ... |
| 276 | # |
| 277 | # Checks that the given include files can be used. |
| 278 | proc cc-check-includes {args} { |
| 279 | cc-check-some-feature $args { |
| 280 | set with {} |
| 281 | if {[dict exists $::autosetup(cc-include-deps) $each]} { |
| 282 | set deps [dict keys [dict get $::autosetup(cc-include-deps) $each]] |
| 283 | msg-quiet cc-check-includes {*}$deps |
| 284 | foreach i $deps { |
| 285 | if {[have-feature $i]} { |
| 286 | lappend with $i |
| 287 | ure $each $scriptargs { |
| 288 | set new($name) $value |
| 289 | } $i]} { |
| 290 | lappend$newme\n(void)$name;\n#th]} { |
| 291 | cc-with [list -includes $with] { |
| 292 | cctest -includes $each |
| 293 | } |
| 294 | } else { |
| 295 | cctest -includes $each |
| 296 | } |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | # @cc-include-needs include required ... |
| 301 | # |
| 302 | # Ensures that when checking for '$include', a check is first |
| 303 | # made for eachtk is first |
| 304 | # made for each '$required' file, and if found, it is included with '#include'. |
| 305 | proc cc-include-needs {file args} { |
| 306 | foreach depfile $args { |
| 307 | dict set ::autosetup(cc-include-deps) $file $depfile 1 |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | # C *-*-darwin* { |
| 312 | # Don't-gstabs |
| 313 | } |
| 314 | }$value$valuecc-check-tools ld.o {CC_FOR_BUILD ccACHE |
+307
| --- a/autosetup/config.guess | ||
| +++ b/autosetup/config.guess | ||
| @@ -0,0 +1,307 @@ | ||
| 1 | +03-23 the terms of the GNU General Public License as published by | |
| 2 | +# t(C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
| 3 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006,oftware Foundation, 0-09-24r | |
| 4 | +# (at your option) any later version. | |
| 5 | +# | |
| 6 | +# This program is distributed in the hope that it will be useful, but | |
| 7 | +# WITHOUT ANY WARRANTY; without even the implied w2 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 8 | +# General Public License for more details. | |
| 9 | +# | |
| 10 | +# You should have received a copy of the GNU General Public License | |
| 11 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 12 | +# | |
| 13 | +# As a special exceptionto the GNU General Public License, if you | |
| 14 | +# distribute this file as part of a program that contains a | |
| 15 | +# configuration script generated by Autoconwrite to the Free Software | |
| 16 | +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Bmay include it under | |
| 17 | +# the same distribution terms that you use for the rest of that | |
| 18 | +# program. This Exception is an additional permission under section 7 | |
| 19 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 20 | +# | |
| 21 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 22 | +# | |
| 23 | +# You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 24 | + | |
| 25 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 26 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh | |
| 27 | +# Attempt to guess a canonical system name. | |
| 28 | +# Copyright 1992-2014 Free Software Found4-11-04it and/or modify it | |
| 29 | +# under the terms of the GNU General Public License as published by | |
| 30 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 31 | +# (at your option) any later version. | |
| 32 | +# | |
| 33 | +# This program is distributed in the hope that it will be useful, but | |
| 34 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 35 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 36 | +# General Public License for more details. | |
| 37 | +# | |
| 38 | +# You should have received a copy of the GNU General Public License | |
| 39 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 40 | +# | |
| 41 | +# As a special exceptionto the GNU General Public License, if you | |
| 42 | +# distribute this file as part of a program that contains a | |
| 43 | +# configuration script generated by Autoconf, you may include it under | |
| 44 | +# the same distribution terms that you use for the rest of that | |
| 45 | +# program. This Exception is an additional permission under section 7 | |
| 46 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 47 | +# | |
| 48 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 49 | +# | |
| 50 | +# You can get the latest version of this script from: | |
| 51 | +# https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 52 | + | |
| 53 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 54 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl | |
| 55 | +# Attempt to guess a canoniAttempt to g! /bin/sh | |
| 56 | +# Attemp#*) machine=${! /bin/sh | |
| 57 | +# Attemp#! /bin/sh | |
| 58 | +# Attempt to guess a canonical system name. | |
| 59 | +# Copyright 1992-2018canonical system name. | |
| 60 | +# Copyrig! /bin/sh | |
| 61 | +# Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh | |
| 62 | +# Attemp#! /bin/sh | |
| 63 | +# Attempt to guess a ${! /bin/sh | |
| 64 | +# Attemp#! /bin/sh | |
| 65 | +# Attempt to guess a cekkoBSD:*:*) | |
| 66 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) | |
| 67 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh | |
| 68 | +# Attempt to guess a canonical system name. | |
| 69 | +# Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. | |
| 70 | +# Copyright 1992-2018 Free Software Foundation, Inc. | |
| 71 | + | |
| 72 | +timestamp='2018-03-08it and/or modify it | |
| 73 | +# under the terms of the GNU General Public License as published by | |
| 74 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 75 | +# (at your o program. | |
| 76 | + | |
| 77 | + | |
| 78 | +# neral Public License | |
| 79 | +# along with he GNU General Public03-23 the terms of the and include a ChangeLog | |
| 80 | +# entrhe GNU General Public License as published by | |
| 81 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 82 | +# (at your option) any later version. | |
| 83 | +# | |
| 84 | +# This program is distributed in the hope that it will be useful, but | |
| 85 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 86 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 87 | +# General Public License for more details. | |
| 88 | +# | |
| 89 | +# You should have received a copy of the GNU General Public License | |
| 90 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 91 | +# | |
| 92 | +# As a special exceptionto the GNU General Public License, if you | |
| 93 | +# distribute this file as part of a program that contains a | |
| 94 | +# configuration script generated by Autoconf, you may include it under | |
| 95 | +# the same distribution terms that you use for the rest of that | |
| 96 | +# program. This Exception is an additional permission under section 7 | |
| 97 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 98 | +# | |
| 99 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 100 | +# | |
| 101 | +# You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 102 | + | |
| 103 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 104 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh | |
| 105 | +# Attempt to guess a canonical system name. | |
| 106 | +# Copyright 1992-2014 Free Software Found4-11-04it and/or modify it | |
| 107 | +# under the terms of the GNU General Public License as published by | |
| 108 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 109 | +# (at your option) any later version. | |
| 110 | +# | |
| 111 | +# This program is distributed in the hope that it will be useful, but | |
| 112 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 113 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 114 | +# General Public License for more details. | |
| 115 | +# | |
| 116 | +# You should have received a copy of the GNU General Public License | |
| 117 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 118 | +# | |
| 119 | +# As a special exceptionto the GNU General Public License, if you | |
| 120 | +# distribute this file as part of a program that contains a | |
| 121 | +# configuration script generated by Autoconf, you may include it under | |
| 122 | +# the same distribution terms that you use for the rest of that | |
| 123 | +# program. This Exception is an additional permission under section 7 | |
| 124 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 125 | +# | |
| 126 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 127 | +# | |
| 128 | +# You can get the latest version of this script from: | |
| 129 | +# https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 130 | + | |
| 131 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 132 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl | |
| 133 | +# Attempt to guess a canoniAttempt to g! /bin/sh | |
| 134 | +# Attemp#*) machine=${! /bin/sh | |
| 135 | +# Attemp#! /bin/sh | |
| 136 | +# Attempt to guess a canonical system name. | |
| 137 | +# Copyright 1992-2018canonical system name. | |
| 138 | +# Copyrig! /bin/sh | |
| 139 | +# Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh | |
| 140 | +# Attemp#! /bin/sh | |
| 141 | +# Attempt to guess a ${! /bin/sh | |
| 142 | +# Attemp#! /bin/sh | |
| 143 | +# Attempt to guess a cekkoBSD:*:*) | |
| 144 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) | |
| 145 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh | |
| 146 | +# Attempt to guess a canonical system name. | |
| 147 | +# Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. | |
| 148 | +# Copyright 1992-2018 Free Software Foundation, Inc. | |
| 149 | + | |
| 150 | +timestamp='2018-03-08it and/or modify it | |
| 151 | +# under the terms of the GNU General Public License as published by | |
| 152 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 153 | +# (at your o.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh | |
| 154 | +# Attempt to guess a canonical system name. | |
| 155 | +# Copyright 1992-2014 Free Software Found4-11-04it and/or modify it | |
| 156 | +# under the terms of the GNU General Public License as published by | |
| 157 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 158 | +# (at your option) any later version. | |
| 159 | +# | |
| 160 | +# This program is distributed in the hope that it will be useful, but | |
| 161 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 162 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 163 | +# General Public License for more details. | |
| 164 | +# | |
| 165 | +# You should have received a copy of the GNU General Public License | |
| 166 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 167 | +# | |
| 168 | +# As a special exceptionto the GNU General Public License, if you | |
| 169 | +# distribute this file as part of a program that contains a | |
| 170 | +# configuration script generated by Autoconf, you may include it under | |
| 171 | +# the same distribution terms that you use for the rest of that | |
| 172 | +# program. This Exception is an additional permission under section 7 | |
| 173 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 174 | +# | |
| 175 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 176 | +# | |
| 177 | +# You can get the latest version of this script from: | |
| 178 | +# https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 179 | + | |
| 180 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 181 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl | |
| 182 | +# Attempt to guess a canoniAttempt to g! /bin/sh | |
| 183 | +# Attemp#*) machine=${! /bin/sh | |
| 184 | +# Attemp#! /bin/sh | |
| 185 | +# Attempt to guess a canonical system name. | |
| 186 | +# Copyright 1992-2018canonical system name. | |
| 187 | +# Copyrig! /bin/sh | |
| 188 | +# Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh | |
| 189 | +# Attemp#! /bin/sh | |
| 190 | +# Attempt to guess a ${! /bin/sh | |
| 191 | +# Attemp#! /bin/sh | |
| 192 | +# Attempt to guess a cekkoBSD:*:*) | |
| 193 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) | |
| 194 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh | |
| 195 | +# Attempt to guess a canonical system name. | |
| 196 | +# Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. | |
| 197 | +# Copyright 1992-2018 Free Software Foundation, Inc. | |
| 198 | + | |
| 199 | +timestamp='2018-03-08it and/or modify it | |
| 200 | +# under the terms of the GNU General Public License as published by | |
| 201 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 202 | +# (at your oished by | |
| 203 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 204 | +# (at your option) any later version. | |
| 205 | +# | |
| 206 | +# This program is distributed in the hope that it will be useful, but | |
| 207 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 208 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 209 | +# General Public License for more details. | |
| 210 | +# | |
| 211 | +# You should have received a copy of the GNU General Public License | |
| 212 | +# along with this progra(C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
| 213 | +2001, 2002, 2003, 2004, 2005, 2006, 2implied warranty ofot, see <https://www.gnu.org/licenses/>. | |
| 214 | +# | |
| 215 | +# As a special exceptionto the GNU General Public License, if you | |
| 216 | +# distribute this file as part of a program that contains a | |
| 217 | +# configuration script generated by Autoconf, you may include it under | |
| 218 | +# the same distribution terms that you use for the rest of that | |
| 219 | +# program. This Exception is an additional permission under section 7 | |
| 220 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 221 | +# | |
| 222 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 223 | +# | |
| 224 | +# You can get the latest version of this script from: | |
| 225 | +# https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 226 | + | |
| 227 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 228 | + cat <<-EOF > $dummy.c`$CC_FORHUP INT TERMneral Public License, version 3 ("GPLv3"). | |
| 229 | +# | |
| 230 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 231 | +# | |
| 232 | +# You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 233 | + | |
| 234 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 235 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh | |
| 236 | +# Attempt to guess a canonical system name. | |
| 237 | +# Copyright 1992-2014 Free Software Found4-11-04it and/or modify it | |
| 238 | +# under the terms of the GNU General Public License as published by | |
| 239 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 240 | +# (at your optionHUP INT PIPE TERM03-23 the terms of the GNU General Public License as published by | |
| 241 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 242 | +# (at your option) any later version. | |
| 243 | +# | |
| 244 | +# This program is distributed in the hope tha03-23 the terms of the GNU General Public License as published by | |
| 245 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 246 | +# (at your option) any later version. | |
| 247 | +# | |
| 248 | +# This program is distributed in the hope that it will be useful, but | |
| 249 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 250 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 251 | +# General Public License for more details. | |
| 252 | +# | |
| 253 | +# You should have received a copy of the GNU General Public License | |
| 254 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 255 | +# | |
| 256 | +# As a special exceptionto the GNU General Public License, if you | |
| 257 | +# distribute this file as part of a program that contains a | |
| 258 | +# configuration script generated by Autoconf, you may include it under | |
| 259 | +# the same distribution terms that you use for the rest of that | |
| 260 | +# program. This Exception is an additional permission under section 7 | |
| 261 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 262 | +# | |
| 263 | +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |
| 264 | +# | |
| 265 | +# You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. | |
| 266 | + | |
| 267 | +$dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} | |
| 268 | + cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh | |
| 269 | +# Attempt to guess a canonical system name. | |
| 270 | +# Open exit :riscos:*:*|arm t it will be useful, but | |
| 271 | +03-23 th 23 the terms of the GNU General Public License as published by | |
| 272 | +# t;e Free Software Foundation, either version 3 of the L;cense, or | |
| 273 | +# (at your option) any later version. | |
| 274 | +# | |
| 275 | +# This program is distributed in the hope that it will be useful, but | |
| 276 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 277 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 278 | +# General Public License for more details. | |
| 279 | +# | |
| 280 | +# You should have received a copy of the GNU General Public License | |
| 281 | +# along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 282 | +# | |
| 283 | +# As a special exceptionto the GNU General Public License, if you | |
| 284 | +# distribute this file as part of a program that contains a | |
| 285 | +# configuration script generated by Autoconf, you may include it under | |
| 286 | +# the same distribution terms that you use for the rest of that | |
| 287 | +# program. This Exception is an additional permission under section 7 | |
| 288 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 289 | +# | |
| 290 | +# Originally written ms of the GNU Genera532)case "${sc_kernel_bits}" in | |
| 291 | + 32) HP_ARCH="hppa2.0n" ;; | |
| 292 | +esac ;; | |
| 293 | + | |
| 294 | + #include <stdlib.h> | |
| 295 | + #include <unistd.h> | |
| 296 | + | |
| 297 | + int main () | |
| 298 | + { | |
| 299 | + #if | |
| 300 | + #endif | |
| 301 | +switch (cpu) | |
| 302 | + "); break; | |
| 303 | + 2_0: | |
| 304 | + #if | |
| 305 | + switch (bits) | |
| 306 | + { | |
| 307 | + |
| --- a/autosetup/config.guess | |
| +++ b/autosetup/config.guess | |
| @@ -0,0 +1,307 @@ | |
| --- a/autosetup/config.guess | |
| +++ b/autosetup/config.guess | |
| @@ -0,0 +1,307 @@ | |
| 1 | 03-23 the terms of the GNU General Public License as published by |
| 2 | # t(C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006,oftware Foundation, 0-09-24r |
| 4 | # (at your option) any later version. |
| 5 | # |
| 6 | # This program is distributed in the hope that it will be useful, but |
| 7 | # WITHOUT ANY WARRANTY; without even the implied w2 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8 | # General Public License for more details. |
| 9 | # |
| 10 | # You should have received a copy of the GNU General Public License |
| 11 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 12 | # |
| 13 | # As a special exceptionto the GNU General Public License, if you |
| 14 | # distribute this file as part of a program that contains a |
| 15 | # configuration script generated by Autoconwrite to the Free Software |
| 16 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Bmay include it under |
| 17 | # the same distribution terms that you use for the rest of that |
| 18 | # program. This Exception is an additional permission under section 7 |
| 19 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 20 | # |
| 21 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 22 | # |
| 23 | # You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 24 | |
| 25 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 26 | cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh |
| 27 | # Attempt to guess a canonical system name. |
| 28 | # Copyright 1992-2014 Free Software Found4-11-04it and/or modify it |
| 29 | # under the terms of the GNU General Public License as published by |
| 30 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 31 | # (at your option) any later version. |
| 32 | # |
| 33 | # This program is distributed in the hope that it will be useful, but |
| 34 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 35 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 36 | # General Public License for more details. |
| 37 | # |
| 38 | # You should have received a copy of the GNU General Public License |
| 39 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 40 | # |
| 41 | # As a special exceptionto the GNU General Public License, if you |
| 42 | # distribute this file as part of a program that contains a |
| 43 | # configuration script generated by Autoconf, you may include it under |
| 44 | # the same distribution terms that you use for the rest of that |
| 45 | # program. This Exception is an additional permission under section 7 |
| 46 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 47 | # |
| 48 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 49 | # |
| 50 | # You can get the latest version of this script from: |
| 51 | # https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 52 | |
| 53 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 54 | cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl |
| 55 | # Attempt to guess a canoniAttempt to g! /bin/sh |
| 56 | # Attemp#*) machine=${! /bin/sh |
| 57 | # Attemp#! /bin/sh |
| 58 | # Attempt to guess a canonical system name. |
| 59 | # Copyright 1992-2018canonical system name. |
| 60 | # Copyrig! /bin/sh |
| 61 | # Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh |
| 62 | # Attemp#! /bin/sh |
| 63 | # Attempt to guess a ${! /bin/sh |
| 64 | # Attemp#! /bin/sh |
| 65 | # Attempt to guess a cekkoBSD:*:*) |
| 66 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) |
| 67 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh |
| 68 | # Attempt to guess a canonical system name. |
| 69 | # Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. |
| 70 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 71 | |
| 72 | timestamp='2018-03-08it and/or modify it |
| 73 | # under the terms of the GNU General Public License as published by |
| 74 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 75 | # (at your o program. |
| 76 | |
| 77 | |
| 78 | # neral Public License |
| 79 | # along with he GNU General Public03-23 the terms of the and include a ChangeLog |
| 80 | # entrhe GNU General Public License as published by |
| 81 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 82 | # (at your option) any later version. |
| 83 | # |
| 84 | # This program is distributed in the hope that it will be useful, but |
| 85 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 86 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 87 | # General Public License for more details. |
| 88 | # |
| 89 | # You should have received a copy of the GNU General Public License |
| 90 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 91 | # |
| 92 | # As a special exceptionto the GNU General Public License, if you |
| 93 | # distribute this file as part of a program that contains a |
| 94 | # configuration script generated by Autoconf, you may include it under |
| 95 | # the same distribution terms that you use for the rest of that |
| 96 | # program. This Exception is an additional permission under section 7 |
| 97 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 98 | # |
| 99 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 100 | # |
| 101 | # You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 102 | |
| 103 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 104 | cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh |
| 105 | # Attempt to guess a canonical system name. |
| 106 | # Copyright 1992-2014 Free Software Found4-11-04it and/or modify it |
| 107 | # under the terms of the GNU General Public License as published by |
| 108 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 109 | # (at your option) any later version. |
| 110 | # |
| 111 | # This program is distributed in the hope that it will be useful, but |
| 112 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 113 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 114 | # General Public License for more details. |
| 115 | # |
| 116 | # You should have received a copy of the GNU General Public License |
| 117 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 118 | # |
| 119 | # As a special exceptionto the GNU General Public License, if you |
| 120 | # distribute this file as part of a program that contains a |
| 121 | # configuration script generated by Autoconf, you may include it under |
| 122 | # the same distribution terms that you use for the rest of that |
| 123 | # program. This Exception is an additional permission under section 7 |
| 124 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 125 | # |
| 126 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 127 | # |
| 128 | # You can get the latest version of this script from: |
| 129 | # https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 130 | |
| 131 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 132 | cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl |
| 133 | # Attempt to guess a canoniAttempt to g! /bin/sh |
| 134 | # Attemp#*) machine=${! /bin/sh |
| 135 | # Attemp#! /bin/sh |
| 136 | # Attempt to guess a canonical system name. |
| 137 | # Copyright 1992-2018canonical system name. |
| 138 | # Copyrig! /bin/sh |
| 139 | # Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh |
| 140 | # Attemp#! /bin/sh |
| 141 | # Attempt to guess a ${! /bin/sh |
| 142 | # Attemp#! /bin/sh |
| 143 | # Attempt to guess a cekkoBSD:*:*) |
| 144 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) |
| 145 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh |
| 146 | # Attempt to guess a canonical system name. |
| 147 | # Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. |
| 148 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 149 | |
| 150 | timestamp='2018-03-08it and/or modify it |
| 151 | # under the terms of the GNU General Public License as published by |
| 152 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 153 | # (at your o.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh |
| 154 | # Attempt to guess a canonical system name. |
| 155 | # Copyright 1992-2014 Free Software Found4-11-04it and/or modify it |
| 156 | # under the terms of the GNU General Public License as published by |
| 157 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 158 | # (at your option) any later version. |
| 159 | # |
| 160 | # This program is distributed in the hope that it will be useful, but |
| 161 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 162 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 163 | # General Public License for more details. |
| 164 | # |
| 165 | # You should have received a copy of the GNU General Public License |
| 166 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 167 | # |
| 168 | # As a special exceptionto the GNU General Public License, if you |
| 169 | # distribute this file as part of a program that contains a |
| 170 | # configuration script generated by Autoconf, you may include it under |
| 171 | # the same distribution terms that you use for the rest of that |
| 172 | # program. This Exception is an additional permission under section 7 |
| 173 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 174 | # |
| 175 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 176 | # |
| 177 | # You can get the latest version of this script from: |
| 178 | # https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 179 | |
| 180 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 181 | cat <<-EOF > $dummy.c`$CC_FOR_BUILD -E $dummy.c'^LIBC' | sed 's, ,,g'`{UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}/sbin/$sysctl/usr/sbin/$sysctl |
| 182 | # Attempt to guess a canoniAttempt to g! /bin/sh |
| 183 | # Attemp#*) machine=${! /bin/sh |
| 184 | # Attemp#! /bin/sh |
| 185 | # Attempt to guess a canonical system name. |
| 186 | # Copyright 1992-2018canonical system name. |
| 187 | # Copyrig! /bin/sh |
| 188 | # Attemp#! /b{UNAME_VERSION}${UNAME_REL{machine}-${os}${release}${! /bin/sh |
| 189 | # Attemp#! /bin/sh |
| 190 | # Attempt to guess a ${! /bin/sh |
| 191 | # Attemp#! /bin/sh |
| 192 | # Attempt to guess a cekkoBSD:*:*) |
| 193 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}SolidBSD:*:*) |
| 194 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}${UNAME_RELEASE}${UNAME_MACHINE}-unk"alpha""alpha""alpha""alphaev5"A"alphaev56""alphapca56""alphapca57""alphaev6""alphaev67""alphaev68""alphaev68""alphaev68""alphaev69""alphaev7""alphaev79"${UNAME_MACHINE}-dec-osf`echo RELEASE}'' ''` /bin/sh |
| 195 | # Attempt to guess a canonical system name. |
| 196 | # Copyright 1992-2018 Free Software FouAttempt to guess a canonical system name. |
| 197 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 198 | |
| 199 | timestamp='2018-03-08it and/or modify it |
| 200 | # under the terms of the GNU General Public License as published by |
| 201 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 202 | # (at your oished by |
| 203 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 204 | # (at your option) any later version. |
| 205 | # |
| 206 | # This program is distributed in the hope that it will be useful, but |
| 207 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 208 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 209 | # General Public License for more details. |
| 210 | # |
| 211 | # You should have received a copy of the GNU General Public License |
| 212 | # along with this progra(C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 213 | 2001, 2002, 2003, 2004, 2005, 2006, 2implied warranty ofot, see <https://www.gnu.org/licenses/>. |
| 214 | # |
| 215 | # As a special exceptionto the GNU General Public License, if you |
| 216 | # distribute this file as part of a program that contains a |
| 217 | # configuration script generated by Autoconf, you may include it under |
| 218 | # the same distribution terms that you use for the rest of that |
| 219 | # program. This Exception is an additional permission under section 7 |
| 220 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 221 | # |
| 222 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 223 | # |
| 224 | # You can get the latest version of this script from: |
| 225 | # https://git.savannah.gnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 226 | |
| 227 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 228 | cat <<-EOF > $dummy.c`$CC_FORHUP INT TERMneral Public License, version 3 ("GPLv3"). |
| 229 | # |
| 230 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 231 | # |
| 232 | # You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 233 | |
| 234 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 235 | cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh |
| 236 | # Attempt to guess a canonical system name. |
| 237 | # Copyright 1992-2014 Free Software Found4-11-04it and/or modify it |
| 238 | # under the terms of the GNU General Public License as published by |
| 239 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 240 | # (at your optionHUP INT PIPE TERM03-23 the terms of the GNU General Public License as published by |
| 241 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 242 | # (at your option) any later version. |
| 243 | # |
| 244 | # This program is distributed in the hope tha03-23 the terms of the GNU General Public License as published by |
| 245 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 246 | # (at your option) any later version. |
| 247 | # |
| 248 | # This program is distributed in the hope that it will be useful, but |
| 249 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 250 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 251 | # General Public License for more details. |
| 252 | # |
| 253 | # You should have received a copy of the GNU General Public License |
| 254 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 255 | # |
| 256 | # As a special exceptionto the GNU General Public License, if you |
| 257 | # distribute this file as part of a program that contains a |
| 258 | # configuration script generated by Autoconf, you may include it under |
| 259 | # the same distribution terms that you use for the rest of that |
| 260 | # program. This Exception is an additional permission under section 7 |
| 261 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 262 | # |
| 263 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 264 | # |
| 265 | # You can ggnu.org/guess;hb=HEADeration mode4 Free Software Foundation, Inc. |
| 266 | |
| 267 | $dummy.c$dummy.o $dummy.c{UNAME_SYSTEM} |
| 268 | cat <<-EOF > $dummy.c`$CC_FOR_BUILwith a ChangeLog entry to to guess a canonical s#! /bin/sh |
| 269 | # Attempt to guess a canonical system name. |
| 270 | # Open exit :riscos:*:*|arm t it will be useful, but |
| 271 | 03-23 th 23 the terms of the GNU General Public License as published by |
| 272 | # t;e Free Software Foundation, either version 3 of the L;cense, or |
| 273 | # (at your option) any later version. |
| 274 | # |
| 275 | # This program is distributed in the hope that it will be useful, but |
| 276 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 277 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 278 | # General Public License for more details. |
| 279 | # |
| 280 | # You should have received a copy of the GNU General Public License |
| 281 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 282 | # |
| 283 | # As a special exceptionto the GNU General Public License, if you |
| 284 | # distribute this file as part of a program that contains a |
| 285 | # configuration script generated by Autoconf, you may include it under |
| 286 | # the same distribution terms that you use for the rest of that |
| 287 | # program. This Exception is an additional permission under section 7 |
| 288 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 289 | # |
| 290 | # Originally written ms of the GNU Genera532)case "${sc_kernel_bits}" in |
| 291 | 32) HP_ARCH="hppa2.0n" ;; |
| 292 | esac ;; |
| 293 | |
| 294 | #include <stdlib.h> |
| 295 | #include <unistd.h> |
| 296 | |
| 297 | int main () |
| 298 | { |
| 299 | #if |
| 300 | #endif |
| 301 | switch (cpu) |
| 302 | "); break; |
| 303 | 2_0: |
| 304 | #if |
| 305 | switch (bits) |
| 306 | { |
| 307 |
+1
| --- a/autosetup/config.sub | ||
| +++ b/autosetup/config.sub | ||
| @@ -0,0 +1 @@ | ||
| 1 | +#! /bin/ncr3#! /bin/ |
| --- a/autosetup/config.sub | |
| +++ b/autosetup/config.sub | |
| @@ -0,0 +1 @@ | |
| --- a/autosetup/config.sub | |
| +++ b/autosetup/config.sub | |
| @@ -0,0 +1 @@ | |
| 1 | #! /bin/ncr3#! /bin/ |
+10
| --- a/autosetup/find-tclsh | ||
| +++ b/autosetup/find-tclsh | ||
| @@ -0,0 +1,10 @@ | ||
| 1 | +#!/bin/sh | |
| 2 | +# Looks for a suitable tclsh or jimsh in the PATH | |
| 3 | +# If not foundstrap jimsh d=$(dirname "$0")&imsh0" | |
| 4 | +for cc in tcl6 tclsh8.5 jimsh0; do | |
| 5 | + 1>&2 "No installed jimbin/sh | |
| 6 | +# Looks for a suitable tclsh or jimsh in the PATH | |
| 7 | +# If not foundstrap jimsh d=`dirname "$0"` | |
| 8 | +{ "$d/jimshd/${1-ac"; } 2>&imsh0" | |
| 9 | +for cc#!/bin/sh | |
| 10 | +# Looks for a suitable |
| --- a/autosetup/find-tclsh | |
| +++ b/autosetup/find-tclsh | |
| @@ -0,0 +1,10 @@ | |
| --- a/autosetup/find-tclsh | |
| +++ b/autosetup/find-tclsh | |
| @@ -0,0 +1,10 @@ | |
| 1 | #!/bin/sh |
| 2 | # Looks for a suitable tclsh or jimsh in the PATH |
| 3 | # If not foundstrap jimsh d=$(dirname "$0")&imsh0" |
| 4 | for cc in tcl6 tclsh8.5 jimsh0; do |
| 5 | 1>&2 "No installed jimbin/sh |
| 6 | # Looks for a suitable tclsh or jimsh in the PATH |
| 7 | # If not foundstrap jimsh d=`dirname "$0"` |
| 8 | { "$d/jimshd/${1-ac"; } 2>&imsh0" |
| 9 | for cc#!/bin/sh |
| 10 | # Looks for a suitable |
+275
| --- a/autosetup/jimsh0.c | ||
| +++ b/autosetup/jimsh0.c | ||
| @@ -0,0 +1,275 @@ | ||
| 1 | +3cl. See http://jim.berlios.de/ */ | |
| 2 | +#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */ | |
| 3 | +#define JIM_TCL_COMPAT_H | |
| 4 | +#define TCL_LIBRARY "." | |
| 5 | +#define jim_ext_stdlib | |
| 6 | +#define jimregexpxec | |
| 7 | +#define jim_efilexec | |
| 8 | +#define jim_eexecxec | |
| 9 | +#define jim_eclockxec | |
| 10 | +#define jim_ee TCL_PLATFORM_OS "windows" | |
| 11 | +#define TCL_PLATFORM_PLATFORM "windows" | |
| 12 | +#define TCL_PLATFORM_PATH_SEPARATOR ";" | |
| 13 | +#define HAVE_MKDIR_ONE_ARG | |
| 14 | +#define HAVE_SYSTEM | |
| 15 | +#elif defined(__MINGW32__) | |
| 16 | +#defi HAVE_DIRENT_H | |
| 17 | +#define HAVE_UNISTD_H | |
| 18 | +#define HAVE_UMASK | |
| 19 | +#include RM_PATH_SEPARMKSTEMP | |
| 20 | +#define HAVE_LINK | |
| 21 | +#define HAVE_SYS_TIME_H | |
| 22 | +#define HAVE_DITFORM "unix" | |
| 23 | +#defin http://jim.berlios.de/ */ | |
| 24 | +#define _GNU_SOURCEREFERENCES single source file,/* /** | |
| 25 | + * UTF-8 utility functions | |
| 26 | + * | |
| 27 | + * (c) 2010 Steve Bennett <[email protected]> | |
| 28 | + * | |
| 29 | + * See LICENCE for licence details. | |
| 30 | + */ | |
| 31 | + | |
| 32 | +/** | |
| 33 | + * Converts the given unicode codepoint (0 - 0xffff) to utf-8 | |
| 34 | + * and stores the result at 'p'. | |
| 35 | + * | |
| 36 | + * Returns the number of utf-8 characters (1-3). | |
| 37 | + */ | |
| 38 | +intJim Tcl. See http://jim.tcl.tk/ */ | |
| 39 | +#define JIM_TCL_COMPAT_H | |
| 40 | +#define/* No utf-8 support. 1 byte = 1 char */ | |
| 41 | +#define utf8_strlen(S, B) TCL_LIBRARY "." | |
| 42 | +#define j | |
| 43 | +#defineS, CP) (*(CP) = #define jim_eexecxec | |
| 44 | +#define jim_eclockxec | |
| 45 | +#define jim_ee TCL_PLATFORM_OS "windows" | |
| 46 | +#define TCL_PLATFORM_PLATFORM "windows" | |
| 47 | +#define TCL_PLAT/** | |
| 48 | + * Returns the length of the utf-8 sequence starting with 'c'. | |
| 49 | + * | |
| 50 | + * Returns 1-4, or -1 if this is not a valid start byte. | |
| 51 | + * | |
| 52 | + * Note that charlen=4 is not supported by the rest of the API. | |
| 53 | + */ | |
| 54 | +int utf8_charlen(int c); | |
| 55 | + | |
| 56 | +/** | |
| 57 | + * Returns the number of characters in the utf-8 | |
| 58 | + * string of the given byte length. | |
| 59 | + * | |
| 60 | + * Any bytes which are not part of an valid utf-8 | |
| 61 | + * sequence are treated as individual characters. | |
| 62 | + * | |
| 63 | + * The string *must* be null terminated. | |
| 64 | + * | |
| 65 | + * Does not support unicode code points > \uffff | |
| 66 | + */ | |
| 67 | +int utf8_strlen(bytelen); | |
| 68 | +oint corresponding to the | |
| 69 | + * utf-8 sequence 'str'. | |
| 70 | + * | |
| 71 | + * Stores the result in *uc and returns the number of bytes | |
| 72 | + * consumed. | |
| 73 | + * | |
| 74 | + * If 'str' is null terminated, then an invalid utf-8 sequence | |
| 75 | + * at the end of the string will be returned as individual bytes. | |
| 76 | + * | |
| 77 | + * If it is not null terminated, the length *must* be checked first. | |
| 78 | + * | |
| 79 | + * Does not support unicode c*uc); | |
| 80 | + | |
| 81 | +/** | |
| 82 | + * Returns the number of bytes before 'str' that the previous | |
| 83 | + * utf-8 character sequence starts (which may be the middle of a sequence). | |
| 84 | + * | |
| 85 | + * Looks back at most 'len' bytes backwards, which must be > 0. | |
| 86 | + * If no start char is found, returns -len | |
| 87 | + */ | |
| 88 | +int utf8_prev_len( | |
| 89 | +/** | |
| 90 | + * Returns the upper-case variant of the given unicode codepoint. | |
| 91 | + * | |
| 92 | + * Does not support unicode code points > \uffff | |
| 93 | + */ | |
| 94 | +int utf8_upper(int uc); | |
| 95 | + | |
| 96 | +/** | |
| 97 | + * Returns the lower-case variant of the given unicode codepoint. | |
| 98 | + * | |
| 99 | + * NOTE: Use utf8_upper() in preference for case-insensitive matching. | |
| 100 | + * | |
| 101 | + * Does not support unicode code points > \uffff | |
| 102 | + */ | |
| 103 | +int utf8_lower(int uc); | |
| 104 | + | |
| 105 | +#endif | |
| 106 | + | |
| 107 | +#endif | |
| 108 | +/* Jim - A small embeddable Tcl interpreter | |
| 109 | + * | |
| 110 | + * Copyright 2005 Salvatore Sanfilippo <[email protected]> | |
| 111 | + * Copyright 2005 Clemens Hintze <[email protected]> | |
| 112 | + * Copyright 2005 patthoyts - Pat Thoyts <[email protected]> | |
| 113 | + * Copyright 2008 oharboe - �yvind Harboe - [email protected] | |
| 114 | + * Copyright 2008 Andrew Lunn <[email protected]> | |
| 115 | + * Copyright 2008 Duane Ellis <[email protected]> | |
| 116 | + * Copyright 2008 Uwe Klein <[email protected]> | |
| 117 | + * | |
| 118 | + * Redistribution and use in source and binary forms, with or without | |
| 119 | + * modification, are permitted provided that the following conditions | |
| 120 | + * are met: | |
| 121 | + * | |
| 122 | + * 1. Redistributions of source code must retain the above copyright | |
| 123 | + * notice, this list of conditions and the following disclaimer. | |
| 124 | + * 2. Redistributions in binary form must reproduce the above | |
| 125 | + * copyright notice, this list of conditions and the following | |
| 126 | + * disclaimer in the documentation and/or other materials | |
| 127 | + * provided with the distribution. | |
| 128 | + * | |
| 129 | + * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY | |
| 130 | + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | |
| 131 | + * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */ | |
| 132 | +#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */ | |
| 133 | +#define JIM_TCL_COMPAT_H | |
| 134 | +#define TCL_LIBRARY "." | |
| 135 | +#define jim_ext_stdlib | |
| 136 | +#define jimregexpxec | |
| 137 | +#define jim_efilexec | |
| 138 | +#define jim_eexecxec | |
| 139 | +#define jim_eclockxec | |
| 140 | +#define jim_ee TCL_PLATFORM_OS "windows" | |
| 141 | +#define TCL_PLATFORM_PLATFORM "windows" | |
| 142 | +#define TCL_PLATFORM_PATH_SEPARATOR ";" | |
| 143 | +#define HAVE_MKDIR_ONE_ARG | |
| 144 | +#define HAVE_SYSTEM | |
| 145 | +#elif defined(__MINGW32__) | |
| 146 | +#defi HAVE_DIRENT_H | |
| 147 | +#define HAVE_UNISTD_H | |
| 148 | +#define HAVE_UMASK | |
| 149 | +#include elseSEPARATOR ":" | |
| 150 | +#ifdef _ATFORM_PLATFORM "unix" | |
| 151 | +#define TCL_PLATFORM_PATH_SEPARMKSTEMP | |
| 152 | +#define HAVE_LINK | |
| 153 | +#define HAVE_SYS_TIME_H | |
| 154 | +#define HAVE_DITFORM "unix" | |
| 155 | +#define TCL_PLATFndif | |
| 156 | +#define JIM_VERS3cl. See http://jim.berlios.de/ */ | |
| 157 | +#define _GNU_SOURCEREFERENCES single source file,/* /** | |
| 158 | + * UTF-8 utility functions | |
| 159 | + * | |
| 160 | + * (c) 2010 Steve Bennett <[email protected]> | |
| 161 | + * | |
| 162 | + * See LICENCE for licence details. | |
| 163 | + */ | |
| 164 | + | |
| 165 | +/** | |
| 166 | + * Converts the given unicode codepoint (0 - 0xffff) to utf-8 | |
| 167 | + * and stores the result at 'p'. | |
| 168 | + * | |
| 169 | + * Returns the number of utf-8 characters (1-3). | |
| 170 | + */ | |
| 171 | +intJim Tcl. See http://jim.tcl.tk/ */ | |
| 172 | +#define JIM_TCL_COMPAT_H | |
| 173 | +#define/* No utf-8 support. 1 byte = 1 char */ | |
| 174 | +#define utf8_strlen(S, B) TCL_LIBRARY "." | |
| 175 | +#define j | |
| 176 | +#defineS, CP) (*(CP) = #define jim_eexecxec | |
| 177 | +#define jim_eclockxec | |
| 178 | +#define jim_ee TCL_PLATFORM_OS "windows" | |
| 179 | +#define TCL_PLATFORM_PLATFORM "windows" | |
| 180 | +#define TCL_PLAT/** | |
| 181 | + * Returns the length of the utf-8 sequence starting with 'c'. | |
| 182 | + * | |
| 183 | + * Returns 1-4, or -1 if this is not a valid start byte. | |
| 184 | + * | |
| 185 | + * Note that charlen=4 is not supported by the rest of the API. | |
| 186 | + */ | |
| 187 | +int utf8_charlen(int c); | |
| 188 | + | |
| 189 | +/** | |
| 190 | + * Returns the number of characters in the utf-8 | |
| 191 | + * string of the given byte length. | |
| 192 | + * | |
| 193 | + * Any bytes which are not part of an valid utf-8 | |
| 194 | + * sequence are treated as individual characters. | |
| 195 | + * | |
| 196 | + * The string *must* be null terminated. | |
| 197 | + * | |
| 198 | + * Does not support unicode code points > \uffff | |
| 199 | + */ | |
| 200 | +int utf8_strlen(bytelen); | |
| 201 | + | |
| 202 | +/** | |
| 203 | + * Returns the byte index of the given character in the utf-8 string. | |
| 204 | + * | |
| 205 | + * The string *must* be null terminated. | |
| 206 | + * | |
| 207 | + * This will return the byte length of a utf-8 string | |
| 208 | + * if given the char charindex); | |
| 209 | + | |
| 210 | +/** | |
| 211 | + * Returns the unicode codepoint corresponding to the | |
| 212 | + * utf-8 sequence 'str'. | |
| 213 | + * | |
| 214 | + * Stores the result in *uc and returns the number of bytes | |
| 215 | + * consumed. | |
| 216 | + * | |
| 217 | + * If 'str' is null terminated, then an invalid utf-8 sequence | |
| 218 | + * at the end of the string will be returned as individual bytes. | |
| 219 | + * | |
| 220 | + * If it is not null terminated, the length *must* be checked first. | |
| 221 | + * | |
| 222 | + * Does not support unicode c*uc); | |
| 223 | + | |
| 224 | +/** | |
| 225 | + * Returns the number of bytes before 'str' that the previous | |
| 226 | + * utf-8 character sequence starts (which may be the middle of a sequence). | |
| 227 | + * | |
| 228 | + * Looks back at most 'len' bytes backwards, which must be > 0. | |
| 229 | + * If no start char is found, returns -len | |
| 230 | + */ | |
| 231 | +int utf8_prev_len( | |
| 232 | +/** | |
| 233 | + * Returns the upper-case variant of the given unicode codepoint. | |
| 234 | + * | |
| 235 | + * Does not support unicode code points > \uffff | |
| 236 | + */ | |
| 237 | +int utf8_upper(int uc); | |
| 238 | + | |
| 239 | +/** | |
| 240 | + * Returns the lower-case variant of the given unicode codepoint. | |
| 241 | + * | |
| 242 | + * NOTE: Use utf8_upper() in preference for case-insensitive matching. | |
| 243 | + * | |
| 244 | + * Does not support unicode code points > \uffff | |
| 245 | + */ | |
| 246 | +int utf8_lower(int uc); | |
| 247 | + | |
| 248 | +#endif | |
| 249 | + | |
| 250 | +#endif | |
| 251 | +/* Jim - A small embeddable Tcl interpreter | |
| 252 | + * | |
| 253 | + * Copyright 2005 Salvatore Sanfilippo <[email protected]> | |
| 254 | + * Copyright 2005 Clemens Hintze <[email protected]> | |
| 255 | + * Copyright 2005 patthoyts - Pat Thoyts <[email protected]> | |
| 256 | + * Copyright 2008 oharboe - �yvind Harboe - [email protected] | |
| 257 | + * Copyright 2008 Andrew Lunn <[email protected]> | |
| 258 | + * Copyright 2008 Duane Ellis <[email protected]> | |
| 259 | + * Copyright 2008 Uwe Klein <[email protected]> | |
| 260 | + * | |
| 261 | + * Redistribution and use in source and binary forms, with or without | |
| 262 | + * modification, are permitted provided that the following conditions | |
| 263 | + * are met: | |
| 264 | + * | |
| 265 | + * 1. Redistributions of source code must retain the above copyright | |
| 266 | + * notice, this list of conditions and the following disclaimer. | |
| 267 | + * 2. Redistributions in binary form must reproduce the above | |
| 268 | + * copyright notice, this list of conditions and the following | |
| 269 | + * disclaimer in the documentation and/or other materials | |
| 270 | + * provided with the distribution. | |
| 271 | + * | |
| 272 | + * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY | |
| 273 | + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | |
| 274 | + * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http://jim.berlios.de/ */ | |
| 275 | +3cl. See http://jim.berlios.d |
| --- a/autosetup/jimsh0.c | |
| +++ b/autosetup/jimsh0.c | |
| @@ -0,0 +1,275 @@ | |
| --- a/autosetup/jimsh0.c | |
| +++ b/autosetup/jimsh0.c | |
| @@ -0,0 +1,275 @@ | |
| 1 | 3cl. See http://jim.berlios.de/ */ |
| 2 | #define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */ |
| 3 | #define JIM_TCL_COMPAT_H |
| 4 | #define TCL_LIBRARY "." |
| 5 | #define jim_ext_stdlib |
| 6 | #define jimregexpxec |
| 7 | #define jim_efilexec |
| 8 | #define jim_eexecxec |
| 9 | #define jim_eclockxec |
| 10 | #define jim_ee TCL_PLATFORM_OS "windows" |
| 11 | #define TCL_PLATFORM_PLATFORM "windows" |
| 12 | #define TCL_PLATFORM_PATH_SEPARATOR ";" |
| 13 | #define HAVE_MKDIR_ONE_ARG |
| 14 | #define HAVE_SYSTEM |
| 15 | #elif defined(__MINGW32__) |
| 16 | #defi HAVE_DIRENT_H |
| 17 | #define HAVE_UNISTD_H |
| 18 | #define HAVE_UMASK |
| 19 | #include RM_PATH_SEPARMKSTEMP |
| 20 | #define HAVE_LINK |
| 21 | #define HAVE_SYS_TIME_H |
| 22 | #define HAVE_DITFORM "unix" |
| 23 | #defin http://jim.berlios.de/ */ |
| 24 | #define _GNU_SOURCEREFERENCES single source file,/* /** |
| 25 | * UTF-8 utility functions |
| 26 | * |
| 27 | * (c) 2010 Steve Bennett <[email protected]> |
| 28 | * |
| 29 | * See LICENCE for licence details. |
| 30 | */ |
| 31 | |
| 32 | /** |
| 33 | * Converts the given unicode codepoint (0 - 0xffff) to utf-8 |
| 34 | * and stores the result at 'p'. |
| 35 | * |
| 36 | * Returns the number of utf-8 characters (1-3). |
| 37 | */ |
| 38 | intJim Tcl. See http://jim.tcl.tk/ */ |
| 39 | #define JIM_TCL_COMPAT_H |
| 40 | #define/* No utf-8 support. 1 byte = 1 char */ |
| 41 | #define utf8_strlen(S, B) TCL_LIBRARY "." |
| 42 | #define j |
| 43 | #defineS, CP) (*(CP) = #define jim_eexecxec |
| 44 | #define jim_eclockxec |
| 45 | #define jim_ee TCL_PLATFORM_OS "windows" |
| 46 | #define TCL_PLATFORM_PLATFORM "windows" |
| 47 | #define TCL_PLAT/** |
| 48 | * Returns the length of the utf-8 sequence starting with 'c'. |
| 49 | * |
| 50 | * Returns 1-4, or -1 if this is not a valid start byte. |
| 51 | * |
| 52 | * Note that charlen=4 is not supported by the rest of the API. |
| 53 | */ |
| 54 | int utf8_charlen(int c); |
| 55 | |
| 56 | /** |
| 57 | * Returns the number of characters in the utf-8 |
| 58 | * string of the given byte length. |
| 59 | * |
| 60 | * Any bytes which are not part of an valid utf-8 |
| 61 | * sequence are treated as individual characters. |
| 62 | * |
| 63 | * The string *must* be null terminated. |
| 64 | * |
| 65 | * Does not support unicode code points > \uffff |
| 66 | */ |
| 67 | int utf8_strlen(bytelen); |
| 68 | oint corresponding to the |
| 69 | * utf-8 sequence 'str'. |
| 70 | * |
| 71 | * Stores the result in *uc and returns the number of bytes |
| 72 | * consumed. |
| 73 | * |
| 74 | * If 'str' is null terminated, then an invalid utf-8 sequence |
| 75 | * at the end of the string will be returned as individual bytes. |
| 76 | * |
| 77 | * If it is not null terminated, the length *must* be checked first. |
| 78 | * |
| 79 | * Does not support unicode c*uc); |
| 80 | |
| 81 | /** |
| 82 | * Returns the number of bytes before 'str' that the previous |
| 83 | * utf-8 character sequence starts (which may be the middle of a sequence). |
| 84 | * |
| 85 | * Looks back at most 'len' bytes backwards, which must be > 0. |
| 86 | * If no start char is found, returns -len |
| 87 | */ |
| 88 | int utf8_prev_len( |
| 89 | /** |
| 90 | * Returns the upper-case variant of the given unicode codepoint. |
| 91 | * |
| 92 | * Does not support unicode code points > \uffff |
| 93 | */ |
| 94 | int utf8_upper(int uc); |
| 95 | |
| 96 | /** |
| 97 | * Returns the lower-case variant of the given unicode codepoint. |
| 98 | * |
| 99 | * NOTE: Use utf8_upper() in preference for case-insensitive matching. |
| 100 | * |
| 101 | * Does not support unicode code points > \uffff |
| 102 | */ |
| 103 | int utf8_lower(int uc); |
| 104 | |
| 105 | #endif |
| 106 | |
| 107 | #endif |
| 108 | /* Jim - A small embeddable Tcl interpreter |
| 109 | * |
| 110 | * Copyright 2005 Salvatore Sanfilippo <[email protected]> |
| 111 | * Copyright 2005 Clemens Hintze <[email protected]> |
| 112 | * Copyright 2005 patthoyts - Pat Thoyts <[email protected]> |
| 113 | * Copyright 2008 oharboe - �yvind Harboe - [email protected] |
| 114 | * Copyright 2008 Andrew Lunn <[email protected]> |
| 115 | * Copyright 2008 Duane Ellis <[email protected]> |
| 116 | * Copyright 2008 Uwe Klein <[email protected]> |
| 117 | * |
| 118 | * Redistribution and use in source and binary forms, with or without |
| 119 | * modification, are permitted provided that the following conditions |
| 120 | * are met: |
| 121 | * |
| 122 | * 1. Redistributions of source code must retain the above copyright |
| 123 | * notice, this list of conditions and the following disclaimer. |
| 124 | * 2. Redistributions in binary form must reproduce the above |
| 125 | * copyright notice, this list of conditions and the following |
| 126 | * disclaimer in the documentation and/or other materials |
| 127 | * provided with the distribution. |
| 128 | * |
| 129 | * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY |
| 130 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 131 | * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */ |
| 132 | #define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */ |
| 133 | #define JIM_TCL_COMPAT_H |
| 134 | #define TCL_LIBRARY "." |
| 135 | #define jim_ext_stdlib |
| 136 | #define jimregexpxec |
| 137 | #define jim_efilexec |
| 138 | #define jim_eexecxec |
| 139 | #define jim_eclockxec |
| 140 | #define jim_ee TCL_PLATFORM_OS "windows" |
| 141 | #define TCL_PLATFORM_PLATFORM "windows" |
| 142 | #define TCL_PLATFORM_PATH_SEPARATOR ";" |
| 143 | #define HAVE_MKDIR_ONE_ARG |
| 144 | #define HAVE_SYSTEM |
| 145 | #elif defined(__MINGW32__) |
| 146 | #defi HAVE_DIRENT_H |
| 147 | #define HAVE_UNISTD_H |
| 148 | #define HAVE_UMASK |
| 149 | #include elseSEPARATOR ":" |
| 150 | #ifdef _ATFORM_PLATFORM "unix" |
| 151 | #define TCL_PLATFORM_PATH_SEPARMKSTEMP |
| 152 | #define HAVE_LINK |
| 153 | #define HAVE_SYS_TIME_H |
| 154 | #define HAVE_DITFORM "unix" |
| 155 | #define TCL_PLATFndif |
| 156 | #define JIM_VERS3cl. See http://jim.berlios.de/ */ |
| 157 | #define _GNU_SOURCEREFERENCES single source file,/* /** |
| 158 | * UTF-8 utility functions |
| 159 | * |
| 160 | * (c) 2010 Steve Bennett <[email protected]> |
| 161 | * |
| 162 | * See LICENCE for licence details. |
| 163 | */ |
| 164 | |
| 165 | /** |
| 166 | * Converts the given unicode codepoint (0 - 0xffff) to utf-8 |
| 167 | * and stores the result at 'p'. |
| 168 | * |
| 169 | * Returns the number of utf-8 characters (1-3). |
| 170 | */ |
| 171 | intJim Tcl. See http://jim.tcl.tk/ */ |
| 172 | #define JIM_TCL_COMPAT_H |
| 173 | #define/* No utf-8 support. 1 byte = 1 char */ |
| 174 | #define utf8_strlen(S, B) TCL_LIBRARY "." |
| 175 | #define j |
| 176 | #defineS, CP) (*(CP) = #define jim_eexecxec |
| 177 | #define jim_eclockxec |
| 178 | #define jim_ee TCL_PLATFORM_OS "windows" |
| 179 | #define TCL_PLATFORM_PLATFORM "windows" |
| 180 | #define TCL_PLAT/** |
| 181 | * Returns the length of the utf-8 sequence starting with 'c'. |
| 182 | * |
| 183 | * Returns 1-4, or -1 if this is not a valid start byte. |
| 184 | * |
| 185 | * Note that charlen=4 is not supported by the rest of the API. |
| 186 | */ |
| 187 | int utf8_charlen(int c); |
| 188 | |
| 189 | /** |
| 190 | * Returns the number of characters in the utf-8 |
| 191 | * string of the given byte length. |
| 192 | * |
| 193 | * Any bytes which are not part of an valid utf-8 |
| 194 | * sequence are treated as individual characters. |
| 195 | * |
| 196 | * The string *must* be null terminated. |
| 197 | * |
| 198 | * Does not support unicode code points > \uffff |
| 199 | */ |
| 200 | int utf8_strlen(bytelen); |
| 201 | |
| 202 | /** |
| 203 | * Returns the byte index of the given character in the utf-8 string. |
| 204 | * |
| 205 | * The string *must* be null terminated. |
| 206 | * |
| 207 | * This will return the byte length of a utf-8 string |
| 208 | * if given the char charindex); |
| 209 | |
| 210 | /** |
| 211 | * Returns the unicode codepoint corresponding to the |
| 212 | * utf-8 sequence 'str'. |
| 213 | * |
| 214 | * Stores the result in *uc and returns the number of bytes |
| 215 | * consumed. |
| 216 | * |
| 217 | * If 'str' is null terminated, then an invalid utf-8 sequence |
| 218 | * at the end of the string will be returned as individual bytes. |
| 219 | * |
| 220 | * If it is not null terminated, the length *must* be checked first. |
| 221 | * |
| 222 | * Does not support unicode c*uc); |
| 223 | |
| 224 | /** |
| 225 | * Returns the number of bytes before 'str' that the previous |
| 226 | * utf-8 character sequence starts (which may be the middle of a sequence). |
| 227 | * |
| 228 | * Looks back at most 'len' bytes backwards, which must be > 0. |
| 229 | * If no start char is found, returns -len |
| 230 | */ |
| 231 | int utf8_prev_len( |
| 232 | /** |
| 233 | * Returns the upper-case variant of the given unicode codepoint. |
| 234 | * |
| 235 | * Does not support unicode code points > \uffff |
| 236 | */ |
| 237 | int utf8_upper(int uc); |
| 238 | |
| 239 | /** |
| 240 | * Returns the lower-case variant of the given unicode codepoint. |
| 241 | * |
| 242 | * NOTE: Use utf8_upper() in preference for case-insensitive matching. |
| 243 | * |
| 244 | * Does not support unicode code points > \uffff |
| 245 | */ |
| 246 | int utf8_lower(int uc); |
| 247 | |
| 248 | #endif |
| 249 | |
| 250 | #endif |
| 251 | /* Jim - A small embeddable Tcl interpreter |
| 252 | * |
| 253 | * Copyright 2005 Salvatore Sanfilippo <[email protected]> |
| 254 | * Copyright 2005 Clemens Hintze <[email protected]> |
| 255 | * Copyright 2005 patthoyts - Pat Thoyts <[email protected]> |
| 256 | * Copyright 2008 oharboe - �yvind Harboe - [email protected] |
| 257 | * Copyright 2008 Andrew Lunn <[email protected]> |
| 258 | * Copyright 2008 Duane Ellis <[email protected]> |
| 259 | * Copyright 2008 Uwe Klein <[email protected]> |
| 260 | * |
| 261 | * Redistribution and use in source and binary forms, with or without |
| 262 | * modification, are permitted provided that the following conditions |
| 263 | * are met: |
| 264 | * |
| 265 | * 1. Redistributions of source code must retain the above copyright |
| 266 | * notice, this list of conditions and the following disclaimer. |
| 267 | * 2. Redistributions in binary form must reproduce the above |
| 268 | * copyright notice, this list of conditions and the following |
| 269 | * disclaimer in the documentation and/or other materials |
| 270 | * provided with the distribution. |
| 271 | * |
| 272 | * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY |
| 273 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 274 | * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http://jim.berlios.de/ */ |
| 275 | 3cl. See http://jim.berlios.d |
+130
| --- a/autosetup/system.tcl | ||
| +++ b/autosetup/system.tcl | ||
| @@ -0,0 +1,130 @@ | ||
| 1 | +# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 2 | +# All rights reserved | |
| 3 | + | |
| 4 | +# @synopsis: | |
| 5 | +# | |
| 6 | +# This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. | |
| 7 | +# | |
| 8 | +# It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H | |
| 9 | +# | |
| 10 | +# It defines the fol--prefix unless overridden by th | |
| 11 | +# Note that the hidden unless 'options-defaults { prefix compatibility | |
| 12 | + module-optionsation and options | |
| 13 | +# such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. | |
| 14 | +# | |
| 15 | +# It also support the "feature" naming convention, where searching | |
| 16 | +# for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: | |
| 17 | +# | |
| 18 | +## datadir | |
| 19 | +## sysconfdir | |
| 20 | +## sharedstatedir | |
| 21 | +## localstatedir | |
| 22 | +## infodir | |
| 23 | +## mandir | |
| 24 | +## includedir | |
| 25 | +# | |
| 26 | +# If '--pre | |
| 27 | +# defines featuresysconf { | |
| 28 | + msg-checking "Che 2010 WorkWare Systems http://www.workware.net.au/ | |
| 29 | +# All rights reserved | |
| 30 | + | |
| 31 | +# @synopsis: | |
| 32 | +# | |
| 33 | +# This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. | |
| 34 | +# | |
| 35 | +# It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H | |
| 36 | +# | |
| 37 | +# It defines the fol--prefix unless overridden by the module-optionsation and options | |
| 38 | +# such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. | |
| 39 | +# | |
| 40 | +# It also support the "feature" naming convention, where searching | |
| 41 | +# for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: | |
| 42 | +# | |
| 43 | +## datadir | |
| 44 | +## sysconfdir | |
| 45 | +## sharedstatedir | |
| 46 | +## localstatedir | |
| 47 | +## infodir | |
| 48 | +## mandir | |
| 49 | +## includedir | |
| 50 | +# | |
| 51 | +# If '--prefix' is not /usr/localaults to '/usr/local' unless 'options-defaults { prefix ... }'prefix ... }' # | |
| 52 | + program-transform-name: | |
| 53 | +} | |
| 54 | + | |
| 55 | +# @check-feature name { script } | |
| 56 | +# | |
| 57 | +# defines feature '$nReturns 1 if exists, or 0 if not | |
| 58 | +#ode} { | |
| 59 | + msg-checking "Checking for $name..." | |
| 60 | + set r [uplevel 1 $code | |
| 61 | + define-feature $name $r | |
| 62 | + if {$r} { | |
| 63 | + msg-result "ok" | |
| 64 | + } else { | |
| 65 | + msg-result "not found" | |
| 66 | + } | |
| 67 | + return $r | |
| 68 | +} | |
| 69 | + | |
| 70 | +# @have-feature name ?default=0? | |
| 71 | +# | |
| 72 | +# Returns the value of feature '$name' if defined,the feature if de | |
| 73 | +# is translated thehave-feature {name {defathe 0}. Use @top_sr# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 74 | +# All rights reserved | |
| 75 | + | |
| 76 | +# @synopsis: | |
| 77 | +# | |
| 78 | +# This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. | |
| 79 | +# | |
| 80 | +# It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H | |
| 81 | +# | |
| 82 | +# It defines the fol--prefix unless overridden by the module-optionsation and options | |
| 83 | +# such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. | |
| 84 | +# | |
| 85 | +# It also support the "feature" naming convention, where searching | |
| 86 | +# for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: | |
| 87 | +# | |
| 88 | +## datadir | |
| 89 | +## sysconfdir | |
| 90 | +## sharedstatedir | |
| 91 | +## localstatedir | |
| 92 | +## infodir | |
| 93 | +## mandir | |
| 94 | +## includedir | |
| 95 | +# | |
| 96 | +# If '--prefix' is not /usr/localaults to '/usr/local' unless 'options-defaults { prefix ... }'prefix ... }' # | |
| 97 | + program-transform-name: | |
| 98 | +} | |
| 99 | + | |
| 100 | +# @check-feature set prefixdefine[get-env exec-prefix \${prefix}]]\${exec_prefix}/bi# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 101 | +# All rights reserved | |
| 102 | + | |
| 103 | +# @synopsis: | |
| 104 | +# | |
| 105 | +# This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. | |
| 106 | +# | |
| 107 | +# It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H | |
| 108 | +# | |
| 109 | +# It defines the fol--prefix unless overridden by the module-optionsation and options | |
| 110 | +# such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. | |
| 111 | +# | |
| 112 | +# It also support the "feature" naming convention, where searching | |
| 113 | +# for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: | |
| 114 | +# | |
| 115 | +## datadir | |
| 116 | +## sysconfdir | |
| 117 | +## sharedstatedir | |
| 118 | +## localstatedir | |
| 119 | +## infodir | |
| 120 | +## mandir | |
| 121 | +## includreadfile $infileAnd less common ones too | |
| 122 | +, 'buil \${prefix} | |
| 123 | +define define define libexecdir [get-env ] | |
| 124 | +define datadir \${prefix}/share | |
| 125 | +] | |
| 126 | +define define localstatedir [get-env localvar] | |
| 127 | +define define infodir [get-env s: | |
| 128 | +# | |
| 129 | +# This module supports c# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ | |
| 130 | +# All rights rese |
| --- a/autosetup/system.tcl | |
| +++ b/autosetup/system.tcl | |
| @@ -0,0 +1,130 @@ | |
| --- a/autosetup/system.tcl | |
| +++ b/autosetup/system.tcl | |
| @@ -0,0 +1,130 @@ | |
| 1 | # Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 2 | # All rights reserved |
| 3 | |
| 4 | # @synopsis: |
| 5 | # |
| 6 | # This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. |
| 7 | # |
| 8 | # It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H |
| 9 | # |
| 10 | # It defines the fol--prefix unless overridden by th |
| 11 | # Note that the hidden unless 'options-defaults { prefix compatibility |
| 12 | module-optionsation and options |
| 13 | # such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. |
| 14 | # |
| 15 | # It also support the "feature" naming convention, where searching |
| 16 | # for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: |
| 17 | # |
| 18 | ## datadir |
| 19 | ## sysconfdir |
| 20 | ## sharedstatedir |
| 21 | ## localstatedir |
| 22 | ## infodir |
| 23 | ## mandir |
| 24 | ## includedir |
| 25 | # |
| 26 | # If '--pre |
| 27 | # defines featuresysconf { |
| 28 | msg-checking "Che 2010 WorkWare Systems http://www.workware.net.au/ |
| 29 | # All rights reserved |
| 30 | |
| 31 | # @synopsis: |
| 32 | # |
| 33 | # This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. |
| 34 | # |
| 35 | # It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H |
| 36 | # |
| 37 | # It defines the fol--prefix unless overridden by the module-optionsation and options |
| 38 | # such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. |
| 39 | # |
| 40 | # It also support the "feature" naming convention, where searching |
| 41 | # for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: |
| 42 | # |
| 43 | ## datadir |
| 44 | ## sysconfdir |
| 45 | ## sharedstatedir |
| 46 | ## localstatedir |
| 47 | ## infodir |
| 48 | ## mandir |
| 49 | ## includedir |
| 50 | # |
| 51 | # If '--prefix' is not /usr/localaults to '/usr/local' unless 'options-defaults { prefix ... }'prefix ... }' # |
| 52 | program-transform-name: |
| 53 | } |
| 54 | |
| 55 | # @check-feature name { script } |
| 56 | # |
| 57 | # defines feature '$nReturns 1 if exists, or 0 if not |
| 58 | #ode} { |
| 59 | msg-checking "Checking for $name..." |
| 60 | set r [uplevel 1 $code |
| 61 | define-feature $name $r |
| 62 | if {$r} { |
| 63 | msg-result "ok" |
| 64 | } else { |
| 65 | msg-result "not found" |
| 66 | } |
| 67 | return $r |
| 68 | } |
| 69 | |
| 70 | # @have-feature name ?default=0? |
| 71 | # |
| 72 | # Returns the value of feature '$name' if defined,the feature if de |
| 73 | # is translated thehave-feature {name {defathe 0}. Use @top_sr# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 74 | # All rights reserved |
| 75 | |
| 76 | # @synopsis: |
| 77 | # |
| 78 | # This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. |
| 79 | # |
| 80 | # It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H |
| 81 | # |
| 82 | # It defines the fol--prefix unless overridden by the module-optionsation and options |
| 83 | # such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. |
| 84 | # |
| 85 | # It also support the "feature" naming convention, where searching |
| 86 | # for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: |
| 87 | # |
| 88 | ## datadir |
| 89 | ## sysconfdir |
| 90 | ## sharedstatedir |
| 91 | ## localstatedir |
| 92 | ## infodir |
| 93 | ## mandir |
| 94 | ## includedir |
| 95 | # |
| 96 | # If '--prefix' is not /usr/localaults to '/usr/local' unless 'options-defaults { prefix ... }'prefix ... }' # |
| 97 | program-transform-name: |
| 98 | } |
| 99 | |
| 100 | # @check-feature set prefixdefine[get-env exec-prefix \${prefix}]]\${exec_prefix}/bi# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 101 | # All rights reserved |
| 102 | |
| 103 | # @synopsis: |
| 104 | # |
| 105 | # This module supports common system interroga--host, --build, --prefix, and setting srcdir, builddir, and EXEXT. |
| 106 | # |
| 107 | # It naming convention, where searchisys/type.h defines HAVE_SYS_TYPES_H |
| 108 | # |
| 109 | # It defines the fol--prefix unless overridden by the module-optionsation and options |
| 110 | # such as '--host', '--build', '--prefix', and setting 'srcdir', 'builddir', and 'EXEEXT'. |
| 111 | # |
| 112 | # It also support the "feature" naming convention, where searching |
| 113 | # for a feature such as 'sys/type => ines the followins to '$defaultprefix overridden by the user: |
| 114 | # |
| 115 | ## datadir |
| 116 | ## sysconfdir |
| 117 | ## sharedstatedir |
| 118 | ## localstatedir |
| 119 | ## infodir |
| 120 | ## mandir |
| 121 | ## includreadfile $infileAnd less common ones too |
| 122 | , 'buil \${prefix} |
| 123 | define define define libexecdir [get-env ] |
| 124 | define datadir \${prefix}/share |
| 125 | ] |
| 126 | define define localstatedir [get-env localvar] |
| 127 | define define infodir [get-env s: |
| 128 | # |
| 129 | # This module supports c# Copyright (c) 2010 WorkWare Systems http://www.workware.net.au/ |
| 130 | # All rights rese |
+15
| --- a/autosetup/test-tclsh | ||
| +++ b/autosetup/test-tclsh | ||
| @@ -0,0 +1,15 @@ | ||
| 1 | +# A small Tcl script to verify that the chosen | |
| 2 | +# interpreter works. Sometimes we might e.g. pick up | |
| 3 | +# an interpreter for a different arch. | |
| 4 | +# Outputs the full path to the interpreter | |
| 5 | + | |
| 6 | +if {[catch {info version} version] == 0} { | |
| 7 | + = 0} { | |
| 8 | + # This is Jim Tcl | |
| 9 | + if {$vera a | |
| 10 | + | |
| 11 | + # Unlike Tcl, can [info nameofexecutable[file join [p] | |
| 12 | + exit 0 | |
| 13 | + } | |
| 14 | +} elseif {[catch {info tclversion} version] == 0} { | |
| 15 | + if {$version >= 8.5 && ![string match 8.5a* [info patc |
| --- a/autosetup/test-tclsh | |
| +++ b/autosetup/test-tclsh | |
| @@ -0,0 +1,15 @@ | |
| --- a/autosetup/test-tclsh | |
| +++ b/autosetup/test-tclsh | |
| @@ -0,0 +1,15 @@ | |
| 1 | # A small Tcl script to verify that the chosen |
| 2 | # interpreter works. Sometimes we might e.g. pick up |
| 3 | # an interpreter for a different arch. |
| 4 | # Outputs the full path to the interpreter |
| 5 | |
| 6 | if {[catch {info version} version] == 0} { |
| 7 | = 0} { |
| 8 | # This is Jim Tcl |
| 9 | if {$vera a |
| 10 | |
| 11 | # Unlike Tcl, can [info nameofexecutable[file join [p] |
| 12 | exit 0 |
| 13 | } |
| 14 | } elseif {[catch {info tclversion} version] == 0} { |
| 15 | if {$version >= 8.5 && ![string match 8.5a* [info patc |
+2
| --- a/configure | ||
| +++ b/configure | ||
| @@ -0,0 +1,2 @@ | ||
| 1 | +#!/bin/sh | |
| 2 | +dir="$(dirname "$0")ec `"$dir/find-tcl" || echo fa$("$dir/find-tcl" || echo fals |
| --- a/configure | |
| +++ b/configure | |
| @@ -0,0 +1,2 @@ | |
| --- a/configure | |
| +++ b/configure | |
| @@ -0,0 +1,2 @@ | |
| 1 | #!/bin/sh |
| 2 | dir="$(dirname "$0")ec `"$dir/find-tcl" || echo fa$("$dir/find-tcl" || echo fals |
+5
-1
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -24,10 +24,14 @@ | ||
| 24 | 24 | #define _LARGE_FILE 1 |
| 25 | 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | 27 | #endif |
| 28 | 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | + | |
| 30 | +#ifdef HAVE_AUTOCONFIG_H | |
| 31 | +#include "autoconfig.h" | |
| 32 | +#endif | |
| 29 | 33 | |
| 30 | 34 | #ifndef _RC_COMPILE_ |
| 31 | 35 | |
| 32 | 36 | /* |
| 33 | 37 | ** System header files used by all modules |
| @@ -85,11 +89,11 @@ | ||
| 85 | 89 | #include "sqlite3.h" |
| 86 | 90 | |
| 87 | 91 | /* |
| 88 | 92 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 89 | 93 | */ |
| 90 | -#if defined(__sun__) || defined(sun) | |
| 94 | +#if HAVE_GETPASSPHRASE | |
| 91 | 95 | #define getpass getpassphrase |
| 92 | 96 | #endif |
| 93 | 97 | |
| 94 | 98 | /* |
| 95 | 99 | ** Typedef for a 64-bit integer |
| 96 | 100 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,14 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | #ifndef _RC_COMPILE_ |
| 31 | |
| 32 | /* |
| 33 | ** System header files used by all modules |
| @@ -85,11 +89,11 @@ | |
| 85 | #include "sqlite3.h" |
| 86 | |
| 87 | /* |
| 88 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 89 | */ |
| 90 | #if defined(__sun__) || defined(sun) |
| 91 | #define getpass getpassphrase |
| 92 | #endif |
| 93 | |
| 94 | /* |
| 95 | ** Typedef for a 64-bit integer |
| 96 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,14 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | #ifdef HAVE_AUTOCONFIG_H |
| 31 | #include "autoconfig.h" |
| 32 | #endif |
| 33 | |
| 34 | #ifndef _RC_COMPILE_ |
| 35 | |
| 36 | /* |
| 37 | ** System header files used by all modules |
| @@ -85,11 +89,11 @@ | |
| 89 | #include "sqlite3.h" |
| 90 | |
| 91 | /* |
| 92 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 93 | */ |
| 94 | #if HAVE_GETPASSPHRASE |
| 95 | #define getpass getpassphrase |
| 96 | #endif |
| 97 | |
| 98 | /* |
| 99 | ** Typedef for a 64-bit integer |
| 100 |