[FFmpeg-devel] configure script and "toupper()", Solaris vs FreeBSD

usleepless at gmail.com usleepless
Tue Aug 14 21:25:22 CEST 2007


Hi All,

i am trying to get Mythtv-SVN to compile on FreeBSD. however, Mythtv
is borrowing it's configure script from ffmpeg. the guys who are
maintaining ffmpeg for FreeBSD have the same problem:

in the configure script there is a function called "toupper". the
current implementation of this function does not work properly on
FreeBSD:

toupper(){
    echo "$@" | tr '[a-z]' '[A-Z]'
}

implementations that do work on Freebsd:

toupper(){
    echo "$@" | tr "[a-z]" "[A-Z]"
}

toupper(){
    echo "$@" | tr [a-z] [A-Z]
}

or

toupper(){
    echo "$@" | tr [:lower:] [:upper:]
}

will it be worth the effort to add this to your "List of issues" ? or
should i post a patch to this list?

are there people on this list who can confirm which of these
implementations will work on Solaris and Linux? are there people on
this list who have an opinion on this matter?

any feedback is greatly appreciated.

regards,

usleep




More information about the ffmpeg-devel mailing list