diff options
author | David Bremner <david@tethera.net> | 2018-09-16 14:08:06 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2018-09-18 07:34:33 -0300 |
commit | 11d0edeac2a91a3f6d786d1ca6900b9f7ed45765 (patch) | |
tree | 7aa2e99de0577da51757eb8880a22f6047da874d /configure | |
parent | ef07e3f3bdd01a7266e0268227cd9b78f3c47c68 (diff) |
configure: absolute path of perl
This can be used to set shebang lines during install.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -54,6 +54,7 @@ fi # Set several defaults (optionally specified by the user in # environment variables) BASH=${BASH:-bash} +PERL=${PERL:-perl} CC=${CC:-cc} CXX=${CXX:-c++} CFLAGS=${CFLAGS:--g -O2} @@ -568,6 +569,16 @@ else printf "No. (%s not found)\n" "${BASH}" fi +printf "Checking for perl... " +if command -v ${PERL} > /dev/null; then + have_perl=1 + perl_absolute=$(command -v ${PERL}) + printf "Yes (%s).\n" "$perl_absolute" +else + have_perl=0 + printf "No. (%s not found)\n" "${PERL}" +fi + printf "Checking for python... " have_python=0 @@ -1096,6 +1107,10 @@ emacsetcdir=${EMACSETCDIR} HAVE_BASH = ${have_bash} BASH_ABSOLUTE = ${bash_absolute} +# Whether perl exists, and if so where +HAVE_PERL = ${have_perl} +PERL_ABSOLUTE = ${perl_absolute} + # Whether there's an emacs binary available for byte-compiling HAVE_EMACS = ${have_emacs} @@ -1281,6 +1296,10 @@ NOTMUCH_HAVE_MAN=$((have_sphinx)) NOTMUCH_HAVE_BASH=${have_bash} NOTMUCH_BASH_ABSOLUTE=${bash_absolute} +# Whether perl exists, and if so where +NOTMUCH_HAVE_PERL=${have_perl} +NOTMUCH_PERL_ABSOLUTE=${perl_absolute} + # Name of python interpreter NOTMUCH_PYTHON=${python} |