package/aubio: add libsndfile optional dependency
[buildroot-gz.git] / package / screen / 0001-compiler-sanity-checks.patch
blobfe6c3fdbc12f8a5f9ae4d1d7bc363b648c6034e9
1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Sat, 13 Sep 2014 10:27:27 +0200
3 Subject: Removed redundant compiler sanity checks
5 AC_PROG_CC already performs sanity checks. And unlike the removed
6 checks, it does so in a way that supports cross compilation.
8 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
9 [Ricardo: rebase on top of 4.3.1]
10 Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
11 ---
12 configure.ac | 27 ---------------------------
13 1 file changed, 27 deletions(-)
15 diff --git a/configure.ac b/configure.ac
16 index ffe2e37..27690a6 100644
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -48,31 +48,6 @@ AC_PROG_GCC_TRADITIONAL
20 AC_ISC_POSIX
21 AC_USE_SYSTEM_EXTENSIONS
23 -AC_TRY_RUN(main(){exit(0);},,[
24 -if test $CC != cc ; then
25 -AC_NOTE(Your $CC failed - restarting with CC=cc)
26 -AC_NOTE()
27 -CC=cc
28 -export CC
29 -exec $0 $configure_args
30 -fi
31 -])
33 -AC_TRY_RUN(main(){exit(0);},,
34 -exec 5>&2
35 -eval $ac_link
36 -AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
37 -AC_NOTE($ac_compile)
38 -AC_MSG_ERROR(Can't run the compiler - sorry))
40 -AC_TRY_RUN([
41 -main()
43 - int __something_strange_();
44 - __something_strange_(0);
46 -],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
48 AC_PROG_AWK
50 AC_PROG_INSTALL
51 @@ -1300,8 +1275,6 @@ fi
52 dnl Ptx bug workaround -- insert -lc after -ltermcap
53 test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
55 -AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
57 ETCSCREENRC=
58 AC_MSG_CHECKING(for the global screenrc file)
59 AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
60 --
61 1.8.4.5