Update ax_pthread.m4 to the latest version