I'm trying to compile a complex numerical simulation software. After running autoconf
and then ./configure ...
(with some other flags), I see the following in the output:
checking for malloc in -ltcmalloc... no
configure: WARNING: No tcmalloc support available.
After looking in configure.in
I found:
%zsh> grep 'tcmalloc' configure.in
AC_CHECK_LIB(tcmalloc,malloc,,AC_MSG_WARN([No tcmalloc support available.]))
I have gperftools installed which should provide tcmalloc I think. I do have a few libraries that are called something like that:
%zsh> ldconfig -p|grep 'tcmalloc'
libtcmalloc_minimal_debug.so.4 (libc6,x86-64) => /usr/lib/libtcmalloc_minimal_debug.so.4
libtcmalloc_minimal_debug.so (libc6,x86-64) => /usr/lib/libtcmalloc_minimal_debug.so
libtcmalloc_minimal.so.4 (libc6,x86-64) => /usr/lib/libtcmalloc_minimal.so.4
libtcmalloc_minimal.so (libc6,x86-64) => /usr/lib/libtcmalloc_minimal.so
libtcmalloc_debug.so.4 (libc6,x86-64) => /usr/lib/libtcmalloc_debug.so.4
libtcmalloc_debug.so (libc6,x86-64) => /usr/lib/libtcmalloc_debug.so
libtcmalloc_and_profiler.so.4 (libc6,x86-64) => /usr/lib/libtcmalloc_and_profiler.so.4
libtcmalloc_and_profiler.so (libc6,x86-64) => /usr/lib/libtcmalloc_and_profiler.so
libtcmalloc.so.4 (libc6,x86-64) => /usr/lib/libtcmalloc.so.4
libtcmalloc.so (libc6,x86-64) => /usr/lib/libtcmalloc.so
I tried adding libtcmalloc
to the list in configure.in
but I just get:
checking for tcmalloc in -llibtcmalloc... ./configure: line 11516: WARNING:: command not found
no
Is there a way to get autoconf's AC_CHECK_LIB
to detect my tcmalloc library?
config.log
file say around the failing test? There are two things that are strange here: 1) You get a "command not found" error, and 2) it's testing with-llibtcmalloc
instead of-ltcmalloc
. If you can look in theconfig.log
file for why this is so, then maybe we could sort this out. If you could mention what the software is called and where to find it, we could test compiling it for ourselves to see whether we too get the same error.configure
,configure.in
or similar file in the source distribution.configure.in
at some point, as mentioned, hence the-llibtcmalloc
part. Surprisingly, in a fresh source tree, I can't reproduce the warning anymore.