"Fossies" - the Fresh Open Source Software Archive

Member "scalasca-2.6/vendor/cubew/build-config/m4/ac_cube_general.m4" (19 Apr 2021, 5287 Bytes) of package /linux/misc/scalasca-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ##*************************************************************************##
    2 ##  CUBE        http://www.scalasca.org/                                   ##
    3 ##*************************************************************************##
    4 ##  Copyright (c) 1998-2018                                                ##
    5 ##  Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre          ##
    6 ##                                                                         ##
    7 ##  Copyright (c) 2009-2015                                                ##
    8 ##  German Research School for Simulation Sciences GmbH,                   ##
    9 ##  Laboratory for Parallel Programming                                    ##
   10 ##                                                                         ##
   11 ##  This software may be modified and distributed under the terms of       ##
   12 ##  a BSD-style license.  See the COPYING file in the package base         ##
   13 ##  directory for details.                                                 ##
   14 ##*************************************************************************##
   15 
   16 
   17 AC_DEFUN([AC_SCOREP_CONFIG_SELECTION_REPORT], [
   18 
   19 XEND=$1
   20 
   21 
   22 AS_IF([ test "x$CROSS_BUILD" = "xyes" ],[
   23 
   24 AS_IF([test "x$XEND" = "xfrontend" ], [
   25 AFS_SUMMARY([Frontend zlib compression ], [$MSG_FRONTEND_COMPRESSION] )
   26 AS_IF([test "x$MSG_FRONTEND_COMPRESSION" != "xno" ],[
   27 AFS_SUMMARY([  zlib headers ], [$FRONTEND_LIBZ_HEADERS] )
   28 AFS_SUMMARY([  zlib library ], [$FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS] )
   29 AFS_SUMMARY([  Notice], [Front end part of cube (c-writer library) produces compressed cube report.(enabled via environment variable CUBEW_ZLIB_COMPRESSION=true)])
   30 ])
   31 ])
   32 
   33 AS_IF([test "x$XEND" = "xbackend" ], [
   34 AFS_SUMMARY([Backend zlib compression ], [$MSG_BACKEND_COMPRESSION] )
   35 AS_IF([test "x$MSG_BACKEND_COMPRESSION" = "xyes" ],[
   36 AFS_SUMMARY([  zlib headers ], [$BACKEND_LIBZ_HEADERS] )
   37 AFS_SUMMARY([  zlib library ], [$BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS] )
   38 AFS_SUMMARY([  Notice],[Back end part of cube (c-writer library) produces compressed cube report.(enabled via environment variable CUBEW_ZLIB_COMPRESSION=true)])
   39 ])
   40 ])
   41 ]
   42 , [
   43 AFS_SUMMARY([zlib compression ], [$MSG_BACKEND_COMPRESSION] )
   44 AS_IF([test "x$MSG_BACKEND_COMPRESSION" != "xno" ],[
   45 AFS_SUMMARY([  zlib headers ], [$BACKEND_LIBZ_HEADERS] )
   46 AFS_SUMMARY([  zlib library ], [$BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS] )
   47 AFS_SUMMARY([  Notice],[Cube (c-writer library) produces compressed cube report.(enabled via environment variable CUBEW_ZLIB_COMPRESSION=true)])
   48 ])
   49 ])
   50 AFS_SUMMARY([  zlib compression flags ], [$COMPRESSION] )
   51 
   52 AFS_SUMMARY([Advanced memory handling ], [$advmemory] )
   53 AFS_SUMMARY([Internal memory tracking ], [$memory_tracking] )
   54 AFS_SUMMARY([Internal memory tracing ], [$memory_tracing] )
   55 
   56 
   57 
   58 
   59 AS_IF([test "x$XEND" = "xbackend" && test "x$CROSS_BUILD" == "xyes" ], [
   60 AFS_SUMMARY([C99 compiler used],[$CC])
   61 AFS_SUMMARY([C++ compiler used],[$CXX])
   62 AFS_SUMMARY([ Compiler flags used],[$CFLAGS])
   63 AFS_SUMMARY([ Compiler cxxflags used],[$CXXFLAGS])
   64 ],
   65 [
   66 AFS_SUMMARY([C99 compiler used],[$CC])
   67 AFS_SUMMARY([C++ compiler used],[$CXX])
   68 AFS_SUMMARY([ Compiler flags used],[$CFLAGS])
   69 AFS_SUMMARY([ Compiler cxxflags used],[$CXXFLAGS])
   70 ])
   71 
   72 
   73 
   74 ])
   75 
   76 
   77 
   78 
   79 
   80 
   81 
   82 
   83 
   84 AC_DEFUN([AC_SCOREP_CUBE_BACKEND_SELECTION], [
   85 
   86 #AC_SCOREP_CUBE_INITIALIZE_BACKEND_SELECTION
   87 #AC_SCOREP_CUBE_CWRITER_SELECTION
   88 AC_CUBE_TESTS
   89 
   90 AM_CONDITIONAL([CUBEW_COMPRESSION_BACKEND], [test "x$MSG_BACKEND_COMPRESSION" = "xyes"])
   91 AFS_AM_CONDITIONAL([ENABLE_MAKEFILE_RULES_FOR_REGENERATION], [test "x$ENABLE_MAKEFILE_RULES_FOR_REGENERATION" = "xyes"], [false])
   92 ])
   93 
   94 
   95 
   96 AC_DEFUN([AC_SCOREP_CUBE_ACCELERATOR_SELECTION], [
   97 
   98 #AC_SCOREP_CUBE_INITIALIZE_BACKEND_SELECTION
   99 #AC_SCOREP_CUBE_CWRITER_SELECTION
  100 
  101 ])
  102 
  103 
  104 
  105 AC_DEFUN([AC_SCOREP_CUBE_FRONTEND_SELECTION], [
  106 AC_SCOREP_CUBE_INITIALIZE_FRONTEND_SELECTION
  107 AC_SCOREP_CUBE_CWRITER_SELECTION
  108 
  109 AM_CONDITIONAL([CUBEW_COMPRESSION_FRONTEND], [test "x$MSG_FRONTEND_COMPRESSION" = "xyes"])
  110 
  111 ])
  112 
  113 
  114 AC_DEFUN([AC_SCOREP_CUBE_CWRITER_SELECTION], [
  115 
  116 #AC_ARG_WITH(cwriter, [AS_HELP_STRING([--with-cwriter | --without-cwriter], [Enables (default) or disables building and installation of the C cube writer.])],[],[])
  117 
  118 AS_IF( [ test x$with_cwriter = "xyes" ], [
  119 WITH_C_WRITER="yes"
  120 ])
  121 
  122 AS_IF( [ test x$with_cwriter = "xno" || test "x$without_cwriter" = "xyes" ], [
  123 WITH_C_WRITER="no"
  124 ])
  125 AC_SUBST(WITH_C_WRITER)
  126 AM_CONDITIONAL([WITH_C_WRITER], [test x$WITH_C_WRITER == "xyes"])
  127 ])
  128 
  129 
  130 
  131 
  132 
  133 AC_DEFUN([AC_SCOREP_CUBE_INITIALIZE_BACKEND_SELECTION], [
  134 
  135 WITH_C_WRITER="yes"
  136 
  137 ])
  138 
  139 
  140 AC_DEFUN([AC_SCOREP_CUBE_INITIALIZE_FRONTEND_SELECTION], [
  141 
  142 WITH_C_WRITER="yes"
  143 
  144 ])
  145 
  146 
  147 
  148 
  149 AC_DEFUN([AC_SCOREP_CONSTUCT_LIST_OF_LIB_DIRS], [
  150 
  151 sufix=""
  152    case "x${build_cpu}" in
  153     "xx86")
  154         sufix="32"
  155         ;;
  156     "xx86_64")
  157         sufix="64"
  158         ;;
  159     "xppc32")
  160         sufix="32"
  161         ;;
  162     "xppc64")
  163         sufix="64"
  164         ;;
  165     "xia64")
  166         sufix="64"
  167         ;;
  168     "xia32")
  169         sufix="32"
  170         ;;
  171     "xpowerpc64")
  172         sufix="64"
  173         ;;
  174     "xpowerpc32")
  175         sufix="32"
  176         ;;
  177     "xmips64")
  178         sufix="64"
  179         ;;
  180     "xmips32")
  181         sufix="32"
  182         ;;
  183    esac
  184 if test "x$sufix" = "x"; then
  185 LIBDIRS_LIST="/lib/ /usr/lib/ "
  186 else
  187 LIBDIRS_LIST="/lib/ /lib$sufix/ /usr/lib/ /usr/lib$sufix/ "
  188 fi
  189 
  190 
  191 ])
  192 
  193