Skip to content

Question: Should we AC_CHECK_LIB the "prefix", "libname" or "linkname"? #1207

@jimklimov

Description

@jimklimov

Stumbled upon this line while sanitizing some project that has dashes and underscores mixed up in the name :

AC_CHECK_LIB([$(use.prefix)], [$(use.test:)],

        AC_CHECK_LIB([$(use.prefix)], [$(use.test:)],
            [
                was_$(use.project:c)_check_lib_detected=yes
                PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -l$(use.linkname)"
.       if optional
                AC_DEFINE(HAVE_$(USE.AM_LIB_MACRO), 1, [The optional $(use.libname) library is to be used (as -l$(use.linkname))])
            ],
            [])

I do not know (yet) if it causes any problems, but the discrepancy raised a flag for me so recording here ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions