OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 ## | 2 ## |
3 ## configure.sh | 3 ## configure.sh |
4 ## | 4 ## |
5 ## This script is sourced by the main configure script and contains | 5 ## This script is sourced by the main configure script and contains |
6 ## utility functions and other common bits that aren't strictly libvpx | 6 ## utility functions and other common bits that aren't strictly libvpx |
7 ## related. | 7 ## related. |
8 ## | 8 ## |
9 ## This build system is based in part on the FFmpeg configure script. | 9 ## This build system is based in part on the FFmpeg configure script. |
10 ## | 10 ## |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 check_cc "$@" <<EOF | 330 check_cc "$@" <<EOF |
331 int x; | 331 int x; |
332 EOF | 332 EOF |
333 } | 333 } |
334 | 334 |
335 check_cxxflags() { | 335 check_cxxflags() { |
336 log check_cxxflags "$@" | 336 log check_cxxflags "$@" |
337 | 337 |
338 # Catch CFLAGS that trigger CXX warnings | 338 # Catch CFLAGS that trigger CXX warnings |
339 case "$CXX" in | 339 case "$CXX" in |
340 *g++*) check_cxx -Werror "$@" <<EOF | 340 *c++-analyzer|*clang++|*g++*) check_cxx -Werror "$@" <<EOF |
341 int x; | 341 int x; |
342 EOF | 342 EOF |
343 ;; | 343 ;; |
344 *) check_cxx "$@" <<EOF | 344 *) check_cxx "$@" <<EOF |
345 int x; | 345 int x; |
346 EOF | 346 EOF |
347 ;; | 347 ;; |
348 esac | 348 esac |
349 } | 349 } |
350 | 350 |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 # Prepare the PWD for building. | 1340 # Prepare the PWD for building. |
1341 for f in ${OOT_INSTALLS}; do | 1341 for f in ${OOT_INSTALLS}; do |
1342 install -D ${source_path}/$f $f | 1342 install -D ${source_path}/$f $f |
1343 done | 1343 done |
1344 fi | 1344 fi |
1345 cp ${source_path}/build/make/Makefile . | 1345 cp ${source_path}/build/make/Makefile . |
1346 | 1346 |
1347 clean_temp_files | 1347 clean_temp_files |
1348 true | 1348 true |
1349 } | 1349 } |
OLD | NEW |