(Logical change 1.33)

This commit is contained in:
osdl.net!shemminger 2004-06-25 21:14:22 +00:00
parent 3d9584f960
commit 449bf1f339
1 changed files with 54 additions and 0 deletions

54
configure vendored
View File

@ -0,0 +1,54 @@
#! /bin/bash
# This is not an autconf generated configure
#
INCLUDE=${1:-"/usr/include"}
echo "# Generated config based on" $INCLUDE >Config
echo "TC"
PKT_SCHED=$INCLUDE/linux/pkt_sched.h
if [ ! -r $PKT_SCHED ];
then
echo " can't find file" $PKT_SCHED
exit 1
fi
echo -n " netsim scheduler... "
if grep -q 'tc_netsim_qopt' $PKT_SCHED
then
echo "TC_CONFIG_NETSIM = y" >>Config
echo y
else
echo n
fi
echo -n " ATM... "
if [ -r $INCLUDE/linux/atm.h ]
then
echo "TC_CONFIG_ATM = y" >>Config
echo y
else
echo n
fi
# See if we know about TCP Vegas
echo "SS"
echo -n " TCP Vegas... "
if grep -q TCPDIAG_VEGASINFO $INCLUDE/linux/tcp_diag.h
then
echo "SS_CONFIG_VEGAS = y" >>Config
echo y
else
echo n
fi
echo -n " TCP DRS... "
if grep -q tcpi_rcv_space $INCLUDE/linux/tcp.h
then
echo "SS_CONFIG_DRS = y" >>Config
echo y
else
echo n
fi