Gentoo Archives: gentoo-devhelp

From: Thomas Kahle <tom111@×××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] autotools and as-needed
Date: Tue, 11 Aug 2009 22:05:54
Message-Id: 4A81EAAC.3060906@gmx.de
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


-- 
Thomas Kahle

The fundamental theorem of algebra is open source. Like any other
mathematical theorem it can be applied free of charge and everybody
has access to its proof and can convince himself how it works. Why
should software be any different?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-devhelp] autotools and as-needed Justin <justin@×××××××××.net>
Re: [gentoo-devhelp] autotools and as-needed Peter Volkov <pva@g.o>
Re: [gentoo-devhelp] autotools and as-needed Mike Frysinger <vapier@g.o>
Re: [gentoo-devhelp] autotools and as-needed Justin <justin@×××××××××.net>