"Fossies" - the Fresh Open Source Software Archive

Member "scalasca-2.6/vendor/cubew/aclocal.m4" (19 Apr 2021, 30617 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 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
    4 
    5 # This file is free software; the Free Software Foundation
    6 # gives unlimited permission to copy and/or distribute it,
    7 # with or without modifications, as long as this notice is preserved.
    8 
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   12 # PARTICULAR PURPOSE.
   13 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
   18 [m4_warning([this file was generated for autoconf 2.69.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If you have problems, you may need to regenerate the build system entirely.
   21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
   22 
   23 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
   24 #
   25 # This file is free software; the Free Software Foundation
   26 # gives unlimited permission to copy and/or distribute it,
   27 # with or without modifications, as long as this notice is preserved.
   28 
   29 # AM_AUTOMAKE_VERSION(VERSION)
   30 # ----------------------------
   31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
   32 # generated from the m4 files accompanying Automake X.Y.
   33 # (This private macro should not be called outside this file.)
   34 AC_DEFUN([AM_AUTOMAKE_VERSION],
   35 [am__api_version='1.13'
   36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
   37 dnl require some minimum version.  Point them to the right macro.
   38 m4_if([$1], [1.13.4], [],
   39       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
   40 ])
   41 
   42 # _AM_AUTOCONF_VERSION(VERSION)
   43 # -----------------------------
   44 # aclocal traces this macro to find the Autoconf version.
   45 # This is a private macro too.  Using m4_define simplifies
   46 # the logic in aclocal, which can simply ignore this definition.
   47 m4_define([_AM_AUTOCONF_VERSION], [])
   48 
   49 # AM_SET_CURRENT_AUTOMAKE_VERSION
   50 # -------------------------------
   51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
   52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
   53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   54 [AM_AUTOMAKE_VERSION([1.13.4])dnl
   55 m4_ifndef([AC_AUTOCONF_VERSION],
   56   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
   58 
   59 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
   60 
   61 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
   62 #
   63 # This file is free software; the Free Software Foundation
   64 # gives unlimited permission to copy and/or distribute it,
   65 # with or without modifications, as long as this notice is preserved.
   66 
   67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   68 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
   69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
   70 #
   71 # Of course, Automake must honor this variable whenever it calls a
   72 # tool from the auxiliary directory.  The problem is that $srcdir (and
   73 # therefore $ac_aux_dir as well) can be either absolute or relative,
   74 # depending on how configure is run.  This is pretty annoying, since
   75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
   76 # source directory, any form will work fine, but in subdirectories a
   77 # relative path needs to be adjusted first.
   78 #
   79 # $ac_aux_dir/missing
   80 #    fails when called from a subdirectory if $ac_aux_dir is relative
   81 # $top_srcdir/$ac_aux_dir/missing
   82 #    fails if $ac_aux_dir is absolute,
   83 #    fails when called from a subdirectory in a VPATH build with
   84 #          a relative $ac_aux_dir
   85 #
   86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   87 # are both prefixed by $srcdir.  In an in-source build this is usually
   88 # harmless because $srcdir is '.', but things will broke when you
   89 # start a VPATH build or use an absolute $srcdir.
   90 #
   91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   92 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   93 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   94 # and then we would define $MISSING as
   95 #   MISSING="\${SHELL} $am_aux_dir/missing"
   96 # This will work as long as MISSING is not called from configure, because
   97 # unfortunately $(top_srcdir) has no meaning in configure.
   98 # However there are other variables, like CC, which are often used in
   99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
  100 #
  101 # Another solution, used here, is to always expand $ac_aux_dir to an
  102 # absolute PATH.  The drawback is that using absolute paths prevent a
  103 # configured tree to be moved without reconfiguration.
  104 
  105 AC_DEFUN([AM_AUX_DIR_EXPAND],
  106 [dnl Rely on autoconf to set up CDPATH properly.
  107 AC_PREREQ([2.50])dnl
  108 # expand $ac_aux_dir to an absolute path
  109 am_aux_dir=`cd $ac_aux_dir && pwd`
  110 ])
  111 
  112 # AM_COND_IF                                            -*- Autoconf -*-
  113 
  114 # Copyright (C) 2008-2013 Free Software Foundation, Inc.
  115 #
  116 # This file is free software; the Free Software Foundation
  117 # gives unlimited permission to copy and/or distribute it,
  118 # with or without modifications, as long as this notice is preserved.
  119 
  120 # _AM_COND_IF
  121 # _AM_COND_ELSE
  122 # _AM_COND_ENDIF
  123 # --------------
  124 # These macros are only used for tracing.
  125 m4_define([_AM_COND_IF])
  126 m4_define([_AM_COND_ELSE])
  127 m4_define([_AM_COND_ENDIF])
  128 
  129 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
  130 # ---------------------------------------
  131 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
  132 # IF-FALSE.  Allow automake to learn about conditional instantiating macros
  133 # (the AC_CONFIG_FOOS).
  134 AC_DEFUN([AM_COND_IF],
  135 [m4_ifndef([_AM_COND_VALUE_$1],
  136 	   [m4_fatal([$0: no such condition "$1"])])dnl
  137 _AM_COND_IF([$1])dnl
  138 if test -z "$$1_TRUE"; then :
  139   m4_n([$2])[]dnl
  140 m4_ifval([$3],
  141 [_AM_COND_ELSE([$1])dnl
  142 else
  143   $3
  144 ])dnl
  145 _AM_COND_ENDIF([$1])dnl
  146 fi[]dnl
  147 ])
  148 
  149 # AM_CONDITIONAL                                            -*- Autoconf -*-
  150 
  151 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  152 #
  153 # This file is free software; the Free Software Foundation
  154 # gives unlimited permission to copy and/or distribute it,
  155 # with or without modifications, as long as this notice is preserved.
  156 
  157 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  158 # -------------------------------------
  159 # Define a conditional.
  160 AC_DEFUN([AM_CONDITIONAL],
  161 [AC_PREREQ([2.52])dnl
  162  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  163        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  164 AC_SUBST([$1_TRUE])dnl
  165 AC_SUBST([$1_FALSE])dnl
  166 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  167 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  168 m4_define([_AM_COND_VALUE_$1], [$2])dnl
  169 if $2; then
  170   $1_TRUE=
  171   $1_FALSE='#'
  172 else
  173   $1_TRUE='#'
  174   $1_FALSE=
  175 fi
  176 AC_CONFIG_COMMANDS_PRE(
  177 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  178   AC_MSG_ERROR([[conditional "$1" was never defined.
  179 Usually this means the macro was only invoked conditionally.]])
  180 fi])])
  181 
  182 # Do all the work for Automake.                             -*- Autoconf -*-
  183 
  184 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  185 #
  186 # This file is free software; the Free Software Foundation
  187 # gives unlimited permission to copy and/or distribute it,
  188 # with or without modifications, as long as this notice is preserved.
  189 
  190 # This macro actually does too much.  Some checks are only needed if
  191 # your package does certain things.  But this isn't really a big deal.
  192 
  193 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  194 # AM_INIT_AUTOMAKE([OPTIONS])
  195 # -----------------------------------------------
  196 # The call with PACKAGE and VERSION arguments is the old style
  197 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
  198 # and VERSION should now be passed to AC_INIT and removed from
  199 # the call to AM_INIT_AUTOMAKE.
  200 # We support both call styles for the transition.  After
  201 # the next Automake release, Autoconf can make the AC_INIT
  202 # arguments mandatory, and then we can depend on a new Autoconf
  203 # release and drop the old call support.
  204 AC_DEFUN([AM_INIT_AUTOMAKE],
  205 [AC_PREREQ([2.65])dnl
  206 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  207 dnl the ones we care about.
  208 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  209 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  210 AC_REQUIRE([AC_PROG_INSTALL])dnl
  211 if test "`cd $srcdir && pwd`" != "`pwd`"; then
  212   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  213   # is not polluted with repeated "-I."
  214   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  215   # test to see if srcdir already configured
  216   if test -f $srcdir/config.status; then
  217     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  218   fi
  219 fi
  220 
  221 # test whether we have cygpath
  222 if test -z "$CYGPATH_W"; then
  223   if (cygpath --version) >/dev/null 2>/dev/null; then
  224     CYGPATH_W='cygpath -w'
  225   else
  226     CYGPATH_W=echo
  227   fi
  228 fi
  229 AC_SUBST([CYGPATH_W])
  230 
  231 # Define the identity of the package.
  232 dnl Distinguish between old-style and new-style calls.
  233 m4_ifval([$2],
  234 [AC_DIAGNOSE([obsolete],
  235              [$0: two- and three-arguments forms are deprecated.])
  236 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  237  AC_SUBST([PACKAGE], [$1])dnl
  238  AC_SUBST([VERSION], [$2])],
  239 [_AM_SET_OPTIONS([$1])dnl
  240 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  241 m4_if(
  242   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  243   [ok:ok],,
  244   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  245  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  246  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  247 
  248 _AM_IF_OPTION([no-define],,
  249 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  250  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  251 
  252 # Some tools Automake needs.
  253 AC_REQUIRE([AM_SANITY_CHECK])dnl
  254 AC_REQUIRE([AC_ARG_PROGRAM])dnl
  255 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  256 AM_MISSING_PROG([AUTOCONF], [autoconf])
  257 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  258 AM_MISSING_PROG([AUTOHEADER], [autoheader])
  259 AM_MISSING_PROG([MAKEINFO], [makeinfo])
  260 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  261 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  262 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  263 # For better backward compatibility.  To be removed once Automake 1.9.x
  264 # dies out for good.  For more background, see:
  265 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  266 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  267 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  268 # We need awk for the "check" target.  The system "awk" is bad on
  269 # some platforms.
  270 AC_REQUIRE([AC_PROG_AWK])dnl
  271 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  272 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  273 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  274 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  275 			     [_AM_PROG_TAR([v7])])])
  276 _AM_IF_OPTION([no-dependencies],,
  277 [AC_PROVIDE_IFELSE([AC_PROG_CC],
  278 		  [_AM_DEPENDENCIES([CC])],
  279 		  [m4_define([AC_PROG_CC],
  280 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  281 AC_PROVIDE_IFELSE([AC_PROG_CXX],
  282 		  [_AM_DEPENDENCIES([CXX])],
  283 		  [m4_define([AC_PROG_CXX],
  284 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  285 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  286 		  [_AM_DEPENDENCIES([OBJC])],
  287 		  [m4_define([AC_PROG_OBJC],
  288 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  289 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  290 		  [_AM_DEPENDENCIES([OBJCXX])],
  291 		  [m4_define([AC_PROG_OBJCXX],
  292 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  293 ])
  294 AC_REQUIRE([AM_SILENT_RULES])dnl
  295 dnl The testsuite driver may need to know about EXEEXT, so add the
  296 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
  297 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  298 AC_CONFIG_COMMANDS_PRE(dnl
  299 [m4_provide_if([_AM_COMPILER_EXEEXT],
  300   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  301 ])
  302 
  303 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
  304 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  305 dnl mangled by Autoconf and run in a shell conditional statement.
  306 m4_define([_AC_COMPILER_EXEEXT],
  307 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  308 
  309 
  310 # When config.status generates a header, we must update the stamp-h file.
  311 # This file resides in the same directory as the config header
  312 # that is generated.  The stamp files are numbered to have different names.
  313 
  314 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  315 # loop where config.status creates the headers, so we can generate
  316 # our stamp files there.
  317 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  318 [# Compute $1's index in $config_headers.
  319 _am_arg=$1
  320 _am_stamp_count=1
  321 for _am_header in $config_headers :; do
  322   case $_am_header in
  323     $_am_arg | $_am_arg:* )
  324       break ;;
  325     * )
  326       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  327   esac
  328 done
  329 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  330 
  331 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  332 #
  333 # This file is free software; the Free Software Foundation
  334 # gives unlimited permission to copy and/or distribute it,
  335 # with or without modifications, as long as this notice is preserved.
  336 
  337 # AM_PROG_INSTALL_SH
  338 # ------------------
  339 # Define $install_sh.
  340 AC_DEFUN([AM_PROG_INSTALL_SH],
  341 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  342 if test x"${install_sh}" != xset; then
  343   case $am_aux_dir in
  344   *\ * | *\	*)
  345     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  346   *)
  347     install_sh="\${SHELL} $am_aux_dir/install-sh"
  348   esac
  349 fi
  350 AC_SUBST([install_sh])])
  351 
  352 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  353 #
  354 # This file is free software; the Free Software Foundation
  355 # gives unlimited permission to copy and/or distribute it,
  356 # with or without modifications, as long as this notice is preserved.
  357 
  358 # Check whether the underlying file-system supports filenames
  359 # with a leading dot.  For instance MS-DOS doesn't.
  360 AC_DEFUN([AM_SET_LEADING_DOT],
  361 [rm -rf .tst 2>/dev/null
  362 mkdir .tst 2>/dev/null
  363 if test -d .tst; then
  364   am__leading_dot=.
  365 else
  366   am__leading_dot=_
  367 fi
  368 rmdir .tst 2>/dev/null
  369 AC_SUBST([am__leading_dot])])
  370 
  371 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
  372 # From Jim Meyering
  373 
  374 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  375 #
  376 # This file is free software; the Free Software Foundation
  377 # gives unlimited permission to copy and/or distribute it,
  378 # with or without modifications, as long as this notice is preserved.
  379 
  380 # AM_MAINTAINER_MODE([DEFAULT-MODE])
  381 # ----------------------------------
  382 # Control maintainer-specific portions of Makefiles.
  383 # Default is to disable them, unless 'enable' is passed literally.
  384 # For symmetry, 'disable' may be passed as well.  Anyway, the user
  385 # can override the default with the --enable/--disable switch.
  386 AC_DEFUN([AM_MAINTAINER_MODE],
  387 [m4_case(m4_default([$1], [disable]),
  388        [enable], [m4_define([am_maintainer_other], [disable])],
  389        [disable], [m4_define([am_maintainer_other], [enable])],
  390        [m4_define([am_maintainer_other], [enable])
  391         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  392 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  393   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  394   AC_ARG_ENABLE([maintainer-mode],
  395     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  396       am_maintainer_other[ make rules and dependencies not useful
  397       (and sometimes confusing) to the casual installer])],
  398     [USE_MAINTAINER_MODE=$enableval],
  399     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  400   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  401   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  402   MAINT=$MAINTAINER_MODE_TRUE
  403   AC_SUBST([MAINT])dnl
  404 ]
  405 )
  406 
  407 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  408 
  409 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  410 #
  411 # This file is free software; the Free Software Foundation
  412 # gives unlimited permission to copy and/or distribute it,
  413 # with or without modifications, as long as this notice is preserved.
  414 
  415 # AM_MISSING_PROG(NAME, PROGRAM)
  416 # ------------------------------
  417 AC_DEFUN([AM_MISSING_PROG],
  418 [AC_REQUIRE([AM_MISSING_HAS_RUN])
  419 $1=${$1-"${am_missing_run}$2"}
  420 AC_SUBST($1)])
  421 
  422 # AM_MISSING_HAS_RUN
  423 # ------------------
  424 # Define MISSING if not defined so far and test if it is modern enough.
  425 # If it is, set am_missing_run to use it, otherwise, to nothing.
  426 AC_DEFUN([AM_MISSING_HAS_RUN],
  427 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  428 AC_REQUIRE_AUX_FILE([missing])dnl
  429 if test x"${MISSING+set}" != xset; then
  430   case $am_aux_dir in
  431   *\ * | *\	*)
  432     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  433   *)
  434     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  435   esac
  436 fi
  437 # Use eval to expand $SHELL
  438 if eval "$MISSING --is-lightweight"; then
  439   am_missing_run="$MISSING "
  440 else
  441   am_missing_run=
  442   AC_MSG_WARN(['missing' script is too old or missing])
  443 fi
  444 ])
  445 
  446 # Helper functions for option handling.                     -*- Autoconf -*-
  447 
  448 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  449 #
  450 # This file is free software; the Free Software Foundation
  451 # gives unlimited permission to copy and/or distribute it,
  452 # with or without modifications, as long as this notice is preserved.
  453 
  454 # _AM_MANGLE_OPTION(NAME)
  455 # -----------------------
  456 AC_DEFUN([_AM_MANGLE_OPTION],
  457 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  458 
  459 # _AM_SET_OPTION(NAME)
  460 # --------------------
  461 # Set option NAME.  Presently that only means defining a flag for this option.
  462 AC_DEFUN([_AM_SET_OPTION],
  463 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  464 
  465 # _AM_SET_OPTIONS(OPTIONS)
  466 # ------------------------
  467 # OPTIONS is a space-separated list of Automake options.
  468 AC_DEFUN([_AM_SET_OPTIONS],
  469 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  470 
  471 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  472 # -------------------------------------------
  473 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  474 AC_DEFUN([_AM_IF_OPTION],
  475 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  476 
  477 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  478 #
  479 # This file is free software; the Free Software Foundation
  480 # gives unlimited permission to copy and/or distribute it,
  481 # with or without modifications, as long as this notice is preserved.
  482 
  483 # AM_RUN_LOG(COMMAND)
  484 # -------------------
  485 # Run COMMAND, save the exit status in ac_status, and log it.
  486 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  487 AC_DEFUN([AM_RUN_LOG],
  488 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  489    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  490    ac_status=$?
  491    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  492    (exit $ac_status); }])
  493 
  494 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
  495 
  496 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  497 #
  498 # This file is free software; the Free Software Foundation
  499 # gives unlimited permission to copy and/or distribute it,
  500 # with or without modifications, as long as this notice is preserved.
  501 
  502 # AM_SANITY_CHECK
  503 # ---------------
  504 AC_DEFUN([AM_SANITY_CHECK],
  505 [AC_MSG_CHECKING([whether build environment is sane])
  506 # Reject unsafe characters in $srcdir or the absolute working directory
  507 # name.  Accept space and tab only in the latter.
  508 am_lf='
  509 '
  510 case `pwd` in
  511   *[[\\\"\#\$\&\'\`$am_lf]]*)
  512     AC_MSG_ERROR([unsafe absolute working directory name]);;
  513 esac
  514 case $srcdir in
  515   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
  516     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  517 esac
  518 
  519 # Do 'set' in a subshell so we don't clobber the current shell's
  520 # arguments.  Must try -L first in case configure is actually a
  521 # symlink; some systems play weird games with the mod time of symlinks
  522 # (eg FreeBSD returns the mod time of the symlink's containing
  523 # directory).
  524 if (
  525    am_has_slept=no
  526    for am_try in 1 2; do
  527      echo "timestamp, slept: $am_has_slept" > conftest.file
  528      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  529      if test "$[*]" = "X"; then
  530 	# -L didn't work.
  531 	set X `ls -t "$srcdir/configure" conftest.file`
  532      fi
  533      if test "$[*]" != "X $srcdir/configure conftest.file" \
  534 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
  535 
  536 	# If neither matched, then we have a broken ls.  This can happen
  537 	# if, for instance, CONFIG_SHELL is bash and it inherits a
  538 	# broken ls alias from the environment.  This has actually
  539 	# happened.  Such a system could not be considered "sane".
  540 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  541   alias in your environment])
  542      fi
  543      if test "$[2]" = conftest.file || test $am_try -eq 2; then
  544        break
  545      fi
  546      # Just in case.
  547      sleep 1
  548      am_has_slept=yes
  549    done
  550    test "$[2]" = conftest.file
  551    )
  552 then
  553    # Ok.
  554    :
  555 else
  556    AC_MSG_ERROR([newly created file is older than distributed files!
  557 Check your system clock])
  558 fi
  559 AC_MSG_RESULT([yes])
  560 # If we didn't sleep, we still need to ensure time stamps of config.status and
  561 # generated files are strictly newer.
  562 am_sleep_pid=
  563 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  564   ( sleep 1 ) &
  565   am_sleep_pid=$!
  566 fi
  567 AC_CONFIG_COMMANDS_PRE(
  568   [AC_MSG_CHECKING([that generated files are newer than configure])
  569    if test -n "$am_sleep_pid"; then
  570      # Hide warnings about reused PIDs.
  571      wait $am_sleep_pid 2>/dev/null
  572    fi
  573    AC_MSG_RESULT([done])])
  574 rm -f conftest.file
  575 ])
  576 
  577 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  578 #
  579 # This file is free software; the Free Software Foundation
  580 # gives unlimited permission to copy and/or distribute it,
  581 # with or without modifications, as long as this notice is preserved.
  582 
  583 # AM_SILENT_RULES([DEFAULT])
  584 # --------------------------
  585 # Enable less verbose build rules; with the default set to DEFAULT
  586 # ("yes" being less verbose, "no" or empty being verbose).
  587 AC_DEFUN([AM_SILENT_RULES],
  588 [AC_ARG_ENABLE([silent-rules], [dnl
  589 AS_HELP_STRING(
  590   [--enable-silent-rules],
  591   [less verbose build output (undo: "make V=1")])
  592 AS_HELP_STRING(
  593   [--disable-silent-rules],
  594   [verbose build output (undo: "make V=0")])dnl
  595 ])
  596 case $enable_silent_rules in @%:@ (((
  597   yes) AM_DEFAULT_VERBOSITY=0;;
  598    no) AM_DEFAULT_VERBOSITY=1;;
  599     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  600 esac
  601 dnl
  602 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  603 dnl do not support nested variable expansions.
  604 dnl See automake bug#9928 and bug#10237.
  605 am_make=${MAKE-make}
  606 AC_CACHE_CHECK([whether $am_make supports nested variables],
  607    [am_cv_make_support_nested_variables],
  608    [if AS_ECHO([['TRUE=$(BAR$(V))
  609 BAR0=false
  610 BAR1=true
  611 V=1
  612 am__doit:
  613 	@$(TRUE)
  614 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  615   am_cv_make_support_nested_variables=yes
  616 else
  617   am_cv_make_support_nested_variables=no
  618 fi])
  619 if test $am_cv_make_support_nested_variables = yes; then
  620   dnl Using '$V' instead of '$(V)' breaks IRIX make.
  621   AM_V='$(V)'
  622   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  623 else
  624   AM_V=$AM_DEFAULT_VERBOSITY
  625   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  626 fi
  627 AC_SUBST([AM_V])dnl
  628 AM_SUBST_NOTMAKE([AM_V])dnl
  629 AC_SUBST([AM_DEFAULT_V])dnl
  630 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  631 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  632 AM_BACKSLASH='\'
  633 AC_SUBST([AM_BACKSLASH])dnl
  634 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  635 ])
  636 
  637 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  638 #
  639 # This file is free software; the Free Software Foundation
  640 # gives unlimited permission to copy and/or distribute it,
  641 # with or without modifications, as long as this notice is preserved.
  642 
  643 # AM_PROG_INSTALL_STRIP
  644 # ---------------------
  645 # One issue with vendor 'install' (even GNU) is that you can't
  646 # specify the program used to strip binaries.  This is especially
  647 # annoying in cross-compiling environments, where the build's strip
  648 # is unlikely to handle the host's binaries.
  649 # Fortunately install-sh will honor a STRIPPROG variable, so we
  650 # always use install-sh in "make install-strip", and initialize
  651 # STRIPPROG with the value of the STRIP variable (set by the user).
  652 AC_DEFUN([AM_PROG_INSTALL_STRIP],
  653 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  654 # Installed binaries are usually stripped using 'strip' when the user
  655 # run "make install-strip".  However 'strip' might not be the right
  656 # tool to use in cross-compilation environments, therefore Automake
  657 # will honor the 'STRIP' environment variable to overrule this program.
  658 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  659 if test "$cross_compiling" != no; then
  660   AC_CHECK_TOOL([STRIP], [strip], :)
  661 fi
  662 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  663 AC_SUBST([INSTALL_STRIP_PROGRAM])])
  664 
  665 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  666 #
  667 # This file is free software; the Free Software Foundation
  668 # gives unlimited permission to copy and/or distribute it,
  669 # with or without modifications, as long as this notice is preserved.
  670 
  671 # _AM_SUBST_NOTMAKE(VARIABLE)
  672 # ---------------------------
  673 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  674 # This macro is traced by Automake.
  675 AC_DEFUN([_AM_SUBST_NOTMAKE])
  676 
  677 # AM_SUBST_NOTMAKE(VARIABLE)
  678 # --------------------------
  679 # Public sister of _AM_SUBST_NOTMAKE.
  680 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  681 
  682 # Check how to create a tarball.                            -*- Autoconf -*-
  683 
  684 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  685 #
  686 # This file is free software; the Free Software Foundation
  687 # gives unlimited permission to copy and/or distribute it,
  688 # with or without modifications, as long as this notice is preserved.
  689 
  690 # _AM_PROG_TAR(FORMAT)
  691 # --------------------
  692 # Check how to create a tarball in format FORMAT.
  693 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  694 #
  695 # Substitute a variable $(am__tar) that is a command
  696 # writing to stdout a FORMAT-tarball containing the directory
  697 # $tardir.
  698 #     tardir=directory && $(am__tar) > result.tar
  699 #
  700 # Substitute a variable $(am__untar) that extract such
  701 # a tarball read from stdin.
  702 #     $(am__untar) < result.tar
  703 #
  704 AC_DEFUN([_AM_PROG_TAR],
  705 [# Always define AMTAR for backward compatibility.  Yes, it's still used
  706 # in the wild :-(  We should find a proper way to deprecate it ...
  707 AC_SUBST([AMTAR], ['$${TAR-tar}'])
  708 
  709 # We'll loop over all known methods to create a tar archive until one works.
  710 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  711 
  712 m4_if([$1], [v7],
  713   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  714 
  715   [m4_case([$1],
  716     [ustar],
  717      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  718       # There is notably a 21 bits limit for the UID and the GID.  In fact,
  719       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  720       # and bug#13588).
  721       am_max_uid=2097151 # 2^21 - 1
  722       am_max_gid=$am_max_uid
  723       # The $UID and $GID variables are not portable, so we need to resort
  724       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
  725       # below are definitely unexpected, so allow the users to see them
  726       # (that is, avoid stderr redirection).
  727       am_uid=`id -u || echo unknown`
  728       am_gid=`id -g || echo unknown`
  729       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  730       if test $am_uid -le $am_max_uid; then
  731          AC_MSG_RESULT([yes])
  732       else
  733          AC_MSG_RESULT([no])
  734          _am_tools=none
  735       fi
  736       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  737       if test $am_gid -le $am_max_gid; then
  738          AC_MSG_RESULT([yes])
  739       else
  740         AC_MSG_RESULT([no])
  741         _am_tools=none
  742       fi],
  743 
  744   [pax],
  745     [],
  746 
  747   [m4_fatal([Unknown tar format])])
  748 
  749   AC_MSG_CHECKING([how to create a $1 tar archive])
  750 
  751   # Go ahead even if we have the value already cached.  We do so because we
  752   # need to set the values for the 'am__tar' and 'am__untar' variables.
  753   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  754 
  755   for _am_tool in $_am_tools; do
  756     case $_am_tool in
  757     gnutar)
  758       for _am_tar in tar gnutar gtar; do
  759         AM_RUN_LOG([$_am_tar --version]) && break
  760       done
  761       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  762       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  763       am__untar="$_am_tar -xf -"
  764       ;;
  765     plaintar)
  766       # Must skip GNU tar: if it does not support --format= it doesn't create
  767       # ustar tarball either.
  768       (tar --version) >/dev/null 2>&1 && continue
  769       am__tar='tar chf - "$$tardir"'
  770       am__tar_='tar chf - "$tardir"'
  771       am__untar='tar xf -'
  772       ;;
  773     pax)
  774       am__tar='pax -L -x $1 -w "$$tardir"'
  775       am__tar_='pax -L -x $1 -w "$tardir"'
  776       am__untar='pax -r'
  777       ;;
  778     cpio)
  779       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  780       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  781       am__untar='cpio -i -H $1 -d'
  782       ;;
  783     none)
  784       am__tar=false
  785       am__tar_=false
  786       am__untar=false
  787       ;;
  788     esac
  789 
  790     # If the value was cached, stop now.  We just wanted to have am__tar
  791     # and am__untar set.
  792     test -n "${am_cv_prog_tar_$1}" && break
  793 
  794     # tar/untar a dummy directory, and stop if the command works.
  795     rm -rf conftest.dir
  796     mkdir conftest.dir
  797     echo GrepMe > conftest.dir/file
  798     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  799     rm -rf conftest.dir
  800     if test -s conftest.tar; then
  801       AM_RUN_LOG([$am__untar <conftest.tar])
  802       AM_RUN_LOG([cat conftest.dir/file])
  803       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  804     fi
  805   done
  806   rm -rf conftest.dir
  807 
  808   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  809   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  810 
  811 AC_SUBST([am__tar])
  812 AC_SUBST([am__untar])
  813 ]) # _AM_PROG_TAR
  814 
  815 m4_include([build-config/common/m4/ac_common_package.m4])
  816 m4_include([build-config/common/m4/ac_recursive_eval.m4])
  817 m4_include([build-config/common/m4/ac_scorep_compiler_and_flags.m4])
  818 m4_include([build-config/common/m4/ac_scorep_doxygen.m4])
  819 m4_include([build-config/common/m4/ac_scorep_git_controlled.m4])
  820 m4_include([build-config/common/m4/ac_scorep_sys_detection.m4])
  821 m4_include([build-config/common/m4/ac_scorep_toplevel_args.m4])
  822 m4_include([build-config/common/m4/ac_scorep_uncrustify.m4])
  823 m4_include([build-config/common/m4/ac_scorep_version_and_revision.m4])
  824 m4_include([build-config/common/m4/afs_compiler_backend.m4])
  825 m4_include([build-config/common/m4/afs_maintainer_mode.m4])
  826 m4_include([build-config/common/m4/afs_summary.m4])
  827 m4_include([build-config/common/m4/ax_config_subdir.m4])
  828 m4_include([build-config/m4/ac_cube_another_cube_detection.m4])
  829 m4_include([build-config/m4/ac_cube_libz_selection.m4])
  830 m4_include([build-config/m4/ac_cube_version_revision_vars.m4])
  831 m4_include([build-config/m4/cube_corporate_sty.m4])