gperf under FreeBSD does not know the -m option.
authorTobias Brunner <tobias@strongswan.org>
Tue, 14 Jul 2009 10:03:12 +0000 (12:03 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 14 Jul 2009 10:09:22 +0000 (12:09 +0200)
We could use AC_PATH_PROGS_FEATURE_CHECK (added in Autoconf 2.62) to check for this option.

src/libstrongswan/Makefile.am
src/starter/Makefile.am
src/stroke/Makefile.am

index 096ef3b..2d0d6e9 100644 (file)
@@ -97,7 +97,7 @@ $(srcdir)/asn1/oid.h :        $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
 
 $(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
                                                                                                $(srcdir)/crypto/proposal/proposal_keywords.h
-               $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
+               $(GPERF) -N proposal_get_token -C -G -c -t -D < \
                                                                                                $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
 
 
index 439a778..5dbe301 100644 (file)
@@ -46,7 +46,7 @@ y.tab.h:      $(srcdir)/parser.y $(srcdir)/parser.l $(srcdir)/parser.h
                $(YACC) -v -d $(srcdir)/parser.y
 
 keywords.c:    $(srcdir)/keywords.txt $(srcdir)/keywords.h
-               $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
+               $(GPERF) -C -G -D -t < $(srcdir)/keywords.txt > $@
 
 defs.o:                $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
                $(COMPILE) -c -o $@ $(PLUTODIR)/defs.c
index afca95f..22f317f 100644 (file)
@@ -8,4 +8,4 @@ MAINTAINERCLEANFILES = stroke_keywords.c
 AM_CFLAGS = -DIPSEC_PIDDIR=\"${piddir}\"
 
 stroke_keywords.c:     $(srcdir)/stroke_keywords.txt $(srcdir)/stroke_keywords.h
-               $(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@
+               $(GPERF) -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@