summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-03-12 10:52:41 +0000
committerRoy Marples <roy@marples.name>2016-03-12 10:52:41 +0000
commitc2d0c13e72ea9ca20ad09ba03ec7cc4710369aad (patch)
treeed45f558f2a9d6a4393af1e8aba0e5d99bc1d1c6 /configure
parent0af58eb2887a25a58062a88fd481ae45c6409994 (diff)
downloaddhcpcd-c2d0c13e72ea9ca20ad09ba03ec7cc4710369aad.tar.xz
Support buggy FreeBSD rc system out of the box.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 9c7de89d..d046ac60 100755
--- a/configure
+++ b/configure
@@ -24,6 +24,7 @@ STATIC=
DEVS=
EMBEDDED=
POLL=
+STATUSARG=
for x do
opt=${x%%=*}
@@ -78,6 +79,7 @@ for x do
--serviceexists) SERVICEEXISTS=$var;;
--servicecmd) SERVICECMD=$var;;
--servicestatus) SERVICESTATUS=$var;;
+ --statusarg) STATUSARG=$var;;
--infodir|--includedir) ;; # ignore autotools
--disable-maintainer-mode|--disable-dependency-tracking) ;;
--disable-silent-rules) ;;
@@ -1252,6 +1254,12 @@ SERVICESTATUS=$(echo "$SERVICESTATUS" | $SED \
-e 's:\$:\\\\\$\$:g' \
)
echo "SERVICESTATUS= $SERVICESTATUS" >>config.mk
+if [ -z "$STATUSARG" ]; then
+ case "$OS" in
+ freebsd*) STATUSARG="onestatus";;
+ esac
+fi
+echo "STATUSARG= $STATUSARG" >>config.mk
HOOKS=
if ! $HOOKSET; then
@@ -1357,6 +1365,7 @@ echo " MANDIR = $MANDIR"
echo " DATADIR = $DATADIR"
echo " HOOKSCRIPTS = $HOOKS"
echo " EGHOOKSCRIPTS = $EGHOOKS"
+echo " STATUSARG = $STATUSARG"
echo
rm -f dhcpcd tests/test