automake
[Top][All Lists]
Advanced

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

Error in automake with AM_YFLAGS


From: Paulo J. Matos
Subject: Error in automake with AM_YFLAGS
Date: Fri, 13 Apr 2007 23:05:14 +0100

Hello all,

I added to my configure.ac:
AC_ARG_ENABLE([debug-parser],
                             AC_HELP_STRING([--enable-debug-parser],
[enable parser debug (default is NO)]),
                             [case "${enableval}" in
                             yes) debug_parser=true;;
                             no) debug_parser=false;;
                             *) AC_MSG_ERROR(bad value ${enableval}
for --enable-debug-parser);; esac], [debug_parser=false])
AM_CONDITIONAL(DEBUG_PARSER, test x$debug_parser = xtrue)

AC_ARG_ENABLE([debug-lexer],
                            AC_HELP_STRING([--enable-debug-lexer],
[enable lexer debug (default is NO)]),
                            [case "${enableval}" in
                            yes) debug_lexer=true;;
                            no) debug_lexer=false;;
                            *) AC_MSG_ERROR(bad value ${enableval}
for --enable-debug-lexer);; esac], [debug_lexer=false])
AM_CONDITIONAL(DEBUG_LEXER, test x$debug_lexer = xtrue)

And then in Makefile.am:
if DEBUG_PARSER
AM_YFLAGS = -d --debug
else
AM_YFLAGS = -d
endif
if DEBUG_LEXER
AM_LFLAGS = -d -o$(LEX_OUTPUT_ROOT).c -CFa
else
AM_LFLAGS = -o$(LEX_OUTPUT_ROOT).c -CFa
endif

During autoreconf I get:
$ autoreconf
/usr/share/aclocal/wxwin.m4:36: warning: underquoted definition of
AM_OPTIONS_WX
CONFIG
 run info '(automake)Extending aclocal'
 or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/wxwin.m4:59: warning: underquoted definition of
AM_PATH_WXCON
FIG
/usr/share/aclocal/soup.m4:7: warning: underquoted definition of AM_PATH_SOUP
/usr/share/aclocal/sigc++.m4:8: warning: underquoted definition of AM_PATH_SIGC
/usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of
AM_PATH_PST
OEDIT
/usr/share/aclocal/progsreiserfs.m4:13: warning: underquoted
definition of AC_CH
ECK_LIBREISERFS
/usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF
/usr/share/aclocal/log4cpp.m4:7: warning: underquoted definition of
AM_PATH_LOG4
CPP
/usr/share/aclocal/libfame.m4:6: warning: underquoted definition of
AM_PATH_LIBF
AME
/usr/share/aclocal/lib3ds.m4:4: warning: underquoted definition of
AM_PATH_LIB3D
S
/usr/share/aclocal/gtkgl.m4:4: warning: underquoted definition of AM_PATH_GTKGL
/usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of
AM_PATH_GCON
F
/usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of
AM_GCONF_SO
URCE
automake-1.9: ####################
automake-1.9: ## Internal Error ##
automake-1.9: ####################
automake-1.9: undefined condition `TRUE' for `AM_YFLAGS'
automake-1.9: AM_YFLAGS:
automake-1.9:   {
automake-1.9:     !DEBUG_PARSER => {
automake-1.9:       type: =
automake-1.9:       where: src/Makefile.am:5:
automake-1.9:       comment:
automake-1.9:       value: -d
automake-1.9:       owner: Makefile
automake-1.9:     }
automake-1.9:     DEBUG_PARSER => {
automake-1.9:       type: =
automake-1.9:       where: src/Makefile.am:3:
automake-1.9:       comment:
automake-1.9: # Flags to be passed to YACC and LEX
automake-1.9:
automake-1.9:       value: -d --debug
automake-1.9:       owner: Makefile
automake-1.9:     }
automake-1.9:   }
automake-1.9:
automake-1.9: 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_Y
FLAGS\'\x{a}AM_YFLAGS: \x{a}  {\x{a}...') called at
/usr/share/automake-1.9/Auto
make/Item.pm line 93
       Automake::Item::rdef('Automake::Variable=HASH(0x85ad634)',
'Automake::Co
ndition=HASH(0x832327c)') called at
/usr/share/automake-1.9/Automake/Variable.pm
line 1162
       Automake::Variable::variable_value('Automake::Variable=HASH(0x85ad634)')
called at /usr/bin/automake-1.9 line 5257
       Automake::lang_yacc_target_hook('Language=ARRAY(0x8553e50)',
'AM', 'cnf-
parser.c', 'cnf-parser.y', 'LIBTOOL', 0, 'NONLIBTOOL', 1, 'DIST_SOURCE', ...) ca
lled at /usr/bin/automake-1.9 line 118
       Language::target_hook('Language=ARRAY(0x8553e50)', 'AM',
'cnf-parser.c',
'cnf-parser.y', 'LIBTOOL', 0, 'NONLIBTOOL', 1, 'DIST_SOURCE', ...)
called at /u
sr/bin/automake-1.9 line 1728
       Automake::handle_single_transform('Automake::Variable=HASH(0x85adcc4)',
'csat_SOURCES', 'csat', '.$(OBJEXT)', 'cnf-parser.y', 'LIBTOOL', 0,
'NONLIBTOOL'
, 1, ...) called at /usr/bin/automake-1.9 line 1847
       Automake::__ANON__('Automake::Variable=HASH(0x85adcc4)',
'cnf-parser.y',
'Automake::Condition=HASH(0x832327c)',
'Automake::Condition=HASH(0x832327c)') c
alled at /usr/share/automake-1.9/Automake/Variable.pm line 1413
       Automake::Variable::_do_recursive_traversal('Automake::Variable=HASH(0x8
5adcc4)', 'Automake::Variable=HASH(0x85adcc4)', 'CODE(0x85d24ac)',
'CODE(0x85b88
cc)', 'undef', 'Automake::Condition=HASH(0x832327c)', 'undef',
'undef') called a
t /usr/share/automake-1.9/Automake/Variable.pm line 1272
       Automake::Variable::traverse_recursively('Automake::Variable=HASH(0x85ad
cc4)', 'CODE(0x85d24ac)', 'CODE(0x85b88cc)') called at
/usr/share/automake-1.9/A
utomake/Variable.pm line 1559
       Automake::Variable::transform_variable_recursively('csat_SOURCES',
'am_c
sat_OBJECTS', 'am__objects', '', 'Automake::Location=HASH(0x85b85d8)',
'CODE(0x8
5d24ac)') called at /usr/bin/automake-1.9 line 1852
       Automake::define_objects_from_sources('csat_SOURCES',
'am_csat_OBJECTS',
'', 'csat', '.$(OBJEXT)', 'csat_SOURCES',
'Automake::Location=HASH(0x85b85d8)',
'DIST_SOURCE', 1, ...) called at /usr/bin/automake-1.9 line 1904
       Automake::handle_source_transform('csat', 'csat',
'.$(OBJEXT)', 'Automak
e::Location=HASH(0x85b85d8)', 'NONLIBTOOL', 1, 'LIBTOOL', 0) called at
/usr/bin/
automake-1.9 line 2274
       Automake::handle_programs() called at /usr/bin/automake-1.9 line 7174
       Automake::generate_makefile('src/Makefile.am',
'src/Makefile.in') called
at /usr/bin/automake-1.9 line 7518
autoreconf-2.61: automake failed with exit status: 255

Have I dont anything wrong?

Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK




reply via email to

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