~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/m4/ga_f77_cpp_symbols.m4

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# GA_F77_CPP_SYMBOL([ACTION-WHEN-FOUND])
 
2
# --------------------------------------
 
3
# Detect how to pass CPP symbols to preprocessed Fortran 77.
 
4
 
5
# Known:
 
6
#  -D       the usual
 
7
#  -WF,-D   IBM xlf
 
8
#  -Wp,-D   Fujitsu
 
9
#
 
10
AC_DEFUN([GA_F77_CPP_SYMBOL],
 
11
[AC_CACHE_CHECK([how to pass symbols to preprocessed $F77],
 
12
[ga_cv_f77_cpp_symbol],
 
13
[AC_LANG_PUSH([Fortran 77])
 
14
ac_ext=F
 
15
for symbol in -D -WF,-D -Wp,-D
 
16
do
 
17
    ga_save_CPPFLAGS="$CPPFLAGS"
 
18
    ga_save_FFLAGS="$FFLAGS"
 
19
    CPPFLAGS="$CPPFLAGS ${symbol}GABLAHBLAH"
 
20
    FFLAGS="$CPPFLAGS $FFLAGS"
 
21
    AC_COMPILE_IFELSE(
 
22
[[#ifndef GABLAHBLAH
 
23
this is an error
 
24
#endif
 
25
      end program]],
 
26
        [ga_cv_f77_cpp_symbol="$symbol"])
 
27
    CPPFLAGS="$ga_save_CPPFLAGS"
 
28
    FFLAGS="$ga_save_FFLAGS"
 
29
    AS_IF([test "x$ga_cv_f77_cpp_symbol" != x], [break])
 
30
done
 
31
AC_LANG_POP([Fortran 77])
 
32
])
 
33
AS_IF([test "x$ga_cv_f77_cpp_symbol" = x],
 
34
    [AC_MSG_ERROR([don't know how to pass symbols to preprocessed Fortran])])
 
35
m4_default([$1],
 
36
    [AS_CASE([$ga_cv_f77_cpp_symbol],
 
37
        [-D],   [],
 
38
        [FFLAGS="$FFLAGS ${ga_cv_f77_cpp_symbol}HAVE_CONFIG_H"])])
 
39
]) # GA_F77_CPP_SYMBOL