Port: Fixes to build system for portability Move our own m4 scripts to m4/. Scripts in this directory are automatically included. Make nproc command configurable. Make grep command configurable. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix TLS detection: test with linker, add --disable-compiler-tls NetBSD 5.1 and older, as well as Darwin, succeed to compile code containing TLS, but cannot link it. Test with linker in addition to compiler for TLS support. Also add a --disable-compiler-tls configure option to allow users to force using the pthread getspecific fall back. Fixes #288 Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix: re-enable compatibility with autoconf < 2.64 > I tried to build the latest urcu (git master e51500) on a Centos 6.2 box, and got: > > jscott@dxi0-62:~/src/userspace-rcu$ make -j4 > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run aclocal-1.11 -I > +config > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run autoconf > cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run automake-1.11 --foreign > configure:4010: error: possibly undefined macro: m4_ifnblank > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > make: *** [configure] Error 1 > make: *** Waiting for unfinished jobs.... > > Some digging showed that the macro m4_ifnblank requires autoconf 2.64. Centos 6.2 has autoconf 2.63. :( > > I just worked around it by reverting commit a767fd locally, then I can build fine. Reported-by: John Steele Scott <toojays@toojays.net> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>