Rename sound classes to avoid a conflict with an enum named
cSound and defined in a system header on OSX:
cSound -> SoundBase, cSoundOSS -> SoundOSS, cSoundPA -> SoundPort
cMixer -> MixerBase, cMixerOSS -> MixerOSS
Also enable MixerBase ctor & virtual dtor, and delete some old comments
in the SoundPort declaration.
Config.{fl,h,cxx} -> confdialog{fl,h,cxx}. This ensures that there will
be no ambiguity between Config.h and the autogenerated config.h on
case-insensitive but case-preserving filesystems.
Split cMixer into base class and OSS implementation.
Add configure.ac macros to detect OSS and disable cMixerOSS and cSoundOSS.
Hide volume sliders if OSS is disabled, or if we are not managing the mixer.
Long arguments without a space (--opt=arg) now work correctly.
Also, move sound initialisation to a separate function, add an
undocumented --exit-after SECONDS argument, and update mkversions.sh
to include CXXFLAGS in the --version output.
Also fix a bug in putadif() where strings longer than the max
field size would be truncated to one less than that size.
Add a configure-time check for snprintf and vsnprintf because
flstring.h looks for HAVE_SNPRINTF and HAVE_VSNPRINTF
These are new in hamlib 1.2.6. We could require >= 1.2.6
in configure.ac, but then we would make packaging difficult
on Debian stable (etch) for no good reason.
With this automake option, "make distcheck" will also require the binary
to write text to stdout and exit with code 0 when called with --version
and --help. This way we get a free (but fairly basic) runtime check.
Also, use the AC_COPYRIGHT macro instead of a comment.
On FreeBSD include files for portaudio-1 are in /usr/local/include/portaudio
include files for portaudio-2 are in /usr/local/portaudio2
similarly for the libs.