Mercurial > mplayer.hg
comparison configure @ 22065:e0af0e2355a5
Unification of parameter handling part 2 of many:
Merge both parameter parsing passes.
author | diego |
---|---|
date | Tue, 30 Jan 2007 23:33:25 +0000 |
parents | fe9c882d50c2 |
children | 364154fec052 |
comparison
equal
deleted
inserted
replaced
22064:fe9c882d50c2 | 22065:e0af0e2355a5 |
---|---|
453 --help|-help|-h) | 453 --help|-help|-h) |
454 show_help | 454 show_help |
455 esac | 455 esac |
456 done | 456 done |
457 | 457 |
458 # 1st pass checking for vital options | 458 # GOTCHA: the variables below defines the default behavior for autodetection |
459 # and have - unless stated otherwise - at least 2 states : yes no | |
460 # If autodetection is available then the third state is: auto | |
459 _mmx=auto | 461 _mmx=auto |
460 _3dnow=auto | 462 _3dnow=auto |
461 _3dnowext=auto | 463 _3dnowext=auto |
462 _mmxext=auto | 464 _mmxext=auto |
463 _sse=auto | 465 _sse=auto |
474 test "$CC" && _cc="$CC" | 476 test "$CC" && _cc="$CC" |
475 _gcc_check=yes | 477 _gcc_check=yes |
476 _as=auto | 478 _as=auto |
477 _runtime_cpudetection=no | 479 _runtime_cpudetection=no |
478 _cross_compile=auto | 480 _cross_compile=auto |
479 for ac_option do | |
480 case "$ac_option" in | |
481 --target=*) | |
482 _target=`echo $ac_option | cut -d '=' -f 2` | |
483 ;; | |
484 --cc=*) | |
485 _cc=`echo $ac_option | cut -d '=' -f 2` | |
486 ;; | |
487 --host-cc=*) | |
488 _host_cc=`echo $ac_option | cut -d '=' -f 2` | |
489 ;; | |
490 --as=*) | |
491 _as=`echo $ac_option | cut -d '=' -f 2` | |
492 ;; | |
493 --enable-gcc-check) | |
494 _gcc_check=yes | |
495 ;; | |
496 --disable-gcc-check) | |
497 _gcc_check=no | |
498 ;; | |
499 --enable-static) | |
500 _ld_static='-static' | |
501 ;; | |
502 --disable-static) | |
503 _ld_static='' | |
504 ;; | |
505 --with-extraincdir=*) | |
506 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
507 ;; | |
508 --with-extralibdir=*) | |
509 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
510 ;; | |
511 --extra-libs=*) | |
512 _extra_libs=`echo $ac_option | cut -d '=' -f 2` | |
513 ;; | |
514 --extra-libs-mplayer=*) | |
515 _libs_mplayer=`echo $ac_option | cut -d '=' -f 2` | |
516 ;; | |
517 --extra-libs-mencoder=*) | |
518 _libs_mencoder=`echo $ac_option | cut -d '=' -f 2` | |
519 ;; | |
520 --enable-runtime-cpudetection) | |
521 _runtime_cpudetection=yes | |
522 ;; | |
523 --disable-runtime-cpudetection) | |
524 _runtime_cpudetection=no | |
525 ;; | |
526 --enable-cross-compile) | |
527 _cross_compile=yes | |
528 ;; | |
529 --disable-cross-compile) | |
530 _cross_compile=no | |
531 ;; | |
532 --with-install=*) | |
533 _install=`echo $ac_option | cut -d '=' -f 2 ` | |
534 ;; | |
535 --enable-profile) | |
536 _profile='-p' | |
537 ;; | |
538 --disable-profile) | |
539 _profile= | |
540 ;; | |
541 --enable-debug) | |
542 _debug='-g' | |
543 ;; | |
544 --enable-debug=*) | |
545 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` | |
546 ;; | |
547 --disable-debug) | |
548 _debug= | |
549 ;; | |
550 esac | |
551 done | |
552 | |
553 _prefix="/usr/local" | 481 _prefix="/usr/local" |
554 | |
555 # GOTCHA: the variables below defines the default behavior for autodetection | |
556 # and have - unless stated otherwise - at least 2 states : yes no | |
557 # If autodetection is available then the third state is: auto | |
558 _libavutil=auto | 482 _libavutil=auto |
559 _libavutil_so=auto | 483 _libavutil_so=auto |
560 _libavcodec=auto | 484 _libavcodec=auto |
561 _amr_nb=auto | 485 _amr_nb=auto |
562 _amr_nb_fixed=auto | 486 _amr_nb_fixed=auto |
726 _rpath=no | 650 _rpath=no |
727 _asmalign_pot=auto | 651 _asmalign_pot=auto |
728 _color_console=no | 652 _color_console=no |
729 for ac_option do | 653 for ac_option do |
730 case "$ac_option" in | 654 case "$ac_option" in |
731 # Skip 1st pass | 655 --target=*) |
732 --target=*) ;; | 656 _target=`echo $ac_option | cut -d '=' -f 2` |
733 --cc=*) ;; | 657 ;; |
734 --host-cc=*) ;; | 658 --cc=*) |
735 --as=*) ;; | 659 _cc=`echo $ac_option | cut -d '=' -f 2` |
736 --enable-gcc-check) ;; | 660 ;; |
737 --disable-gcc-check) ;; | 661 --host-cc=*) |
738 --enable-static*) ;; | 662 _host_cc=`echo $ac_option | cut -d '=' -f 2` |
739 --disable-static*) ;; | 663 ;; |
740 --with-extraincdir=*) ;; | 664 --as=*) |
741 --with-extralibdir=*) ;; | 665 _as=`echo $ac_option | cut -d '=' -f 2` |
742 --extra-libs=*) ;; | 666 ;; |
743 --extra-libs-mplayer=*) ;; | 667 --enable-gcc-check) |
744 --extra-libs-mencoder=*) ;; | 668 _gcc_check=yes |
745 --enable-runtime-cpudetection) ;; | 669 ;; |
746 --disable-runtime-cpudetection) ;; | 670 --disable-gcc-check) |
747 --enable-cross-compile) ;; | 671 _gcc_check=no |
748 --disable-cross-compile) ;; | 672 ;; |
749 --with-install=*) ;; | 673 --enable-static) |
750 --enable-profile) ;; | 674 _ld_static='-static' |
751 --disable-profile) ;; | 675 ;; |
752 --enable-debug) ;; | 676 --disable-static) |
753 --enable-debug=*) ;; | 677 _ld_static='' |
754 --disable-debug) ;; | 678 ;; |
755 | 679 --with-extraincdir=*) |
756 # Real 2nd pass | 680 _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
681 ;; | |
682 --with-extralibdir=*) | |
683 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
684 ;; | |
685 --extra-libs=*) | |
686 _extra_libs=`echo $ac_option | cut -d '=' -f 2` | |
687 ;; | |
688 --extra-libs-mplayer=*) | |
689 _libs_mplayer=`echo $ac_option | cut -d '=' -f 2` | |
690 ;; | |
691 --extra-libs-mencoder=*) | |
692 _libs_mencoder=`echo $ac_option | cut -d '=' -f 2` | |
693 ;; | |
694 --enable-runtime-cpudetection) | |
695 _runtime_cpudetection=yes | |
696 ;; | |
697 --disable-runtime-cpudetection) | |
698 _runtime_cpudetection=no | |
699 ;; | |
700 --enable-cross-compile) | |
701 _cross_compile=yes | |
702 ;; | |
703 --disable-cross-compile) | |
704 _cross_compile=no | |
705 ;; | |
706 --with-install=*) | |
707 _install=`echo $ac_option | cut -d '=' -f 2 ` | |
708 ;; | |
709 --enable-profile) | |
710 _profile='-p' | |
711 ;; | |
712 --disable-profile) | |
713 _profile= | |
714 ;; | |
715 --enable-debug) | |
716 _debug='-g' | |
717 ;; | |
718 --enable-debug=*) | |
719 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` | |
720 ;; | |
721 --disable-debug) | |
722 _debug= | |
723 ;; | |
757 --enable-mencoder) _mencoder=yes ;; | 724 --enable-mencoder) _mencoder=yes ;; |
758 --disable-mencoder) _mencoder=no ;; | 725 --disable-mencoder) _mencoder=no ;; |
759 --enable-mplayer) _mplayer=yes ;; | 726 --enable-mplayer) _mplayer=yes ;; |
760 --disable-mplayer) _mplayer=no ;; | 727 --disable-mplayer) _mplayer=no ;; |
761 --enable-dynamic-plugins) _dynamic_plugins=yes ;; | 728 --enable-dynamic-plugins) _dynamic_plugins=yes ;; |