PS-E, gen-sidai-hosts/ and host/ files...
Harlan Stenn <[email protected]>
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
First, I'd appreciate it if folks would try the :bootstrap procedure in
sidai/gen-sidai-hosts/ and compare the resulting .xml files with those in
../host/, and let me know about any significant differences.
Assuming all goes well, I'd like to lose the checked-in contents of the
host/ directory and go to build-time configuration of these files.
Speaking of which, I suspect that someday soon we'll need to go from:
CPU-OS.xml
OS.xml
to:
CPU-OS-OSVER.xml
CPU-OS.xml
OS-OSVER.xml
OS.xml
Finally, I think the existing PS-E stuff will also turn out to be a lose. I
think we'll have to look at what Berto and I have done with PIKT in this
regard. A fragment of configure.in for this is:
dnl psparse=1 will handle output from `ps' that contains PID PPID command,
dnl including solaris & aix
dnl psparse=2 will handle output from `ps' from linux and sunos
dnl psparse=3 will handle output from `ps' from hpux & irix
psopts=""
psparse=""
case "$target" in
*-*-aix*)
psopts="-efo pid,ppid,comm"
psparse=1
AC_DEFINE(AIX)
;;
*-*-openbsd*)
psopts="-axo pid,ppid,ucomm"
psparse=1
;;
*-*-freebsd*)
psopts="-axo pid,ppid,ucomm"
psparse=1
;;
*-*-hpux*)
psopts="-el"
psparse=3
;;
*-*-irix*)
psopts="-el"
psparse=3
;;
*-*-linux*)
psopts="axcl"
psparse=2
;;
*-*-solaris*)
psopts="-efo pid,ppid,comm"
psparse=1
;;
*-*-sunos*)
psopts="-axcl"
psparse=2
;;
*)
AC_MSG_ERROR(Edit configure.in to select psopts and psparse)
;;
esac
dnl Assert psopts and psparse are non-null
AC_DEFINE_UNQUOTED(PSOPTS, "${psopts}", [Options for ps])
AC_DEFINE_UNQUOTED(PSPARSE, ${psparse}, [What style of ps output do we have])
...
H