[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Q on AC_TRY_RUN
From: |
Akim Demaille |
Subject: |
Q on AC_TRY_RUN |
Date: |
16 Nov 2000 18:30:27 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Would someone have an idea of why there is an exit right after the
./conftest in AC_TRY_RUN/AC_RUN_IFELSE? I found nothing interesting
in the ChangeLog.
| # _AC_RUN_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
| # ------------------------------------------------------------
| # Compile, link, and run.
| # This macro can be used during the selection of a compiler.
| m4_define([_AC_RUN_IFELSE],
| [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
| rm -f conftest$ac_exeext
| if AC_TRY_EVAL(ac_link) &&
| test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null;
then
The one right there.
| m4_default([$2], :)
| else
| echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
| cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
| m4_ifvanl([$3], [ $3])dnl
| fi
| rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
| ])# _AC_RUN_IFELSE
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Q on AC_TRY_RUN,
Akim Demaille <=