Saturday, September 25, 2010

Re: [Discuss-gnuradio] UHD Announcement - September 23rd 2010

This turns out to be a bug in gnuradio configure - when --prefix is not
specified with ./configure, the ${prefix} variable is set to NONE

http://www.mail-archive.com/autoconf@gnu.org/msg15772.html

The following code with yeild a PKG_CONFIG_PATH of NONE/lib/pkgconfig

> dnl add ${prefix}/lib${gr_libdir_suffix}/pkgconfig to the head of the PKG_CONFIG_PATH
> if test x${PKG_CONFIG_PATH} = x; then
> PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
> else
> PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
> fi
> export PKG_CONFIG_PATH

if may be more appropriate to do the following somewhere at the top of
configure.ac

if test "${prefix}" = "NONE"; then
prefix=${ac_default_prefix}
fi

gr_standalone.m4 and configure.ac both seem to have this issue

-Josh

On 09/25/2010 09:32 AM, Marcus D. Leech wrote:
>>
>>
>>
>> The problem being that /usr/local/lib/pkgconfig isnt honoring the
>> users prefix and possibly libdir. Perhaps we can still make this
>> right... Does this patch work for you?
>>
>> -Josh
>>
> Still no worky. Must set PKG_CONFIG_PATH manually. I confirmed that
> the patch had been applied to the .m4, then did a "make distclean"
> then a "./bootstrap", then a "./configure". The configure fails to
> find UHD unless I explicitly set PKG_CONFIG_PATH.
>
>

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment