Skip to content

Fail during configure if perl is missing but required #13508

Description

@haampie

I did this

Configure curl 8.7.1 without perl on the system, set --disable-docs and --disable-manual or not. The build errors with

env: can't execute 'perl': No such file or directory

during

Making all in cmdline-opts
make[2]: Entering directory '/tmp/root/spack-stage/spack-stage-curl-8.7.1-h65jzpw3styqrc424wm7lxlu4ggv5vu3/spack-src/docs/cmdline-opts'
(rm -f curl.1 && (cd . &&  /tmp/root/spack-stage/spack-stage-curl-8.7.1-h65jzpw3styqrc424wm7lxlu4ggv5vu3/spack-src/scripts/managen mainpage abstract-unix-socket.md ... write-out.md xattr.md) > manpage.tmp.$$ && mv manpage.tmp.$$ curl.1)

I expected the following

No docs / man pages to be generated. No perl required.

curl/libcurl version

curl 8.7.1

operating system

Linux <...> 6.5.0-28-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions