iproute2: complete rewrite of integration
[openadk.git] / package / iproute2 / patches / patch-configure
blob38586090db98529990f8df9a041d219fd9d8b159
1         use the compiler passed in $CC
2 --- iproute2-2.6.29-1.orig/configure    2009-03-24 23:40:54.000000000 +0100
3 +++ iproute2-2.6.29-1/configure 2009-08-22 02:23:52.642364236 +0200
4 @@ -16,7 +16,7 @@ int main(int argc, char **argv) {
5         return 0;
6  }
7  EOF
8 -gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 
9 +$CC -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 
10  if [ $? -eq 0 ]
11  then
12      echo "TC_CONFIG_ATM:=y" >>Config
13 @@ -49,7 +49,7 @@ int main(int argc, char **argv) {
14  }
16  EOF
17 -gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
18 +$CC -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
20  if [ $? -eq 0 ]
21  then
22 @@ -81,7 +81,7 @@ int main(int argc, char **argv) {
23  }
25  EOF
26 -gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
27 +$CC -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
29  if [ $? -eq 0 ]
30  then