summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-26 19:37:46 +0000
committerRoy Marples <roy@marples.name>2009-07-26 19:37:46 +0000
commit980dcbee96587215b77873b770f19f45fe49fec4 (patch)
tree67d5b9b2bcb51df6fd85d88313190ff9aa5ecf1b /configure
parente267c1b43086ec409a59a3cd1023b559234e3d4b (diff)
downloaddhcpcd-980dcbee96587215b77873b770f19f45fe49fec4.tar.xz
Pretty hooks output and abort if no cc found.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index fa2e5d46..baef0ff8 100755
--- a/configure
+++ b/configure
@@ -23,7 +23,7 @@ for x; do
--mandir) MANDIR=$var;;
--with-ccopts|CFLAGS) CFLAGS=$var;;
CPPFLAGS) CPPFLAGS=$var;;
- --with-hook) HOOKSCRIPTS="$HOOKSCRIPTS $var";;
+ --with-hook) HOOKSCRIPTS="$HOOKSCRIPTS${HOOKSCRIPTS:+ }$var";;
--with-hooks|HOOKSCRIPTS) HOOKSCRIPTS=$var;;
--build) BUILD=$var;;
--host) HOST=$var;;
@@ -104,6 +104,11 @@ if [ -z "$CC" ]; then
done
[ -n "$CC" ] && break
done
+ if [ -z "$CC" ]; then
+ echo
+ echo "no suitable compiler found - aborting" >&2
+ exit 1
+ fi
else
echo "Using compiler $CC"
fi