1
# ===========================================================================
9
# This macro tries to find out how to compile pario.
10
# This was converted from pario/makefile.h and pario/*/GNUmakefile
11
# Defines the following precious variables
18
AC_DEFUN([GA_PARIO], [
20
dnl ##########################################################################
21
dnl FROM pario/makefile.h
22
dnl ##########################################################################
25
if test x$OSNAME = xAIX ; then
26
if /usr/bin/oslevel | awk -F. '{ if ($1 > 5 || ($1 == 5 && $2 > 1)) exit 0 }'
28
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DAIX52"
30
if /usr/sbin/lsdev -C -l aio0 2>&1 | grep Legacy ; then
31
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_AIO_AIX_SOURCE"
34
if test x$LARGE_FILES != x ; then
35
if test x$OSNAME = xAIX ; then
36
if /usr/bin/oslevel|awk -F. '{ if ($1 > 4 || ($1 == 4 && $2 > 1)) exit 0 }'
38
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_LARGE_FILES -D_LARGE_FILE_API"
40
if /usr/bin/oslevel|awk -F. '{ if ($1 == 4 && $2 == 2 && $3 <= 0 ) exit 0 }'
42
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DNOAIO"
45
if test x$TARGET = xSOLARIS ; then
46
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
47
PARIO_CFLAGS=`getconf LFS_CFLAGS`
49
if test x$TARGET = xLINUX ; then
50
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_LARGEFILE64_SOURCE"
51
PARIO_CFLAGS=`getconf LFS_CFLAGS`
53
if test x$TARGET = xBGL -o x$TARGET = xBGP ; then
54
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
56
if test x$TARGET = xHPUX ; then
57
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_LARGEFILE64_SOURCE"
58
PARIO_CFLAGS=`getconf XBS5_ILP32_OFFBIG_CFLAGS`
60
if test x$TARGET = xHPUX64 ; then
61
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -D_LARGEFILE64_SOURCE"
62
PARIO_CFLAGS=`getconf XBS5_LP64_OFF64_CFLAGS`
64
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DLARGE_FILES"
66
if test x$TARGET = xDECOSF ; then
67
PARIO_LDFLAGS="-laio -lpthreads"
69
if test x$USE_LINUXAIO != x ; then
70
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DLINUXAIO"
71
PARIO_LDFLAGS="$PARIO_LDFLAGS -lrt"
74
dnl ##########################################################################
75
dnl FROM pario/elio/GNUmakefile
76
dnl ##########################################################################
78
dnl on platforms with Posix AIO you can choose not to use it by defining NOAIO
79
if test x$NOAIO != x ; then
80
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DNOAIO"
83
if test x$PABLO != x ; then
84
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DPABLO"
87
dnl ##########################################################################
88
dnl FROM pario/eaf/GNUmakefile
89
dnl ##########################################################################
90
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DEAF_STATS"
91
if test x$ga_armci_network = xPORTALS ; then
92
PARIO_CPPFLAGS="$PARIO_CPPFLAGS -DCRAY_XT"
95
dnl ##########################################################################
96
dnl FROM pario/dra/GNUmakefile
97
dnl ##########################################################################
98
if test x$F77 = xfrt ; then
102
dnl ##########################################################################
103
dnl FROM pario/sf/GNUmakefile
104
dnl ##########################################################################
108
AC_SUBST([PARIO_CPPFLAGS])
109
AC_SUBST([PARIO_LDFLAGS])
110
AC_SUBST([PARIO_CFLAGS])
111
AC_SUBST([PARIO_FFLAGS])