summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-12 20:03:36 +0000
committerRoy Marples <roy@marples.name>2015-05-12 20:03:36 +0000
commit9437df595bec332daa160f3be7d217794ab75406 (patch)
tree14ca265d3d39ddf8d1b6eed433d85fa5dd6c5be9 /configure
parent6c3e0382cc619a4466cd3ddf2d25a07bd0a2029f (diff)
downloaddhcpcd-9437df595bec332daa160f3be7d217794ab75406.tar.xz
Remove compat for polling, dhcpcd now requires pselect as a minimum fallback.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 3 insertions, 21 deletions
diff --git a/configure b/configure
index b1fec5cc..48994d39 100755
--- a/configure
+++ b/configure
@@ -424,7 +424,7 @@ if $XCC _test.c -o _test >/dev/null 2>&3; then
fi
rm -f _test.c _test
if ! $_CC; then
- echo "$CC does not create executables"
+ echo "$CC does not create executables" >&2
exit 1
fi
[ "$CC" != cc ] && echo "CC= $CC" >>$CONFIG_MK
@@ -853,24 +853,6 @@ EOF
rm -f _epoll.c _epoll
fi
if [ -z "$POLL" ]; then
- printf "Testing for ppoll ... "
- cat <<EOF >_ppoll.c
-#include <poll.h>
-#include <stdlib.h>
-int main(void) {
- ppoll(NULL, 0, NULL, NULL);
- return 0;
-}
-EOF
- if $XCC _ppoll.c -o _ppoll 2>&3; then
- POLL=ppoll
- echo "yes"
- else
- echo "no"
- fi
- rm -f _ppoll.c _ppoll
-fi
-if [ -z "$POLL" ]; then
printf "Testing for pselect ... "
cat <<EOF >_pselect.c
#include <sys/select.h>
@@ -907,8 +889,8 @@ pselect)
echo "#include \"compat/pollts.h\"" >>$CONFIG_H
;;
*)
- echo "COMPAT_SRCS+= compat/pollts.c" >>$CONFIG_MK
- echo "#include \"compat/pollts.h\"" >>$CONFIG_H
+ echo "No suitable polling function is available, not even pselect" >&2
+ exit 1
;;
esac