[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.4.2 Obsolete Macros
Although using some of the following macros was required in past
releases, you should not use any of them in new code. Running
autoupdate
should adjust your ‘configure.ac’
automatically (see (autoconf)autoupdate Invocation section `Using autoupdate
to Modernize ‘configure.ac’' in The Autoconf Manual).
-
AM_C_PROTOTYPES
-
Check to see if function prototypes are understood by the compiler. If so, define ‘PROTOTYPES’ and set the output variables
U
andANSI2KNR
to the empty string. Otherwise, setU
to ‘_’ andANSI2KNR
to ‘./ansi2knr’. Automake uses these values to implement the obsolete de-ANSI-fication feature. -
AM_CONFIG_HEADER
-
Automake will generate rules to automatically regenerate the config header. This obsolete macro is a synonym of
AC_CONFIG_HEADERS
today (see section Other things Automake recognizes). -
AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
-
If the use of
TIOCGWINSZ
requires ‘<sys/ioctl.h>’, then defineGWINSZ_IN_SYS_IOCTL
. OtherwiseTIOCGWINSZ
can be found in ‘<termios.h>’. This macro is obsolete, you should use Autoconf'sAC_HEADER_TIOCGWINSZ
instead. -
AM_PROG_MKDIR_P
-
From Automake 1.8 to 1.9.6 this macro used to define the output variable
mkdir_p
to one ofmkdir -p
,install-sh -d
, ormkinstalldirs
.Nowadays Autoconf provides a similar functionality with
AC_PROG_MKDIR_P
(see (autoconf)Particular Programs section `Particular Program Checks' in The Autoconf Manual), however this defines the output variableMKDIR_P
instead. ThereforeAM_PROG_MKDIR_P
has been rewritten as a thin wrapper aroundAC_PROG_MKDIR_P
to definemkdir_p
to the same value asMKDIR_P
for backward compatibility.If you are using Automake, there is normally no reason to call this macro, because
AM_INIT_AUTOMAKE
already does so. However, make sure that the custom rules in your ‘Makefile’s use$(MKDIR_P)
and not$(mkdir_p)
. Even if both variables still work, the latter should be considered obsolete.If you are not using Automake, please call
AC_PROG_MKDIR_P
instead ofAM_PROG_MKDIR_P
. -
AM_SYS_POSIX_TERMIOS
-
Check to see if POSIX termios headers and functions are available on the system. If so, set the shell variable
am_cv_sys_posix_termios
to ‘yes’. If not, set the variable to ‘no’. This macro is obsolete, you should use Autoconf'sAC_SYS_POSIX_TERMIOS
instead.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |