iproute2/configure

55 lines
915 B
Plaintext
Raw Normal View History

2004-06-26 05:14:22 +08:00
#! /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
2004-07-02 06:22:10 +08:00
echo -n " netem scheduler... "
if grep -q 'tc_netem_qopt' $PKT_SCHED
2004-06-26 05:14:22 +08:00
then
2004-07-02 06:22:10 +08:00
echo "TC_CONFIG_NETEM = y" >>Config
2004-06-26 05:14:22 +08:00
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