File: configure.m4

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (48 lines) | stat: -rw-r--r-- 1,924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- shell-script -*-
#
# Copyright (c) 2018-2019 FUJITSU LIMITED.  All rights reserved.
# Copyright (c) 2019      Research Organization for Information Science
#                         and Technology (RIST).  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OMPI_MPIEXT_shortfloat_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([OMPI_MPIEXT_shortfloat_CONFIG],[
    AC_CONFIG_FILES([
        ompi/mpiext/shortfloat/Makefile
        ompi/mpiext/shortfloat/c/Makefile
        ompi/mpiext/shortfloat/mpif-h/Makefile
        ompi/mpiext/shortfloat/use-mpi/Makefile
        ompi/mpiext/shortfloat/use-mpi-f08/Makefile
        ompi/mpiext/shortfloat/c/mpiext_shortfloat_c.h
        ompi/mpiext/shortfloat/mpif-h/mpiext_shortfloat_mpifh.h
        ompi/mpiext/shortfloat/use-mpi-f08/mpiext_shortfloat_usempif08.h
    ])

    AS_IF([{ test "$ENABLE_shortfloat" = "1" || \
             test "$ENABLE_EXT_ALL" = "1"; } && \
           { test "$ac_cv_type_short_float" = "yes" || \
             test "$ac_cv_type_opal_short_float_t" = "yes"; }],
          [$1],
          [$2])

    AS_IF([test "$opal_short_float_type" = "_Float16"],
          [AC_SUBST([OMPI_MPIX_SHORT_FLOAT_IS_C_FLOAT16], 1)
           AC_SUBST([OMPI_MPIX_C_FLOAT16_FORTRAN_COMMENT_OUT], [])],
          [AC_SUBST([OMPI_MPIX_SHORT_FLOAT_IS_C_FLOAT16], 0)
           AC_SUBST([OMPI_MPIX_C_FLOAT16_FORTRAN_COMMENT_OUT], [!])])
])

# The mpi_f08_ext module should not include mpiext_shortfloat_mpifh.h
# because types of a datatype are different between the mpi_ext module
# and the mpi_f08_ext module. The former is integer and the latter is
# type(mpi_datatype).
AC_DEFUN([OMPI_MPIEXT_shortfloat_INCLUDE_MPIFH_IN_USEMPIF08], [0])

# This extension provides only header files for datatype handles.
AC_DEFUN([OMPI_MPIEXT_shortfloat_HAVE_OBJECT], [0])