mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 02:30:33 +00:00
29fa274d6d
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers) - If someone wants to delete aicom-network-fixes, they are welcome to - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea svn path=/branches/aicom-network-branch/; revision=44353
29 lines
776 B
Plaintext
29 lines
776 B
Plaintext
dnl Like AC_TRY_EVAL but also errors out if the compiler generates
|
|
dnl _any_ output. Some compilers might issue warnings which we want
|
|
dnl to catch.
|
|
AC_DEFUN([AC_TRY_EVAL2],
|
|
[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
|
|
(eval [$]$1) 2>&AC_FD_CC; _out=`eval [$]$1 2>&1` && test "x$_out" = x; }])
|
|
|
|
dnl Like AC_TRY_COMPILE but calls AC_TRY_EVAL2 instead of AC_TRY_EVAL
|
|
AC_DEFUN([AC_TRY_COMPILE2],
|
|
[cat > conftest.$ac_ext <<EOF
|
|
[#]line __oline__ "configure"
|
|
#include "confdefs.h"
|
|
[$1]
|
|
int main(void) {
|
|
[$2]
|
|
; return 0; }
|
|
EOF
|
|
if AC_TRY_EVAL2(ac_compile); then
|
|
ifelse([$3], , :, [rm -rf conftest*
|
|
$3])
|
|
else
|
|
echo "configure: failed program was:" >&AC_FD_CC
|
|
cat conftest.$ac_ext >&AC_FD_CC
|
|
ifelse([$4], , , [ rm -rf conftest*
|
|
$4
|
|
])dnl
|
|
fi
|
|
rm -f conftest*])
|