]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - configure
Import patch mirred.patch
[lisovros/iproute2_canprio.git] / configure
1 #! /bin/bash
2 # This is not an autconf generated configure
3 #
4 INCLUDE=${1:-"$PWD/include"}
5
6 echo "# Generated config based on" $INCLUDE >Config
7
8 echo "TC schedulers"
9
10 echo -n " ATM   "
11 cat >/tmp/atmtest.c <<EOF
12 #include <atm.h>
13 int main(int argc, char **argv) {
14         struct atm_qos qos;
15         (void) text2qos("aal5,ubr:sdu=9180,rx:none",&qos,0);
16         return 0;
17 }
18 EOF
19 gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 
20 if [ $? -eq 0 ]
21 then
22     echo "TC_CONFIG_ATM:=y" >>Config
23     echo yes
24 else
25     echo no
26 fi
27 rm -f /tmp/atmtest.c /tmp/atmtest
28
29 # hacks for now 
30 echo "TC actions"
31
32 if [ -e "tc/m_gact.c" ]
33 then
34         echo "   GACT found"
35         echo "TC_CONFIG_ACTION_GACT=y" >>Config
36         echo "TC_CONFIG_ACTION_PROB=y" >>Config
37 fi
38
39 if [ -e "tc/m_mirred.c" ]
40 then
41         echo "   MIRRED found"
42         echo "TC_CONFIG_ACTION_MIRRED=y" >>Config
43 fi
44