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>
10 configure.in | 27 ---------------------------
11 1 file changed, 27 deletions(-)
13 diff --git a/configure.in b/configure.in
14 index 87fd43b..572c2a3 100644
17 @@ -47,31 +47,6 @@ AC_PROG_GCC_TRADITIONAL
19 AC_USE_SYSTEM_EXTENSIONS
21 -AC_TRY_RUN(main(){exit(0);},,[
22 -if test $CC != cc ; then
23 -AC_NOTE(Your $CC failed - restarting with CC=cc)
27 -exec $0 $configure_args
31 -AC_TRY_RUN(main(){exit(0);},,
34 -AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
36 -AC_MSG_ERROR(Can't run the compiler - sorry))
41 - int __something_strange_();
42 - __something_strange_(0);
44 -],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
49 @@ -1299,8 +1274,6 @@ fi
50 dnl Ptx bug workaround -- insert -lc after -ltermcap
51 test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
53 -AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
56 AC_MSG_CHECKING(for the global screenrc file)
57 AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])