| 1 |
# The VMS POSIX `c89' command writes any/all diagnostic info to stdout |
| 2 |
# rather than stderr, confusing configure tests which capture error output. |
| 3 |
# |
| 4 |
# Also, the VMS linker issues a warning for any undefined symbol, but that |
| 5 |
# does not inhibit creation of the final executable file, again confusing |
| 6 |
# configure. As an added complication, there's not enough control of the |
| 7 |
# linker to put the map file with chosen name into the current directory. |
| 8 |
# |
| 9 |
if [ -f ~/_posix-cc.map ] ; then rm -f ~/_posix-cc.map* ; fi |
| 10 |
c89 -Wc,nowarn -Wl,nodebug -Wl,map=_posix-cc.map $* ; x=$? |
| 11 |
if [ -f ~/_posix-cc.map ] ; then |
| 12 |
if [ -n "`fgrep LINK-W-USEUNDEF ~/_posix-cc.map`" ] ; then x=1 ; fi |
| 13 |
rm -f ~/_posix-cc.map* |
| 14 |
fi |
| 15 |
if [ x -ne 0 ] ; then echo "c89 reports failure" 1>&2 && exit 1 ; fi |
| 16 |
exit 0 |