mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-23 14:09:51 +08:00
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fixed bug where
compiler output to stdout was not caught and interpreted.
This commit is contained in:
parent
1708332550
commit
c39fb79403
@ -1,3 +1,8 @@
|
||||
2000-06-09 Steven G. Johnson <stevenj@superjdj.mit.edu>
|
||||
|
||||
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fixed bug where
|
||||
compiler output to stdout was not caught and interpreted.
|
||||
|
||||
2000-06-09 Akim Demaille <akim@epita.fr>
|
||||
|
||||
`autoconf --trace' dies on filenames with `:'.
|
||||
|
12
aclang.m4
12
aclang.m4
@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
|
||||
end
|
||||
EOF
|
||||
|
||||
# Save the "compiler output file descriptor" to FD 8.
|
||||
exec 8>&AC_FD_LOG
|
||||
|
||||
# Temporarily redirect compiler output to stdout, since this is what
|
||||
# we want to capture in AC_LINK_OUTPUT.
|
||||
exec AC_FD_LOG>&1
|
||||
|
||||
# Compile and link our simple test program by passing the "-v" flag
|
||||
# to the Fortran 77 compiler in order to get "verbose" output that
|
||||
# we can then parse for the Fortran 77 linker flags. I don't know
|
||||
# what to do if your compiler doesn't have -v.
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS="$FFLAGS -v"
|
||||
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
|
||||
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
|
||||
# Restore the "compiler output file descriptor".
|
||||
exec AC_FD_LOG>&8
|
||||
|
||||
rm -f conftest.*
|
||||
|
||||
AC_LANG_POP()dnl
|
||||
|
@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
|
||||
end
|
||||
EOF
|
||||
|
||||
# Save the "compiler output file descriptor" to FD 8.
|
||||
exec 8>&AC_FD_LOG
|
||||
|
||||
# Temporarily redirect compiler output to stdout, since this is what
|
||||
# we want to capture in AC_LINK_OUTPUT.
|
||||
exec AC_FD_LOG>&1
|
||||
|
||||
# Compile and link our simple test program by passing the "-v" flag
|
||||
# to the Fortran 77 compiler in order to get "verbose" output that
|
||||
# we can then parse for the Fortran 77 linker flags. I don't know
|
||||
# what to do if your compiler doesn't have -v.
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS="$FFLAGS -v"
|
||||
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
|
||||
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
|
||||
# Restore the "compiler output file descriptor".
|
||||
exec AC_FD_LOG>&8
|
||||
|
||||
rm -f conftest.*
|
||||
|
||||
AC_LANG_POP()dnl
|
||||
|
@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
|
||||
end
|
||||
EOF
|
||||
|
||||
# Save the "compiler output file descriptor" to FD 8.
|
||||
exec 8>&AC_FD_LOG
|
||||
|
||||
# Temporarily redirect compiler output to stdout, since this is what
|
||||
# we want to capture in AC_LINK_OUTPUT.
|
||||
exec AC_FD_LOG>&1
|
||||
|
||||
# Compile and link our simple test program by passing the "-v" flag
|
||||
# to the Fortran 77 compiler in order to get "verbose" output that
|
||||
# we can then parse for the Fortran 77 linker flags. I don't know
|
||||
# what to do if your compiler doesn't have -v.
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS="$FFLAGS -v"
|
||||
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
|
||||
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
|
||||
# Restore the "compiler output file descriptor".
|
||||
exec AC_FD_LOG>&8
|
||||
|
||||
rm -f conftest.*
|
||||
|
||||
AC_LANG_POP()dnl
|
||||
|
@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
|
||||
end
|
||||
EOF
|
||||
|
||||
# Save the "compiler output file descriptor" to FD 8.
|
||||
exec 8>&AC_FD_LOG
|
||||
|
||||
# Temporarily redirect compiler output to stdout, since this is what
|
||||
# we want to capture in AC_LINK_OUTPUT.
|
||||
exec AC_FD_LOG>&1
|
||||
|
||||
# Compile and link our simple test program by passing the "-v" flag
|
||||
# to the Fortran 77 compiler in order to get "verbose" output that
|
||||
# we can then parse for the Fortran 77 linker flags. I don't know
|
||||
# what to do if your compiler doesn't have -v.
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS="$FFLAGS -v"
|
||||
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
|
||||
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
|
||||
# Restore the "compiler output file descriptor".
|
||||
exec AC_FD_LOG>&8
|
||||
|
||||
rm -f conftest.*
|
||||
|
||||
AC_LANG_POP()dnl
|
||||
|
Loading…
Reference in New Issue
Block a user