summaryrefslogtreecommitdiffstats
path: root/acsite.m4
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-03-30 23:08:50 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-03-30 23:08:50 (GMT)
commit6864ebdd6aeb44aa86193f7723b872dbf1ed26fa (patch)
tree205c2df353cdf29ad349ebe207b4ca3afcd7335e /acsite.m4
parent437418e7ca67f404b0529b07a79d1497e92462f0 (diff)
downloadhdf5-6864ebdd6aeb44aa86193f7723b872dbf1ed26fa.zip
hdf5-6864ebdd6aeb44aa86193f7723b872dbf1ed26fa.tar.gz
hdf5-6864ebdd6aeb44aa86193f7723b872dbf1ed26fa.tar.bz2
[svn-r12183] Purpose:
Configure cleanup Description: Removed unused macros, migrated to non-depreciated macros. Solution: The changes to use standard AC_TRY_LIB macros earlier this week seem not to have broken anything, so I deleted the local macros in acsite.m4 (with an eye to eventually deleting the rest of the file and using only autoconf-supported macros). Replaced the depreciated AC_TRY_LIB with AC_LIB_IFELSE to shut up warnings during reconfigure. Platforms tested: mir, copper (should be just cleanup)
Diffstat (limited to 'acsite.m4')
-rw-r--r--acsite.m4232
1 files changed, 0 insertions, 232 deletions
diff --git a/acsite.m4 b/acsite.m4
index 08693c6..0ed8781 100644
--- a/acsite.m4
+++ b/acsite.m4
@@ -102,235 +102,3 @@ rm -rf conftest*
AC_LANG_POP(Fortran)
])
-dnl -------------------------------------------------------------------------
-dnl AC_TRY_FCOMPILE()
-dnl
-dnl Check if we can compile a simple Fortran 90 program.
-dnl
-dnl AC_TRY_FCOMPILE(FUNCTION-BODY,
-dnl [ACTION-IF-SUCCESS], [ACTION-IF-NOT-SUCCESS])
-dnl
-AC_DEFUN([AC_TRY_FCOMPILE],
-[AC_LANG_PUSH(Fortran)
-
-test -d conftestdir || mkdir conftestdir
-cd conftestdir
-rm -rf *
-
-cat >conftest.$ac_ext <<EOF
- $1
-EOF
-
-if AC_TRY_EVAL(ac_compile); then
- :
- [$2]
-else
- :
- [$3]
-fi
-cd ..
-rm -rf conftest*
-AC_LANG_POP(Fortran)
-])
-
-dnl -------------------------------------------------------------------------
-dnl AC_TRY_FLINK()
-dnl
-dnl Check if we can link a simple Fortran 90 program.
-dnl
-dnl AC_TRY_FLINK(INCLUDES, FUNCTION-BODY,
-dnl [ACTION-IF-SUCCESS], [ACTION-IF-NOT-SUCCESS])
-dnl
-AC_DEFUN([AC_TRY_FLINK],
-[AC_LANG_PUSH(Fortran)
-
-test -d conftestdir || mkdir conftestdir
-cd conftestdir
-rm -rf *
-
-cat >conftest.$ac_ext <<EOF
- program conftest
- include '$1'
- $2
- end
-EOF
-
-if AC_TRY_EVAL(ac_compile) && AC_TRY_EVAL(ac_link); then
- :
- [$3]
-else
- :
- [$4]
-fi
-cd ..
-rm -rf conftest*
-AC_LANG_POP(Fortran)
-])
-
-dnl -------------------------------------------------------------------------
-dnl AC_CHECK_FLIB()
-dnl
-dnl Check if we can link a simple Fortran 90 program with the specified library.
-dnl
-dnl AC_CHECK_FLIB(LIBRARY, FUNCTION-BODY,
-dnl [ACTION-IF-SUCCESS], [ACTION-IF-NOT-SUCCESS])
-dnl
-AC_DEFUN([AC_CHECK_FLIB],
-[AC_LANG_PUSH(Fortran)
-
-test -d conftestdir || mkdir conftestdir
-cd conftestdir
-rm -rf *
-
-cat >conftest.$ac_ext <<EOF
- program conftest
- $2
- end
-EOF
-
-if test -n "$1"; then
- saved_LIBS="$LIBS"
- LIBS="$LIBS -l$1"
-fi
-
-if AC_TRY_EVAL(ac_compile) && AC_TRY_EVAL(ac_link); then
- :
- [$3]
-else
- LIBS="$saved_LIBS"
- [$4]
-fi
-cd ..
-rm -rf conftest*
-AC_LANG_POP(Fortran)
-])
-
-dnl -------------------------------------------------------------------------
-dnl -------------------------------------------------------------------------
-dnl
-dnl Possible future tests for the Fortran stuff...
-dnl
-dnl -------------------------------------------------------------------------
-dnl -------------------------------------------------------------------------
-dnl
-dnl echo $ac_n "checking whether f90 real type has 12 digits of precision""... $ac_c" 1>&6
-dnl cat >conftest.f90 <<'EOF'
-dnl program conftest
-dnl if (selected_real_kind(12) .eq. kind(0.0)) then
-dnl print '(a)','YES'
-dnl else
-dnl print '(a)','NO'
-dnl end if
-dnl end program conftest
-dnl EOF
-dnl $ac_cv_prog_F90 $FCFLAGS -o conftest conftest.f90 > /dev/null 2>&1
-dnl if test "`./conftest | head -1`" = YES; then
-dnl echo "yes" 1>&6
-dnl AC_DEFINE(HIPREC)
-dnl else
-dnl echo "no" 1>&6
-dnl fi
-
-dnl echo $ac_n "checking whether f90 precision of default real type""... $ac_c" 1>&6
-dnl cat >conftest.f90 <<'EOF'
-dnl program conftest
-dnl if (kind(0.0) .eq. selected_real_kind(12) .or.&
-dnl &kind(0.0) .eq. selected_real_kind(6) ) then
-dnl print '(a)','YES'
-dnl else
-dnl print '(a)','NO'
-dnl end if
-dnl end program conftest
-dnl EOF
-dnl $ac_cv_prog_F90 $FCFLAGS -o conftest conftest.f90 > /dev/null 2>&1
-dnl if test "`./conftest | head -1`" = YES; then
-dnl echo "OK" 1>&6
-dnl AC_DEFINE(REALOK)
-dnl else
-dnl echo "no" 1>&6
-dnl fi
-
-dnl echo $ac_n "checking accuracy of arithmetic""... $ac_c" 1>&6
-dnl cat >conftest.f90 <<'EOF'
-dnl program conftest
-dnl integer, parameter :: double=selected_real_kind(12)
-dnl real(double), parameter :: ulp=2.0_double**(-47)
-dnl real(double), parameter :: ans=0.92699498904359955986_double
-dnl real(double) :: x,y,z
-dnl integer i
-dnl x=0.0_double
-dnl y=ulp
-dnl do i=2,100
-dnl z=x+y
-dnl x=y
-dnl y=z-int(z)
-dnl end do
-dnl if (y-ans .lt. ulp/2.0_double) then
-dnl print '(a)','YES'
-dnl else
-dnl print '(a)','NO'
-dnl end if
-dnl end program conftest
-dnl EOF
-dnl $ac_cv_prog_F90 $FCFLAGS -o conftest conftest.f90 > /dev/null 2>&1
-dnl if test "`./conftest | head -1`" = YES; then
-dnl echo "OK" 1>&6
-dnl AC_DEFINE(ARITHOK)
-dnl else
-dnl echo "no" 1>&6
-dnl fi
-
-dnl echo $ac_n "checking whether int is the fastest way to truncate""... $ac_c" 1>&6
-dnl cat >conftest.f90 <<'EOF'
-dnl program conftest
-dnl integer, parameter :: double=selected_real_kind(12)
-dnl real(double), parameter :: ulp=2.0_double**(-47)
-dnl real(double) :: x,y,z,ya,yb
-dnl integer :: t0,t1,i,timea,timeb
-dnl
-dnl x=0.0_double
-dnl y=ulp
-dnl call system_clock(t0)
-dnl do i=2,1000000
-dnl z=x+y
-dnl x=y
-dnl y=z-int(z)
-dnl end do
-dnl ya=y
-dnl call system_clock(t1)
-dnl timea=t1-t0
-dnl
-dnl x=0.0_double
-dnl y=ulp
-dnl call system_clock(t0)
-dnl do i=2,1000000
-dnl z=x+y
-dnl x=y
-dnl if (z.ge.1.0_double) then
-dnl y=z-1.0_double
-dnl else
-dnl y=z
-dnl end if
-dnl end do
-dnl yb=y
-dnl call system_clock(t1)
-dnl timeb=t1-t0
-dnl
-dnl if (timea.lt.timeb) then
-dnl print '(a)','YES'
-dnl else
-dnl print '(a)','NO'
-dnl end if
-dnl print *,ya,yb
-dnl end program conftest
-dnl EOF
-dnl $ac_cv_prog_F90 $FCFLAGS -o conftest conftest.f90 > /dev/null 2>&1
-dnl if test "`./conftest | head -1`" = YES; then
-dnl echo "yes" 1>&6
-dnl AC_DEFINE(USEINT)
-dnl else
-dnl echo "no" 1>&6
-dnl fi
-dnl
-dnl -------------------------------------------------------------------------
-dnl -------------------------------------------------------------------------