On Sat, 26 Apr 2003 13:44:41 +0900, "Stephen J. Turnbull" said:
ISTR you have access to a few different compilers, wanna start
adding
to the list?
OK.. got hit by a combo of insomnia and too much classic British metal.. ;)
So far, it does:
For gcc, report version and specfile.
For vendor CC, report version for AIX, Solaris, and Tru64.
Reports libc version for RedHat/Mandrake, AIX, Solaris.
It still doesn't do *BSD etc. It doesn't DTRT for Suse/Debian or libc5-based
systems yet, and no libc version for Tru64 yet.
Comments? Anything else that would be useful while I'm at it?
/Valdis
How it looks so far:
Relevant output on my RedHat-9 based laptop:
XEmacs 21.5-b12 "carrot" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /home/valdis/src/xemacs-21.5
Installation prefix: /usr/local
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -Wall -Wno-switch -Winline -Wmissing-pr
ototypes -Wsign-compare -Wundef -Wstrict-prototypes -Wpacked -Wshadow -Wmissing-
declarations -Os -pipe -march=pentium4 -mfpmath=sse -fexpensive-optimizations
Compiler version: gcc (GCC) 3.2.2 20030313 (Red Hat Linux 3.2
.2-10)
Compiler specs file: /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/sp
ecs
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
libc: glibc-2.3.2-27.9
On an AIX 5.1 box:
XEmacs 21.5-b11 "cabbage" (+CVS-20030220) configured for
`powerpc-ibm-aix5.1'.
Compilation / Installation:
Source code location: /home/valdis/src/xemacs-21.5
Installation prefix: /usr/local
Operating system description file: `s/aix4-2.h'
Machine description file: `m/ibmrs6000.h'
Compiler: xlc_r -O3 -qstrict -ma -I/usr/local/include
Compiler version: vac.C 5.0.2.5 - C for AIX Compiler
Relocating allocator for buffers: yes
GNU version of malloc: yes
libc: bos.rte.libc 5.1.0.28
On a Solaris 2.8 with a borked gcc install (I did the specs file just to
catch this, I didn't realize I'd be my own first victim - the admin of
the box has been flamed ;)
XEmacs 21.5-b12 "carrot" configured for `sparc-sun-solaris2.8'.
Compilation / Installation:
Source code location: /export/home/valdis/src/xemacs-21.5
Installation prefix: /usr/local
Runtime library search path: /usr/ccs/lib:/usr/dt/lib:/usr/local/lib
Operating system description file: `s/sol2.h'
Machine description file: `m/sparc.h'
Compiler: gcc -Wall -Wno-switch -Winline -Wmissing-pr
ototypes -Wsign-compare -Wundef -Wstrict-prototypes -Wshadow -Wmissing-declarati
ons -Wpointer-arith -g -fno-schedule-insns
Compiler version: 2.8.1
Compiler specs file: /usr/local/lib/gcc-lib/sparc-sun-solaris2.6
/2.8.1/specs
Relocating allocator for buffers: yes
GNU version of malloc: yes
libc: SUNWcsl 11.8.0,REV=2000.01.08.18.12
Same Solaris box, with 'CC=cc':
Compilation / Installation:
Source code location: /export/home/valdis/src/xemacs-21.5
Installation prefix: /usr/local
Runtime library search path: /usr/dt/lib:/opt/SUNWdt/lib
Operating system description file: `s/sol2.h'
Machine description file: `m/sparc.h'
Compiler: cc -v -g -fno-schedule-insns
Compiler version: cc: Sun WorkShop 6 update 2 C 5.3 2001/05/1
5
Relocating allocator for buffers: yes
GNU version of malloc: yes
libc: SUNWcsl 11.8.0,REV=2000.01.08.18.12
8
A Tru64 5.1A box:
XEmacs 21.5-b12 "carrot" configured for `alphaev56-dec-osf5.1'.
Compilation / Installation:
Source code location: /home/valdis/src/xemacs-21.5
Installation prefix: /usr/local
Runtime library search path: /usr/dt/lib
Operating system description file: `s/decosf4-0.h'
Machine description file: `m/alpha.h'
Compiler: cc -std1 -arch ev56 -fast
Compiler version: Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1
A (Rev. 1885) Compiler Driver V6.4-215 (sys) cc Driver
Relocating allocator for buffers: yes
GNU version of malloc: yes
libc: system-provided libc on alphaev56-dec-osf5.
1