1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00
libsodium/build-aux
Jørgen P. Tjernø 100ccb452d Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-10-09 18:39:02 +02:00
..
compile Portability improvements (#1105) 2021-10-09 18:39:02 +02:00
config.guess Update config.* 2021-01-27 14:02:31 +01:00
config.sub Portability improvements (#1105) 2021-10-09 18:39:02 +02:00
depcomp Portability improvements (#1105) 2021-10-09 18:39:02 +02:00
install-sh Automake update 2020-11-24 22:55:50 +01:00
ltmain.sh Regen autoconf files 2017-10-01 17:17:11 +02:00
missing Portability improvements (#1105) 2021-10-09 18:39:02 +02:00
test-driver Portability improvements (#1105) 2021-10-09 18:39:02 +02:00