1
2
3
4
5
6
7
8
9
10
|
# System autoconfiguration. Try: ./configure --help
use cc cc-lib
options {
with-openssl:path|auto|none
=> {Look for openssl in the given path, or auto or none}
with-zlib:path => {Look for zlib in the given path}
with-tcl:path => {Enable Tcl integration, with Tcl in the specified path}
with-tcl-stubs=0 => {Enable Tcl integration via stubs mechanism}
|
|
|
1
2
3
4
5
6
7
8
9
10
|
# System autoconfiguration. Try: ./configure --help
use cc cc-lib cc-run
options {
with-openssl:path|auto|none
=> {Look for openssl in the given path, or auto or none}
with-zlib:path => {Look for zlib in the given path}
with-tcl:path => {Enable Tcl integration, with Tcl in the specified path}
with-tcl-stubs=0 => {Enable Tcl integration via stubs mechanism}
|
230
231
232
233
234
235
236
237
238
239
|
# Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
if {![cc-check-functions getpassphrase]} {
# Haiku needs this
cc-check-function-in-lib getpass bsd
}
cc-check-function-in-lib dlopen dl
make-template Makefile.in
make-config-header autoconfig.h -auto {USE_* FOSSIL_*}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
# Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
if {![cc-check-functions getpassphrase]} {
# Haiku needs this
cc-check-function-in-lib getpass bsd
}
cc-check-function-in-lib dlopen dl
# Check for long double bug
# See test/long-double.test for more information.
set code {
volatile long long n; volatile long double ld;
n = 2147483648L; ld = n;
if (ld < 0) return 1;
}
switch -glob -- [get-define host] {
sparc64-*-openbsd* {
msg-checking "Checking for long double bug..."
# If we're cross compiling we won't be able to run
# binaries at all, so first check and see if a trivial
# program runs okay.
if {[cc-run -code {return 0;}]} {
if {[cc-run -code $code]} {
msg-result "not found"
} else {
msg-result "found"
define-append EXTRA_CFLAGS -DLONGDOUBLE_TYPE=double
}
} else {
msg-result "Unable to test, assuming bug not present"
}
}
}
make-template Makefile.in
make-config-header autoconfig.h -auto {USE_* FOSSIL_*}
|