public inbox for gentoo-devhelp@lists.gentoo.org
 help / color / mirror / Atom feed
From: Justin <justin@j-schmitz.net>
To: gentoo-devhelp@lists.gentoo.org
Subject: Re: [gentoo-devhelp] autotools and as-needed
Date: Wed, 12 Aug 2009 08:38:12 +0200	[thread overview]
Message-ID: <4A826354.7080800@j-schmitz.net> (raw)
In-Reply-To: <4A81EAAC.3060906@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

Thomas Kahle schrieb:
> Hi,
> the following check in configure.ac fails with --as-needed but works
> without it. Any hints what is wrong ? Thanks / Thomas
> 
> --------------------
> 
> if test $BUILD_ntl = no
> then AC_LANG(C++)
>      AC_CHECK_HEADER(NTL/version.h,,BUILD_ntl=yes)
>      AC_MSG_CHECKING(for ntl library)
>      FOUND=
>      SAVELIBS=$LIBS
>      for lib in "" "-lntl" "-lntl -lgf2x"
>      do  test "$lib" && LIBS="$lib $LIBS"
> 	 AC_LINK_IFELSE( [
> 		 #include <NTL/tools.h>
> 		 int main () { _ntl_GetTime(); }
> 		 ],
> 	     FOUND=yes; break;,
> 	     LIBS=$SAVELIBS)
>      done
>      if test "$FOUND"
>      then if test "$lib"
> 	 then AC_MSG_RESULT([$lib])
> 	 else AC_MSG_RESULT([none needed])
> 	 fi
>      else AC_MSG_RESULT(none found)
> 	 BUILD_ntl=yes
>      fi
> fi
> 
> 

Perhaps you will find a hint in Diego's blog. I think he wrote about
configure checks which fail with as-needed and how to fix them.

justin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-08-12  6:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 22:03 [gentoo-devhelp] autotools and as-needed Thomas Kahle
2009-08-12  6:38 ` Justin [this message]
2009-08-13 19:24 ` Mike Frysinger
2009-08-19 21:03   ` Thomas Kahle
2009-08-13 19:38 ` Justin
2009-08-16 19:02 ` Peter Volkov
2009-08-19 21:01   ` Thomas Kahle
2009-08-21  1:57     ` Mike Frysinger
2009-08-21  7:48       ` Thomas Kahle
2009-08-21  8:43         ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A826354.7080800@j-schmitz.net \
    --to=justin@j-schmitz.net \
    --cc=gentoo-devhelp@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox