need help in converting autoconf project to x86_64
Hi, I have a autoconf/automake/libtool project with libraries, which works for 32 bit processor. How can I convert this to a x86_64-aware project? That is, when compiled on AMD64, it will compile for 64 bit and install libs in lib64 directory. when compiled on 32bit linux, it will compile for 32 bit and install libs in lib directory. I have seen the configure option "--enable-libsuffix=64" on this list. I don't see how to use this option to rewrite "configure.ac" and "Makefile.am". A sample "configure.ac" and "Makefile.am" would be appreciated. Tosa -- Yasunari Tosa, Ph.D. Email: tosa@nmr.mgh.harvard.edu NMR Ctr, Mass. General Hospital TEL: 617-726-4050 Building 149, 13th Street Charlestown, MA 02129 USA
* Yasunari Tosa (tosa@nmr.mgh.harvard.edu) [20041110 16:25]:
That is, when compiled on AMD64, it will compile for 64 bit and install libs in lib64 directory. when compiled on 32bit linux, it will compile for 32 bit and install libs in lib directory.
AFAIK the isn't an automatic solution. Philipp
Philipp Thomas
* Yasunari Tosa (tosa@nmr.mgh.harvard.edu) [20041110 16:25]:
That is, when compiled on AMD64, it will compile for 64 bit and install libs in lib64 directory. when compiled on 32bit linux, it will compile for 32 bit and install libs in lib directory.
AFAIK the isn't an automatic solution.
It depends a lot on how well the project as such is prepared for 64bit issues. For R, it involved (AFAIR) only a link flag and a couple of cases of adding /usr/lib64 to the list of searched directories. But then we had 64bit Solaris and Alpha ports well before x86_64. You might get something out of looking at https://svn.r-project.org/R/trunk/m4/libtool.m4 -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
Peter Dalgaard
You might get something out of looking at
Argh, sorry. The whole directory, not just that file, i.e. https://svn.r-project.org/R/trunk/m4/ -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
participants (3)
-
Peter Dalgaard
-
Philipp Thomas
-
Yasunari Tosa