GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — gpac/configure at master · gpac/gpac Expand file tree/ Copy pathconfigureMore file actions executable file ·3350 lines (2834 loc) · 89.9 KB / Copy pathconfigureFile metadata and controlsexecutable file ·3350 lines (2834 loc) · 89.9 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 #!/bin/sh # # GPAC configure script # (c) 2003-2026 Telecom Paris # Authors: Jean Le Feuvre, Romain Bouqueau, Aurelien David # #set -v #set temporary file name if test ! -z "$TMPDIR" ; then TMPDIR1="${TMPDIR}" elif test ! -z "$TEMPDIR" ; then TMPDIR1="${TEMPDIR}" else TMPDIR1="/tmp" fi #remember the ./configure command line GPAC_CONFIGURATION="$@" TMPC="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.c" TMPH="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.h" TMPCXX="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.cpp" TMPE="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}" TMPO="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.S" TMPL="${TMPDIR1}/gpac-conf-${RANDOM}-$$-${RANDOM}.LOG" # DO NOT DECLARE variables called disable_, this is reserved for features: #each feature FOO declare upon load the variable disable_FOO ('-' replaced with '_' in var name) #default parameters DESTDIR="" prefix="/usr/local" mandir="" cross_prefix="" targetos="" dxsdk_path="" cc_orig=$CC if test "$cc_orig" = "" ; then cc_orig="gcc" fi cxx_orig=$CXX if test "$cxx_orig" = "" ; then cxx_orig="g++" fi ar="$AR" if test "$ar" = "" ; then ar="ar" fi ranlib="$RANLIB" if test "$ranlib" = "" ; then ranlib="ranlib" fi make="$MAKE" if test "$make" = "" ; then make="make" fi strip="$STRIP" if test "$strip" = "" ; then strip="strip" fi pkg_config="pkg-config" windres="windres" readelf="readelf" install="${INSTALL:=install}" instflags="${INSTFLAGS:=-p}" cpu=`uname -m` sched="free" check_stack_size="32768" debuginfo="no" sdl_path="" sdl_local="no" sdl_static="no" verbose="no" libdir="lib" no_gcc_opt="no" use_fixed_point="no" use_memory_tracking="no" gprof_build="no" want_pic="no" want_gcov="no" enable_sanitizer="no" libgpac_cflags="" libgpac_extralibs="" static_build="no" static_bin="no" unit_tests="no" static_modules="no" lm_lib="" is_arm="no" has_directx="no" win32="no" mingw32="no" cygwin="no" linux="no" freebsd="no" darwin="no" sunos="no" alt_macosx_dir="" Mac_Applications="" extralibs="-lm" bigendian="no" SHFLAGS=-shared need_inet_aton="no" CFLAGS="" CXXFLAGS="" PTHREAD_CFLAGS="" PTHREAD_LDFLAGS=-lpthread GPAC_SH_FLAGS="" DYN_LIB_SUFFIX=".so" X11_PATH="/usr/X11R6" INSTFLAGS="" is_64="no" is_em="no" is_emcfg="no" has_rmtws="yes" em_type="js" em_size="0" em_opt="2" fatal_assert="no" no_stack_prot="no" #flags not set by generic lib config has_x11="no" has_x11_shm="no" has_x11_xv="no" has_x11_glx="no" ffmpeg_vvc="no" has_strlcpy="no" has_strlcat="no" ffmpeg_extra_ldflags="" case "$cc_orig" in *emcc) is_emcfg="yes" ;; esac nb_features=0 all_features="" all_descs="" nb_filters=0 all_filters="" push_feature() { name=$1 #var=${name//[-]/_} var=$(printf '%s' "$name" | tr '-' '_') desc="$2" fc=`echo $desc | cut -c1-1` if test "$fc" = "!" ; then eval "disable_$var=\"yes\"" else eval "disable_$var=\"no\"" fi if test "$fc" = "*" ; then desc=`echo $desc | cut -c2-` desc="$desc filter" if [ -z $all_filters ] ; then all_filters="$1" else all_filters="$all_filters|$1" fi nb_filters=$((nb_filters+1)) fi if [ -z $all_features ] ; then all_features="$1" all_descs="$desc" else all_features="$all_features|$1" all_descs="$all_descs|$desc" fi nb_features=$((nb_features+1)) } #all features enabled with --enable- or --disable- #if first character is !, feature is disabled by default otherwise enabled by default push_feature "log" "logging support" push_feature "3d" "3D rendering" push_feature "threads" "Threading support" push_feature "network" "Network support (including RTP streaming)" push_feature "crypto" "crypto support" push_feature "restrict" "!restriction configuration file" push_feature "svg" "SVG 1.2 support" push_feature "vrml" "MPEG-4/VRML/X3D support" push_feature "x3d" "X3D-only support" push_feature "depth" "!depth handling in the compositor" push_feature "odf" "full support of MPEG-4 OD Framework" push_feature "bifs" "MPEG-4 BIFS decoding" push_feature "bifs-enc" "MPEG-4 BIFS encoding" push_feature "laser" "MPEG-4 LaSer encode and decode" push_feature "seng" "scene encoder engine" push_feature "qtvr" "import of Cubic QTVR files" push_feature "swf" "SWF import" push_feature "scene-stats" "scene graph statistics" push_feature "scene-dump" "scene graph dump" push_feature "scene-encode" "BIFS & LASeR to ISOBMFF" push_feature "loader-isoff" "scene loading from ISO File Format" push_feature "loader-bt" "scene loading from BT/VRML files" push_feature "loader-xmt" "scene loading from XMT/X3D files" push_feature "od-dump" "MPEG-4 OD dump" push_feature "od-parse" "MPEG-4 OD parse" push_feature "scenegraph" "scenegraph, scene parsers and player (compositor)" push_feature "smgr" "scene manager" push_feature "codecs" "All audio and video codec support" push_feature "parsers" "AV bitstream parsers" push_feature "import" "media importers" push_feature "export" "media exporters" push_feature "avi" "AVI read and write" push_feature "ogg" "OGG read and write" push_feature "m2ps" "MPEG-2 PS read" push_feature "m2ts" "MPEG-2 TS demultiplexer" push_feature "m2ts-mux" "MPEG-2 TS multiplexer" push_feature "saf" "SAF container" push_feature "isom-dump" "ISOBMFF file dump" push_feature "isoff" "ISOBMFF support" push_feature "isoff-write" "ISOBMFF edit/write support" push_feature "isoff-hint" "ISOBMFF hinting support" push_feature "isoff-frag" "ISOBMFF fragments support" push_feature "isoff-hds" "Adobe HDS in ISOBMFF support" push_feature "streaming" "RTP/RTSP/SDP support" push_feature "fonts" "Font and Text engine (used by compositor and EVG.js" push_feature "player" "deprecated - old name for compositor feature" push_feature "dvbx" "!DVB-specific tools (MPE, FEC, DSM-CC)" push_feature "vobsub" "VobSub support" push_feature "ttxt" "TTXT (3GPP / MPEG-4 Timed Text) support" push_feature "ttml" "TTML/EBU TTD support" push_feature "vtt" "WebVTT support" push_feature "route" "ROUTE (ATSC3) support" push_feature "qjs" "QuickJS support" push_feature "qjs-libc" "QuickJS libc module support" push_feature "tinygl" "!TinyGL support" push_feature "doc" "Embedded documentation" push_feature "evg" "EVG (GPAC vector graphics tools)" push_feature "avdevice" "avdevice support in FFmpeg" push_feature "avfilter" "avfilter support in FFmpeg" push_feature "net-cap" "network grab and replay support" push_feature "compositor" "*Compositor" push_feature "vout" "*video output" push_feature "aout" "*audio output" push_feature "bsagg" "*scalable bitstream aggregator" push_feature "bssplit" "*scalable bitstream spliter" push_feature "bsrw" "*bitstream rewriter" push_feature "dasher" "*DASH/HLS mux" push_feature "dashin" "*DASH/HLS demux" push_feature "imgdec" "*image decoder" push_feature "uncvdec" "*uncompressed video decoder" push_feature "cdcrypt" "*CENC decryptor" push_feature "ghidmx" "*GPAC HTTP Streaming index demuxer" push_feature "gsfdmx" "*GPAC serialized format demuxer" push_feature "nhmlr" "*NHML demuxer" push_feature "nhntr" "*NHNT demuxer" push_feature "cecrypt" "*CENC Encryptor" push_feature "flist" "*Playlist concatenator" push_feature "hevcmerge" "*HEVC tile merger" push_feature "hevcsplit" "*HEVC tile spliter" push_feature "fin" "*File input" push_feature "pin" "*Pipe input" push_feature "inspect" "*Inspecter" push_feature "cryptfile" "*Crypted input and output file" push_feature "mp4dmx" "*MP4/QT demuxer" push_feature "txtin" "*Subtitle loader" push_feature "gsfmx" "*GPAC serialized format demuxer" push_feature "mp4mx" "*MP4/QT muxer" push_feature "fout" "*File output" push_feature "pout" "*Pipe output" push_feature "rfac3" "*AC3 parser" push_feature "rfac4" "*AC4 parser" push_feature "rfadts" "*ADTS parser" push_feature "rfamr" "*AMR parser" push_feature "rfav1" "*AV1/VP9 parser" push_feature "rfflac" "*FLAC parser" push_feature "rfh263" "*H263 parser" push_feature "rfimg" "*Image parser" push_feature "rflatm" "*LATM parser" push_feature "rfmhas" "*MPEG-H Audio parser" push_feature "rfmp3" "*MP3 parser" push_feature "rfmpgvid" "*MPEG 1/2/4 video parser" push_feature "rfnalu" "*NALU-based video parser" push_feature "rfprores" "*QT ProRes parser" push_feature "rfqcp" "*QCP file parser" push_feature "rfpcm" "*Raw PCM and wav parser" push_feature "rfrawvid" "*Raw video parser" push_feature "rftruehd" "*Dolby TrueHD parser" push_feature "reframer" "*Reframer" push_feature "resample" "*Audio resampler" push_feature "restamp" "*Restamper" push_feature "rewind" "*Reverse playback" push_feature "ufaac" "*ADTS and LATM rewriter" push_feature "ufmhas" "*MPEG-H Audio rewriter" push_feature "ufac4" "*AC4 Audio rewriter" push_feature "ufm4v" "*MPEG 1/2/4 and VC1 video rewriter" push_feature "ufnalu" "*NALU-based video rewriter" push_feature "ufobu" "*AV1/VP9 video rewriter" push_feature "tileagg" "*HEVC Tile aggregator" push_feature "tilesplit" "*HEVC Tile spliter" push_feature "ttmlconv" "*TTML conversion" push_feature "unframer" "*Unframer" push_feature "vcrop" "*Video croping" push_feature "vflip" "*Video flip" push_feature "writegen" "*Generic rewriter" push_feature "webcodec" "*WebCodecs support" push_feature "nhmlw" "*NHML writer" push_feature "nhntw" "*NHNT writer" push_feature "writeqcp" "*QCP writer" push_feature "units" "*unit tests" push_feature "nvdec" "*NVDec decoder" push_feature "vtbdec" "*VideoToolBox (OSX/iOS) decoder" ar_it="" get_item() { idx=$1 IFS='|' set -- $2 eval "ar_it=\${$idx}" IFS=' ' } get_item2() { idx=$1 set -- $2 eval "ar_it=\${$idx}" } nb_it=0 get_size() { nb_it=`echo "$1" | wc -w` } #zlib MUST be first all_packages="zlib opensvc openhevc platinum freetype ssl jpeg openjpeg png mad a52 xvid faad ffmpeg freenect vorbis theora nghttp2 ngtcp2 nghttp3" all_packages="$all_packages oss dvb4linux alsa pulseaudio jack directfb hid lzma tinygl vtb ogg sdl caption mpeghdec libcaca curl" disabled_packages="" #init all has_FOO=no and set FOO_cflags= for pck in $all_packages ; do eval "has_$pck=\"no\"" eval "cflags_$pck=\"\"" done logs="config.log" echo "Logs for GPAC configure $GPAC_CONFIGURATION" > $logs #configure usage if test x"$1" = x"-h" -o x"$1" = x"--help" ; then cat << EOF Usage: configure [options] Options: [defaults in brackets after descriptions] GPAC build options: --help print this message --prefix=PREFIX install in PREFIX [$prefix] --libdir=DIR lib dir in DIR [$libdir] --mandir=DIR man documentation in DIR [PREFIX/share/man] --verbose enable verbose building [$verbose] --source-path=PATH path of source code [$source_path] --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix] --target-os=TARGETOS use TARGETOS for compile tools [$targetos] --cc=CC use C compiler CC [$cc] --cxx=CXX use C++ compiler CXX [$cxx] (also valid as --cpp=CXX) --make=MAKE use specified make [$make] --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS] --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS] --extra-libs=ELIBS add ELIBS [$ELIBS] --cpu=CPU force cpu to CPU [$cpu] --check-stack-size=SIZE maximum stack size [$check_stack_size bytes] --no-stack-protector disables the default stack canaries --enable-debug produce debug version --enable-gprof enable profiling --enable-gcov enable coverage --enable-pic enable Position Independant Code for shared objects --fatal-assert make any call to assert abort program --strip enable strip --std-allocator uses standard lib memory allocator --enable-sanitizer enable address sanitizer --enable-afl enable instrumentation for American Fuzzy Lop --enable-afl-clang enable instrumentation for American Fuzzy Lop using afl-clang(++) --disable-opt disable GCC optimizations --static-build link statically against libgpac but still allow dependencies to shared libraries (enable --static-modules) --static-bin enable static linking of MP4Box and gpac only (will enable --static-build), disable all libraries not linkable statically. --unittests enable unit tests [default=no] --sdl-cfg=SDL_PATH specify path to sdl-config for local install [$sdl_path] --enable-sdl-static use static SDL linking [default=no] --X11-path=X11_PATH specify path for X11 includes and libraries [$X11_PATH] --dxsdk-path=DX_PATH specify DirectX SDK for MinGW [$dxsdk_path] --extra-ff-ldflags=EF add EF flags to FFmpeg LDFLAGS [$ffmpeg_extra_ldflags] --emscripten configure for emscripten build (same as running emconfigure configure) - this will disable some features by default (network, avdevice), use --enable-FOO to re-enable --em-type=EXT output type, can be js, html or wasm [$em_type] --em-size=V total memory in bytes to use for emscripten - if 0, dynamic memory growth will be used [$em_size] --em-opt=OPT emscripten optimization level, can be 0, 1, 2, 3, s, or z (default: 2) [$em_opt] GPAC core configuration: --static-modules embed modules in libgpac rather than using dynamic library modules --enable-fixed-point enable fixed-point math --disable-ipv6 disable IPV6 support --enable-mem-track enable tracking of all memory allocated by gpac --disable-rmtws disable the websocket monitoring server --disable-x11 disable X11 --disable-x11-shm disable X11 shared memory support --disable-x11-xv disable X11 Xvideo support --enable-depth enables depth handling in the compositor (experimental for stereoscopic rendering) --disable-all disables all features in libgpac (see below) --isomedia-only disables all features except "parsers import export isom-dump isoff isoff-write isoff-hint isoff-frag isoff-hds ttxt ttml vtt txtin" Extra libraries configuration: You can turn a library off or force using the local version in gpac/extra_lib/. It will fail if not found: --use-FOO=no disable library FOO --use-FOO=local force use of library FOO in gpac/extra_lib/include, gpac/extra_lib/lib/gcc/bin/ --use-FOO=system force using system version only of library FOO --use-FOO=PATH force use of library FOO in \$PATH/include, \$PATH/lib Extra libraries used are: $all_packages EOF cat << EOF Features for libgpac configuration: Feature FOO can be enabled with --enable-FOO or disabled with --disable-FOO EOF idx=1 while [ $idx -le $nb_features ]; do get_item $idx "$all_features" name="$ar_it" get_item $idx "$all_descs" desc="$ar_it" enabled="on" fc=`echo $desc | cut -c1-1` if test "$fc" = "!" ; then enabled="disabled" desc=`echo $desc | cut -c2-` fi while [ ${#name} -le 12 ] do name="$name " done echo " $name $desc (default: $enabled)" idx=$((idx+1)) done cat << EOF NOTE: The object files are built at the place where configure is launched EOF exit 1 fi #end help #append $2 to $1 if not already present, or prepend if $3 is yes append() { if [ -z "$2" ] ; then return fi prepend="no" if test "$3" = "yes" ; then prepend="yes" fi all_vars="$2" get_size "$all_vars" nb_items=$nb_it skip="no" var=$1 idx=1 while [ $idx -le $nb_items ]; do get_item2 $idx "$all_vars" n="$ar_it" if test "$n" = "-framework" ; then idx=$((idx+1)) get_item2 $idx "$all_vars" n2="$ar_it" n="$n $n2" fi eval "tmpv=\"\$$var\"" case "$tmpv" in *"$n"*) idx=$((idx+1)) continue ;; esac if [ -z "$var" ] ; then eval "$var=\"$n\"" elif test "$prepend" = "yes" ; then eval "$var=\"$n \$$var\"" else eval "$var=\"\$$var $n\"" fi idx=$((idx+1)) done } #set feature $1 to $2 (yes or no) set_feature() { name="$1" disable_feat="$2" idx=1 while [ $idx -le $nb_features ]; do get_item $idx "$all_features" iname="$ar_it" if test "$iname" = "$name" ; then var=$(printf '%s' "$name" | tr '-' '_') eval "disable_$var=\"$disable_feat\"" return fi idx=$((idx+1)) done #allow --disable for packages if test "$disable_feat" = "yes" ; then for i in $all_packages ; do pck_name="$i" case "$name" in "$pck_name"*) append disabled_packages "$name " return ;; esac done fi echo "! Unknown feature \"$name\", ignoring - please check help (-h) ! " } #disable all features disable_all_features() { idx=1 while [ $idx -le $nb_features ]; do get_item $idx "$all_features" name="$ar_it" var=$(printf '%s' "$name" | tr '-' '_') eval "disable_$var=\"yes\"" idx=$((idx+1)) done } #enable all features in $1 enable_features () { params="$1" for i in $params ; do set_feature "$i" "no" done } #store $1 (FOO=BAR from --use-FOO=BAR) for later package check lib_args="" set_package () { for i in $all_packages ; do pck_name="$i=" case "$1" in "$pck_name"*) opt=`echo $1 | cut -d '=' -f 2` if [ "$opt" = "local" -o "$opt" = "system" -o "$opt" = "no" ] ; then lib_args="$lib_args $1" elif [ -d "$opt" ]; then lib_args="$lib_args $1" else echo "Invalid package option $opt - please check help (-h)" exit 1 fi return ;; esac done echo "no package pck $1 - please check help (-h)" exit 1 } #parse all options for opt do case "$opt" in --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` ;; --libdir=*) libdir=`echo $opt | cut -d '=' -f 2` ;; --mandir=*) mandir=`echo $opt | cut -d '=' -f 2` ;; --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2` && echo "cross-prefix detected: $cross_prefix" ;; --target-os=*) targetos=`echo $opt | cut -d '=' -f 2` && echo "target-os detected: $targetos" ;; --cc=*) cc_orig=`echo $opt | cut -d '=' -f 2` ;; --cxx=*) cxx_orig=`echo $opt | cut -d '=' -f 2` ;; --cpp=*) cxx_orig=`echo $opt | cut -d '=' -f 2` ;; --make=*) make=`echo $opt | cut -d '=' -f 2` ;; --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}" ;; --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}" ;; --extra-ff-ldflags=*) ffmpeg_extra_ldflags=`echo $opt | cut -d '=' -f 2` ;; --extra-libs=*) extralibs=${opt#--extra-libs=} ;; --cpu=*) cpu=`echo $opt | cut -d '=' -f 2` ;; --check-stack-size=*) check_stack_size=`echo $opt | cut -d '=' -f 2` ;; --no-stack-protector) no_stack_prot="yes" ;; --enable-debug) debuginfo="yes"; no_gcc_opt="yes" ;; --disable-opt) no_gcc_opt="yes" ;; --enable-pic) want_pic="yes"; ;; --enable-gcov) want_gcov="yes"; ;; --enable-afl) cc_orig="afl-gcc"; cxx_orig="afl-g++" ;; --enable-afl-clang) cc_orig="afl-clang"; cxx_orig="afl-clang++" ;; --fatal-assert) fatal_assert="yes"; ;; --verbose) verbose="yes"; ;; --static-bin) static_bin="yes" ;; --static-mp4box) echo "$opt deprecated, use --static-bin instead" static_bin="yes" ;; --enable-sanitizer) enable_sanitizer="yes" ;; --unittests) unit_tests="yes" ;; --static-modules) static_modules="yes" ;; --sdl-cfg=*) sdl_path=`echo $opt | cut -d '=' -f 2`; sdl_local="yes" ;; --enable-sdl-static=*) sdl_static="yes" ;; --enable-jack) has_jack="yes" ;; --X11-path=*) X11_PATH=`echo $opt | cut -d '=' -f 2` ;; --dxsdk-path=*) dxsdk_path=`echo $opt | cut -d '=' -f 2` ;; --disable-pulseaudio) append disabled_packages "pulseaudio" ;; --disable-jack) append disabled_packages "jack" ;; --disable-alsa) append disabled_packages "alsa" ;; --disable-oss) append disabled_packages "oss" ;; --disable-dvb4linux) append disabled_packages "dvb4linux" ;; --enable-gprof) gprof_build="yes"; ;; --static-build) static_build="yes"; ;; --enable-static-bin) echo "$opt deprecated, use --static-build instead" static_build="yes"; ;; --enable-fixed-point) use_fixed_point="yes" ;; --strip) INSTFLAGS="-s $INSTFLAGS" ;; --enable-mem-track) use_memory_tracking="yes" ;; --disable-rmtws) has_rmtws="no" ;; --disable-x11) append disabled_packages "x11" ;; --disable-x11-shm) append disabled_packages "x11_shm" ;; --disable-x11-xv) append disabled_packages "x11_xv" ;; --disable-all) disable_all_features ;; --isomedia-only) disable_all_features #disable all packages except first one "zlib" disabled_packages=`echo $opt | cut -c6-` append disabled_packages "x11 sdl directx " #enable all parsers and isobmff related enable_features "parsers import export isom-dump isoff isoff-write isoff-hint isoff-frag isoff-hds ttxt ttml vtt txtin" ;; --use-*) v=`echo $opt | cut -c7-` set_package "$v" ;; --disable-ipv6) append disabled_packages "ipv6 " ;; --disable-*) v=`echo $opt | cut -c11-` set_feature "$v" "yes" ;; --enable-*) v=`echo $opt | cut -c10-` set_feature "$v" "no" ;; --emscripten) is_em="yes" disable_network="yes" ;; --em-type=*) em_type=`echo $opt | cut -d '=' -f 2` ;; --em-size=*) em_size=`echo $opt | cut -d '=' -f 2` ;; --em-opt=*) em_opt=`echo $opt | cut -d '=' -f 2` if test "$em_opt" != "0" -a "$em_opt" != "1" -a "$em_opt" != "2" -a "$em_opt" != "3" -a "$em_opt" != "s" -a "$em_opt" != "z"; then echo "! Unrecognized emscripten optimization level $em_opt, using 2 !" em_opt="2" fi ;; *) echo "! Unrecognized option $opt, ignoring !" ;; esac done if test "$is_em" = "yes" ; then cc_orig="emcc" cxx_orig="em++" ar="emar" ranlib="emranlib" make="make" strip="emstrip" else case "$cc_orig" in *emcc) is_em="yes" ;; esac fi if test "$is_em" = "yes" ; then cpu="wasm" static_modules="yes" static_build="yes" targetos="wasm" pkg_cfg_path=$PKG_CONFIG_PATH if test "$pkg_cfg_path" = "" ; then echo "Emscripten missing PKG_CONFIG_PATH, disabling pkg-config" pkg_config="no" fi has_rmtws="no" #to refine append disabled_packages "freenect platinum vtb oss alsa jack pulseaudio directfb x11 dvb4linux directx" if test "$disable_threads" = "yes" ; then GPAC_SH_FLAGS="" fi fi cc="${cc_orig}" cxx="${cxx_orig}" case "$cpu" in i386|i486|i586|i686|i86pc|BePC) cpu="x86" ;; x86_64|amd64) cpu="x86" if [ "$linux" = "yes" -o "$darwin" = "yes" ] ; then is_64="yes" fi case `uname -s` in SunOS) canon_arch=`isainfo -n` ;; Darwin) canon_arch="x86_64" ;; *) canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`" ;; esac if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then cpu="x86_64" want_pic="yes" is_64="yes" fi fi ;; arm64) cpu="arm64" sched=lock is_64="yes" is_arm="yes" ;; armv4l|arm) cpu="armv4l" is_arm="yes" ;; aarch64) is_arm="yes" cpu="aarch64" sched=lock if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then is_64="yes" PIC_CFLAGS="-fPIC -DPIC" want_pic="yes" fi ;; alpha) cpu="alpha" ;; ppc64) cpu="powerpc" ;; "Power Macintosh"|ppc) cpu="powerpc" ;; mips) cpu="mips" ;; sh4|sh4a|sh) cpu="sh4" ;; sun4u|sun4v) cpu="sparc" if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then is_64="yes" PIC_CFLAGS="-fPIC -DPIC" want_pic="yes" fi ;; wasm) cpu="wasm" ;; *) cpu="unknown" ;; esac #checking for CFLAGS if test -z "$CFLAGS"; then CFLAGS="" fi cc="${cross_prefix}${cc}" #for ccache cc="${cc}" cxx="${cross_prefix}${cxx}" ar="${cross_prefix}${ar}" ranlib="${cross_prefix}${ranlib}" strip="${cross_prefix}${strip}" windres="${cross_prefix}${windres}" if test "$enable_sanitizer" = "yes" ; then if test "$static_bin" = "yes" ; then echo "Cannot use static bin with sanitizer, disabling static bin" static_bin="no" fi fi if test "$static_bin" = "yes" ; then pkg_config="${pkg_config} --static" if test "$darwin" != "yes" ; then LDFLAGS="-static $LDFLAGS" fi else pkg_config="${pkg_config}" fi #check pkg_config if test "$cross_prefix" = "" -a "$pkg_config" != "no"; then if ! $pkg_config --version >/dev/null 2>>$logs ; then pkg_config="no" fi fi #find source path source_path="`echo $0 | sed -e 's#/configure##'`" source_path_used="yes" if test -z "$source_path" -o "$source_path" = "." ; then source_path="`pwd`" source_path_used="no" build_path=$source_path else source_path="`cd \"$source_path\"; pwd`" build_path="`pwd`" fi #OS specific if test "$targetos" = "" ; then targetos=`uname -s` fi case $targetos in BeOS) prefix="/boot/home/config" CFLAGS="$CFLAGS -DPIC -fomit-frame-pointer" # 3 gcc releases known for BeOS, each with ugly bugs gcc_version="$($cc -v 2>>$logs | grep version | cut -d ' ' -f3-)" case "$gcc_version" in 2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc" ;; *20010315*) echo "BeBits gcc" CFLAGS="$CFLAGS -fno-expensive-optimizations" ;; esac SHFLAGS=-nostart #no need for libm, but the inet stuff #check for BONE if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then extralibs="-lbind -lsocket" else need_inet_aton="yes" extralibs="-lnet" fi ;; SunOS) make="gmake" readelf="greadelf" LDFLAGS="$LDFLAGS" instflags="" #check for 64-bit cat > $TMPC << EOF #include <stdio.h> int main( void ) { return 0; } EOF CFLAGS_NO_LTO=$(echo ${CFLAGS} | sed -e 's/\ -flto[-A-Za-z0-9=]*//g') $cc ${CFLAGS_NO_LTO} -o $TMPO $TMPC 2>>$logs && $($readelf -h $TMPO | grep "Class:.*ELF64$" >/dev/null 2>>$logs) if test $? -eq 0; then is_64="yes" fi if test "$is_64" = "yes"; then if test "$cpu" = "x86_64"; then libdir=lib/amd64 elif test "$cpu" = "sparc"; then libdir=lib/sparcv9 fi fi sunos="yes" need_inet_aton="yes" extralibs="$extralibs -lsocket -lnsl" ;; FreeBSD) make="gmake" LDFLAGS="$LDFLAGS -rdynamic" PTHREAD_CFLAGS=-pthread PTHREAD_LDFLAGS=-pthread freebsd="yes" ;; BSD/OS) extralibs="-lpoll -lgnugetopt -lm" make="gmake" ;; Darwin) CFLAGS_DIR="-I$prefix/include" if test "$static_bin" = "yes" ; then LDFLAGS="-L$prefix/$libdir" else LDFLAGS="$LDFLAGS -L$prefix/$libdir" fi |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |