1From bdd20b7a584a20504dfabb409a41ee2b9ae41657 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Wed, 19 Aug 2015 13:52:57 +0900
4Subject: [PATCH] configure.in: Error fix.
5
6the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
7No such file or directory #include <ac_nonexistent.h>
8
9Upstream-Status: pending
10
11Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
12
13---
14 src/configure.in | 30 ------------------------------
15 1 file changed, 30 deletions(-)
16
17diff --git a/src/configure.in b/src/configure.in
18index 1714e69..cae0976 100644
19--- a/src/configure.in
20+++ b/src/configure.in
21@@ -195,36 +195,6 @@ if test "$GCC" = yes; then
22 	CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
23 fi
24
25-dnl Figure out packing order of structures
26-AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
27-if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
28-AC_TRY_RUN([
29-union foo {
30-    struct bar {
31-	unsigned int ver:4;
32-	unsigned int type:4;
33-    } bb;
34-    unsigned char baz;
35-};
36-
37-int
38-main(void)
39-{
40-    union foo x;
41-    x.bb.ver = 1;
42-    x.bb.type = 2;
43-    if (x.baz == 0x21) {
44-	return 1;
45-    } else if (x.baz == 0x12) {
46-	return 0;
47-    } else {
48-	return 2;
49-    }
50-}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
51-$ECHO "no defaults for cross-compiling"; exit 1)
52-fi
53-])
54-
55 if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
56 	AC_MSG_RESULT(reversed)
57 	AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields])
58