AW: Re[6]: C/C++ projects don't work for suse 7.2, suse7.3 and upcoming kdevelop 2.0.2

Otto Bruggeman bruggie at home.nl
Wed Nov 14 13:35:42 UTC 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 14 Nov 2001, Markus Kuehni wrote:
> Walter wrote:
> > Basically I would say:
> > in the project creation time everyone will be happy, if the application
> > compiles without errors :-)
> > in the feedback time (bug reports, new releases, etc. ) you need to
> > change also some stuff inside the Makefile.ams and
> > configure.in(.in|.mid|.bot) or in some cases develop some .m4 macros.
> > ;-)
>
> I assume that's where I am naive. I haven't reached that state with my
> project.
>
> What I think I need so far:
> - check for and configure a library of some version
> - check for and configure headers
>
> I presumed that these tasks can be solved using standard, long-established
> autoconf macros.
> Of course, my project can only be that simple because the library
> (wxWindows) shields me from most platform specifics already (I hope!).

AC_CHECK_HEADER( [headerfile.h], [AC_DEFINE([HAVE_HEADERFILE_H])],
[AC_MSG_ERROR([Get yourself that headefile])] ) or
AC_CHECK_HEADERS( header1.h header2.h header3.h etc )

AC_CHECK_LIB( libname, function to check for, action if found, action if
not found )

AC_CHECK_LIB( [m], [cos], [AC_DEFINE( [HAVE_COS] )], [AC_MSG_ERROR([You
dont have the math lib])])

or something similar... check 'info autoconf' or view an online
autoconf/automake tutorial somewhere.

Please watch the quoting ([] is quoting in m4, read about it in the
autoconf info pages).

Otto who discovered the "joys" of autoconf a few days ago
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQE78nM2Dc93sltYd+ERAihsAJ0ddTHER68ZwG7VLwBtkSKJ0Kp6QwCdGB4K
vayj7vPIpZKgGNKOA1jJbMs=
=GMBD
-----END PGP SIGNATURE-----



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



More information about the KDevelop-devel mailing list