mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Check host_alias on one place (#13042)
This commit is contained in:
parent
948b2bc211
commit
d657d5592e
2 changed files with 1 additions and 7 deletions
|
@ -31,12 +31,6 @@ dnl
|
||||||
dnl Set some magic defines to achieve POSIX threads conformance.
|
dnl Set some magic defines to achieve POSIX threads conformance.
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([PTHREADS_FLAGS],[
|
AC_DEFUN([PTHREADS_FLAGS],[
|
||||||
if test -z "$host_alias" && test -n "$host"; then
|
|
||||||
host_alias=$host
|
|
||||||
fi
|
|
||||||
if test -z "$host_alias"; then
|
|
||||||
AC_MSG_ERROR(host_alias is not set. Make sure to run config.guess)
|
|
||||||
fi
|
|
||||||
case $host_alias in
|
case $host_alias in
|
||||||
*solaris*)
|
*solaris*)
|
||||||
PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
|
PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
|
||||||
|
|
|
@ -124,7 +124,7 @@ AC_DEFUN([PHP_CANONICAL_HOST_TARGET],[
|
||||||
host_alias=$host
|
host_alias=$host
|
||||||
fi
|
fi
|
||||||
if test -z "$host_alias"; then
|
if test -z "$host_alias"; then
|
||||||
AC_MSG_ERROR([host_alias is not set!])
|
AC_MSG_ERROR([host_alias is not set! Make sure to run config.guess])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue