Search notes:

AC_ARG_VAR

Example

configure.ac

AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])

AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])

AC_PROG_CC

AC_ARG_VAR(VAR_TQ84, [The description for variable VAR_TQ84])

AM_INIT_AUTOMAKE([foreign])

AC_OUTPUT

Makefile.am

bin_PROGRAMS       = ac_arg_var
ac_arg_var_SOURCES = main.c

main.c

#include <stdio.h>

int main() {
  printf("AC_ARG_VAR\n");
}
Run
autoreconf --install
This creates a ./configure script.
Since configure.ac uses the AC_ARG_VAR(VAR_TQ84, [The description…]) macro, ./configure --help now shows, among others:
Some influential environment variables:
  …
  VAR_TQ84    The description for variable VAR_TQ84
./configure can no invoked, for example, with one of the following three:
VAR_TQ84=foo ./configure
./configure VAR_TQ84=bar
./configure
After invoking, the variable is accordingly set in the Makefile:
grep VAR_TQ84 Makefile

See also

AC_SUBST

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759414331, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/GNU/toolchain/Build-System/Autoconf/macros/AC_ARG_VAR(98): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78