21 |
|
|
22 |
# AT_SYNCLINES_COMPILE(FILE) |
# AT_SYNCLINES_COMPILE(FILE) |
23 |
# -------------------------- |
# -------------------------- |
24 |
# Compile FILE expecting an error, and save in the file stdout the normalized |
# Compile FILE expecting an error, and save in the file stdout the |
25 |
# output. |
# normalized output. Ignore the exit status, since some compilers |
26 |
|
# (e.g. c89 on IRIX 6.5) triger warnings on `#error', instead of |
27 |
|
# errors. |
28 |
m4_define([AT_SYNCLINES_COMPILE], |
m4_define([AT_SYNCLINES_COMPILE], |
29 |
[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1 || (exit 1)], 1, [], [stderr]) |
[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1 || (exit 1)], [ignore], [], [stderr]) |
30 |
# In case GCC displays column information, strip it down. |
# In case GCC displays column information, strip it down. |
31 |
# |
# |
32 |
# input.y:4:2: #error "4" or input.y:4.2: #error "4" |
# input.y:4:2: #error "4" or input.y:4.2: #error "4" |