# Map from obsolete macros to hints for new macros.
# If you change this, change the corresponding list in automake.in.
# FIXME: should just put this into a single file.
-%obsolete_macros =
+my %obsolete_macros =
(
- 'AC_FEATURE_CTYPE', "use \`AC_HEADER_STDC'",
- 'AC_FEATURE_ERRNO', "add \`strerror' to \`AC_REPLACE_FUNCS(...)'",
- 'AC_FEATURE_EXIT', '',
- 'AC_SYSTEM_HEADER', '',
+ 'AC_FEATURE_CTYPE' => "use `AC_HEADER_STDC'",
+ 'AC_FEATURE_ERRNO' => "add `strerror' to `AC_REPLACE_FUNCS(...)'",
+ 'AC_FEATURE_EXIT' => '',
+ 'AC_SYSTEM_HEADER' => '',
# Note that we do not handle this one, because it is still run
# from AM_CONFIG_HEADER. So we deal with it specially in
- # scan_configure.
- # 'AC_CONFIG_HEADER', "use \`AM_CONFIG_HEADER'",
-
- 'fp_C_PROTOTYPES', "use \`AM_C_PROTOTYPES'",
- 'fp_PROG_CC_STDC', "use \`AM_PROG_CC_STDC'",
- 'fp_PROG_INSTALL', "use \`AC_PROG_INSTALL'",
- 'fp_WITH_DMALLOC', "use \`AM_WITH_DMALLOC'",
- 'fp_WITH_REGEX', "use \`AM_WITH_REGEX'",
- 'gm_PROG_LIBTOOL', "use \`AM_PROG_LIBTOOL'",
- 'jm_MAINTAINER_MODE', "use \`AM_MAINTAINER_MODE'",
- 'md_TYPE_PTRDIFF_T', "use \`AM_TYPE_PTRDIFF_T'",
- 'ud_PATH_LISPDIR', "use \`AM_PATH_LISPDIR'",
- 'ud_GNU_GETTEXT', "use \`AM_GNU_GETTEXT'",
+ # &scan_autoconf_files.
+ # 'AC_CONFIG_HEADER' => "use `AM_CONFIG_HEADER'",
+
+ 'fp_C_PROTOTYPES' => "use `AM_C_PROTOTYPES'",
+ 'fp_PROG_CC_STDC' => "use `AM_PROG_CC_STDC'",
+ 'fp_PROG_INSTALL' => "use `AC_PROG_INSTALL'",
+ 'fp_WITH_DMALLOC' => "use `AM_WITH_DMALLOC'",
+ 'fp_WITH_REGEX' => "use `AM_WITH_REGEX'",
+ 'gm_PROG_LIBTOOL' => "use `AM_PROG_LIBTOOL'",
+ 'jm_MAINTAINER_MODE' => "use `AM_MAINTAINER_MODE'",
+ 'md_TYPE_PTRDIFF_T' => "use `AM_TYPE_PTRDIFF_T'",
+ 'ud_PATH_LISPDIR' => "use `AM_PATH_LISPDIR'",
+ 'ud_GNU_GETTEXT' => "use `AM_GNU_GETTEXT'",
# Now part of autoconf proper, under a different name.
- 'AM_FUNC_FNMATCH', "use \`AC_FUNC_FNMATCH'",
- 'fp_FUNC_FNMATCH', "use \`AC_FUNC_FNMATCH'",
- 'AM_SANITY_CHECK_CC', "automatically done by \`AC_PROG_CC'",
- 'AM_PROG_INSTALL', "use \`AC_PROG_INSTALL'",
- 'AM_EXEEXT', "use \`AC_EXEEXT'",
- 'AM_CYGWIN32', "use \`AC_CYGWIN'",
- 'AM_MINGW32', "use \`AC_MINGW32'",
- 'AM_FUNC_MKTIME', "use \`AC_FUNC_MKTIME'",
+ 'AM_FUNC_FNMATCH' => "use `AC_FUNC_FNMATCH'",
+ 'fp_FUNC_FNMATCH' => "use `AC_FUNC_FNMATCH'",
+ 'AM_SANITY_CHECK_CC' => "automatically done by `AC_PROG_CC'",
+ 'AM_PROG_INSTALL' => "use `AC_PROG_INSTALL'",
+ 'AM_EXEEXT' => "use `AC_EXEEXT'",
+ 'AM_CYGWIN32' => "use `AC_CYGWIN'",
+ 'AM_MINGW32' => "use `AC_MINGW32'",
+ 'AM_FUNC_MKTIME' => "use `AC_FUNC_MKTIME'",
# These aren't quite obsolete.
# 'md_PATH_PROG',
print "Usage: aclocal [OPTIONS] ...\n\n";
print "\
-Generate \`aclocal.m4' by scanning \`configure.ac' or \`configure.in'
+Generate `aclocal.m4' by scanning `configure.ac' or `configure.in'
--acdir=DIR directory holding config files
--help print this help, then exit
}
else
{
- die "aclocal: unrecognized option -- \`$arglist[0]'\nTry \`aclocal --help' for more information.\n";
+ die "aclocal: unrecognized option -- `$arglist[0]'\nTry `aclocal --help' for more information.\n";
}
shift (@arglist);
sub scan_configure
{
- warn "aclocal: both \`configure.ac' and \`configure.in' present:"
- . " ignoring \`configure.in'\n"
+ warn "aclocal: both `configure.ac' and `configure.in' present:"
+ . " ignoring `configure.in'\n"
if -f 'configure.ac' && -f 'configure.in';
$configure_ac = 'configure.in'
if -f 'configure.in';
$configure_ac = 'configure.ac'
if -f 'configure.ac';
- die "aclocal: \`configure.ac' or \`configure.in' is required\n"
+ die "aclocal: `configure.ac' or `configure.in' is required\n"
if !$configure_ac;
open (CONFIGURE, $configure_ac)
- || die "aclocal: couldn't open \`$configure_ac': $!\n";
+ || die "aclocal: couldn't open `$configure_ac': $!\n";
# Make sure we include acinclude.m4 if it exists.
if (-f 'acinclude.m4')
{
$hint = '; ' . $obsolete_macros{$1};
}
- warn "aclocal: $configure_ac: $.: \`$1' is obsolete$hint\n";
+ warn "aclocal: $configure_ac: $.: `$1' is obsolete$hint\n";
$exit_status = 1;
next;
}
if (! &search && /(^|\s+)(AM_[A-Z_]+)($|[^\]\)=A-Z_])/)
{
# Macro not found, but AM_ prefix found.
- warn "aclocal: $configure_ac: $.: macro \`$2' not found in library\n";
+ warn "aclocal: $configure_ac: $.: macro `$2' not found in library\n";
$exit_status = 1;
}
}
if (! $macro_seen{$key})
{
# FIXME: should print line number of acinclude.m4.
- warn "aclocal: macro \`$key' defined in acinclude.m4 but never used\n";
+ warn "aclocal: macro `$key' defined in acinclude.m4 but never used\n";
}
}
}
foreach $m4dir (@dirlist)
{
opendir (DIR, $m4dir)
- || die "aclocal: couldn't open directory \`$m4dir': $!\n";
+ || die "aclocal: couldn't open directory `$m4dir': $!\n";
local ($file, $fullfile, $expr);
foreach $file (sort grep (! /^\./, readdir (DIR)))
{
if (! defined $map{$macro})
{
- warn "aclocal: macro \`$macro' required but not defined\n";
+ warn "aclocal: macro `$macro' required but not defined\n";
$exit_status = 1;
return;
}
if (! &search && /(^|\s+)(AM_[A-Z_]+)($|[^\]\)=A-Z_])/)
{
# Macro not found, but AM_ prefix found.
- warn "aclocal: $configure_ac: $.: macro \`$2' not found in library\n";
+ warn "aclocal: $configure_ac: $.: macro `$2' not found in library\n";
$exit_status = 1;
}
}
local ($file) = @_;
open (FILE, $file)
- || die "aclocal: couldn't open \`$file': $!\n";
+ || die "aclocal: couldn't open `$file': $!\n";
local ($contents) = '';
while (<FILE>)
{
{
# You basically never want a macro in the same .m4
# file twice.
- warn "aclocal: $file: $.: duplicated macro \`$1'\n";
+ warn "aclocal: $file: $.: duplicated macro `$1'\n";
$exit_status = 1;
}
print STDERR "aclocal: found macro $1 in $file: $.\n" if $verbose;
print STDERR "aclocal: writing $output_file\n" if $verbose;
open (ACLOCAL, "> " . $output_file)
- || die "aclocal: couldn't open \`$output_file' for writing: $!\n";
+ || die "aclocal: couldn't open `$output_file' for writing: $!\n";
# In case we're running under MSWindows, don't write with CRLF.
# (This circumvents a bug in at least Cygwin bash where the shell
# FIXME: should just put this into a single file.
my %obsolete_macros =
(
- 'AC_FEATURE_CTYPE', "use \`AC_HEADER_STDC'",
- 'AC_FEATURE_ERRNO', "add \`strerror' to \`AC_REPLACE_FUNCS(...)'",
- 'AC_FEATURE_EXIT', '',
- 'AC_SYSTEM_HEADER', '',
+ 'AC_FEATURE_CTYPE' => "use `AC_HEADER_STDC'",
+ 'AC_FEATURE_ERRNO' => "add `strerror' to `AC_REPLACE_FUNCS(...)'",
+ 'AC_FEATURE_EXIT' => '',
+ 'AC_SYSTEM_HEADER' => '',
# Note that we do not handle this one, because it is still run
# from AM_CONFIG_HEADER. So we deal with it specially in
# &scan_autoconf_files.
- # 'AC_CONFIG_HEADER', "use \`AM_CONFIG_HEADER'",
-
- 'fp_C_PROTOTYPES', "use \`AM_C_PROTOTYPES'",
- 'fp_PROG_CC_STDC', "use \`AM_PROG_CC_STDC'",
- 'fp_PROG_INSTALL', "use \`AC_PROG_INSTALL'",
- 'fp_WITH_DMALLOC', "use \`AM_WITH_DMALLOC'",
- 'fp_WITH_REGEX', "use \`AM_WITH_REGEX'",
- 'gm_PROG_LIBTOOL', "use \`AM_PROG_LIBTOOL'",
- 'jm_MAINTAINER_MODE', "use \`AM_MAINTAINER_MODE'",
- 'md_TYPE_PTRDIFF_T', "use \`AM_TYPE_PTRDIFF_T'",
- 'ud_PATH_LISPDIR', "use \`AM_PATH_LISPDIR'",
- 'ud_GNU_GETTEXT', "use \`AM_GNU_GETTEXT'",
+ # 'AC_CONFIG_HEADER' => "use `AM_CONFIG_HEADER'",
+
+ 'fp_C_PROTOTYPES' => "use `AM_C_PROTOTYPES'",
+ 'fp_PROG_CC_STDC' => "use `AM_PROG_CC_STDC'",
+ 'fp_PROG_INSTALL' => "use `AC_PROG_INSTALL'",
+ 'fp_WITH_DMALLOC' => "use `AM_WITH_DMALLOC'",
+ 'fp_WITH_REGEX' => "use `AM_WITH_REGEX'",
+ 'gm_PROG_LIBTOOL' => "use `AM_PROG_LIBTOOL'",
+ 'jm_MAINTAINER_MODE' => "use `AM_MAINTAINER_MODE'",
+ 'md_TYPE_PTRDIFF_T' => "use `AM_TYPE_PTRDIFF_T'",
+ 'ud_PATH_LISPDIR' => "use `AM_PATH_LISPDIR'",
+ 'ud_GNU_GETTEXT' => "use `AM_GNU_GETTEXT'",
# Now part of autoconf proper, under a different name.
- 'AM_FUNC_FNMATCH', "use \`AC_FUNC_FNMATCH'",
- 'fp_FUNC_FNMATCH', "use \`AC_FUNC_FNMATCH'",
- 'AM_SANITY_CHECK_CC', "automatically done by \`AC_PROG_CC'",
- 'AM_PROG_INSTALL', "use \`AC_PROG_INSTALL'",
- 'AM_EXEEXT', "use \`AC_EXEEXT'",
- 'AM_CYGWIN32', "use \`AC_CYGWIN'",
- 'AM_MINGW32', "use \`AC_MINGW32'",
- 'AM_FUNC_MKTIME', "use \`AC_FUNC_MKTIME'",
+ 'AM_FUNC_FNMATCH' => "use `AC_FUNC_FNMATCH'",
+ 'fp_FUNC_FNMATCH' => "use `AC_FUNC_FNMATCH'",
+ 'AM_SANITY_CHECK_CC' => "automatically done by `AC_PROG_CC'",
+ 'AM_PROG_INSTALL' => "use `AC_PROG_INSTALL'",
+ 'AM_EXEEXT' => "use `AC_EXEEXT'",
+ 'AM_CYGWIN32' => "use `AC_CYGWIN'",
+ 'AM_MINGW32' => "use `AC_MINGW32'",
+ 'AM_FUNC_MKTIME' => "use `AC_FUNC_MKTIME'",
# These aren't quite obsolete.
# 'md_PATH_PROG',
# Do configure.ac scan only once.
&scan_autoconf_files;
-die "$me: no \`Makefile.am' found or specified\n"
+die "$me: no `Makefile.am' found or specified\n"
if ! @input_files;
# Now do all the work on each file.
{
if (! -f ($am_file . '.am'))
{
- &am_error ("\`" . $am_file . ".am' does not exist");
+ &am_error ("`" . $am_file . ".am' does not exist");
}
else
{
# automake input file is found. Maybe not the best way, but
# it is easy to explain.
$input =~ s/\.in$//
- or die "$me: invalid input file name \`$arg'\n.";
+ or die "$me: invalid input file name `$arg'\n.";
}
push (@input_files, $input);
$output_files{$input} = join (':', ($local, @rest));
else
{
&am_line_error ('AUTOMAKE_OPTIONS',
- "option \`" . $_ . "\' not recognized");
+ "option `" . $_ . "\' not recognized");
}
}
}
if (! $am_c_prototypes)
{
&am_line_error ('AUTOMAKE_OPTIONS',
- "option \`ansi2knr' in use but \`AM_C_PROTOTYPES' not in \`$configure_ac'");
+ "option `ansi2knr' in use but `AM_C_PROTOTYPES' not in `$configure_ac'");
&keyed_aclocal_warning ('AM_C_PROTOTYPES');
# Only give this error once.
$am_c_prototypes = 1;
# FIXME: Using cygpath should be somehow conditional.
$output_rules .= (".$ext.obj:\n"
. $full
- . " \`cygpath -w \$<\`\n");
+ . " `cygpath -w \$<`\n");
$output_rules .= (".$ext.lo:\n"
. "\t\$(LT"
. $language_map{$lang . '-compiler-name'}
if (defined $libsources{$file})
{
&am_line_error ($prefix . $one_file . '_SOURCES',
- "automatically discovered file \`$file' should not be explicitly mentioned");
+ "automatically discovered file `$file' should not be explicitly mentioned");
}
}
}
# Configure substitutions in _SOURCES variables are errors.
if (/^\@.*\@$/)
{
- &am_line_error ($var, "$var includes configure substitution \`$_'");
+ &am_line_error ($var, "$var includes configure substitution `$_'");
next;
}
{
if ($object_map{$object} ne $full)
{
- &am_error ("object \`$object' created by \`$full' and \`$object_map{$object}'");
+ &am_error ("object `$object' created by `$full' and `$object_map{$object}'");
}
}
else
# the .deps entry.
if ($object =~ /(\/|^)\.\.\//)
{
- &am_error ("\`$full' contains \`..' component but should not");
+ &am_error ("`$full' contains `..' component but should not");
}
push (@dep_list, $directory . '/.dirstamp');
# We cannot use $< here since this is an explicit
# rule and not all makes handle that.
- $rule .= " \`test -f $full || echo '\$(srcdir)/'\`$full";
+ $rule .= " `test -f $full || echo '\$(srcdir)/'`$full";
# FIXME: handle .lo and .obj as well.
$output_rules .= "\t" . $rule . "\n";
{
# Skip -dlopen and -dlpreopen; these are explicitly allowed.
next if $lsearch =~ /^-dl(pre)?open$/;
- &am_line_error ($var, "linker flags such as \`$lsearch' belong in \`${1}LDFLAGS");
+ &am_line_error ($var, "linker flags such as `$lsearch' belong in `${1}LDFLAGS");
}
else
{
# Only get this error once.
$flagvar = 1;
- &am_line_error ($var, "linker flags such as \`$lsearch' belong in \`${1}LDFLAGS");
+ &am_line_error ($var, "linker flags such as `$lsearch' belong in `${1}LDFLAGS");
}
}
if (! keys %libsources
&& ! &variable_defined ($1 . 'LIBOBJS'))
{
- &am_line_error ($var, "\@$1" . "LIBOBJS\@ seen but never set in \`$configure_ac'");
+ &am_line_error ($var, "\@$1" . "LIBOBJS\@ seen but never set in `$configure_ac'");
}
foreach my $iter (keys %libsources)
push (@dep_list, $lsearch);
&am_line_error ($var,
- "\@$1" . "ALLOCA\@ seen but \`AC_FUNC_ALLOCA' not in \`$configure_ac'")
+ "\@$1" . "ALLOCA\@ seen but `AC_FUNC_ALLOCA' not in `$configure_ac'")
if ! defined $libsources{'alloca.c'};
$dep_files{'$(DEPDIR)/alloca.P' . $myobjext} = 1;
&require_file_with_line ($var, $FOREIGN, 'alloca.c');
foreach my $xt (@suffixes)
{
&am_line_error ($name . $xt,
- "invalid variable \`" . $name . $xt
- . "'; should be \`" . $xname . $xt . "'")
+ "invalid variable `" . $name . $xt
+ . "'; should be `" . $xname . $xt . "'")
if &variable_defined ($name . $xt);
}
}
if (&variable_defined ($xname . '_LIBADD'))
{
&am_line_error ($xname . '_LIBADD',
- "use \`" . $xname . "_LDADD', not \`"
+ "use `" . $xname . "_LDADD', not `"
. $xname . "_LIBADD'");
}
{
if (&variable_defined ($key . '_LIBRARIES'))
{
- &am_line_error ($key . '_LIBRARIES', "library used but \`RANLIB' not defined in \`$configure_ac'");
+ &am_line_error ($key . '_LIBRARIES', "library used but `RANLIB' not defined in `$configure_ac'");
# Only get this error once. If this is ever printed,
# we have a bug.
$configure_vars{'RANLIB'} = 'BUG';
{
# FIXME should put line number here. That means mapping
# from library name back to variable name.
- &am_error ("\`$onelib' is not a standard library name");
+ &am_error ("`$onelib' is not a standard library name");
}
my $obj = &get_object_extension ($onelib);
if (&variable_defined ($xlib . '_LDADD'))
{
&am_line_error ($xlib . '_LDADD',
- "use \`" . $xlib . "_LIBADD', not \`"
+ "use `" . $xlib . "_LIBADD', not `"
. $xlib . "_LDADD'");
}
{
if (!$seen_libtool)
{
- &am_line_error ($key . '_LTLIBRARIES', "library used but \`LIBTOOL' not defined in \`$configure_ac'");
+ &am_line_error ($key . '_LTLIBRARIES', "library used but `LIBTOOL' not defined in `$configure_ac'");
# Only get this error once. If this is ever printed,
# we have a bug.
$configure_vars{'LIBTOOL'} = 'BUG';
{
if ($instdirs{$_})
{
- &am_error ("\`$_' is already going to be installed in \`$instdirs{$_}'");
+ &am_error ("`$_' is already going to be installed in `$instdirs{$_}'");
}
else
{
# FIXME this should only be a warning for foreign packages
# FIXME should put line number here. That means mapping
# from library name back to variable name.
- &am_error ("\`$onelib' is not a standard libtool library name");
+ &am_error ("`$onelib' is not a standard libtool library name");
}
if (&variable_defined ($xlib . '_LIBADD'))
if (&variable_defined ($xlib . '_LDADD'))
{
&am_line_error ($xlib . '_LDADD',
- "use \`" . $xlib . "_LIBADD', not \`"
+ "use `" . $xlib . "_LIBADD', not `"
. $xlib . "_LDADD'");
}
if ($varname =~ /$primary$/ && ! $content_seen{$varname})
{
&am_line_error ($varname,
- "invalid unused variable name: \`$varname'");
+ "invalid unused variable name: `$varname'");
}
}
}
my $texi = new IO::File ("< $filename");
if (! $texi)
{
- &am_error ("couldn't open \`$filename': $!");
+ &am_error ("couldn't open `$filename': $!");
return '';
}
print "$me: reading $filename\n" if $verbose;
if ($outfile =~ /\.(.+)$/ && $1 ne 'info')
{
&am_file_error ($filename, "$.: ",
- "output \`$outfile' has unrecognized extension");
+ "output `$outfile' has unrecognized extension");
return;
}
}
if ($outfile eq '')
{
- &am_error ("\`$filename' missing \@setfilename");
+ &am_error ("`$filename' missing \@setfilename");
return;
}
sub handle_texinfo
{
&am_line_error ('TEXINFOS',
- "\`TEXINFOS' is an anachronism; use \`info_TEXINFOS'")
+ "`TEXINFOS' is an anachronism; use `info_TEXINFOS'")
if &variable_defined ('TEXINFOS');
return if (! &variable_defined ('info_TEXINFOS')
&& ! &variable_defined ('html_TEXINFOS'));
if ($infobase eq $info_cursor)
{
# FIXME: report line number.
- &am_error ("texinfo file \`$info_cursor' has unrecognized extension");
+ &am_error ("texinfo file `$info_cursor' has unrecognized extension");
next;
}
$texi_suffixes{$1} = 1;
if ($vtexi)
{
- &am_error ("\`$vtexi', included in \`$info_cursor', also included in \`$versions{$vtexi}'")
+ &am_error ("`$vtexi', included in `$info_cursor', also included in `$versions{$vtexi}'")
if (defined $versions{$vtexi});
$versions{$vtexi} = $info_cursor;
# Handle any man pages.
sub handle_man_pages
{
- &am_line_error ('MANS', "\`MANS' is an anachronism; use \`man_MANS'")
+ &am_line_error ('MANS', "`MANS' is an anachronism; use `man_MANS'")
if &variable_defined ('MANS');
# Find all the sections in use. We do this by first looking for
elsif (&variable_defined ('TAGS_DEPENDENCIES'))
{
&am_line_error ('TAGS_DEPENDENCIES',
- "doesn't make sense to define \`TAGS_DEPENDENCIES' without sources or \`ETAGS_ARGS'");
+ "doesn't make sense to define `TAGS_DEPENDENCIES' without sources or `ETAGS_ARGS'");
}
else
{
next;
}
- &am_line_error ('SUBDIRS', "directory should not contain \`/'")
+ &am_line_error ('SUBDIRS', "directory should not contain `/'")
if $dir =~ /\//;
}
}
&am_line_error ('CONFIG_HEADER',
- "\`CONFIG_HEADER' is an anachronism; now determined from \`$configure_ac'")
+ "`CONFIG_HEADER' is an anachronism; now determined from `$configure_ac'")
if &variable_defined ('CONFIG_HEADER');
my $config_header = '';
my @subdirs = &variable_value_as_list ('SUBDIRS', 'all');
&am_line_error ('SUBDIRS',
- "AM_GNU_GETTEXT used but \`po' not in SUBDIRS")
+ "AM_GNU_GETTEXT used but `po' not in SUBDIRS")
if ! grep ('po', @subdirs);
&am_line_error ('SUBDIRS',
- "AM_GNU_GETTEXT used but \`intl' not in SUBDIRS")
+ "AM_GNU_GETTEXT used but `intl' not in SUBDIRS")
if ! grep ('intl', @subdirs);
&require_file_with_conf_line ($ac_gettext_line, $GNU, 'ABOUT-NLS');
s/\.po$//;
&am_line_error ($all_linguas_line,
- ("po/$_.po exists but \`$_' not in \`ALL_LINGUAS'"))
+ ("po/$_.po exists but `$_' not in `ALL_LINGUAS'"))
if ! $linguas{$_};
}
foreach (keys %linguas)
{
&am_line_error ($all_linguas_line,
- "$_ in \`ALL_LINGUAS' but po/$_.po does not exist")
+ "$_ in `ALL_LINGUAS' but po/$_.po does not exist")
if ! -f "po/$_.po";
}
}
else
{
- &am_error ("AM_GNU_GETTEXT in \`$configure_ac' but \`ALL_LINGUAS' not defined");
+ &am_error ("AM_GNU_GETTEXT in `$configure_ac' but `ALL_LINGUAS' not defined");
}
}
if (&target_defined ('.SUFFIXES'))
{
&am_line_error ('.SUFFIXES',
- "use variable \`SUFFIXES', not target \`.SUFFIXES'");
+ "use variable `SUFFIXES', not target `.SUFFIXES'");
}
# Note: AIX 4.1 /bin/make will fail if any suffix rule appears
{
if (&variable_defined ($var))
{
- &am_line_error ($var, "\`$var' should not be defined");
+ &am_line_error ($var, "`$var' should not be defined");
}
}
{
my $x = $utarg;
$x =~ s/(data|exec)-//;
- &am_line_error ($utarg, "use \`$x', not \`$utarg'");
+ &am_line_error ($utarg, "use `$x', not `$utarg'");
}
}
if (&target_defined ('install-local'))
{
&am_line_error ('install-local',
- "use \`install-data-local' or \`install-exec-local', "
- . "not \`install-local'");
+ "use `install-data-local' or `install-exec-local', "
+ . "not `install-local'");
}
if (!defined $options{'no-installinfo'}
&& &target_defined ('install-info-local'))
{
&am_line_error ('install-info-local',
- "\`install-info-local' target defined but "
- . "\`no-installinfo' option not in use");
+ "`install-info-local' target defined but "
+ . "`no-installinfo' option not in use");
}
# Install the -local hooks.
foreach my $c ('DEJATOOL', 'RUNTEST', 'RUNTESTFLAGS')
{
&am_line_error ($c,
- "\`$c' defined but \`dejagnu' not in \`AUTOMAKE_OPTIONS'")
+ "`$c' defined but `dejagnu' not in `AUTOMAKE_OPTIONS'")
if &variable_defined ($c);
}
}
if (&variable_defined ('lisp_LISP'))
{
$varname = 'lisp_LISP';
- &am_error ("\`lisp_LISP' defined but \`AM_PATH_LISPDIR' not in \`$configure_ac'")
+ &am_error ("`lisp_LISP' defined but `AM_PATH_LISPDIR' not in `$configure_ac'")
if ! $seen_lispdir;
}
else
&define_configure_variable ('pythondir');
&define_configure_variable ('PYTHON');
- &am_error ("\`python_PYTHON' defined but \`AM_CHECK_PYTHON' not in \`$configure_ac'")
+ &am_error ("`python_PYTHON' defined but `AM_CHECK_PYTHON' not in `$configure_ac'")
if ! $seen_pythondir && &variable_defined ('python_PYTHON');
if ($config_aux_dir eq '.' || $config_aux_dir eq '')
# FIXME: allow real filename.
&am_conf_line_error ($configure_ac,
$package_version_line,
- "version \`$package_version' doesn't follow Gnits standards");
+ "version `$package_version' doesn't follow Gnits standards");
}
elsif (defined $1 && -f 'README-alpha')
{
my $tracefh = new IO::File ("$traces |");
if (! $tracefh)
{
- die "$me: couldn't open \`$traces': $!\n";
+ die "$me: couldn't open `$traces': $!\n";
}
print "$me: reading $traces\n" if $verbose;
my $configfh = new IO::File ("< $filename");
if (! $configfh)
{
- die "$me: couldn't open \`$filename': $!\n";
+ die "$me: couldn't open `$filename': $!\n";
}
print "$me: reading $filename\n" if $verbose;
{
$hint = '; ' . $obsolete_macros{$1};
}
- &am_conf_line_error ($filename, $., "\`$1' is obsolete$hint");
+ &am_conf_line_error ($filename, $., "`$1' is obsolete$hint");
}
# Process the AC_OUTPUT and AC_CONFIG_FILES macros.
if ($closing && @make_input_list == 0 && @other_input_files == 0)
{
&am_conf_line_error ($filename, $ac_output_line,
- "No files mentioned in \`AC_OUTPUT'");
+ "No files mentioned in `AC_OUTPUT'");
exit 1;
}
}
&& $2 ne '[$1]')
{
&am_conf_line_error
- ($filename, $., "\`automake requires \`AM_CONFIG_HEADER', not \`AC_CONFIG_HEADER'")
+ ($filename, $., "`automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'")
if $1 eq 'C';
$config_header_line = $.;
}
if (/AC_DECL_YYTEXT/ && $filename =~ /configure\.(ac|in)$/)
{
- &am_conf_line_warning ($filename, $., "\`AC_DECL_YYTEXT' is covered by \`AM_PROG_LEX'");
+ &am_conf_line_warning ($filename, $., "`AC_DECL_YYTEXT' is covered by `AM_PROG_LEX'");
}
if (/AC_PROG_LEX/ && $filename =~ /configure\.(ac|in)$/)
{
- &am_conf_line_warning ($filename, $., "automake requires \`AM_PROG_LEX', not \`AC_PROG_LEX'");
+ &am_conf_line_warning ($filename, $., "automake requires `AM_PROG_LEX', not `AC_PROG_LEX'");
}
if (/AC_PROG_(F77|YACC|RANLIB|CC|CXXCPP|CXX|LEX|AWK|CPP|LN_S)/)
# if (/AM_PROG_LIBTOOL/)
# {
- # &am_conf_line_warning ($filename, $., "\`AM_PROG_LIBTOOL' is obsolete, use \`AC_PROG_LIBTOOL' instead");
+ # &am_conf_line_warning ($filename, $., "`AM_PROG_LIBTOOL' is obsolete, use `AC_PROG_LIBTOOL' instead");
# }
$seen_libtool = 1;
$libtool_line = $.;
# that won't always be the case.
%libsources = ();
- warn "$me: both \`configure.ac' and \`configure.in' present:"
- . " ignoring \`configure.in'\n"
+ warn "$me: both `configure.ac' and `configure.in' present:"
+ . " ignoring `configure.in'\n"
if -f 'configure.ac' && -f 'configure.in';
$configure_ac = 'configure.in'
if -f 'configure.in';
$configure_ac = 'configure.ac'
if -f 'configure.ac';
- die "$me: \`configure.ac' or \`configure.in' is required\n"
+ die "$me: `configure.ac' or `configure.in' is required\n"
if !$configure_ac;
&scan_one_autoconf_file ($configure_ac);
@configure_input_files = @make_input_list;
- &am_conf_error ("\`AM_INIT_AUTOMAKE' must be used")
+ &am_conf_error ("`AM_INIT_AUTOMAKE' must be used")
if ! $seen_init_automake;
# Always require AC_PROG_MAKE_SET. We might randomly use $(MAKE)
# for our own reasons.
- &am_conf_error ("\`AC_PROG_MAKE_SET' must be used")
+ &am_conf_error ("`AC_PROG_MAKE_SET' must be used")
if ! $seen_make_set;
- &am_conf_error ("\`AC_PROG_INSTALL' must be used")
+ &am_conf_error ("`AC_PROG_INSTALL' must be used")
if ! $seen_prog_install;
# Look for some files we need. Always check for these. This
# My tests seems to show it's not the case.
$relative_dir = '.';
&require_config_file ($FOREIGN, 'install-sh', 'mkinstalldirs', 'missing');
- &am_error ("\`install.sh' is an anachronism; use \`install-sh' instead")
+ &am_error ("`install.sh' is an anachronism; use `install-sh' instead")
if -f $config_aux_path[0] . '/install.sh';
&require_config_file ($FOREIGN, 'py-compile')
if (! $seen_maint_mode)
{
- &am_conf_error ("\`AM_MAINTAINER_MODE' required when --cygnus specified");
+ &am_conf_error ("`AM_MAINTAINER_MODE' required when --cygnus specified");
}
}
'AUTHORS', 'ChangeLog');
}
- if ($strictness >= $GNU)
+ if ($strictness >= $GNU
+ && defined $options{'no-installman'})
{
- if (defined $options{'no-installman'})
- {
- &am_line_error ('AUTOMAKE_OPTIONS',
- "option \`no-installman' disallowed by GNU standards");
- }
+ &am_line_error ('AUTOMAKE_OPTIONS',
+ "option `no-installman' disallowed by GNU standards");
+ }
- if (defined $options{'no-installinfo'})
- {
- &am_line_error ('AUTOMAKE_OPTIONS',
- "option \`no-installinfo' disallowed by GNU standards");
- }
+ if ($strictness >= $GNU
+ && defined $options{'no-installinfo'})
+ {
+ &am_line_error ('AUTOMAKE_OPTIONS',
+ "option `no-installinfo' disallowed by GNU standards");
}
}
if (defined $options{'ansi2knr'} && $base =~ /_$/)
{
# FIXME: include line number in error.
- &am_error ("C source file \`$base.c' would be deleted by ansi2knr rules");
+ &am_error ("C source file `$base.c' would be deleted by ansi2knr rules");
}
my $r = $LANG_PROCESS;
# Only give error once.
$seen_cc_c_o = 1;
# FIXME: line number.
- &am_error ("C objects in subdir but \`AM_PROG_CC_C_O' not in \`$configure_ac'");
+ &am_error ("C objects in subdir but `AM_PROG_CC_C_O' not in `$configure_ac'");
}
&require_file ($FOREIGN, 'compile')
if (! defined $configure_vars{'CC'})
{
# FIXME: line number.
- &am_error ("C source seen but \`CC' not defined in \`$configure_ac'");
+ &am_error ("C source seen but `CC' not defined in `$configure_ac'");
}
}
if (! defined $configure_vars{'CXX'})
{
- &am_error ("C++ source seen but \`CXX' not defined in \`$configure_ac'");
+ &am_error ("C++ source seen but `CXX' not defined in `$configure_ac'");
}
}
if (! defined $configure_vars{'YACC'})
{
- &am_error ("yacc source seen but \`YACC' not defined in \`$configure_ac'");
+ &am_error ("yacc source seen but `YACC' not defined in `$configure_ac'");
}
if (&variable_defined ('YACCFLAGS'))
{
&am_line_error ('YACCFLAGS',
- "\`YACCFLAGS' obsolete; use \`YFLAGS' instead");
+ "`YACCFLAGS' obsolete; use `YFLAGS' instead");
}
if ($yacc_count > 1)
if (! defined $configure_vars{'LEX'})
{
- &am_error ("lex source seen but \`LEX' not defined in \`$configure_ac'");
+ &am_error ("lex source seen but `LEX' not defined in `$configure_ac'");
}
if (! $seen_decl_yytext)
{
- &am_error ("lex source seen but \`AC_DECL_YYTEXT' not in \`$configure_ac'");
+ &am_error ("lex source seen but `AC_DECL_YYTEXT' not in `$configure_ac'");
}
if ($lex_count > 1)
if (! defined $configure_vars{'F77'})
{
- &am_error ("Fortran 77 source seen but \`F77' not defined in \`$configure_ac'");
+ &am_error ("Fortran 77 source seen but `F77' not defined in `$configure_ac'");
}
}
if (! defined $configure_vars{'OBJC'})
{
- &am_error ("Objective C source seen but \`OBJC' not defined in \`$configure_ac'");
+ &am_error ("Objective C source seen but `OBJC' not defined in `$configure_ac'");
}
}
if (! defined $configure_vars{'GCJ'})
{
- &am_error ("Java source seen but \`GCJ' not defined in \`$configure_ac'");
+ &am_error ("Java source seen but `GCJ' not defined in `$configure_ac'");
}
}
return 1;
}
- &am_line_error ($var, "\`$var' is a target; expected a variable")
+ &am_line_error ($var, "`$var' is a target; expected a variable")
if defined $targets{$var};
return 0;
if (defined $vars_scanned{$var})
{
- &am_line_error ($parent, "variable \`$var' recursively defined");
+ &am_line_error ($parent, "variable `$var' recursively defined");
return ();
}
$vars_scanned{$var} = 1;
{
if (defined $targets{$var})
{
- &am_line_error ($var, "\`$var' is a target; expected a variable");
+ &am_line_error ($var, "`$var' is a target; expected a variable");
}
else
{
- &am_line_error ($parent, "variable \`$var' not defined");
+ &am_line_error ($parent, "variable `$var' not defined");
}
}
elsif (defined $vars_scanned{$var})
{
# `vars_scanned' is a global we use to keep track of which
# variables we've already examined.
- &am_line_error ($parent, "variable \`$var' recursively defined");
+ &am_line_error ($parent, "variable `$var' recursively defined");
}
elsif ($cond eq 'all' && $conditional{$var})
{
elsif ($var_was_plus_eq{$var})
{
&am_line_error ($var,
- "internally generated variable \`$var' was set with \`+='");
+ "internally generated variable `$var' was set with `+='");
}
}
my $am_file = new IO::File ("< $amfile");
if (! $am_file)
{
- die "$me: couldn't open \`$amfile': $!\n";
+ die "$me: couldn't open `$amfile': $!\n";
}
print "$me: reading $amfile\n" if $verbose;
$saw_bk = /\\$/;
# Error if bogus.
- &am_line_error ($., "bad macro name \`$last_var_name'")
+ &am_line_error ($., "bad macro name `$last_var_name'")
if ! $is_ok_macro;
}
elsif (/$INCLUDE_PATTERN/o)
my $fc_file = new IO::File ("< $file");
if (! $fc_file)
{
- die "$me: installation error: cannot open \`$file'\n";
+ die "$me: installation error: cannot open `$file'\n";
}
# Looks stupid?
print "$me: reading $file\n"
elsif (/$MACRO_PATTERN/mso)
{
my ($var, $type, $val) = ($1, $2, $3);
- &prog_error ("$file:$.: macro \`$var' with trailing backslash")
+ &prog_error ("$file:$.: macro `$var' with trailing backslash")
if /\\$/;;
# Accumulating variables must not be output.
if ($type eq '+')
# primary, so we explicitly allow it.
if (! defined $configure_vars{$varname})
{
- &am_line_error ($varname, "invalid variable \`$varname'");
+ &am_line_error ($varname, "invalid variable `$varname'");
}
}
else
# allow `JAVA', as it is customarily used to mean the Java
# interpreter. This is but one of several Java hacks. Similarly,
# `PYTHON' is customarily used to mean the Python interpreter.
- &am_line_error ($primary, "\`$primary' is an anachronism")
+ &am_line_error ($primary, "`$primary' is an anachronism")
if &variable_defined ($primary)
&& ($primary ne 'JAVA' && $primary ne 'PYTHON');
{
$warned_about_extra = 1;
&am_line_error ($one_name,
- "\`$one_name' contains configure substitution, but shouldn't");
+ "`$one_name' contains configure substitution, but shouldn't");
}
}
# Check here to make sure variables defined in
if ($require_extra && ! &variable_defined ('EXTRA_' . $primary))
{
&am_line_error ($require_extra,
- "\`$require_extra' contains configure substitution, but \`EXTRA_$primary' not defined");
+ "`$require_extra' contains configure substitution, but `EXTRA_$primary' not defined");
}
# Push here because PRIMARY might be configure time determined.
# Only install missing files according to our desired
# strictness level.
- my $message = "required file \`$errfile' not found";
+ my $message = "required file `$errfile' not found";
if ($add_missing)
{
$suppress = 1;
&& grep ($_ eq $file, @libtoolize_files)
&& system (@syslist))
{
- $message = "installing \`$errfile'";
+ $message = "installing `$errfile'";
$suppress = 0;
- $trailer = "; cannot run \`libtoolize': $!";
+ $trailer = "; cannot run `libtoolize': $!";
}
elsif (-f ($am_dir . '/' . $file))
{
# Install the missing file. Symlink if we
# can, copy if we must. Note: delete the file
# first, in case it is a dangling symlink.
- $message = "installing \`$errfile'";
+ $message = "installing `$errfile'";
# Windows Perl will hang if we try to delete a
# file that doesn't exist.
unlink ($errfile) if -f $errfile;
}
else
{
- die "$me: level \`$strictness_name' not recognized\n";
+ die "$me: level `$strictness_name' not recognized\n";
}
}
sub keyed_aclocal_warning
{
my ($key) = @_;
- warn "$me: macro \`$key' can be generated by \`aclocal'\n";
+ warn "$me: macro `$key' can be generated by `aclocal'\n";
}
# Print usage information.