source: vendor/gawk/3.1.5/vms/posix-cc.sh

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 778 bytes
Line 
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#
9if [ -f ~/_posix-cc.map ] ; then rm -f ~/_posix-cc.map* ; fi
10c89 -Wc,nowarn -Wl,nodebug -Wl,map=_posix-cc.map $* ; x=$?
11if [ -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*
14fi
15if [ x -ne 0 ] ; then echo "c89 reports failure" 1>&2 && exit 1 ; fi
16exit 0
Note: See TracBrowser for help on using the repository browser.