Re: libelf (was: Re: Stack segment)

Matti E Aarnio (mea@mea.cc.utu.fi)
Thu, 1 Aug 1996 08:30:41 +0300 (EET DST)


> Date: Thu, 1 Aug 1996 03:37:13 +0200
> From: Michael Riepe <riepe@ifwsn4.ifw.uni-hannover.de>
>
> In case you don't have libelf, the most recent version (0.6.4) is in
>
> ftp://ifwsn4.ifw.uni-hannover.de/private/linux/
>
> Quick fix for the configuration script, elf.h should be checked for
> before sys/elf.h because if plain elf.h exists it usually is the
> prefferred file to use because it will in most cases include sys/elf.h
> and then define more things you need.

David, this script below looks to be autoconf generated
script, and as such, should not be manually post-processed.

It may be that the original m4 macro-source has the tests
wrong way around, and should be fixed + fix fed to autoconf
admins. It could also be that the test order is mandated
by AC_CHECK_HEADERS() -macro at configure.in -file.

> --- configure.~1~ Tue Jul 30 18:10:22 1996
> +++ configure Wed Jul 31 20:13:53 1996
> @@ -1035,7 +1035,7 @@
> else
>
> libelf_cv_header_elf_h='no'
> - for h in sys/elf.h elf.h; do
> + for h in elf.h sys/elf.h; do
> cat > conftest.$ac_ext <<EOF
> #line 1041 "configure"
> #include "confdefs.h"
>
> dm@engr.sgi.com

/Matti Aarnio <mea@utu.fi>
-- who just has been converting a very large piece of software
to use GNU autoconf 2.10; That software uses about every
feature available at the systems where it runs, and thus
does also have alternate schemes to do things, if something
can't be done with some particular system...
(curious ? ftp://ftp.funet.fi/pub/unix/mail/zmailer/ )