[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
configure judges that ifort can not understand -c and -o together.
From: |
井口 雄介 |
Subject: |
configure judges that ifort can not understand -c and -o together. |
Date: |
Tue, 22 Nov 2005 17:40:11 +0900 |
Dear all,
For making Makefile for Intel Fortran Compiler 9.0 whose command name
is ifort,
I wrote `configure.in' as follow,
---from here---
AC_INIT
AC_PROG_F77(ifort)
AC_PROG_F77_C_O
---until here---
and ran autoconf and `./configure'.
--- output from here
checking for ifort... ifort
checking for Fortran 77 compiler default output... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... no
checking whether ifort accepts -g... yes
checking whether ifort understand -c and -o together... no
--- output until here
Although `configure' judges that ifort does not understand
-c and -o together in the last line, this is obviously misjudgment.
In the `config.log', the corresponding part is as follows.
--- log from here
configure:1600: checking whether ifort understand -c and -o together
configure:1624: ifort -g -c conftest.c -o conftest.o >&5
ifort: Command line warning: no action performed for specified file(s)
configure:1627: $? = 0
configure:1641: result: no
--- log until here
Surprisingly, `configure' judges the Fortran compiler characteristics by
C program named `conftest.c'.
Therefore, I have rewritten the `configure' as follows.
1599a1600
> ac_ext=F
1607c1608
< /* confdefs.h. */
---
> C* confdefs.h. */
1611c1612,1613
< /* end confdefs.h. */
---
> C* end confdefs.h. */
> program main
1613,1619c1615
< int
< main ()
< {
<
< ;
< return 0;
< }
---
> end
After that, `configure' judges that ifort understand -c and -o
together.
My environment is as follows:
Redhat linux 9.0 for x86
autoconf (GNU Autoconf) 2.57
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
ifort (IFORT) 9.0 20051020
Sincerely,
Yusuke Iguchi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- configure judges that ifort can not understand -c and -o together.,
井口 雄介 <=