[Flac-dev] more changes

Matt Zimmerman mdz at debian.org
Thu Nov 1 12:23:44 PST 2001


On Thu, Nov 01, 2001 at 11:47:40AM -0800, Josh Coalson wrote:

> --- Matt Zimmerman <mdz at debian.org> wrote:
> 
> > Speaking of standardization, is there some reason not to use getopt
> > or getopt_long in flac?
> 
> only that I'm not sure how that would work with MSVC builds.

autoconf makes it quick and painless to ship your own versions of
library functions that you need, and only link them in if they are not
present on the system.  You can use getopt.c from glibc, and
AC_REPLACE_FUNCS(getopt_long).  For MSVC, we could just edit Makefile.vc
to always include getopt.c.  I think it will probably compile, but I
don't know for sure.  I know everything works fine with autoconf and
cygwin32.

I suggest it because flac has accumulated a lot of command-line options,
and it would be nice to have long option equivalents for many of them,
and to do non-option argument processing in a straightforward way.

> doing the ogg stuff made me realize I need to rewrite flac from
> scratch.  libFLAC is fine, but the command-line wrapper was born of
> ethusiasm to see some results in the early days.  when I get around to
> that I will probably do the stuff you mention, getopt, audiofile, etc.

I understand.  I'll hold off on making patches for this stuff until that
happens, then.

-- 
 - mdz




More information about the Flac-dev mailing list