diff -r 9a2838d971d4 -r 5360c810222d scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Sun Sep 06 16:49:54 2009 +0200 +++ b/scripts/crosstool-NG.sh.in Sat Dec 19 12:44:21 2009 +0100 @@ -134,6 +134,9 @@ # then rescan the options file now: . .config +# Sanity check some directories +CT_TestAndAbort "'CT_PREFIX_DIR' is not set: where should I install?" -z "${CT_PREFIX_DIR}" + # Second kludge: merge user-supplied target CFLAGS with architecture-provided # target CFLAGS. Do the same for LDFLAGS in case it happens in the future. # Put user-supplied flags at the end, so that they take precedence.