[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_SEARCH_LIBS problems
From: |
Sam Steingold |
Subject: |
Re: AC_SEARCH_LIBS problems |
Date: |
08 Aug 2002 15:26:09 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> * In message <address@hidden>
> * On the subject of "Re: AC_SEARCH_LIBS problems"
> * Sent on Thu, 8 Aug 2002 10:25:49 -0700 (PDT)
> * Honorable Paul Eggert <address@hidden> writes:
>
> > From: Sam Steingold <address@hidden>
> > Date: 08 Aug 2002 12:22:47 -0400
> >
> > I.e., AC_SEARCH_LIBS successfully links with "-lncurses" but does not
> > make sure that the resulting binary actually works.
> > Is it possible to tell AC_SEARCH_LIBS to make sure that the linked
> > binary is actually runnable?
>
> Not easily, in a cross-compilation environment, since you can't
> run the programs.
> However, if we ever get around to adding a 'cross-run' facility,
> then we could do it.
what about non-cross-compilation?
all I am asking is a combination of AC_SEARCH_LIBS and AC_TRY_RUN:
I.e., in addition to
{ (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
and
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }
also do
{ ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }
--
Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
I'm a Lisp variable -- bind me!