automake error

W. Tasin tasin at fhm.edu
Sat Mar 23 20:43:55 GMT 2002


Jiann-Ming Su wrote:

>How do I fix the following:
>
>automake: cool_program/module1/Makefile.am: lex source seen but `LEX' not defined in `configure.in'
>automake: cool_program/module1/Makefile.am: lex source seen but `AC_DECL_YYTEXT' not in `configure.in'
>automake: cool_program/module2/Makefile.am: lex source seen but `LEX' not defined in `configure.in'
>automake: cool_program/module2/Makefile.am: lex source seen but `AC_DECL_YYTEXT' not in `configure.in'
>
>Thanks for any help.
>

That depends on which KDevelop and which kind of project you are running 
and which KDevelop you used to create your project.

Generally you need the following lines in configure.in.in (if there is 
no configure.in.in use configure.in instead):

----
dnl Check for a lexer.
AM_PROG_LEX
AC_SUBST(LEXLIB)
----

The position where you should add the lines differs from patching either 
configure.in.in or configure.in:
- on configure.in.in add this at the end of it
- on configure.in insert this best after the "AC_PATH_QT"-call

=========================

If you have a recent CVS version of KDevelop (and you are using a new 
project template - i.e. creating a project with this recent KDevelop) 
there will be "Project->Options->Configure Settings"
and you can easily check "add (f)lex tests"


>
Ciao

Walter

-- 
The KDevelop project: tasin at kdevelop.de [www.kdevelop.org]
--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB 04,FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>





-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list