build: enable pseh only in x86

pseh supports only x86, no point in enabling it when libraries are
enabled. This enables downstream to enable libraries without failing.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
This commit is contained in:
Alon Bar-Lev 2017-11-04 23:02:29 +02:00 committed by Jonathan Yong
parent 153318bc44
commit 5d0cce058c
No known key found for this signature in database
GPG Key ID: 713B5FE29C145D45

View File

@ -58,10 +58,14 @@ AC_ARG_WITH([libraries],
[with_libraries=no])
AS_CASE([$with_libraries],
[yes|all],[
with_libraries="libmangle,pseh,winpthreads"
with_libraries="libmangle,winpthreads"
with_libraries_winpthreads=yes
with_libraries_mangle=yes
with_libraries_pseh=yes],
AS_CASE([$host_cpu],
[i?86], [
with_libraries="$with_libraries,pseh"
with_libraries_pseh=yes
])],
[libmangle],[
with_libraries="libmangle"
with_libraries_winpthreads=no