Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Upstream-Status:Inappropriate [embedded specific] |
| 2 | |
| 3 | fix the below error: |
| 4 | checking for daq flow ID... configure: |
| 5 | configure: error: cannot run test program while cross compiling |
| 6 | |
| 7 | |
| 8 | --- a/configure.in 2015-10-28 10:36:42.918512690 +0800 |
| 9 | +++ b/configure.in 2015-10-28 10:37:36.738510048 +0800 |
| 10 | @@ -716,23 +716,23 @@ |
| 11 | # [DAQ version supports address space ID in header.]) |
| 12 | #fi |
| 13 | |
| 14 | -AC_MSG_CHECKING([for daq flow ID]) |
| 15 | -AC_RUN_IFELSE( |
| 16 | -[AC_LANG_PROGRAM( |
| 17 | -[[ |
| 18 | -#include <daq.h> |
| 19 | -]], |
| 20 | -[[ |
| 21 | - DAQ_PktHdr_t hdr; |
| 22 | - hdr.flow_id = 0; |
| 23 | -]])], |
| 24 | -[have_daq_flow_id="yes"], |
| 25 | -[have_daq_flow_id="no"]) |
| 26 | -AC_MSG_RESULT($have_daq_flow_id) |
| 27 | -if test "x$have_daq_flow_id" = "xyes"; then |
| 28 | - AC_DEFINE([HAVE_DAQ_FLOW_ID],[1], |
| 29 | - [DAQ version supports flow ID in header.]) |
| 30 | -fi |
| 31 | +#AC_MSG_CHECKING([for daq flow ID]) |
| 32 | +#AC_RUN_IFELSE( |
| 33 | +#[AC_LANG_PROGRAM( |
| 34 | +#[[ |
| 35 | +##include <daq.h> |
| 36 | +#]], |
| 37 | +#[[ |
| 38 | +# DAQ_PktHdr_t hdr; |
| 39 | +# hdr.flow_id = 0; |
| 40 | +#]])], |
| 41 | +have_daq_flow_id="yes" |
| 42 | +#[have_daq_flow_id="no"]) |
| 43 | +#AC_MSG_RESULT($have_daq_flow_id) |
| 44 | +#if test "x$have_daq_flow_id" = "xyes"; then |
| 45 | +# AC_DEFINE([HAVE_DAQ_FLOW_ID],[1], |
| 46 | +# [DAQ version supports flow ID in header.]) |
| 47 | +#fi |
| 48 | |
| 49 | AC_MSG_CHECKING([for DAQ_VERDICT_RETRY]) |
| 50 | AC_RUN_IFELSE( |