bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No AM_YFLAGS support within conditionals


From: Juergen Leising
Subject: No AM_YFLAGS support within conditionals
Date: Tue, 5 Jul 2005 02:57:22 +0200
User-agent: Mutt/1.4.2.1i

Hello to all,

the following Makefile.am produced recently an "Internal Error", as shown 
below, 
with automake-1.9, autoconf-2.59, libtool-1.4.2, kernel-2.6.10 on an i686:


include $(top_srcdir)/Makefile_general_variables
pkglibutilsdir = $(pkglibdir)/utils
if want_libbsql
   pkglibutils_LTLIBRARIES = libbsql.la
   libbsql_la_SOURCES = db_bsql.c db_bsqltbl.c db_bsqltree.c db_bsqlval.c 
bsql.l bsql.y
   libbsql_la_LDFLAGS = -module -L$(top_srcdir)/lib -shared -lc -ldl -lbastard 
-Wl,-soname,libbsql.so
   BUILT_SOURCES = bsql_parser.h
   AM_YFLAGS = -d -o bsql_parser.c
   AM_LFLAGS = -o bsql_lexer.c
endif
if want_libbsql_test
   bin_PROGRAMS = test
   test_SOURCES = test.c
   test_LDFLAGS = -lbsql -L./.libs/libbsql.so.0.0.0
endif

EXTRA_DIST = bsql.l  bsql.y
CLEANFILES = bsql_lexer.c bsql_parser.c bsql_parser.h






src/libbsql/Makefile.am:8: automake does not support AM_YFLAGS
being defined conditionally
automake: ####################
automake: ## Internal Error ##
automake: ####################
automake: undefined condition `TRUE' for `AM_YFLAGS'
automake: AM_YFLAGS: 
automake:   {
automake:     want_libbsql => {
automake:       type: =
automake:       where: src/libbsql/Makefile.am:8:
automake:       comment: 
automake:       value: -d -o bsql_parser.c
automake:       owner: Makefile
automake:     }
automake:   }
automake: 
automake: Please contact <address@hidden>.
 at /usr/share/automake-1.9/Automake/Channels.pm line 562
        Automake::Channels::msg('automake','','undefined
condition `TRUE\' for `AM_YFLAGS\'\x{a}AM_YFLAGS: \x{a}
{\x{a}...') called at
/usr/share/automake-1.9/Automake/ChannelDefs.pm line 191
        Automake::ChannelDefs::prog_error('undefined condition
`TRUE\' for `AM_YFLAGS\'\x{a}AM_YFLAGS: \x{a}  {\x{a}...') called
at /usr/share/automake-1.9/Automake/Item.pm line 93
        
Automake::Item::rdef('Automake::Variable=HASH(0x856691c)','Automake::Condition=HASH(0x829807c)')
called at /usr/share/automake-1.9/Automake/Variable.pm line 1154
        Automake::Variable::variable_value('Automake::Variable=HASH(0x856691c)')
called at /usr/bin/automake line 5246
        
Automake::lang_yacc_target_hook('Language=ARRAY(0x850ae00)','AM','bsql.c','bsql.y','LIBTOOL',1,'NONLIBTOOL',0,'DIST_SOURCE',...)
called at /usr/bin/automake line 118
        
Language::target_hook('Language=ARRAY(0x850ae00)','AM','bsql.c','bsql.y','LIBTOOL',1,'NONLIBTOOL',0,'DIST_SOURCE',...)
called at /usr/bin/automake line 1724
        
Automake::handle_single_transform('Automake::Variable=HASH(0x85edec8)','libbsql_la_SOURCES','libbsql_la','.lo','bsql.y','LIBTOOL',1,'NONLIBTOOL',0,...)
called at /usr/bin/automake line 1843
        
Automake::__ANON__('Automake::Variable=HASH(0x85edec8)','bsql.y','Automake::Condition=HASH(0x85c7228)','Automake::Condition=HASH(0x85c7228)')
called at /usr/share/automake-1.9/Automake/Variable.pm line 1405
        
Automake::Variable::_do_recursive_traversal('Automake::Variable=HASH(0x85edec8)','Automake::Variable=HASH(0x85edec8)','CODE(0x854693c)','CODE(0x854cd40)','undef','Automake::Condition=HASH(0x829807c)','undef','undef')
called at /usr/share/automake-1.9/Automake/Variable.pm line 1264
        
Automake::Variable::traverse_recursively('Automake::Variable=HASH(0x85edec8)','CODE(0x854693c)','CODE(0x854cd40)')
called at /usr/share/automake-1.9/Automake/Variable.pm line 1551
        
Automake::Variable::transform_variable_recursively('libbsql_la_SOURCES','am_libbsql_la_OBJECTS','am__objects','','Automake::Location=HASH(0x85d2b50)','CODE(0x854693c)')
called at /usr/bin/automake line 1848
        
Automake::define_objects_from_sources('libbsql_la_SOURCES','am_libbsql_la_OBJECTS','','libbsql_la','.lo','libbsql_la_SOURCES','Automake::Location=HASH(0x85d2b50)','DIST_SOURCE',1,...)
called at /usr/bin/automake line 1900
        
Automake::handle_source_transform('libbsql_la','libbsql.la','.lo','Automake::Location=HASH(0x85d2b50)','NONLIBTOOL',0,'LIBTOOL',1)
called at /usr/bin/automake line 2588
        Automake::handle_ltlibraries() called at
/usr/bin/automake line 7138
        
Automake::generate_makefile('src/libbsql/Makefile.am','src/libbsql/Makefile.in')
called at /usr/bin/automake line 7483




Thank you,

Juergen Leising




-- 
***********************************************************
                http://www.8ung.at/leising/             
                http://leising.freeshell.org/        
*********************************************************** 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]