> checking for magic.h... no > checking for zlib.h... yes > checking for uncompress in -lz... yes > checking for png.h... no > checking for mad.h... no > checking for id3tag.h... no > checking for lame/lame.h... no > checking for lame.h... no > > $ pkg_info -L lame | grep .h$ > /usr/local/include/lame/lame.h > > OpenBSD installs third-party packages into /usr/local/, > but the configure script does not look there; it porbably > only searches in /usr, because that's where linux distributions > install their packages. (I'm not saying it should > -- I will test the same with -I added to the CPPFLAGS, > as the OpenBSD port of SoX does.)
Running ./configure with CPPFLAGS and LDFLAGS, so that the headers and libraries are found, as per ./configure --help: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> I am looking at png as an example. With plain ./configure , png.h (which is /usr/local/include/png.h) is not found, as described above. checking for png.h... no With ./configure CPPFLAGS='-I/usr/local/include' the png.h header is found, but the library is not, unsurprisingly. But: $ ./configure CPPFLAGS='-I/usr/local/include' [...] checking for png.h... yes checking for png_set_rows in -l101... no I have no idea how the -l101 got there. checking for mad.h... yes checking for mad_stream_buffer in -l101... no checking for id3tag.h... yes checking for id3_file_open in -l101... no checking for lame/lame.h... yes checking for lame_init in -l101... no checking for twolame.h... yes checking for twolame_init in -l101... no checking for gsm/gsm.h... no checking for gsm.h... yes checking for gsm_create in -l101... no Apparently, all the external library functions are searched for in 'lib101' now. Adding LDFLAGS='-L/usr/local/lib' so that the actual libraries are found result in the same: $ ./configure CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' [...] checking for png.h... yes checking for png_set_rows in -l101... no checking for mad.h... yes checking for mad_stream_buffer in -l101... no checking for id3tag.h... yes checking for id3_file_open in -l101... no checking for lame/lame.h... yes checking for lame_init in -l101... no checking for twolame.h... yes checking for twolame_init in -l101... no checking for gsm/gsm.h... no checking for gsm.h... yes checking for gsm_create in -l101... no For some others, the check seems sensible: checking for wavpack/wavpack.h... yes checking for WavpackGetSampleRate in -lwavpack... no But: $ nm /usr/local/lib/libwavpack.so.0.3 | grep WavpackGetSampleRate 0000b8e0 T WavpackGetSampleRate For some, the check is sane and the detection is correct: checking for sndio.h... yes checking for sio_open in -lsndio... yes Then again: checking for ao/ao.h... yes checking for ao_play in -lao... no $ nm /usr/local/lib/libao.so.5.0 | grep ao_play 000067c0 T ao_play Sndfile too: checking for sndfile.h... yes checking for sf_open_virtual in -l101... no Jan _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel