Annotation of embedaddon/mpd/src/configure, revision 1.1.1.3

1.1       misho       1: #!/bin/sh
                      2: 
                      3: CONFIG="config.h"
                      4: 
                      5: echo "/* System features detected by configure */" > $CONFIG
                      6: 
                      7: echo -n "Looking for ng_bpf ..."
                      8: if [ -e /usr/include/netgraph/ng_bpf.h \
                      9:   -o -e /usr/include/bpf/netgraph/ng_bpf.h ]
                     10: then
                     11:     echo " found."
                     12:     echo "#define      HAVE_NG_BPF     1" >> $CONFIG
                     13: else
                     14:     echo " not found."
                     15: fi
                     16: 
                     17: echo -n "Looking for ng_car ..."
1.1.1.2   misho      18: if [ -e /usr/include/netgraph/ng_car.h ]
1.1       misho      19: then
                     20:     echo " found."
                     21:     echo "#define      HAVE_NG_CAR     1" >> $CONFIG
                     22: else
                     23:     echo " not found."
                     24: fi
                     25: 
                     26: echo -n "Looking for ng_deflate ..."
                     27: if [ -e /usr/include/netgraph/ng_deflate.h ]
                     28: then
                     29:     echo " found."
                     30:     echo "#define      HAVE_NG_DEFLATE 1" >> $CONFIG
                     31: else
                     32:     echo " not found."
                     33: fi
                     34: 
                     35: echo -n "Looking for ng_ipacct ..."
                     36: if [ -e /usr/include/netgraph/ng_ipacct.h \
                     37:   -o -e /usr/local/include/netgraph/ng_ipacct.h ]
                     38: then
                     39:     echo " found."
                     40:     echo "#define      HAVE_NG_IPACCT  1" >> $CONFIG
                     41: else
                     42:     echo " not found."
                     43: fi
                     44: 
                     45: echo -n "Looking for ng_mppc ..."
                     46: if [ -e /usr/include/netgraph/ng_mppc.h \
                     47:   -o -e /usr/include/netgraph/mppc/ng_mppc.h ]
                     48: then
                     49:     echo " found."
                     50:     echo "#define      HAVE_NG_MPPC    1" >> $CONFIG
                     51: else
                     52:     echo " not found."
                     53: fi
                     54: 
                     55: echo -n "Looking for ng_nat ..."
                     56: if [ -e /usr/include/netgraph/ng_nat.h ]
                     57: then
                     58:     echo " found."
                     59:     echo "#define      HAVE_NG_NAT     1" >> $CONFIG
                     60: else
                     61:     echo " not found."
                     62: fi
                     63: 
                     64: echo -n "Looking for ng_netflow ..."
                     65: if [ -e /usr/include/netgraph/netflow/ng_netflow.h \
                     66:   -o -e /usr/local/include/netgraph/netflow/ng_netflow.h ]
                     67: then
                     68:     if [ -e /usr/include/netgraph/netflow/ng_netflow.h ] && \
                     69:        /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
                     70:     then
                     71:        echo " found."
                     72:        echo "#define   HAVE_NG_NETFLOW 1" >> $CONFIG
                     73:     elif [ -e /usr/local/include/netgraph/netflow/ng_netflow.h ] && \
                     74:        /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/local/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
                     75:     then
                     76:        echo " found."
                     77:        echo "#define   HAVE_NG_NETFLOW 1" >> $CONFIG
                     78:     else
                     79:        echo " too old, unsupported."
                     80:     fi
                     81: else
                     82:     echo " not found."
                     83: fi
                     84: 
                     85: echo -n "Looking for ng_pred1 ..."
                     86: if [ -e /usr/include/netgraph/ng_pred1.h ]
                     87: then
                     88:     echo " found."
                     89:     echo "#define      HAVE_NG_PRED1   1" >> $CONFIG
                     90: else
                     91:     echo " not found."
                     92: fi
                     93: 
                     94: echo -n "Looking for ng_tcpmss ..."
                     95: if [ -e /usr/include/netgraph/ng_tcpmss.h ]
                     96: then
                     97:     echo " found."
                     98:     echo "#define      HAVE_NG_TCPMSS  1" >> $CONFIG
                     99: else
                    100:     echo " not found."
                    101: fi
                    102: 
                    103: echo -n "Looking for ng_vjc ..."
                    104: if [ -e /usr/include/netgraph/ng_vjc.h \
                    105:   -o -e /usr/include/vjc/netgraph/ng_vjc.h ]
                    106: then
                    107:     echo " found."
                    108:     echo "#define      HAVE_NG_VJC     1" >> $CONFIG
                    109: else
                    110:     echo " not found."
                    111: fi
                    112: 
                    113: echo -n "Looking for ipfw ..."
                    114: if [ -e /sbin/ipfw  ]
                    115: then
                    116:     echo " found."
                    117:     echo "#define      HAVE_IPFW       1" >> $CONFIG
                    118: else
                    119:     echo " not found."
                    120: fi
1.1.1.3 ! misho     121: 
        !           122: 
        !           123: echo -n "Looking for rad_bind_to() ..."
        !           124: if /usr/bin/grep rad_bind_to /usr/include/radlib.h >/dev/null 2>&1
        !           125: then
        !           126:     echo " found."
        !           127:     echo "#define      HAVE_RAD_BIND   1" >> $CONFIG
        !           128: else
        !           129:     echo " not found."
        !           130: fi
        !           131: 
        !           132: echo -n "Looking for rad_cvt_addr6() ..."
        !           133: if /usr/bin/grep rad_cvt_addr6 /usr/include/radlib.h >/dev/null 2>&1
        !           134: then
        !           135:     echo " found."
        !           136:     echo "#define      HAVE_RAD_ADDR6  1" >> $CONFIG
        !           137: else
        !           138:     echo " not found."
        !           139: fi
        !           140: 
        !           141: echo -n "Looking for ether_ntoa_r() ..."
        !           142: if /usr/bin/grep ether_ntoa_r /usr/include/net/ethernet.h >/dev/null 2>&1
        !           143: then
        !           144:     echo " found."
        !           145:     echo "#define      HAVE_NTOA_R     1" >> $CONFIG
        !           146: else
        !           147:     echo " not found."
        !           148: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>