External Software - Autoconf. — Macro: AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given]) If the user gave configure the option --with-package or --without-package, run shell commands action-if-given. If neither option was given, run shell commands action-if-not-given. The name package indicates another software. · AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) AC_OUTPUT([Makefile. macros/Makefile. src/Makefile. intl/Makefile. po/www.doorway.ru pixmaps/Makefile. doc/Makefile. doc/C/Makefile. doc/es/Makefile]) 下面我们逐一对例子中的代码进行一下解释,例子中以AC开头的宏来自autoconf,以AM开头的宏来自automake。可以从autoconf或. The AC_SUBST(VAR_TQ84, 'tq84') macro in www.doorway.ru declares the variable VAR_TQ84 with value tq84 in the Makefile.
AC_SUBST(name) This macro takes a single argument, which is the name of a shell variable. When configure generates the files listed in AC_OUTPUT (e.g., 'Makefile'), it will substitute the variable's value (at the end of the configure run - the value can be changed after AC_SUBST is called) anywhere a string of the form '@name@' is seen. Autoconf provides a portable way to configure a build environment for software. Automake works with Autoconf to provide optional dependency tracking for Makefile templates. Using it also simplifies Makefile templates. The GNU Autotools are very powerful, and to make the best use of them you will need the manuals. Macro: AC_SUBST_FILE (variable) For cache values used by the distributed Autoconf macros, this value is `ac'. _cv_ Indicates that this shell variable is a cache value. This string must be present in the variable name, including the leading underscore. Manual Configuration).
See Finding configure Input in The Autoconf Manual. AC_SUBST ¶ The first argument is automatically defined as a variable in each generated www.doorway.ru, unless AM_SUBST_NOTMAKE is also used for this variable. See Setting Output Variables in The Autoconf Manual. For every substituted variable var, automake will add a line var = value to each www.doorway.ru file. autoconf processes www.doorway.ru with the M4 macro processor, using the Autoconf macros. If you give autoconf an argument, it reads that file instead of www.doorway.ru and writes the configuration script to the standard output instead of to configure. AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) AC_OUTPUT([Makefile. macros/Makefile. src/Makefile. intl/Makefile. po/www.doorway.ru pixmaps/Makefile. doc/Makefile. doc/C/Makefile. doc/es/Makefile]) 下面我们逐一对例子中的代码进行一下解释,例子中以AC开头的宏来自autoconf,以AM开头的宏来自automake。可以从autoconf或.
0コメント