home: hub: zuo

Download patch

ref: 8e5889465ef96d4675107dfe54cfabbc46b9d8f0
parent: dcde608b20cf0d71e34300e21cbeeb0509f391a3
author: Philip McGrath <philip@philipmcgrath.com>
date: Mon Aug 1 01:07:28 CDT 2022

Zuo: configure.ac: show `CC_FOR_BUILD` et al. in `--help`

Using `AC_ARG_VAR` also makes these variables “precious” for
`config.status` and the cache.

--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for Zuo 1.
+# Generated by GNU Autoconf 2.69 for Zuo 1.0.
 #
 # Report bugs to <https://github.com/racket/racket/issues>.
 #
@@ -579,8 +579,8 @@
 # Identity of this package.
 PACKAGE_NAME='Zuo'
 PACKAGE_TARNAME='zuo'
-PACKAGE_VERSION='1'
-PACKAGE_STRING='Zuo 1'
+PACKAGE_VERSION='1.0'
+PACKAGE_STRING='Zuo 1.0'
 PACKAGE_BUGREPORT='https://github.com/racket/racket/issues'
 PACKAGE_URL='https://github.com/racket/zuo'
 
@@ -589,9 +589,9 @@
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
 EMBED_LIBS
+CPPFLAGS_FOR_BUILD
 LIBS_FOR_BUILD
 LDFLAGS_FOR_BUILD
-CPPFLAGS_FOR_BUILD
 CFLAGS_FOR_BUILD
 CC_FOR_BUILD
 OBJEXT
@@ -621,6 +621,7 @@
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -653,7 +654,12 @@
 CFLAGS
 LDFLAGS
 LIBS
-CPPFLAGS'
+CPPFLAGS
+CC_FOR_BUILD
+CFLAGS_FOR_BUILD
+LDFLAGS_FOR_BUILD
+LIBS_FOR_BUILD
+CPPFLAGS_FOR_BUILD'
 
 
 # Initialize some variables set by options.
@@ -692,6 +698,7 @@
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -944,6 +951,15 @@
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1081,7 +1097,7 @@
 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 		datadir sysconfdir sharedstatedir localstatedir includedir \
 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-		libdir localedir mandir
+		libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1194,7 +1210,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures Zuo 1 to adapt to many kinds of systems.
+\`configure' configures Zuo 1.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1234,6 +1250,7 @@
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -1255,7 +1272,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of Zuo 1:";;
+     short | recursive ) echo "Configuration of Zuo 1.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1274,6 +1291,16 @@
   LIBS        libraries to pass to the linker, e.g. -l<library>
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
               you have headers in a nonstandard directory <include dir>
+  CC_FOR_BUILD
+              build system C compiler command
+  CFLAGS_FOR_BUILD
+              build system C compiler flags
+  LDFLAGS_FOR_BUILD
+              build system linker flags
+  LIBS_FOR_BUILD
+              build system libraries for linker
+  CPPFLAGS_FOR_BUILD
+              build system preprocessor flags
 
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
@@ -1342,7 +1369,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-Zuo configure 1
+Zuo configure 1.0
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1397,7 +1424,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by Zuo $as_me 1, which was
+It was created by Zuo $as_me 1.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3150,7 +3177,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by Zuo $as_me 1, which was
+This file was extended by Zuo $as_me 1.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3204,7 +3231,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-Zuo config.status 1
+Zuo config.status 1.0
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 # Process this file with autoconf to produce a configure script.
 AC_INIT([Zuo],
-        [1],
+        [1.0],
         [https://github.com/racket/racket/issues],
         [],
         [https://github.com/racket/zuo])
@@ -32,11 +32,11 @@
   LDFLAGS_FOR_BUILD='$(LDFLAGS)'
   LIBS_FOR_BUILD='$(LIBS)'
 fi
-AC_SUBST(CC_FOR_BUILD)
-AC_SUBST(CFLAGS_FOR_BUILD)
-AC_SUBST(CPPFLAGS_FOR_BUILD)
-AC_SUBST(LDFLAGS_FOR_BUILD)
-AC_SUBST(LIBS_FOR_BUILD)
+AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler command])
+AC_ARG_VAR(CFLAGS_FOR_BUILD,[build system C compiler flags])
+AC_ARG_VAR(LDFLAGS_FOR_BUILD,[build system linker flags])
+AC_ARG_VAR(LIBS_FOR_BUILD,[build system libraries for linker])
+AC_ARG_VAR(CPPFLAGS_FOR_BUILD,[build system preprocessor flags])
 
 AC_SUBST(EMBED_LIBS)
 AC_MSG_NOTICE([zuo libraries to embed: "${EMBED_LIBS}"])