]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
doc: Don't depend on /usr/bin/perl in the Makefile.am.
authorChristopher Baines <mail@cbaines.net>
Tue, 20 Sep 2022 09:33:45 +0000 (11:33 +0200)
committerDaiki Ueno <ueno@gnu.org>
Tue, 28 Feb 2023 04:30:28 +0000 (13:30 +0900)
Instead, work if perl is on the $PATH. I hit this problem on GNU Guix
which doesn't use the /usr/bin directory.

Signed-off-by: Christopher Baines <mail@cbaines.net>
configure.ac
doc/Makefile.am

index b25ba1483f5c3db513f634526ca7eb1a213d59dc..7babfb36c8b59152bdbff8cf64907dd147d8879e 100644 (file)
@@ -63,6 +63,7 @@ AM_MAINTAINER_MODE([enable])
 
 AM_MISSING_PROG([GPERF], [gperf])
 AM_MISSING_PROG([ASN1PARSER], [asn1Parser])
+AM_MISSING_PROG([PERL], [perl])
 
 AC_ARG_ENABLE(bash-tests,
   AS_HELP_STRING([--disable-bash-tests], [skip some tests that badly need bash]),
index c904bc10d49ec1eb48cb57a16defe9d1f7a682e5..937ba98b3cba959a544a5d6aaa140d565950aced 100644 (file)
@@ -251,9 +251,9 @@ MAINTAINERCLEANFILES += $(API_FILES)
 
 gnutls-api.texi: $(top_srcdir)/lib/includes/gnutls/gnutls.h.in
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -262,9 +262,9 @@ gnutls-api.texi: $(top_srcdir)/lib/includes/gnutls/gnutls.h.in
 
 socket-api.texi: $(top_srcdir)/lib/includes/gnutls/socket.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -273,9 +273,9 @@ socket-api.texi: $(top_srcdir)/lib/includes/gnutls/socket.h
 
 dane-api.texi: $(top_srcdir)/libdane/includes/gnutls/dane.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -285,9 +285,9 @@ dane-api.texi: $(top_srcdir)/libdane/includes/gnutls/dane.h
 x509-api.texi: $(top_srcdir)/lib/includes/gnutls/x509.h $(top_srcdir)/lib/includes/gnutls/x509-ext.h
        echo "" > $@-tmp
        cat $^ > $@-tmp2
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $@-tmp2 |sort |uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $@-tmp2 |sort |uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -297,9 +297,9 @@ x509-api.texi: $(top_srcdir)/lib/includes/gnutls/x509.h $(top_srcdir)/lib/includ
 
 pkcs12-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs12.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_X509_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -308,9 +308,9 @@ pkcs12-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs12.h
 
 pkcs11-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs11.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -319,9 +319,9 @@ pkcs11-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs11.h
 
 pkcs7-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs7.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_X509_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -330,9 +330,9 @@ pkcs7-api.texi: $(top_srcdir)/lib/includes/gnutls/pkcs7.h
 
 tpm-api.texi: $(top_srcdir)/lib/includes/gnutls/tpm.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -342,9 +342,9 @@ tpm-api.texi: $(top_srcdir)/lib/includes/gnutls/tpm.h
 abstract-api.texi: $(top_srcdir)/lib/includes/gnutls/abstract.h $(top_srcdir)/lib/includes/gnutls/urls.h $(top_srcdir)/lib/includes/gnutls/system-keys.h
        echo "" > $@-tmp
        cat $^ >$@-headers-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $@-headers-tmp |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $@-headers-tmp |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -354,9 +354,9 @@ abstract-api.texi: $(top_srcdir)/lib/includes/gnutls/abstract.h $(top_srcdir)/li
 
 compat-api.texi: $(top_srcdir)/lib/includes/gnutls/compat.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -365,9 +365,9 @@ compat-api.texi: $(top_srcdir)/lib/includes/gnutls/compat.h
 
 dtls-api.texi: $(top_srcdir)/lib/includes/gnutls/dtls.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -376,9 +376,9 @@ dtls-api.texi: $(top_srcdir)/lib/includes/gnutls/dtls.h
 
 crypto-api.texi: $(top_srcdir)/lib/includes/gnutls/crypto.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -387,9 +387,9 @@ crypto-api.texi: $(top_srcdir)/lib/includes/gnutls/crypto.h
 
 ocsp-api.texi: $(top_srcdir)/lib/includes/gnutls/ocsp.h
        echo "" > $@-tmp
-       for i in `$(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
+       for i in `$(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl < $< |sort|uniq`; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo \
                        -function $$i \
                        $(C_X509_SOURCE_FILES) >> $@-tmp && \
                echo "ok"; \
@@ -438,7 +438,7 @@ enums.texi: $(HEADER_FILES)
        echo "" > $@-tmp
        for i in $^; do \
                echo $(ECHO_N) "Creating documentation for $$i... " && \
-               $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
+               $(PERL) $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
                echo "ok"; \
        done
        mv -f $@-tmp $@
@@ -451,7 +451,7 @@ stamp_functions: $(API_FILES)
        -mkdir functions
        -rm -f functions/*.short
        for i in $^; do \
-               $(srcdir)/scripts/split-texi.pl functions < $$i; \
+               $(PERL) $(srcdir)/scripts/split-texi.pl functions < $$i; \
        done
        $(SED) -i 's/\@anchor{.*//g' functions/*
        $(SED) -i 's/\@subheading.*//g' functions/*
@@ -460,7 +460,7 @@ stamp_functions: $(API_FILES)
 
 stamp_enums: enums.texi
        -mkdir enums
-       $(srcdir)/scripts/split-texi.pl enums enum < $<
+       $(PERL) $(srcdir)/scripts/split-texi.pl enums enum < $<
        echo $@ > $@
 
 $(ENUMS): stamp_enums
@@ -469,11 +469,11 @@ $(FUNCS): stamp_functions
 
 compare-exported:
        rm -f tmp-exp-$@ tmp-head-$@
-       for i in $(top_srcdir)/libdane/includes/gnutls/*.h $(top_srcdir)/lib/includes/gnutls/*.h $(top_builddir)/lib/includes/gnutls/*.h;do perl $(srcdir)/scripts/getfuncs.pl <$$i >>tmp-head-$@;done
+       for i in $(top_srcdir)/libdane/includes/gnutls/*.h $(top_srcdir)/lib/includes/gnutls/*.h $(top_builddir)/lib/includes/gnutls/*.h;do $(PERL) $(srcdir)/scripts/getfuncs.pl <$$i >>tmp-head-$@;done
        sort -u tmp-head-$@ > tmp2-head-$@
        mv tmp2-head-$@ tmp-head-$@
-       $(srcdir)/scripts/getfuncs-map.pl <$(top_srcdir)/lib/libgnutls.map >tmp-exp-$@
-       $(srcdir)/scripts/getfuncs-map.pl <$(top_srcdir)/libdane/libdane.map >>tmp-exp-$@
+       $(PERL) $(srcdir)/scripts/getfuncs-map.pl <$(top_srcdir)/lib/libgnutls.map >tmp-exp-$@
+       $(PERL) $(srcdir)/scripts/getfuncs-map.pl <$(top_srcdir)/libdane/libdane.map >>tmp-exp-$@
        sort -u tmp-exp-$@ > tmp2-exp-$@
        mv tmp2-exp-$@ tmp-exp-$@
        @echo "******************************************************************************"
@@ -492,10 +492,10 @@ compare-makefile: enums.texi
                STR="$$STR\nENUMS += enums/$$i"; \
        done; \
        grep -v -e '^ENUMS += ' $(srcdir)/Makefile.am | \
-               perl -p -e "s,^ENUMS =,ENUMS =$$STR," > tmp-$@; \
+               $(PERL) -p -e "s,^ENUMS =,ENUMS =$$STR," > tmp-$@; \
        diff -u $(srcdir)/Makefile.am tmp-$@ >/dev/null
        rm -f tmp-$@
-       FUNCS=`cat $(HEADER_FILES) | $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d|uniq`; \
+       FUNCS=`cat $(HEADER_FILES) | $(PERL) $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d|uniq`; \
        MANS=""; \
        for i in $$FUNCS; do \
                MANS="$$MANS\nFUNCS += functions/$$i\nFUNCS += functions/$$i.short"; \