osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | # This is not an autconf generated configure |
| 3 | # |
osdl.net!shemminger | 4b1bbd9 | 2004-08-09 16:35:28 +0000 | [diff] [blame] | 4 | INCLUDE=${1:-"$PWD/include"} |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 5 | |
| 6 | echo "# Generated config based on" $INCLUDE >Config |
| 7 | |
osdl.net!shemminger | b9cb1c9 | 2004-07-30 22:27:50 +0000 | [diff] [blame] | 8 | echo "TC schedulers" |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 9 | |
osdl.net!shemminger | b9cb1c9 | 2004-07-30 22:27:50 +0000 | [diff] [blame] | 10 | echo -n " ATM " |
osdl.net!shemminger | c830d77 | 2004-07-02 17:47:53 +0000 | [diff] [blame] | 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 |
osdl.net!shemminger | 2979d52 | 2004-07-30 20:24:59 +0000 | [diff] [blame] | 19 | gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 |
osdl.net!shemminger | c830d77 | 2004-07-02 17:47:53 +0000 | [diff] [blame] | 20 | if [ $? -eq 0 ] |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 21 | then |
osdl.net!shemminger | c830d77 | 2004-07-02 17:47:53 +0000 | [diff] [blame] | 22 | echo "TC_CONFIG_ATM:=y" >>Config |
osdl.net!shemminger | b9cb1c9 | 2004-07-30 22:27:50 +0000 | [diff] [blame] | 23 | echo yes |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 24 | else |
osdl.net!shemminger | b9cb1c9 | 2004-07-30 22:27:50 +0000 | [diff] [blame] | 25 | echo no |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 26 | fi |
osdl.net!shemminger | 2979d52 | 2004-07-30 20:24:59 +0000 | [diff] [blame] | 27 | rm -f /tmp/atmtest.c /tmp/atmtest |