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

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/m4/ga_64bit_flag.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_64BIT_FLAG
 
2
# -------------
 
3
# Figure out whether the compiler needs a special flag to generate 64bit code.
 
4
# We verify by testing the size of void*. We can't use AC_CHECK_SIZEOF
 
5
# directly since it uses the cache. Instead we copied code from autoconf...
 
6
#
 
7
# Known flags:
 
8
#  -m64     GNU
 
9
#  -q64     IBM
 
10
#  +DD64    HPUX
 
11
#  +DA2.0W  HPUX (obsolete form of +DD64)
 
12
#  -64      SGI TFP, not sure, others might be -mips64, -align64?
 
13
#
 
14
AC_DEFUN([GA_64BIT_FLAG],
 
15
[AC_CACHE_CHECK([for flag to indicate 64-bits], [ga_cv_64bit_flag],
 
16
[AC_LANG_PUSH([C])
 
17
for flag in none -m64 -q64 +DD64 +DA2.0W -64 ; do
 
18
    ga_save_CFLAGS=$CFLAGS
 
19
    AS_IF([test "x$flag" != xnone], [CFLAGS="$CFLAGS $flag"])
 
20
    ga_sizeof_voidp=0
 
21
    AC_COMPUTE_INT([ga_sizeof_voidp],
 
22
        [(long int) (sizeof (void*))],
 
23
        [AC_INCLUDES_DEFAULT()],
 
24
        [ga_sizeof_voidp=0])
 
25
    CFLAGS=$ga_save_CFLAGS
 
26
    AS_IF([test x$ga_sizeof_voidp = x8],
 
27
        [ga_cv_64bit_flag=$flag; break])
 
28
done
 
29
AC_LANG_POP([C])])
 
30
AS_IF([test x$ga_cv_64bit_flag != xnone],
 
31
    [CFLAGS="$CFLAGS $ga_cv_64bit_flag"
 
32
     FFLAGS="$FFLAGS $ga_cv_64bit_flag"])
 
33
]) # GA_64BIT_FLAG