X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=d83a24a4bb8a68c2c29a104b65721fb8ffa5db4f;hb=5c319d33348c59761fb80d524e58f50d8aaf4fb7;hp=89040cbe2b3c785d28663702e789dfead3927796;hpb=64e13d69145db9c1f6f2a0bc133c8ea6d9630b85;p=ffmpeg diff --git a/configure b/configure index 89040cbe2b3..d83a24a4bb8 100755 --- a/configure +++ b/configure @@ -68,6 +68,8 @@ show_help(){ echo " --disable-shared do not build shared libraries [default=yes]" echo " --enable-gpl allow use of GPL code, the resulting libav*" echo " and ffmpeg will be under GPL [default=no]" + echo " --enable-nonfree allow use of nonfree code, the resulting libav*" + echo " and ffmpeg will be unredistributable [default=no]" echo " --enable-pp enable GPLed postprocessing support [default=no]" echo " --enable-swscaler software scaler support [default=no]" echo " --enable-beosthreads use BeOS threads [default=no]" @@ -213,13 +215,13 @@ EOF exit 1 } -# "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z" +# Avoid locale weirdness, besides we really just want to translate ASCII. toupper(){ - echo "$@" | tr '[a-z]' '[A-Z]' + echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ } tolower(){ - echo "$@" | tr '[A-Z]' '[a-z]' + echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz } set_all(){ @@ -491,7 +493,7 @@ check_func2(){ done check_ld "$@" </dev/null 2>&1; then enable sdl check_cc $sdl_cflags < -int main(void){ +int main(int argc, char **argv){ const SDL_VideoInfo *vi = SDL_GetVideoInfo(); int w = vi->current_w; return 0; @@ -1777,6 +1777,9 @@ check_cflags -Wdisabled-optimization check_cflags -Wpointer-arith check_cflags -Wredundant-decls check_cflags -Wno-pointer-sign +check_cflags -Wcast-qual +check_cflags -Wwrite-strings +check_cflags -Wtype-limits enabled extra_warnings && check_cflags -Winline # add some linker flags @@ -1928,9 +1931,11 @@ for type in decoder encoder parser demuxer muxer protocol bsf indev outdev; do echo $partlist done -enabled gpl && - echo "License: GPL" || - echo "License: LGPL" +enabled nonfree && + echo "License: unredistributable" || + (enabled gpl && + echo "License: GPL" || + echo "License: LGPL") echo "Creating config.mak and config.h..." @@ -1951,7 +1956,6 @@ echo "MAKE=$make" >> config.mak echo "CC=$cc" >> config.mak echo "AR=$ar" >> config.mak echo "RANLIB=$ranlib" >> config.mak -echo "LDCONFIG=$LDCONFIG" >> config.mak echo "LN_S=$ln_s" >> config.mak enabled dostrip && echo "STRIP=$strip" >> config.mak ||