[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linrad] Re: 32 or 64 bit



Leif:

I'm certainly no serious programmer, so maybe this is not what you want:

uname -m

I only have 32 bit systems here, so it reports 'i686' on those (could
also be i386/i486/i586).  My understanding is that 64 bit systems
return 'x86_64'.

Ken  K6MR


2009/11/1 Leif Asbrink <leif@xxxxxxxxxx>:
>
> Hi All,
>
> Under Linux the Linrad configure script looks for various files
> to decide which packages are installed. This works for 32 bit
> versions of Linux, but when Linrad is compiled on a 64 bit
> distribution the test for things like libXext.so which is done
> like below may give a false positive.
>
> LIBEXT=0
> AC_CHECK_FILE( /emul/ia32-linux/usr/lib/libXext.so, LIBEXT="1")
> AC_CHECK_FILE( /usr/lib/libXext.so, LIBEXT="1")
> AC_CHECK_FILE( [libXext.so], LIBEXT="1")
> AC_CHECK_FILE( /usr/lib32/libXext.so, LIBEXT="1")
> AC_CHECK_FILE( /usr/PCBSD/local/lib/libXext.so, LIBEXT="1")
>
> The second and/or third test would give a false positive if
> the 64 bit version is installed but not the 32 bit version
> when running on a 64 bit distribution. Less likely, but possibly
> there could be a false positive when the 64 bit library is
> installed but not the 32 bit one on a 32 bit system.
> As a consequence of a false positive the make command would
> try to link with libXext and it would fail if there is no
> 32 bit library present.
>
> The next version of Linrad will have an interface to Portaudio
> which will allow Jack to interface to other softwares - but it
> would have to be 32 bit portaudio. I desperately need a way
> for the configure script to search for the presence of 32 bit
> libraries only. One way could be to to do the test for
> [libXext] and /usr/lib/libXext only on 32 bit distributions.
> - but what command would tell if the system is 32 or 64 bit?
>
> Any hints?
>
> 73
>
> Leif / SM5BSZ
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Linrad" group.
To post to this group, send email to linrad@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to linrad+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/linrad?hl=en
-~----------~----~----~----~------~----~------~--~---

LINRADDARNIL