OSDN Git Service

Hapless User Hint for gperf
[pf3gnuchains/gcc-fork.git] / gcc / ch / Makefile.in
index b377964..3ff898d 100644 (file)
@@ -254,7 +254,10 @@ $(srcdir)/hash.h:
        sed -f sed.tmp < gperf.tmp > gperf.tmp2
        cat $(srcdir)/gperf gperf.tmp2 > gperf.tmp
        gperf -L C -F ', 0, 0, 0' -D -E -S1 -p -j1 -i 1 -g -o -t -k'*' \
-         gperf.tmp > $(srcdir)/hash.h
+         gperf.tmp > $(srcdir)/hash.h || ( \
+       echo "Please update your 'gperf' from the GCC infrastructure" >&2 ; \
+       echo "  ftp://sourceware.cygnus.com/pub/egcs/infrastructure/gperf*" >&2 ; \
+       exit 1 )
        $(RM) gperf.tmp gperf.tmp2 sed.tmp
 
 actions.o : actions.c $(CONFIG_H) $(CHILL_TREE_H) actions.h $(RTL_H)   \