config: replace more obsolete macros
$ac_cv_prog_gcc -> $ac_cv_c_compiler_gnu AC_FD_CC -> AS_MESSAGE_LOG_FD
Esse commit está contido em:
@@ -131,7 +131,7 @@ AC_DEFUN([PAC_C_OPTIMIZATION],[
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test "$ac_cv_prog_gcc" = "yes" ; then
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
|
||||
for copt in "-fomit-frame-pointer" "-finline-functions" \
|
||||
"-funroll-loops" ; do
|
||||
PAC_C_CHECK_COMPILER_OPTION($copt,found_opt=yes,found_opt=no)
|
||||
@@ -1242,7 +1242,7 @@ dnl __attribute__((pure)) but generates warnings for __attribute__((format...))
|
||||
dnl
|
||||
AC_DEFUN([PAC_C_GNU_ATTRIBUTE],[
|
||||
AC_REQUIRE([AC_PROG_CC_GNU])
|
||||
if test "$ac_cv_prog_gcc" = "yes" ; then
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
|
||||
AC_CACHE_CHECK([whether __attribute__ allowed], pac_cv_gnu_attr_pure,[
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int) __attribute__ ((pure));]],[[int a;]])],
|
||||
pac_cv_gnu_attr_pure=yes,pac_cv_gnu_attr_pure=no)
|
||||
|
||||
@@ -23,7 +23,7 @@ AC_ARG_ENABLE([coverage],
|
||||
[],[enable_coverage=no])
|
||||
|
||||
if test "$enable_coverage" = "yes" ; then
|
||||
if test "$ac_cv_prog_gcc" = "yes" ; then
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
|
||||
CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
|
||||
LIBS="$LIBS -lgcov"
|
||||
if test ${WRAPPER_CFLAGS+set} = set ; then
|
||||
|
||||
@@ -77,7 +77,7 @@ $fxx_module
|
||||
EOF
|
||||
found_answer="no"
|
||||
if test -z "$ac_fcompilelink" ; then
|
||||
ac_fcompilelink="${F77-f77} -o conftest $FFLAGS $flags conftest.f $LDFLAGS $LIBS 1>&AC_FD_CC"
|
||||
ac_fcompilelink="${F77-f77} -o conftest $FFLAGS $flags conftest.f $LDFLAGS $LIBS 1>&AS_MESSAGE_LOG_FD"
|
||||
fi
|
||||
AC_MSG_CHECKING([whether ${F77-f77} $flags $libs works with GETARG and IARGC])
|
||||
if AC_TRY_EVAL(ac_fcompilelink) && test -x conftest ; then
|
||||
@@ -124,7 +124,7 @@ EOF
|
||||
program main
|
||||
end
|
||||
EOF
|
||||
ac_fcompilelink_test='${F77-f77} -o conftest $FFLAGS conftest.f $LDFLAGS $libs $LIBS 1>&AC_FD_CC'
|
||||
ac_fcompilelink_test='${F77-f77} -o conftest $FFLAGS conftest.f $LDFLAGS $libs $LIBS 1>&AS_MESSAGE_LOG_FD'
|
||||
for libs in $save_trial_LIBS ; do
|
||||
if test "$libs" = "0" ; then
|
||||
lib_ok="yes"
|
||||
@@ -211,7 +211,7 @@ EOF
|
||||
AC_MSG_CHECKING([whether Fortran 77 routine names are case-insensitive $flagval])
|
||||
dnl we can use double quotes here because all is already
|
||||
dnl evaluated
|
||||
ac_fcompilelink_test="${F77-f77} -o conftest $fflag $FFLAGS conftest.f $LDFLAGS $LIBS 1>&AC_FD_CC"
|
||||
ac_fcompilelink_test="${F77-f77} -o conftest $fflag $FFLAGS conftest.f $LDFLAGS $LIBS 1>&AS_MESSAGE_LOG_FD"
|
||||
if AC_TRY_EVAL(ac_fcompilelink_test) && test -x conftest ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
@@ -331,7 +331,7 @@ EOF
|
||||
AC_MSG_CHECKING([whether ${F77-f77} $flags $libs works with $MSG])
|
||||
IFS="$save_IFS"
|
||||
dnl We need this here because we've fiddled with IFS
|
||||
ac_fcompilelink_test="${F77-f77} -o conftest $FFLAGS $flags conftest.f $LDFLAGS $libs $LIBS 1>&AC_FD_CC"
|
||||
ac_fcompilelink_test="${F77-f77} -o conftest $FFLAGS $flags conftest.f $LDFLAGS $libs $LIBS 1>&AS_MESSAGE_LOG_FD"
|
||||
found_answer="no"
|
||||
if AC_TRY_EVAL(ac_fcompilelink_test) && test -x conftest ; then
|
||||
if test "$ac_cv_prog_f77_cross" != "yes" -a \
|
||||
@@ -353,8 +353,8 @@ EOF
|
||||
break
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
echo "configure: failed program was:" >&AC_FD_CC
|
||||
cat conftest.f >&AC_FD_CC
|
||||
echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
cat conftest.f >&AS_MESSAGE_LOG_FD
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
@@ -541,7 +541,7 @@ if test -z "$ac_f90ext" ; then
|
||||
fi
|
||||
AC_MSG_CHECKING([for extension for Fortran 90 programs])
|
||||
ac_f90ext="f90"
|
||||
ac_f90compile='${FC-f90} -c $FCFLAGS conftest.$ac_f90ext 1>&AC_FD_CC'
|
||||
ac_f90compile='${FC-f90} -c $FCFLAGS conftest.$ac_f90ext 1>&AS_MESSAGE_LOG_FD'
|
||||
cat > conftest.$ac_f90ext <<EOF
|
||||
program conftest
|
||||
end
|
||||
@@ -630,7 +630,7 @@ define(PAC_GET_XFS_MEMALIGN,
|
||||
[AC_MSG_CHECKING([for memory alignment needed for direct I/O])
|
||||
rm -f memalignval
|
||||
rm -f /tmp/romio_tmp.bin
|
||||
AC_TEST_PROGRAM([#include <stdio.h>
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
@@ -643,7 +643,7 @@ main() {
|
||||
fcntl(fd, F_DIOINFO, &st);
|
||||
fprintf( f, "%u\n", st.d_mem);
|
||||
exit(0);
|
||||
}],Pac_CV_NAME=`cat memalignval`,Pac_CV_NAME="")
|
||||
}]])],[Pac_CV_NAME=`cat memalignval`],[Pac_CV_NAME=""],[])
|
||||
rm -f memalignval
|
||||
rm -f /tmp/romio_tmp.bin
|
||||
if test -n "$Pac_CV_NAME" -a "$Pac_CV_NAME" != 0 ; then
|
||||
|
||||
+1
-1
@@ -2563,7 +2563,7 @@ if test "$enable_debuginfo" = "yes" ; then
|
||||
# +noobjdebug
|
||||
# for C, Fortran, and C++. We don't have a good test for this yet,
|
||||
# so we add a warning
|
||||
if test "$ac_cv_prog_gcc" = "yes" ; then
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
|
||||
AC_MSG_WARN([Some versions of gcc do not include debugging information
|
||||
within the executable. Totalview requires this information to detect
|
||||
an MPICH code. If you have trouble, try linking with the additional
|
||||
|
||||
@@ -1061,14 +1061,14 @@ dnl ac_cv_sizeof_MPI_Offset=`cat conftestval`
|
||||
dnl else
|
||||
dnl # failure
|
||||
dnl AC_MSG_WARN([Unable to run the program to determine the size of MPI_Offset])
|
||||
dnl echo "configure: failed program was:" >&AC_FD_CC
|
||||
dnl cat conftest.c >&AC_FD_CC
|
||||
dnl echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
dnl cat conftest.c >&AS_MESSAGE_LOG_FD
|
||||
dnl fi
|
||||
dnl else
|
||||
dnl # failure
|
||||
dnl AC_MSG_WARN([Unable to build the program to determine the size of MPI_Offset])
|
||||
dnl echo "configure: failed program was:" >&AC_FD_CC
|
||||
dnl cat conftest.c >&AC_FD_CC
|
||||
dnl echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
dnl cat conftest.c >&AS_MESSAGE_LOG_FD
|
||||
dnl fi
|
||||
dnl rm -f conftest*
|
||||
dnl ])
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário