How to set shell environment variable from autotools .am file?

SeanLabs

I need to get the shell equivalent of

export PYTHONHTTPSVERIFY=0

to work in an autotools .am file, but can't get it working. I currently have this declaration in my Makefile.am file:

PYTHONHTTPSVERIFY=0

but when the build runs it is not behaving as though that variable is set as an environment variable. Can anyone advise on what the correct syntax is?

Vicente Bolea

To declare environment variables is better to user the configure.ac file. There you can write:

export PYTHONHTTPSVERIFY=0

However, I am not sure what are you trying to achieve with that. Do you need an environmental variable to run your program or to compile it? In the former case, other methods are preferable.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set a variable with an environment variable read from a text file

From Dev

How to set TERM environment variable for linux shell

From Dev

How do I set environment variable by importing from a file?

From Dev

Fish Shell: How to set multiple environment variables from a file using export

From Dev

How to set Jenkins environment variable from script

From Dev

How to set `screen` environment variable from bash?

From Dev

How do I set an environment variable in the shell to be result of python script?

From Dev

How to export environment variable set in perl script to batch shell?

From Dev

How do I set the path to the build.xml file in a Jenkins ant build from an environment variable on Windows

From Dev

set environment variable from sh script in systemd service file

From Dev

How to display jenkins default environment variable from shell command?

From Dev

Parse string from file and set to variable - Shell script

From Dev

read and set the value of variable from log file to KSH shell script

From Dev

Set an environment variable within a shell alias

From Dev

Set shell environment variable via python script

From Dev

How to set PATH environment variable in batch file only once on Windows?

From Dev

How to set PATH environment variable in batch file only once on Windows?

From Dev

How to set environment variable based on the server/file system I log in to?

From Dev

Environment variable not set, from Netbeans

From Dev

set environment variable from batch

From Dev

Environment variable not set, from Netbeans

From Dev

How do I set a Machine environment variable from a Chocolatey package?

From Dev

How to set a global environment variable from Inno Setup installer?

From Dev

How to check if environment variable is set from C program

From Dev

How to set Windows environment variable from Tcl script

From Dev

How do I set a environment variable from a powershell command?

From Dev

How to define and set a variable from a file?

From Dev

autotools: Makefile.am: link if file exists

From Dev

Set shell environment variable without using a shell builtin command

Related Related

  1. 1

    How to set a variable with an environment variable read from a text file

  2. 2

    How to set TERM environment variable for linux shell

  3. 3

    How do I set environment variable by importing from a file?

  4. 4

    Fish Shell: How to set multiple environment variables from a file using export

  5. 5

    How to set Jenkins environment variable from script

  6. 6

    How to set `screen` environment variable from bash?

  7. 7

    How do I set an environment variable in the shell to be result of python script?

  8. 8

    How to export environment variable set in perl script to batch shell?

  9. 9

    How do I set the path to the build.xml file in a Jenkins ant build from an environment variable on Windows

  10. 10

    set environment variable from sh script in systemd service file

  11. 11

    How to display jenkins default environment variable from shell command?

  12. 12

    Parse string from file and set to variable - Shell script

  13. 13

    read and set the value of variable from log file to KSH shell script

  14. 14

    Set an environment variable within a shell alias

  15. 15

    Set shell environment variable via python script

  16. 16

    How to set PATH environment variable in batch file only once on Windows?

  17. 17

    How to set PATH environment variable in batch file only once on Windows?

  18. 18

    How to set environment variable based on the server/file system I log in to?

  19. 19

    Environment variable not set, from Netbeans

  20. 20

    set environment variable from batch

  21. 21

    Environment variable not set, from Netbeans

  22. 22

    How do I set a Machine environment variable from a Chocolatey package?

  23. 23

    How to set a global environment variable from Inno Setup installer?

  24. 24

    How to check if environment variable is set from C program

  25. 25

    How to set Windows environment variable from Tcl script

  26. 26

    How do I set a environment variable from a powershell command?

  27. 27

    How to define and set a variable from a file?

  28. 28

    autotools: Makefile.am: link if file exists

  29. 29

    Set shell environment variable without using a shell builtin command

HotTag

Archive