Tag
Hash :
8910bab0
Author :
Date :
2002-09-29T12:49:07
For PR automake/360: Propagate more locations. * automake.in (handle_programs): Adjust usage of am_install_var's return value. Pass on locations as context to file_contents. (handle_libraries, handle_ltlibraries): Likewise. Use locations in the 'not a standard library name' diagnostic. (handle_emacs_lisp, handle_python): Adjust usage of am_install_var's return value. Pass on locations to require_variables and require_conf_file. (check_ambiguous_conditional): Strip trailing dot in message. (value_to_list): Add the $WHERE and $LOC_WANTED arguments. (variable_value_as_list_recursive_worker): Add the $LOC_WANTED argument. Adjust calls to value_to_list. (variable_value_as_list_recursive): Call variable_value_as_list_recursive_worker with $LOC_WANTED = 0. (variable_loc_and_value_as_list_recursive): New function, variable_value_as_list_recursive_worker with $LOC_WANTED = 1. (am_install_var): Use variable_loc_and_value_as_list_recursive, and return a list of [$location, $value] pairs. (rule_define): Use better locations in EXEEXT diagnostic. (handle_source_transform, define_objects_from_sources): Add and use a $WHERE argument. Adjust callers. * tests/stdlib.test: Grep the location in error message. * tests/location.test: New file. * tests/Makefile.am (TESTS): Add location.test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#! /bin/sh
# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# GNU Automake is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Automake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with autoconf; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# Test "not a standard library" error.
. ./defs || exit 1
set -e
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_RANLIB
END
cat > Makefile.am << 'END'
noinst_LIBRARIES = foo
END
$ACLOCAL
$AUTOMAKE 2> output.log && exit 1
cat output.log
# We're specifically testing for line-number information.
grep 'Makefile.am:1:.*foo.*standard library name' output.log