--- embedaddon/mpd/src/configure 2012/02/21 23:32:47 1.1 +++ embedaddon/mpd/src/configure 2019/10/22 13:49:55 1.1.1.4 @@ -15,8 +15,7 @@ else fi echo -n "Looking for ng_car ..." -if [ -e /usr/include/netgraph/ng_car.h \ - -o -e /usr/local/include/netgraph/ng_car.h ] +if [ -e /usr/include/netgraph/ng_car.h ] then echo " found." echo "#define HAVE_NG_CAR 1" >> $CONFIG @@ -34,7 +33,9 @@ else fi echo -n "Looking for ng_ipacct ..." -if [ -e /usr/include/netgraph/ng_ipacct.h \ +if [ "$USE_NG_IPACCT" = no ]; then + echo " disabled." +else if [ -e /usr/include/netgraph/ng_ipacct.h \ -o -e /usr/local/include/netgraph/ng_ipacct.h ] then echo " found." @@ -42,6 +43,7 @@ then else echo " not found." fi +fi echo -n "Looking for ng_mppc ..." if [ -e /usr/include/netgraph/ng_mppc.h \ @@ -120,3 +122,30 @@ else echo " not found." fi + +echo -n "Looking for rad_bind_to() ..." +if /usr/bin/grep rad_bind_to /usr/include/radlib.h >/dev/null 2>&1 +then + echo " found." + echo "#define HAVE_RAD_BIND 1" >> $CONFIG +else + echo " not found." +fi + +echo -n "Looking for rad_cvt_addr6() ..." +if /usr/bin/grep rad_cvt_addr6 /usr/include/radlib.h >/dev/null 2>&1 +then + echo " found." + echo "#define HAVE_RAD_ADDR6 1" >> $CONFIG +else + echo " not found." +fi + +echo -n "Looking for ether_ntoa_r() ..." +if /usr/bin/grep ether_ntoa_r /usr/include/net/ethernet.h >/dev/null 2>&1 +then + echo " found." + echo "#define HAVE_NTOA_R 1" >> $CONFIG +else + echo " not found." +fi