Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 73b726c25f94c1b15514ed9249b927afdfbbfb94 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 3 | Date: Fri, 7 Aug 2015 10:30:40 +0300 |
| 4 | Subject: [PATCH 1/4] Remove redundant compiler sanity checks |
| 5 | |
| 6 | AC_PROG_CC already performs sanity checks. And unlike the removed |
| 7 | checks, it does so in a way that supports cross compilation. |
| 8 | |
| 9 | Modified from patch by Maarten ter Huurne. |
| 10 | |
| 11 | Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223] |
| 12 | |
| 13 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 14 | --- |
| 15 | configure.ac | 27 --------------------------- |
| 16 | 1 file changed, 27 deletions(-) |
| 17 | |
| 18 | diff --git a/configure.ac b/configure.ac |
| 19 | index ffe2e37..27690a6 100644 |
| 20 | --- a/configure.ac |
| 21 | +++ b/configure.ac |
| 22 | @@ -48,31 +48,6 @@ AC_PROG_GCC_TRADITIONAL |
| 23 | AC_ISC_POSIX |
| 24 | AC_USE_SYSTEM_EXTENSIONS |
| 25 | |
| 26 | -AC_TRY_RUN(main(){exit(0);},,[ |
| 27 | -if test $CC != cc ; then |
| 28 | -AC_NOTE(Your $CC failed - restarting with CC=cc) |
| 29 | -AC_NOTE() |
| 30 | -CC=cc |
| 31 | -export CC |
| 32 | -exec $0 $configure_args |
| 33 | -fi |
| 34 | -]) |
| 35 | - |
| 36 | -AC_TRY_RUN(main(){exit(0);},, |
| 37 | -exec 5>&2 |
| 38 | -eval $ac_link |
| 39 | -AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;) |
| 40 | -AC_NOTE($ac_compile) |
| 41 | -AC_MSG_ERROR(Can't run the compiler - sorry)) |
| 42 | - |
| 43 | -AC_TRY_RUN([ |
| 44 | -main() |
| 45 | -{ |
| 46 | - int __something_strange_(); |
| 47 | - __something_strange_(0); |
| 48 | -} |
| 49 | -],AC_MSG_ERROR(Your compiler does not set the exit status - sorry)) |
| 50 | - |
| 51 | AC_PROG_AWK |
| 52 | |
| 53 | AC_PROG_INSTALL |
| 54 | @@ -1300,8 +1275,6 @@ fi |
| 55 | dnl Ptx bug workaround -- insert -lc after -ltermcap |
| 56 | test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq" |
| 57 | |
| 58 | -AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.)) |
| 59 | - |
| 60 | ETCSCREENRC= |
| 61 | AC_MSG_CHECKING(for the global screenrc file) |
| 62 | AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ]) |
| 63 | -- |
| 64 | 2.1.4 |
| 65 | |