Re: About libdir for 64-bit
On Thursday 18 July 2013 19:51:51 Russ Allbery wrote: It doesn't -- but neither of those use the lib64/lib32 layout either, because that layout can't represent that difference. They do something more complicated (they have to). So basically it's out of scope for what my macro is trying to solve (and what the original question asked for, also). i don't think it is. you're trying to guess the default multilib dir. x32 is another x86 related multilib (it installs into libx32 ... not complicate at all). the mips example isn't limited to IRIX; Linux supports them too. also assuming how the system has configured things based purely on tuples is a good way to fail. asking the compiler (gcc) for its multilib OS path is the closest atm to reliably getting the right answer. -mike signature.asc Description: This is a digitally signed message part. ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf
Re: About libdir for 64-bit
On 07/17/13 22:11, Russ Allbery wrote: Probing sizeof(long) with the configure compiler does a fairly good job for the most common cases, which is why that's what the macro I posted does. In particular, it works for the common cases of -m32 and -m64 on hosts with both library paths. How does that distinguish x32 and i386? Or the n32 and o32 formats on IRIX? Regards, Thomas -- Thomas Jahns DKRZ GmbH, Department: Application software Deutsches Klimarechenzentrum Bundesstraße 45a D-20146 Hamburg Phone: +49-40-460094-151 Fax: +49-40-460094-270 Email: Thomas Jahns ja...@dkrz.de smime.p7s Description: S/MIME Cryptographic Signature ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf
Re: About libdir for 64-bit
Hello, On 07/16/13 11:23, Sergio Belkin wrote: I have a configure.ac with following: AS_CASE([$host], [x86_64*|sparc64*|s390x*|ppc64*], [libdir=$prefix/lib64], [libdir=$prefix/lib]) how does this work for users having -m32 (gcc) or -q32 (xlc) set in their compiler flags? I'done it in order to make easy the install of package and choose the libdir according to arch. But I've found that I can't override if I run ./configure llibdir=/whatever and even distros like Debian put libraries in /usr/lib//x86_64-linux-gnu is there a way to fix it? I couldn't propose anything. Is there even a method to reliably infer the ABI from the compiler? Regards, Thomas -- Thomas Jahns DKRZ GmbH, Department: Application software Deutsches Klimarechenzentrum Bundesstraße 45a D-20146 Hamburg Phone: +49-40-460094-151 Fax: +49-40-460094-270 Email: Thomas Jahns ja...@dkrz.de smime.p7s Description: S/MIME Cryptographic Signature ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf