Le 08/12/2011 23:02, Jeff Squyres a écrit : > Brice -- > > There might be a way to test for this in configure. What if we added a > AC_CONFIG_COMMANDS (i.e., commands that run at the end of config.status -- > after the libtool shell script is created) that try to use the generated > libtool script to compile something with libnuma? > > This test can run if libnuma was previously found to be "working" in earlier > configure tests. Meaning: hwloc expects libnuma to compile/link > successfully. > > This test can compile/link a trivial application that uses a libnuma API > call. If it fails to link, we can reasonably assume that the generated > libtool script was trying to link in a way that is not supported by libnuma > (e.g., we can even check $enable_static / $enable_shared), and then fail with > a decent error message. > > What do you think? > > (I don't have time ATM to code this up, but it sounds possible...)
Could be a good idea indeed, but I don't know how to code this up :) At some point, I'd like to know if some distros are really planning to remove all static libs. I think I remember reading this at some point. Brice