[lttng-dev] [PATCH 1/1] Disable liblttng-ust-dl if dlinfo is not available in C library.

Yann E. MORIN yann.morin.1998 at free.fr
Tue Apr 8 13:24:42 EDT 2014


Simon, All,

On 2014-04-08 13:03 -0400, Simon Marchi spake thusly:
> Hi Romain,
> 
> It seems like with that commit, dlinfo is not found even on a glibc
> based system, where it is present.
> 
> See https://bugs.lttng.org/issues/778
> 
> Do you have a suggestion to fix that ?

I think we should use AC_CHECK_DECL instead of AC_CHECK_FUNCS.

dlinfo is in dlfcn.h so we need a check that allows us to include that
header, and we must check for that header first, of course. So, maybe
something like (completely untested, directly written in the mail):

    AC_CHECK_HEADER([dlfcn.h])
    AS_IF([test "${ac_cv_header_dlfcn_h}" = "yes"],
          [AC_CHECK_DECL([dlinfo],,,[dlfcn.h])],
          [ac_cv_have_decl_dlinfo="no"])
    AM_CONDITIONAL([HAVE_DLINFO], [test "${ac_cv_have_decl_dlinfo}" = "yes"])

But I'm no expert in autoconf, so the actual solution may be slightly
different.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the lttng-dev mailing list