Revision 009cf97d configure

View differences:

configure
70 70
echo "  --enable-small           optimize for size instead of speed"
71 71
echo "  --enable-memalign-hack   emulate memalign, interferes with memory debuggers"
72 72
echo "  --disable-strip          disable stripping of executables and shared libraries"
73
echo "  --enable-code=codec      enables codec"
74
echo "  --disable-code=codec     disables codec"
75
echo "  --disable-encoders       disables all encoders"
73 76
echo ""
74 77
echo "NOTE: The object files are build at the place where configure is launched"
75 78
exit 1
......
376 379
  FFMPEG_CONFIGURATION="$FFMPEG_CONFIGURATION""$opt "
377 380
done
378 381

  
382
CODEC_LIST=`grep 'register_avcodec(&[a-z]' libavcodec/allcodecs.c  | sed 's/.*&\(.*\)).*/\1/'`
383

  
379 384
for opt do
380 385
  case "$opt" in
381 386
  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
......
490 495
  ;;
491 496
  --disable-strip) dostrip="no"
492 497
  ;;
498
  --enable-codec=*) CODEC_LIST="$CODEC_LIST ${opt#--enable-codec=}"
499
  ;;
500
  --disable-codec=*) CODEC_LIST="`echo $CODEC_LIST | sed -e \"s#${opt#--disable-codec=}##\"`"
501
  ;;
502
  --disable-encoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*encoder//g'`"
503
  ;;
493 504
  esac
494 505
done
495 506

  
......
1577 1588

  
1578 1589
fi
1579 1590

  
1591
for codec in $CODEC_LIST ; do
1592
    echo "#define CONFIG_`echo $codec | awk '{$1=toupper($1)}1'` 1" >> $TMPH
1593
done
1594

  
1580 1595
diff $TMPH config.h >/dev/null 2>&1
1581 1596
if test $? -ne 0 ; then
1582 1597
	mv -f $TMPH config.h

Also available in: Unified diff