diff options
author | Daniel Richard G <skunk@iSKUNK.ORG> | 2013-03-29 18:22:06 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-03-29 18:22:06 +0100 |
commit | 386b290576d78b33da477bc2c4620f81ea730eea (patch) | |
tree | c81f11a54c86484a7cf015a1da8b70caffb36f0e /m4/ax_pthread.m4 | |
parent | 5b0848445b93ea74571519b39950f142f09575e1 (diff) | |
download | autoconf-archive-386b290576d78b33da477bc2c4620f81ea730eea.tar.gz |
AX_PTHREAD: fix support for AIX
See <http://savannah.gnu.org/patch/?7973> for further details.
Diffstat (limited to 'm4/ax_pthread.m4')
-rw-r--r-- | m4/ax_pthread.m4 | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index d229832..6d400ed 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -82,7 +82,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 19 +#serial 20 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [ @@ -292,21 +292,15 @@ if test "x$ax_pthread_ok" = xyes; then [#handle absolute path differently from PATH based program lookup AS_CASE(["x$CC"], [x/*], - [AS_IF([AS_EXECUTABLE_P([${CC}_r])], - [PTHREAD_CC="${CC}_r"],[PTHREAD_CC="$CC"])], - [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])], - [PTHREAD_CC="$CC"]) - ;; - - *) - PTHREAD_CC="$CC" + [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])], + [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])]) ;; esac fi -else - PTHREAD_CC="$CC" fi +test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" + AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_CC) |