Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2006-01-01 Thread Hugo Vanwoerkom
OxyOss wrote: Matt England wrote: In my cross-platform-programming quests, I'm looking for ways to determine via my Makefiles which system/platform said build process is running on, so I can automatically pull in the correct libraries, build to the correct target directories, use the correct

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2006-01-01 Thread Joe Smith
OxyOss [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Have you tried to use the contents of /etc/issue ? Typically for RedHat/Fedora this will have the release in it, and (for Sarge at least) this is also the case for Debian. I've done a dist-upgrade on this box and the file

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2006-01-01 Thread David Kirchner
On 12/30/05, Matt England [EMAIL PROTECTED] wrote: So I'm left with figuring out much harder ways to tell system revs apart. I'm guessing I'm going to have to make an application which does nothing but evaluate a system and report it's variant (Redhat vs SuSE vs. Debian) and revision (Debian

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2006-01-01 Thread Cybe R. Wizard
On Sun, 1 Jan 2006 15:10:23 -0800 David Kirchner [EMAIL PROTECTED] wrote: I don't know of an API method for this (it may be that there is none) but one way you can try to tell is by running: strings /lib/libc.so.6 | egrep ^Compiled by. On Debian sarge you see: Compiled by GNU CC version

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2005-12-30 Thread Chris Howie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt England wrote: So I'm left with figuring out much harder ways to tell system revs apart. I'm guessing I'm going to have to make an application which does nothing but evaluate a system and report it's variant (Redhat vs SuSE vs. Debian) and

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2005-12-30 Thread John Hasler
Matt writes: Thing is, I don't even know where to start. apt-get install automake autoconf autobook -- John Hasler -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2005-12-30 Thread Paul E Condon
On Fri, Dec 30, 2005 at 03:43:59PM -0500, Chris Howie wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt England wrote: So I'm left with figuring out much harder ways to tell system revs apart. I'm guessing I'm going to have to make an application which does nothing but evaluate

Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2005-12-30 Thread OxyOss
Matt England wrote: In my cross-platform-programming quests, I'm looking for ways to determine via my Makefiles which system/platform said build process is running on, so I can automatically pull in the correct libraries, build to the correct target directories, use the correct