|
87 | 87 | # modified version of the Autoconf Macro, you may extend this special |
88 | 88 | # exception to the GPL to apply to your modified version as well. |
89 | 89 |
|
90 | | -#serial 30 |
| 90 | +#serial 31 |
91 | 91 |
|
92 | 92 | AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) |
93 | 93 | AC_DEFUN([AX_PTHREAD], [ |
94 | | -AC_REQUIRE([AC_CANONICAL_TARGET]) |
| 94 | +AC_REQUIRE([AC_CANONICAL_HOST]) |
95 | 95 | AC_REQUIRE([AC_PROG_CC]) |
96 | 96 | AC_REQUIRE([AC_PROG_SED]) |
97 | 97 | AC_LANG_PUSH([C]) |
@@ -158,7 +158,7 @@ ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread -- |
158 | 158 | # --thread-safe: KAI C++ |
159 | 159 | # pthread-config: use pthread-config program (for GNU Pth library) |
160 | 160 |
|
161 | | -case $target_os in |
| 161 | +case $host_os in |
162 | 162 |
|
163 | 163 | freebsd*) |
164 | 164 |
|
@@ -248,7 +248,7 @@ AS_IF([test "x$ax_pthread_clang" = "xyes"], |
248 | 248 | # definitions is, on some systems, a strong hint that pthreads support is |
249 | 249 | # correctly enabled |
250 | 250 |
|
251 | | -case $target_os in |
| 251 | +case $host_os in |
252 | 252 | darwin* | hpux* | linux* | osf* | solaris*) |
253 | 253 | ax_pthread_check_macro="_REENTRANT" |
254 | 254 | ;; |
@@ -450,7 +450,7 @@ if test "x$ax_pthread_ok" = "xyes"; then |
450 | 450 | AC_CACHE_CHECK([whether more special flags are required for pthreads], |
451 | 451 | [ax_cv_PTHREAD_SPECIAL_FLAGS], |
452 | 452 | [ax_cv_PTHREAD_SPECIAL_FLAGS=no |
453 | | - case $target_os in |
| 453 | + case $host_os in |
454 | 454 | solaris*) |
455 | 455 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" |
456 | 456 | ;; |
@@ -480,7 +480,7 @@ if test "x$ax_pthread_ok" = "xyes"; then |
480 | 480 |
|
481 | 481 | # More AIX lossage: compile with *_r variant |
482 | 482 | if test "x$GCC" != "xyes"; then |
483 | | - case $target_os in |
| 483 | + case $host_os in |
484 | 484 | aix*) |
485 | 485 | AS_CASE(["x/$CC"], |
486 | 486 | [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], |
|
0 commit comments