~ubuntu-branches/ubuntu/trusty/pvm/trusty-proposed

« back to all changes in this revision

Viewing changes to conf/MACOSX.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-08-09 00:00:40 UTC
  • mfrom: (2.1.5 dapper)
  • Revision ID: james.westby@ubuntu.com-20060809000040-16kh33tmxx2em716
Tags: 3.4.5-7
Build with SHELL=/bin/bash in debian/rules; fixes FTBFS when /bin/sh
isn't bash. (Closes: #379543)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
divert(-1)
 
2
undefine(`len')
 
3
#
 
4
# For g77, do nothing special to FORTRAN function names
 
5
#
 
6
define(`FUNCTION',`$1')
 
7
#
 
8
# For the Absoft Compiler, FORTRAN function names are in upper case,
 
9
# so use this line instead (from Drew McCormack cormack@chem.vu.nl):
 
10
#
 
11
# define(`FUNCTION',`translit($1,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)
 
12
#
 
13
# FORTRAN character strings are passed as follows:
 
14
# a pointer to the base of the string is passed in the normal
 
15
# argument list, and the length is passed by value as an extra
 
16
# argument, after all of the other arguments.
 
17
#   XXX I hope...
 
18
#
 
19
define(`ARGS',`($1`'undivert(1))')
 
20
define(`SAVE',`divert(1)$1`'divert(0)')
 
21
define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
 
22
define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
 
23
define(`STRING_LEN',`$1_len')
 
24
define(`STRING_PTR',`$1_ptr')
 
25
divert(0)