| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## configure | 3 ## configure |
| 4 ## | 4 ## |
| 5 ## This script is the front-end to the build system. It provides a similar | 5 ## This script is the front-end to the build system. It provides a similar |
| 6 ## interface to standard configure scripts with some extra bits for dealing | 6 ## interface to standard configure scripts with some extra bits for dealing |
| 7 ## with toolchains that differ from the standard POSIX interface and | 7 ## with toolchains that differ from the standard POSIX interface and |
| 8 ## for extracting subsets of the source tree. In theory, reusable parts | 8 ## for extracting subsets of the source tree. In theory, reusable parts |
| 9 ## of this script were intended to live in build/make/configure.sh, | 9 ## of this script were intended to live in build/make/configure.sh, |
| 10 ## but in practice, the line is pretty blurry. | 10 ## but in practice, the line is pretty blurry. |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 fi | 487 fi |
| 488 done | 488 done |
| 489 | 489 |
| 490 } | 490 } |
| 491 | 491 |
| 492 process_detect() { | 492 process_detect() { |
| 493 if enabled shared; then | 493 if enabled shared; then |
| 494 # Can only build shared libs on a subset of platforms. Doing this check | 494 # Can only build shared libs on a subset of platforms. Doing this check |
| 495 # here rather than at option parse time because the target auto-detect | 495 # here rather than at option parse time because the target auto-detect |
| 496 # magic happens after the command line has been parsed. | 496 # magic happens after the command line has been parsed. |
| 497 if ! enabled linux; then | 497 if ! enabled linux && ! enabled os2; then |
| 498 if enabled gnu; then | 498 if enabled gnu; then |
| 499 echo "--enable-shared is only supported on ELF; assuming this is
OK" | 499 echo "--enable-shared is only supported on ELF; assuming this is
OK" |
| 500 else | 500 else |
| 501 die "--enable-shared only supported on ELF for now" | 501 die "--enable-shared only supported on ELF and OS/2 for now" |
| 502 fi | 502 fi |
| 503 fi | 503 fi |
| 504 fi | 504 fi |
| 505 if [ -z "$CC" ] || enabled external_build; then | 505 if [ -z "$CC" ] || enabled external_build; then |
| 506 echo "Bypassing toolchain for environment detection." | 506 echo "Bypassing toolchain for environment detection." |
| 507 enable_feature external_build | 507 enable_feature external_build |
| 508 check_header() { | 508 check_header() { |
| 509 log fake_check_header "$@" | 509 log fake_check_header "$@" |
| 510 header=$1 | 510 header=$1 |
| 511 shift | 511 shift |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 ## END APPLICATION SPECIFIC CONFIGURATION | 711 ## END APPLICATION SPECIFIC CONFIGURATION |
| 712 ## | 712 ## |
| 713 CONFIGURE_ARGS="$@" | 713 CONFIGURE_ARGS="$@" |
| 714 process "$@" | 714 process "$@" |
| 715 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 715 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" |
| 716 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 716 cat <<EOF >> ${BUILD_PFX}vpx_config.c |
| 717 #include "vpx/vpx_codec.h" | 717 #include "vpx/vpx_codec.h" |
| 718 static const char* const cfg = "$CONFIGURE_ARGS"; | 718 static const char* const cfg = "$CONFIGURE_ARGS"; |
| 719 const char *vpx_codec_build_config(void) {return cfg;} | 719 const char *vpx_codec_build_config(void) {return cfg;} |
| 720 EOF | 720 EOF |
| OLD | NEW |