Jan Stary <h...@stare.cz> writes:

> On Aug 28 10:21:41, m...@mansr.com wrote:
>> Jan Stary <h...@stare.cz> writes:
>> 
>> > On Aug 27 11:21:58, h...@stare.cz wrote:
>> >> Testing on NetBSD 8.0, with the latest commits
>> >> to the new-build branch pulled in.
>> >
>> > With ./configure CPPFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib
>> > the external libraries are detected, with the exception of png:
>> >
>> > checking for png.h... yes
>> > checking for png_set_rows in -lpng... no
>> >
>> > The problem is that the png library,
>> > as installed by the NetBSD packaging system,
>> > is /usr/pkg/lib/libpng16.so, not /usr/pkg/lib/libpng.so
>> > (the header is /usr/pkg/include/png.h).
>> 
>> I will not attempt to guess what alternative names libraries might have
>> been installed under.  If you've renamed things, it's on you to inform
>> the build system of the new name.  Like this:
>> 
>> $ ./configure --with-png=png16
>
> That results in
>
> checking for png.h... yes
> checking for png_set_rows in -lpng16... no
>
> $ nm /usr/pkg/lib/libpng16.so | grep png_set_rows
> 000000000001d6f2 T png_set_rows

Then your library search path isn't set right.  If you're hoping to
embark on a two-week argument over the same thing on NetBSD, I'm going
to have to disappoint you.

It works with LIBRARY_PATH=/usr/pkg/lib, and I'm leaving it at that.
If you refuse to use the simple, obvious, and documented solution,
you're on your own.

> ./configure --help says
>
> --with-png              Use png (YES/no/*)
>
> What does the '*' stand for?

It means you can supply an arbitrary name.

> Is there a difference between YES and yes?
> (Some other options have 'yes' instead of 'YES'.)
> Does the capitalizing mean it's the default?
> If so, do the options without capitalized values have no defualt?

Alternatives in capitals are defaults.  Where none is indicated, the
default depends on some other option.

-- 
Måns Rullgård


_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to