11cb0ef41Sopenharmony_ci# generated automatically by aclocal 1.16.5 -*- Autoconf -*- 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ci# Copyright (C) 1996-2021 Free Software Foundation, Inc. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 61cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 71cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci# This program is distributed in the hope that it will be useful, 101cb0ef41Sopenharmony_ci# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 111cb0ef41Sopenharmony_ci# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 121cb0ef41Sopenharmony_ci# PARTICULAR PURPOSE. 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_cim4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 151cb0ef41Sopenharmony_cim4_ifndef([AC_AUTOCONF_VERSION], 161cb0ef41Sopenharmony_ci [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 171cb0ef41Sopenharmony_cim4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 181cb0ef41Sopenharmony_ci[m4_warning([this file was generated for autoconf 2.71. 191cb0ef41Sopenharmony_ciYou have another version of autoconf. It may work, but is not guaranteed to. 201cb0ef41Sopenharmony_ciIf you have problems, you may need to regenerate the build system entirely. 211cb0ef41Sopenharmony_ciTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci# Copyright (C) 2002-2021 Free Software Foundation, Inc. 241cb0ef41Sopenharmony_ci# 251cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 261cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 271cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 281cb0ef41Sopenharmony_ci 291cb0ef41Sopenharmony_ci# AM_AUTOMAKE_VERSION(VERSION) 301cb0ef41Sopenharmony_ci# ---------------------------- 311cb0ef41Sopenharmony_ci# Automake X.Y traces this macro to ensure aclocal.m4 has been 321cb0ef41Sopenharmony_ci# generated from the m4 files accompanying Automake X.Y. 331cb0ef41Sopenharmony_ci# (This private macro should not be called outside this file.) 341cb0ef41Sopenharmony_ciAC_DEFUN([AM_AUTOMAKE_VERSION], 351cb0ef41Sopenharmony_ci[am__api_version='1.16' 361cb0ef41Sopenharmony_cidnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 371cb0ef41Sopenharmony_cidnl require some minimum version. Point them to the right macro. 381cb0ef41Sopenharmony_cim4_if([$1], [1.16.5], [], 391cb0ef41Sopenharmony_ci [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 401cb0ef41Sopenharmony_ci]) 411cb0ef41Sopenharmony_ci 421cb0ef41Sopenharmony_ci# _AM_AUTOCONF_VERSION(VERSION) 431cb0ef41Sopenharmony_ci# ----------------------------- 441cb0ef41Sopenharmony_ci# aclocal traces this macro to find the Autoconf version. 451cb0ef41Sopenharmony_ci# This is a private macro too. Using m4_define simplifies 461cb0ef41Sopenharmony_ci# the logic in aclocal, which can simply ignore this definition. 471cb0ef41Sopenharmony_cim4_define([_AM_AUTOCONF_VERSION], []) 481cb0ef41Sopenharmony_ci 491cb0ef41Sopenharmony_ci# AM_SET_CURRENT_AUTOMAKE_VERSION 501cb0ef41Sopenharmony_ci# ------------------------------- 511cb0ef41Sopenharmony_ci# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 521cb0ef41Sopenharmony_ci# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 531cb0ef41Sopenharmony_ciAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 541cb0ef41Sopenharmony_ci[AM_AUTOMAKE_VERSION([1.16.5])dnl 551cb0ef41Sopenharmony_cim4_ifndef([AC_AUTOCONF_VERSION], 561cb0ef41Sopenharmony_ci [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 571cb0ef41Sopenharmony_ci_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 581cb0ef41Sopenharmony_ci 591cb0ef41Sopenharmony_ci# AM_AUX_DIR_EXPAND -*- Autoconf -*- 601cb0ef41Sopenharmony_ci 611cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 621cb0ef41Sopenharmony_ci# 631cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 641cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 651cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 661cb0ef41Sopenharmony_ci 671cb0ef41Sopenharmony_ci# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 681cb0ef41Sopenharmony_ci# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 691cb0ef41Sopenharmony_ci# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 701cb0ef41Sopenharmony_ci# 711cb0ef41Sopenharmony_ci# Of course, Automake must honor this variable whenever it calls a 721cb0ef41Sopenharmony_ci# tool from the auxiliary directory. The problem is that $srcdir (and 731cb0ef41Sopenharmony_ci# therefore $ac_aux_dir as well) can be either absolute or relative, 741cb0ef41Sopenharmony_ci# depending on how configure is run. This is pretty annoying, since 751cb0ef41Sopenharmony_ci# it makes $ac_aux_dir quite unusable in subdirectories: in the top 761cb0ef41Sopenharmony_ci# source directory, any form will work fine, but in subdirectories a 771cb0ef41Sopenharmony_ci# relative path needs to be adjusted first. 781cb0ef41Sopenharmony_ci# 791cb0ef41Sopenharmony_ci# $ac_aux_dir/missing 801cb0ef41Sopenharmony_ci# fails when called from a subdirectory if $ac_aux_dir is relative 811cb0ef41Sopenharmony_ci# $top_srcdir/$ac_aux_dir/missing 821cb0ef41Sopenharmony_ci# fails if $ac_aux_dir is absolute, 831cb0ef41Sopenharmony_ci# fails when called from a subdirectory in a VPATH build with 841cb0ef41Sopenharmony_ci# a relative $ac_aux_dir 851cb0ef41Sopenharmony_ci# 861cb0ef41Sopenharmony_ci# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 871cb0ef41Sopenharmony_ci# are both prefixed by $srcdir. In an in-source build this is usually 881cb0ef41Sopenharmony_ci# harmless because $srcdir is '.', but things will broke when you 891cb0ef41Sopenharmony_ci# start a VPATH build or use an absolute $srcdir. 901cb0ef41Sopenharmony_ci# 911cb0ef41Sopenharmony_ci# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 921cb0ef41Sopenharmony_ci# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 931cb0ef41Sopenharmony_ci# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 941cb0ef41Sopenharmony_ci# and then we would define $MISSING as 951cb0ef41Sopenharmony_ci# MISSING="\${SHELL} $am_aux_dir/missing" 961cb0ef41Sopenharmony_ci# This will work as long as MISSING is not called from configure, because 971cb0ef41Sopenharmony_ci# unfortunately $(top_srcdir) has no meaning in configure. 981cb0ef41Sopenharmony_ci# However there are other variables, like CC, which are often used in 991cb0ef41Sopenharmony_ci# configure, and could therefore not use this "fixed" $ac_aux_dir. 1001cb0ef41Sopenharmony_ci# 1011cb0ef41Sopenharmony_ci# Another solution, used here, is to always expand $ac_aux_dir to an 1021cb0ef41Sopenharmony_ci# absolute PATH. The drawback is that using absolute paths prevent a 1031cb0ef41Sopenharmony_ci# configured tree to be moved without reconfiguration. 1041cb0ef41Sopenharmony_ci 1051cb0ef41Sopenharmony_ciAC_DEFUN([AM_AUX_DIR_EXPAND], 1061cb0ef41Sopenharmony_ci[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 1071cb0ef41Sopenharmony_ci# Expand $ac_aux_dir to an absolute path. 1081cb0ef41Sopenharmony_ciam_aux_dir=`cd "$ac_aux_dir" && pwd` 1091cb0ef41Sopenharmony_ci]) 1101cb0ef41Sopenharmony_ci 1111cb0ef41Sopenharmony_ci# AM_COND_IF -*- Autoconf -*- 1121cb0ef41Sopenharmony_ci 1131cb0ef41Sopenharmony_ci# Copyright (C) 2008-2021 Free Software Foundation, Inc. 1141cb0ef41Sopenharmony_ci# 1151cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 1161cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 1171cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 1181cb0ef41Sopenharmony_ci 1191cb0ef41Sopenharmony_ci# _AM_COND_IF 1201cb0ef41Sopenharmony_ci# _AM_COND_ELSE 1211cb0ef41Sopenharmony_ci# _AM_COND_ENDIF 1221cb0ef41Sopenharmony_ci# -------------- 1231cb0ef41Sopenharmony_ci# These macros are only used for tracing. 1241cb0ef41Sopenharmony_cim4_define([_AM_COND_IF]) 1251cb0ef41Sopenharmony_cim4_define([_AM_COND_ELSE]) 1261cb0ef41Sopenharmony_cim4_define([_AM_COND_ENDIF]) 1271cb0ef41Sopenharmony_ci 1281cb0ef41Sopenharmony_ci# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE]) 1291cb0ef41Sopenharmony_ci# --------------------------------------- 1301cb0ef41Sopenharmony_ci# If the shell condition COND is true, execute IF-TRUE, otherwise execute 1311cb0ef41Sopenharmony_ci# IF-FALSE. Allow automake to learn about conditional instantiating macros 1321cb0ef41Sopenharmony_ci# (the AC_CONFIG_FOOS). 1331cb0ef41Sopenharmony_ciAC_DEFUN([AM_COND_IF], 1341cb0ef41Sopenharmony_ci[m4_ifndef([_AM_COND_VALUE_$1], 1351cb0ef41Sopenharmony_ci [m4_fatal([$0: no such condition "$1"])])dnl 1361cb0ef41Sopenharmony_ci_AM_COND_IF([$1])dnl 1371cb0ef41Sopenharmony_ciif test -z "$$1_TRUE"; then : 1381cb0ef41Sopenharmony_ci m4_n([$2])[]dnl 1391cb0ef41Sopenharmony_cim4_ifval([$3], 1401cb0ef41Sopenharmony_ci[_AM_COND_ELSE([$1])dnl 1411cb0ef41Sopenharmony_cielse 1421cb0ef41Sopenharmony_ci $3 1431cb0ef41Sopenharmony_ci])dnl 1441cb0ef41Sopenharmony_ci_AM_COND_ENDIF([$1])dnl 1451cb0ef41Sopenharmony_cifi[]dnl 1461cb0ef41Sopenharmony_ci]) 1471cb0ef41Sopenharmony_ci 1481cb0ef41Sopenharmony_ci# AM_CONDITIONAL -*- Autoconf -*- 1491cb0ef41Sopenharmony_ci 1501cb0ef41Sopenharmony_ci# Copyright (C) 1997-2021 Free Software Foundation, Inc. 1511cb0ef41Sopenharmony_ci# 1521cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 1531cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 1541cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 1551cb0ef41Sopenharmony_ci 1561cb0ef41Sopenharmony_ci# AM_CONDITIONAL(NAME, SHELL-CONDITION) 1571cb0ef41Sopenharmony_ci# ------------------------------------- 1581cb0ef41Sopenharmony_ci# Define a conditional. 1591cb0ef41Sopenharmony_ciAC_DEFUN([AM_CONDITIONAL], 1601cb0ef41Sopenharmony_ci[AC_PREREQ([2.52])dnl 1611cb0ef41Sopenharmony_ci m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 1621cb0ef41Sopenharmony_ci [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 1631cb0ef41Sopenharmony_ciAC_SUBST([$1_TRUE])dnl 1641cb0ef41Sopenharmony_ciAC_SUBST([$1_FALSE])dnl 1651cb0ef41Sopenharmony_ci_AM_SUBST_NOTMAKE([$1_TRUE])dnl 1661cb0ef41Sopenharmony_ci_AM_SUBST_NOTMAKE([$1_FALSE])dnl 1671cb0ef41Sopenharmony_cim4_define([_AM_COND_VALUE_$1], [$2])dnl 1681cb0ef41Sopenharmony_ciif $2; then 1691cb0ef41Sopenharmony_ci $1_TRUE= 1701cb0ef41Sopenharmony_ci $1_FALSE='#' 1711cb0ef41Sopenharmony_cielse 1721cb0ef41Sopenharmony_ci $1_TRUE='#' 1731cb0ef41Sopenharmony_ci $1_FALSE= 1741cb0ef41Sopenharmony_cifi 1751cb0ef41Sopenharmony_ciAC_CONFIG_COMMANDS_PRE( 1761cb0ef41Sopenharmony_ci[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 1771cb0ef41Sopenharmony_ci AC_MSG_ERROR([[conditional "$1" was never defined. 1781cb0ef41Sopenharmony_ciUsually this means the macro was only invoked conditionally.]]) 1791cb0ef41Sopenharmony_cifi])]) 1801cb0ef41Sopenharmony_ci 1811cb0ef41Sopenharmony_ci# Copyright (C) 1999-2021 Free Software Foundation, Inc. 1821cb0ef41Sopenharmony_ci# 1831cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 1841cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 1851cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 1861cb0ef41Sopenharmony_ci 1871cb0ef41Sopenharmony_ci 1881cb0ef41Sopenharmony_ci# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 1891cb0ef41Sopenharmony_ci# written in clear, in which case automake, when reading aclocal.m4, 1901cb0ef41Sopenharmony_ci# will think it sees a *use*, and therefore will trigger all it's 1911cb0ef41Sopenharmony_ci# C support machinery. Also note that it means that autoscan, seeing 1921cb0ef41Sopenharmony_ci# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 1931cb0ef41Sopenharmony_ci 1941cb0ef41Sopenharmony_ci 1951cb0ef41Sopenharmony_ci# _AM_DEPENDENCIES(NAME) 1961cb0ef41Sopenharmony_ci# ---------------------- 1971cb0ef41Sopenharmony_ci# See how the compiler implements dependency checking. 1981cb0ef41Sopenharmony_ci# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 1991cb0ef41Sopenharmony_ci# We try a few techniques and use that to set a single cache variable. 2001cb0ef41Sopenharmony_ci# 2011cb0ef41Sopenharmony_ci# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 2021cb0ef41Sopenharmony_ci# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 2031cb0ef41Sopenharmony_ci# dependency, and given that the user is not expected to run this macro, 2041cb0ef41Sopenharmony_ci# just rely on AC_PROG_CC. 2051cb0ef41Sopenharmony_ciAC_DEFUN([_AM_DEPENDENCIES], 2061cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_SET_DEPDIR])dnl 2071cb0ef41Sopenharmony_ciAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 2081cb0ef41Sopenharmony_ciAC_REQUIRE([AM_MAKE_INCLUDE])dnl 2091cb0ef41Sopenharmony_ciAC_REQUIRE([AM_DEP_TRACK])dnl 2101cb0ef41Sopenharmony_ci 2111cb0ef41Sopenharmony_cim4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 2121cb0ef41Sopenharmony_ci [$1], [CXX], [depcc="$CXX" am_compiler_list=], 2131cb0ef41Sopenharmony_ci [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 2141cb0ef41Sopenharmony_ci [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 2151cb0ef41Sopenharmony_ci [$1], [UPC], [depcc="$UPC" am_compiler_list=], 2161cb0ef41Sopenharmony_ci [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 2171cb0ef41Sopenharmony_ci [depcc="$$1" am_compiler_list=]) 2181cb0ef41Sopenharmony_ci 2191cb0ef41Sopenharmony_ciAC_CACHE_CHECK([dependency style of $depcc], 2201cb0ef41Sopenharmony_ci [am_cv_$1_dependencies_compiler_type], 2211cb0ef41Sopenharmony_ci[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2221cb0ef41Sopenharmony_ci # We make a subdir and do the tests there. Otherwise we can end up 2231cb0ef41Sopenharmony_ci # making bogus files that we don't know about and never remove. For 2241cb0ef41Sopenharmony_ci # instance it was reported that on HP-UX the gcc test will end up 2251cb0ef41Sopenharmony_ci # making a dummy file named 'D' -- because '-MD' means "put the output 2261cb0ef41Sopenharmony_ci # in D". 2271cb0ef41Sopenharmony_ci rm -rf conftest.dir 2281cb0ef41Sopenharmony_ci mkdir conftest.dir 2291cb0ef41Sopenharmony_ci # Copy depcomp to subdir because otherwise we won't find it if we're 2301cb0ef41Sopenharmony_ci # using a relative directory. 2311cb0ef41Sopenharmony_ci cp "$am_depcomp" conftest.dir 2321cb0ef41Sopenharmony_ci cd conftest.dir 2331cb0ef41Sopenharmony_ci # We will build objects and dependencies in a subdirectory because 2341cb0ef41Sopenharmony_ci # it helps to detect inapplicable dependency modes. For instance 2351cb0ef41Sopenharmony_ci # both Tru64's cc and ICC support -MD to output dependencies as a 2361cb0ef41Sopenharmony_ci # side effect of compilation, but ICC will put the dependencies in 2371cb0ef41Sopenharmony_ci # the current directory while Tru64 will put them in the object 2381cb0ef41Sopenharmony_ci # directory. 2391cb0ef41Sopenharmony_ci mkdir sub 2401cb0ef41Sopenharmony_ci 2411cb0ef41Sopenharmony_ci am_cv_$1_dependencies_compiler_type=none 2421cb0ef41Sopenharmony_ci if test "$am_compiler_list" = ""; then 2431cb0ef41Sopenharmony_ci am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 2441cb0ef41Sopenharmony_ci fi 2451cb0ef41Sopenharmony_ci am__universal=false 2461cb0ef41Sopenharmony_ci m4_case([$1], [CC], 2471cb0ef41Sopenharmony_ci [case " $depcc " in #( 2481cb0ef41Sopenharmony_ci *\ -arch\ *\ -arch\ *) am__universal=true ;; 2491cb0ef41Sopenharmony_ci esac], 2501cb0ef41Sopenharmony_ci [CXX], 2511cb0ef41Sopenharmony_ci [case " $depcc " in #( 2521cb0ef41Sopenharmony_ci *\ -arch\ *\ -arch\ *) am__universal=true ;; 2531cb0ef41Sopenharmony_ci esac]) 2541cb0ef41Sopenharmony_ci 2551cb0ef41Sopenharmony_ci for depmode in $am_compiler_list; do 2561cb0ef41Sopenharmony_ci # Setup a source with many dependencies, because some compilers 2571cb0ef41Sopenharmony_ci # like to wrap large dependency lists on column 80 (with \), and 2581cb0ef41Sopenharmony_ci # we should not choose a depcomp mode which is confused by this. 2591cb0ef41Sopenharmony_ci # 2601cb0ef41Sopenharmony_ci # We need to recreate these files for each test, as the compiler may 2611cb0ef41Sopenharmony_ci # overwrite some of them when testing with obscure command lines. 2621cb0ef41Sopenharmony_ci # This happens at least with the AIX C compiler. 2631cb0ef41Sopenharmony_ci : > sub/conftest.c 2641cb0ef41Sopenharmony_ci for i in 1 2 3 4 5 6; do 2651cb0ef41Sopenharmony_ci echo '#include "conftst'$i'.h"' >> sub/conftest.c 2661cb0ef41Sopenharmony_ci # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 2671cb0ef41Sopenharmony_ci # Solaris 10 /bin/sh. 2681cb0ef41Sopenharmony_ci echo '/* dummy */' > sub/conftst$i.h 2691cb0ef41Sopenharmony_ci done 2701cb0ef41Sopenharmony_ci echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2711cb0ef41Sopenharmony_ci 2721cb0ef41Sopenharmony_ci # We check with '-c' and '-o' for the sake of the "dashmstdout" 2731cb0ef41Sopenharmony_ci # mode. It turns out that the SunPro C++ compiler does not properly 2741cb0ef41Sopenharmony_ci # handle '-M -o', and we need to detect this. Also, some Intel 2751cb0ef41Sopenharmony_ci # versions had trouble with output in subdirs. 2761cb0ef41Sopenharmony_ci am__obj=sub/conftest.${OBJEXT-o} 2771cb0ef41Sopenharmony_ci am__minus_obj="-o $am__obj" 2781cb0ef41Sopenharmony_ci case $depmode in 2791cb0ef41Sopenharmony_ci gcc) 2801cb0ef41Sopenharmony_ci # This depmode causes a compiler race in universal mode. 2811cb0ef41Sopenharmony_ci test "$am__universal" = false || continue 2821cb0ef41Sopenharmony_ci ;; 2831cb0ef41Sopenharmony_ci nosideeffect) 2841cb0ef41Sopenharmony_ci # After this tag, mechanisms are not by side-effect, so they'll 2851cb0ef41Sopenharmony_ci # only be used when explicitly requested. 2861cb0ef41Sopenharmony_ci if test "x$enable_dependency_tracking" = xyes; then 2871cb0ef41Sopenharmony_ci continue 2881cb0ef41Sopenharmony_ci else 2891cb0ef41Sopenharmony_ci break 2901cb0ef41Sopenharmony_ci fi 2911cb0ef41Sopenharmony_ci ;; 2921cb0ef41Sopenharmony_ci msvc7 | msvc7msys | msvisualcpp | msvcmsys) 2931cb0ef41Sopenharmony_ci # This compiler won't grok '-c -o', but also, the minuso test has 2941cb0ef41Sopenharmony_ci # not run yet. These depmodes are late enough in the game, and 2951cb0ef41Sopenharmony_ci # so weak that their functioning should not be impacted. 2961cb0ef41Sopenharmony_ci am__obj=conftest.${OBJEXT-o} 2971cb0ef41Sopenharmony_ci am__minus_obj= 2981cb0ef41Sopenharmony_ci ;; 2991cb0ef41Sopenharmony_ci none) break ;; 3001cb0ef41Sopenharmony_ci esac 3011cb0ef41Sopenharmony_ci if depmode=$depmode \ 3021cb0ef41Sopenharmony_ci source=sub/conftest.c object=$am__obj \ 3031cb0ef41Sopenharmony_ci depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3041cb0ef41Sopenharmony_ci $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3051cb0ef41Sopenharmony_ci >/dev/null 2>conftest.err && 3061cb0ef41Sopenharmony_ci grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3071cb0ef41Sopenharmony_ci grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3081cb0ef41Sopenharmony_ci grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3091cb0ef41Sopenharmony_ci ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3101cb0ef41Sopenharmony_ci # icc doesn't choke on unknown options, it will just issue warnings 3111cb0ef41Sopenharmony_ci # or remarks (even with -Werror). So we grep stderr for any message 3121cb0ef41Sopenharmony_ci # that says an option was ignored or not supported. 3131cb0ef41Sopenharmony_ci # When given -MP, icc 7.0 and 7.1 complain thusly: 3141cb0ef41Sopenharmony_ci # icc: Command line warning: ignoring option '-M'; no argument required 3151cb0ef41Sopenharmony_ci # The diagnosis changed in icc 8.0: 3161cb0ef41Sopenharmony_ci # icc: Command line remark: option '-MP' not supported 3171cb0ef41Sopenharmony_ci if (grep 'ignoring option' conftest.err || 3181cb0ef41Sopenharmony_ci grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3191cb0ef41Sopenharmony_ci am_cv_$1_dependencies_compiler_type=$depmode 3201cb0ef41Sopenharmony_ci break 3211cb0ef41Sopenharmony_ci fi 3221cb0ef41Sopenharmony_ci fi 3231cb0ef41Sopenharmony_ci done 3241cb0ef41Sopenharmony_ci 3251cb0ef41Sopenharmony_ci cd .. 3261cb0ef41Sopenharmony_ci rm -rf conftest.dir 3271cb0ef41Sopenharmony_cielse 3281cb0ef41Sopenharmony_ci am_cv_$1_dependencies_compiler_type=none 3291cb0ef41Sopenharmony_cifi 3301cb0ef41Sopenharmony_ci]) 3311cb0ef41Sopenharmony_ciAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 3321cb0ef41Sopenharmony_ciAM_CONDITIONAL([am__fastdep$1], [ 3331cb0ef41Sopenharmony_ci test "x$enable_dependency_tracking" != xno \ 3341cb0ef41Sopenharmony_ci && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 3351cb0ef41Sopenharmony_ci]) 3361cb0ef41Sopenharmony_ci 3371cb0ef41Sopenharmony_ci 3381cb0ef41Sopenharmony_ci# AM_SET_DEPDIR 3391cb0ef41Sopenharmony_ci# ------------- 3401cb0ef41Sopenharmony_ci# Choose a directory name for dependency files. 3411cb0ef41Sopenharmony_ci# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 3421cb0ef41Sopenharmony_ciAC_DEFUN([AM_SET_DEPDIR], 3431cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 3441cb0ef41Sopenharmony_ciAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 3451cb0ef41Sopenharmony_ci]) 3461cb0ef41Sopenharmony_ci 3471cb0ef41Sopenharmony_ci 3481cb0ef41Sopenharmony_ci# AM_DEP_TRACK 3491cb0ef41Sopenharmony_ci# ------------ 3501cb0ef41Sopenharmony_ciAC_DEFUN([AM_DEP_TRACK], 3511cb0ef41Sopenharmony_ci[AC_ARG_ENABLE([dependency-tracking], [dnl 3521cb0ef41Sopenharmony_ciAS_HELP_STRING( 3531cb0ef41Sopenharmony_ci [--enable-dependency-tracking], 3541cb0ef41Sopenharmony_ci [do not reject slow dependency extractors]) 3551cb0ef41Sopenharmony_ciAS_HELP_STRING( 3561cb0ef41Sopenharmony_ci [--disable-dependency-tracking], 3571cb0ef41Sopenharmony_ci [speeds up one-time build])]) 3581cb0ef41Sopenharmony_ciif test "x$enable_dependency_tracking" != xno; then 3591cb0ef41Sopenharmony_ci am_depcomp="$ac_aux_dir/depcomp" 3601cb0ef41Sopenharmony_ci AMDEPBACKSLASH='\' 3611cb0ef41Sopenharmony_ci am__nodep='_no' 3621cb0ef41Sopenharmony_cifi 3631cb0ef41Sopenharmony_ciAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 3641cb0ef41Sopenharmony_ciAC_SUBST([AMDEPBACKSLASH])dnl 3651cb0ef41Sopenharmony_ci_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 3661cb0ef41Sopenharmony_ciAC_SUBST([am__nodep])dnl 3671cb0ef41Sopenharmony_ci_AM_SUBST_NOTMAKE([am__nodep])dnl 3681cb0ef41Sopenharmony_ci]) 3691cb0ef41Sopenharmony_ci 3701cb0ef41Sopenharmony_ci# Generate code to set up dependency tracking. -*- Autoconf -*- 3711cb0ef41Sopenharmony_ci 3721cb0ef41Sopenharmony_ci# Copyright (C) 1999-2021 Free Software Foundation, Inc. 3731cb0ef41Sopenharmony_ci# 3741cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 3751cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 3761cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 3771cb0ef41Sopenharmony_ci 3781cb0ef41Sopenharmony_ci# _AM_OUTPUT_DEPENDENCY_COMMANDS 3791cb0ef41Sopenharmony_ci# ------------------------------ 3801cb0ef41Sopenharmony_ciAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 3811cb0ef41Sopenharmony_ci[{ 3821cb0ef41Sopenharmony_ci # Older Autoconf quotes --file arguments for eval, but not when files 3831cb0ef41Sopenharmony_ci # are listed without --file. Let's play safe and only enable the eval 3841cb0ef41Sopenharmony_ci # if we detect the quoting. 3851cb0ef41Sopenharmony_ci # TODO: see whether this extra hack can be removed once we start 3861cb0ef41Sopenharmony_ci # requiring Autoconf 2.70 or later. 3871cb0ef41Sopenharmony_ci AS_CASE([$CONFIG_FILES], 3881cb0ef41Sopenharmony_ci [*\'*], [eval set x "$CONFIG_FILES"], 3891cb0ef41Sopenharmony_ci [*], [set x $CONFIG_FILES]) 3901cb0ef41Sopenharmony_ci shift 3911cb0ef41Sopenharmony_ci # Used to flag and report bootstrapping failures. 3921cb0ef41Sopenharmony_ci am_rc=0 3931cb0ef41Sopenharmony_ci for am_mf 3941cb0ef41Sopenharmony_ci do 3951cb0ef41Sopenharmony_ci # Strip MF so we end up with the name of the file. 3961cb0ef41Sopenharmony_ci am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 3971cb0ef41Sopenharmony_ci # Check whether this is an Automake generated Makefile which includes 3981cb0ef41Sopenharmony_ci # dependency-tracking related rules and includes. 3991cb0ef41Sopenharmony_ci # Grep'ing the whole file directly is not great: AIX grep has a line 4001cb0ef41Sopenharmony_ci # limit of 2048, but all sed's we know have understand at least 4000. 4011cb0ef41Sopenharmony_ci sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 4021cb0ef41Sopenharmony_ci || continue 4031cb0ef41Sopenharmony_ci am_dirpart=`AS_DIRNAME(["$am_mf"])` 4041cb0ef41Sopenharmony_ci am_filepart=`AS_BASENAME(["$am_mf"])` 4051cb0ef41Sopenharmony_ci AM_RUN_LOG([cd "$am_dirpart" \ 4061cb0ef41Sopenharmony_ci && sed -e '/# am--include-marker/d' "$am_filepart" \ 4071cb0ef41Sopenharmony_ci | $MAKE -f - am--depfiles]) || am_rc=$? 4081cb0ef41Sopenharmony_ci done 4091cb0ef41Sopenharmony_ci if test $am_rc -ne 0; then 4101cb0ef41Sopenharmony_ci AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 4111cb0ef41Sopenharmony_ci for automatic dependency tracking. If GNU make was not used, consider 4121cb0ef41Sopenharmony_ci re-running the configure script with MAKE="gmake" (or whatever is 4131cb0ef41Sopenharmony_ci necessary). You can also try re-running configure with the 4141cb0ef41Sopenharmony_ci '--disable-dependency-tracking' option to at least be able to build 4151cb0ef41Sopenharmony_ci the package (albeit without support for automatic dependency tracking).]) 4161cb0ef41Sopenharmony_ci fi 4171cb0ef41Sopenharmony_ci AS_UNSET([am_dirpart]) 4181cb0ef41Sopenharmony_ci AS_UNSET([am_filepart]) 4191cb0ef41Sopenharmony_ci AS_UNSET([am_mf]) 4201cb0ef41Sopenharmony_ci AS_UNSET([am_rc]) 4211cb0ef41Sopenharmony_ci rm -f conftest-deps.mk 4221cb0ef41Sopenharmony_ci} 4231cb0ef41Sopenharmony_ci])# _AM_OUTPUT_DEPENDENCY_COMMANDS 4241cb0ef41Sopenharmony_ci 4251cb0ef41Sopenharmony_ci 4261cb0ef41Sopenharmony_ci# AM_OUTPUT_DEPENDENCY_COMMANDS 4271cb0ef41Sopenharmony_ci# ----------------------------- 4281cb0ef41Sopenharmony_ci# This macro should only be invoked once -- use via AC_REQUIRE. 4291cb0ef41Sopenharmony_ci# 4301cb0ef41Sopenharmony_ci# This code is only required when automatic dependency tracking is enabled. 4311cb0ef41Sopenharmony_ci# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 4321cb0ef41Sopenharmony_ci# order to bootstrap the dependency handling code. 4331cb0ef41Sopenharmony_ciAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 4341cb0ef41Sopenharmony_ci[AC_CONFIG_COMMANDS([depfiles], 4351cb0ef41Sopenharmony_ci [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 4361cb0ef41Sopenharmony_ci [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 4371cb0ef41Sopenharmony_ci 4381cb0ef41Sopenharmony_ci# Do all the work for Automake. -*- Autoconf -*- 4391cb0ef41Sopenharmony_ci 4401cb0ef41Sopenharmony_ci# Copyright (C) 1996-2021 Free Software Foundation, Inc. 4411cb0ef41Sopenharmony_ci# 4421cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 4431cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 4441cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 4451cb0ef41Sopenharmony_ci 4461cb0ef41Sopenharmony_ci# This macro actually does too much. Some checks are only needed if 4471cb0ef41Sopenharmony_ci# your package does certain things. But this isn't really a big deal. 4481cb0ef41Sopenharmony_ci 4491cb0ef41Sopenharmony_cidnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 4501cb0ef41Sopenharmony_cim4_define([AC_PROG_CC], 4511cb0ef41Sopenharmony_cim4_defn([AC_PROG_CC]) 4521cb0ef41Sopenharmony_ci[_AM_PROG_CC_C_O 4531cb0ef41Sopenharmony_ci]) 4541cb0ef41Sopenharmony_ci 4551cb0ef41Sopenharmony_ci# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 4561cb0ef41Sopenharmony_ci# AM_INIT_AUTOMAKE([OPTIONS]) 4571cb0ef41Sopenharmony_ci# ----------------------------------------------- 4581cb0ef41Sopenharmony_ci# The call with PACKAGE and VERSION arguments is the old style 4591cb0ef41Sopenharmony_ci# call (pre autoconf-2.50), which is being phased out. PACKAGE 4601cb0ef41Sopenharmony_ci# and VERSION should now be passed to AC_INIT and removed from 4611cb0ef41Sopenharmony_ci# the call to AM_INIT_AUTOMAKE. 4621cb0ef41Sopenharmony_ci# We support both call styles for the transition. After 4631cb0ef41Sopenharmony_ci# the next Automake release, Autoconf can make the AC_INIT 4641cb0ef41Sopenharmony_ci# arguments mandatory, and then we can depend on a new Autoconf 4651cb0ef41Sopenharmony_ci# release and drop the old call support. 4661cb0ef41Sopenharmony_ciAC_DEFUN([AM_INIT_AUTOMAKE], 4671cb0ef41Sopenharmony_ci[AC_PREREQ([2.65])dnl 4681cb0ef41Sopenharmony_cim4_ifdef([_$0_ALREADY_INIT], 4691cb0ef41Sopenharmony_ci [m4_fatal([$0 expanded multiple times 4701cb0ef41Sopenharmony_ci]m4_defn([_$0_ALREADY_INIT]))], 4711cb0ef41Sopenharmony_ci [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 4721cb0ef41Sopenharmony_cidnl Autoconf wants to disallow AM_ names. We explicitly allow 4731cb0ef41Sopenharmony_cidnl the ones we care about. 4741cb0ef41Sopenharmony_cim4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 4751cb0ef41Sopenharmony_ciAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 4761cb0ef41Sopenharmony_ciAC_REQUIRE([AC_PROG_INSTALL])dnl 4771cb0ef41Sopenharmony_ciif test "`cd $srcdir && pwd`" != "`pwd`"; then 4781cb0ef41Sopenharmony_ci # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4791cb0ef41Sopenharmony_ci # is not polluted with repeated "-I." 4801cb0ef41Sopenharmony_ci AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 4811cb0ef41Sopenharmony_ci # test to see if srcdir already configured 4821cb0ef41Sopenharmony_ci if test -f $srcdir/config.status; then 4831cb0ef41Sopenharmony_ci AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 4841cb0ef41Sopenharmony_ci fi 4851cb0ef41Sopenharmony_cifi 4861cb0ef41Sopenharmony_ci 4871cb0ef41Sopenharmony_ci# test whether we have cygpath 4881cb0ef41Sopenharmony_ciif test -z "$CYGPATH_W"; then 4891cb0ef41Sopenharmony_ci if (cygpath --version) >/dev/null 2>/dev/null; then 4901cb0ef41Sopenharmony_ci CYGPATH_W='cygpath -w' 4911cb0ef41Sopenharmony_ci else 4921cb0ef41Sopenharmony_ci CYGPATH_W=echo 4931cb0ef41Sopenharmony_ci fi 4941cb0ef41Sopenharmony_cifi 4951cb0ef41Sopenharmony_ciAC_SUBST([CYGPATH_W]) 4961cb0ef41Sopenharmony_ci 4971cb0ef41Sopenharmony_ci# Define the identity of the package. 4981cb0ef41Sopenharmony_cidnl Distinguish between old-style and new-style calls. 4991cb0ef41Sopenharmony_cim4_ifval([$2], 5001cb0ef41Sopenharmony_ci[AC_DIAGNOSE([obsolete], 5011cb0ef41Sopenharmony_ci [$0: two- and three-arguments forms are deprecated.]) 5021cb0ef41Sopenharmony_cim4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 5031cb0ef41Sopenharmony_ci AC_SUBST([PACKAGE], [$1])dnl 5041cb0ef41Sopenharmony_ci AC_SUBST([VERSION], [$2])], 5051cb0ef41Sopenharmony_ci[_AM_SET_OPTIONS([$1])dnl 5061cb0ef41Sopenharmony_cidnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 5071cb0ef41Sopenharmony_cim4_if( 5081cb0ef41Sopenharmony_ci m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 5091cb0ef41Sopenharmony_ci [ok:ok],, 5101cb0ef41Sopenharmony_ci [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 5111cb0ef41Sopenharmony_ci AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 5121cb0ef41Sopenharmony_ci AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 5131cb0ef41Sopenharmony_ci 5141cb0ef41Sopenharmony_ci_AM_IF_OPTION([no-define],, 5151cb0ef41Sopenharmony_ci[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 5161cb0ef41Sopenharmony_ci AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 5171cb0ef41Sopenharmony_ci 5181cb0ef41Sopenharmony_ci# Some tools Automake needs. 5191cb0ef41Sopenharmony_ciAC_REQUIRE([AM_SANITY_CHECK])dnl 5201cb0ef41Sopenharmony_ciAC_REQUIRE([AC_ARG_PROGRAM])dnl 5211cb0ef41Sopenharmony_ciAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 5221cb0ef41Sopenharmony_ciAM_MISSING_PROG([AUTOCONF], [autoconf]) 5231cb0ef41Sopenharmony_ciAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 5241cb0ef41Sopenharmony_ciAM_MISSING_PROG([AUTOHEADER], [autoheader]) 5251cb0ef41Sopenharmony_ciAM_MISSING_PROG([MAKEINFO], [makeinfo]) 5261cb0ef41Sopenharmony_ciAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 5271cb0ef41Sopenharmony_ciAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 5281cb0ef41Sopenharmony_ciAC_REQUIRE([AC_PROG_MKDIR_P])dnl 5291cb0ef41Sopenharmony_ci# For better backward compatibility. To be removed once Automake 1.9.x 5301cb0ef41Sopenharmony_ci# dies out for good. For more background, see: 5311cb0ef41Sopenharmony_ci# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5321cb0ef41Sopenharmony_ci# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5331cb0ef41Sopenharmony_ciAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 5341cb0ef41Sopenharmony_ci# We need awk for the "check" target (and possibly the TAP driver). The 5351cb0ef41Sopenharmony_ci# system "awk" is bad on some platforms. 5361cb0ef41Sopenharmony_ciAC_REQUIRE([AC_PROG_AWK])dnl 5371cb0ef41Sopenharmony_ciAC_REQUIRE([AC_PROG_MAKE_SET])dnl 5381cb0ef41Sopenharmony_ciAC_REQUIRE([AM_SET_LEADING_DOT])dnl 5391cb0ef41Sopenharmony_ci_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 5401cb0ef41Sopenharmony_ci [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 5411cb0ef41Sopenharmony_ci [_AM_PROG_TAR([v7])])]) 5421cb0ef41Sopenharmony_ci_AM_IF_OPTION([no-dependencies],, 5431cb0ef41Sopenharmony_ci[AC_PROVIDE_IFELSE([AC_PROG_CC], 5441cb0ef41Sopenharmony_ci [_AM_DEPENDENCIES([CC])], 5451cb0ef41Sopenharmony_ci [m4_define([AC_PROG_CC], 5461cb0ef41Sopenharmony_ci m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 5471cb0ef41Sopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_CXX], 5481cb0ef41Sopenharmony_ci [_AM_DEPENDENCIES([CXX])], 5491cb0ef41Sopenharmony_ci [m4_define([AC_PROG_CXX], 5501cb0ef41Sopenharmony_ci m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 5511cb0ef41Sopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_OBJC], 5521cb0ef41Sopenharmony_ci [_AM_DEPENDENCIES([OBJC])], 5531cb0ef41Sopenharmony_ci [m4_define([AC_PROG_OBJC], 5541cb0ef41Sopenharmony_ci m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 5551cb0ef41Sopenharmony_ciAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 5561cb0ef41Sopenharmony_ci [_AM_DEPENDENCIES([OBJCXX])], 5571cb0ef41Sopenharmony_ci [m4_define([AC_PROG_OBJCXX], 5581cb0ef41Sopenharmony_ci m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 5591cb0ef41Sopenharmony_ci]) 5601cb0ef41Sopenharmony_ci# Variables for tags utilities; see am/tags.am 5611cb0ef41Sopenharmony_ciif test -z "$CTAGS"; then 5621cb0ef41Sopenharmony_ci CTAGS=ctags 5631cb0ef41Sopenharmony_cifi 5641cb0ef41Sopenharmony_ciAC_SUBST([CTAGS]) 5651cb0ef41Sopenharmony_ciif test -z "$ETAGS"; then 5661cb0ef41Sopenharmony_ci ETAGS=etags 5671cb0ef41Sopenharmony_cifi 5681cb0ef41Sopenharmony_ciAC_SUBST([ETAGS]) 5691cb0ef41Sopenharmony_ciif test -z "$CSCOPE"; then 5701cb0ef41Sopenharmony_ci CSCOPE=cscope 5711cb0ef41Sopenharmony_cifi 5721cb0ef41Sopenharmony_ciAC_SUBST([CSCOPE]) 5731cb0ef41Sopenharmony_ci 5741cb0ef41Sopenharmony_ciAC_REQUIRE([AM_SILENT_RULES])dnl 5751cb0ef41Sopenharmony_cidnl The testsuite driver may need to know about EXEEXT, so add the 5761cb0ef41Sopenharmony_cidnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 5771cb0ef41Sopenharmony_cidnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 5781cb0ef41Sopenharmony_ciAC_CONFIG_COMMANDS_PRE(dnl 5791cb0ef41Sopenharmony_ci[m4_provide_if([_AM_COMPILER_EXEEXT], 5801cb0ef41Sopenharmony_ci [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 5811cb0ef41Sopenharmony_ci 5821cb0ef41Sopenharmony_ci# POSIX will say in a future version that running "rm -f" with no argument 5831cb0ef41Sopenharmony_ci# is OK; and we want to be able to make that assumption in our Makefile 5841cb0ef41Sopenharmony_ci# recipes. So use an aggressive probe to check that the usage we want is 5851cb0ef41Sopenharmony_ci# actually supported "in the wild" to an acceptable degree. 5861cb0ef41Sopenharmony_ci# See automake bug#10828. 5871cb0ef41Sopenharmony_ci# To make any issue more visible, cause the running configure to be aborted 5881cb0ef41Sopenharmony_ci# by default if the 'rm' program in use doesn't match our expectations; the 5891cb0ef41Sopenharmony_ci# user can still override this though. 5901cb0ef41Sopenharmony_ciif rm -f && rm -fr && rm -rf; then : OK; else 5911cb0ef41Sopenharmony_ci cat >&2 <<'END' 5921cb0ef41Sopenharmony_ciOops! 5931cb0ef41Sopenharmony_ci 5941cb0ef41Sopenharmony_ciYour 'rm' program seems unable to run without file operands specified 5951cb0ef41Sopenharmony_cion the command line, even when the '-f' option is present. This is contrary 5961cb0ef41Sopenharmony_cito the behaviour of most rm programs out there, and not conforming with 5971cb0ef41Sopenharmony_cithe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5981cb0ef41Sopenharmony_ci 5991cb0ef41Sopenharmony_ciPlease tell bug-automake@gnu.org about your system, including the value 6001cb0ef41Sopenharmony_ciof your $PATH and any error possibly output before this message. This 6011cb0ef41Sopenharmony_cican help us improve future automake versions. 6021cb0ef41Sopenharmony_ci 6031cb0ef41Sopenharmony_ciEND 6041cb0ef41Sopenharmony_ci if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6051cb0ef41Sopenharmony_ci echo 'Configuration will proceed anyway, since you have set the' >&2 6061cb0ef41Sopenharmony_ci echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6071cb0ef41Sopenharmony_ci echo >&2 6081cb0ef41Sopenharmony_ci else 6091cb0ef41Sopenharmony_ci cat >&2 <<'END' 6101cb0ef41Sopenharmony_ciAborting the configuration process, to ensure you take notice of the issue. 6111cb0ef41Sopenharmony_ci 6121cb0ef41Sopenharmony_ciYou can download and install GNU coreutils to get an 'rm' implementation 6131cb0ef41Sopenharmony_cithat behaves properly: <https://www.gnu.org/software/coreutils/>. 6141cb0ef41Sopenharmony_ci 6151cb0ef41Sopenharmony_ciIf you want to complete the configuration process using your problematic 6161cb0ef41Sopenharmony_ci'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6171cb0ef41Sopenharmony_cito "yes", and re-run configure. 6181cb0ef41Sopenharmony_ci 6191cb0ef41Sopenharmony_ciEND 6201cb0ef41Sopenharmony_ci AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 6211cb0ef41Sopenharmony_ci fi 6221cb0ef41Sopenharmony_cifi 6231cb0ef41Sopenharmony_cidnl The trailing newline in this macro's definition is deliberate, for 6241cb0ef41Sopenharmony_cidnl backward compatibility and to allow trailing 'dnl'-style comments 6251cb0ef41Sopenharmony_cidnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 6261cb0ef41Sopenharmony_ci]) 6271cb0ef41Sopenharmony_ci 6281cb0ef41Sopenharmony_cidnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 6291cb0ef41Sopenharmony_cidnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 6301cb0ef41Sopenharmony_cidnl mangled by Autoconf and run in a shell conditional statement. 6311cb0ef41Sopenharmony_cim4_define([_AC_COMPILER_EXEEXT], 6321cb0ef41Sopenharmony_cim4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 6331cb0ef41Sopenharmony_ci 6341cb0ef41Sopenharmony_ci# When config.status generates a header, we must update the stamp-h file. 6351cb0ef41Sopenharmony_ci# This file resides in the same directory as the config header 6361cb0ef41Sopenharmony_ci# that is generated. The stamp files are numbered to have different names. 6371cb0ef41Sopenharmony_ci 6381cb0ef41Sopenharmony_ci# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 6391cb0ef41Sopenharmony_ci# loop where config.status creates the headers, so we can generate 6401cb0ef41Sopenharmony_ci# our stamp files there. 6411cb0ef41Sopenharmony_ciAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 6421cb0ef41Sopenharmony_ci[# Compute $1's index in $config_headers. 6431cb0ef41Sopenharmony_ci_am_arg=$1 6441cb0ef41Sopenharmony_ci_am_stamp_count=1 6451cb0ef41Sopenharmony_cifor _am_header in $config_headers :; do 6461cb0ef41Sopenharmony_ci case $_am_header in 6471cb0ef41Sopenharmony_ci $_am_arg | $_am_arg:* ) 6481cb0ef41Sopenharmony_ci break ;; 6491cb0ef41Sopenharmony_ci * ) 6501cb0ef41Sopenharmony_ci _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6511cb0ef41Sopenharmony_ci esac 6521cb0ef41Sopenharmony_cidone 6531cb0ef41Sopenharmony_ciecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 6541cb0ef41Sopenharmony_ci 6551cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 6561cb0ef41Sopenharmony_ci# 6571cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 6581cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 6591cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 6601cb0ef41Sopenharmony_ci 6611cb0ef41Sopenharmony_ci# AM_PROG_INSTALL_SH 6621cb0ef41Sopenharmony_ci# ------------------ 6631cb0ef41Sopenharmony_ci# Define $install_sh. 6641cb0ef41Sopenharmony_ciAC_DEFUN([AM_PROG_INSTALL_SH], 6651cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6661cb0ef41Sopenharmony_ciif test x"${install_sh+set}" != xset; then 6671cb0ef41Sopenharmony_ci case $am_aux_dir in 6681cb0ef41Sopenharmony_ci *\ * | *\ *) 6691cb0ef41Sopenharmony_ci install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 6701cb0ef41Sopenharmony_ci *) 6711cb0ef41Sopenharmony_ci install_sh="\${SHELL} $am_aux_dir/install-sh" 6721cb0ef41Sopenharmony_ci esac 6731cb0ef41Sopenharmony_cifi 6741cb0ef41Sopenharmony_ciAC_SUBST([install_sh])]) 6751cb0ef41Sopenharmony_ci 6761cb0ef41Sopenharmony_ci# Copyright (C) 2003-2021 Free Software Foundation, Inc. 6771cb0ef41Sopenharmony_ci# 6781cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 6791cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 6801cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 6811cb0ef41Sopenharmony_ci 6821cb0ef41Sopenharmony_ci# Check whether the underlying file-system supports filenames 6831cb0ef41Sopenharmony_ci# with a leading dot. For instance MS-DOS doesn't. 6841cb0ef41Sopenharmony_ciAC_DEFUN([AM_SET_LEADING_DOT], 6851cb0ef41Sopenharmony_ci[rm -rf .tst 2>/dev/null 6861cb0ef41Sopenharmony_cimkdir .tst 2>/dev/null 6871cb0ef41Sopenharmony_ciif test -d .tst; then 6881cb0ef41Sopenharmony_ci am__leading_dot=. 6891cb0ef41Sopenharmony_cielse 6901cb0ef41Sopenharmony_ci am__leading_dot=_ 6911cb0ef41Sopenharmony_cifi 6921cb0ef41Sopenharmony_cirmdir .tst 2>/dev/null 6931cb0ef41Sopenharmony_ciAC_SUBST([am__leading_dot])]) 6941cb0ef41Sopenharmony_ci 6951cb0ef41Sopenharmony_ci# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 6961cb0ef41Sopenharmony_ci# From Jim Meyering 6971cb0ef41Sopenharmony_ci 6981cb0ef41Sopenharmony_ci# Copyright (C) 1996-2021 Free Software Foundation, Inc. 6991cb0ef41Sopenharmony_ci# 7001cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 7011cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 7021cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 7031cb0ef41Sopenharmony_ci 7041cb0ef41Sopenharmony_ci# AM_MAINTAINER_MODE([DEFAULT-MODE]) 7051cb0ef41Sopenharmony_ci# ---------------------------------- 7061cb0ef41Sopenharmony_ci# Control maintainer-specific portions of Makefiles. 7071cb0ef41Sopenharmony_ci# Default is to disable them, unless 'enable' is passed literally. 7081cb0ef41Sopenharmony_ci# For symmetry, 'disable' may be passed as well. Anyway, the user 7091cb0ef41Sopenharmony_ci# can override the default with the --enable/--disable switch. 7101cb0ef41Sopenharmony_ciAC_DEFUN([AM_MAINTAINER_MODE], 7111cb0ef41Sopenharmony_ci[m4_case(m4_default([$1], [disable]), 7121cb0ef41Sopenharmony_ci [enable], [m4_define([am_maintainer_other], [disable])], 7131cb0ef41Sopenharmony_ci [disable], [m4_define([am_maintainer_other], [enable])], 7141cb0ef41Sopenharmony_ci [m4_define([am_maintainer_other], [enable]) 7151cb0ef41Sopenharmony_ci m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 7161cb0ef41Sopenharmony_ciAC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 7171cb0ef41Sopenharmony_ci dnl maintainer-mode's default is 'disable' unless 'enable' is passed 7181cb0ef41Sopenharmony_ci AC_ARG_ENABLE([maintainer-mode], 7191cb0ef41Sopenharmony_ci [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 7201cb0ef41Sopenharmony_ci am_maintainer_other[ make rules and dependencies not useful 7211cb0ef41Sopenharmony_ci (and sometimes confusing) to the casual installer])], 7221cb0ef41Sopenharmony_ci [USE_MAINTAINER_MODE=$enableval], 7231cb0ef41Sopenharmony_ci [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 7241cb0ef41Sopenharmony_ci AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 7251cb0ef41Sopenharmony_ci AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 7261cb0ef41Sopenharmony_ci MAINT=$MAINTAINER_MODE_TRUE 7271cb0ef41Sopenharmony_ci AC_SUBST([MAINT])dnl 7281cb0ef41Sopenharmony_ci] 7291cb0ef41Sopenharmony_ci) 7301cb0ef41Sopenharmony_ci 7311cb0ef41Sopenharmony_ci# Check to see how 'make' treats includes. -*- Autoconf -*- 7321cb0ef41Sopenharmony_ci 7331cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 7341cb0ef41Sopenharmony_ci# 7351cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 7361cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 7371cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 7381cb0ef41Sopenharmony_ci 7391cb0ef41Sopenharmony_ci# AM_MAKE_INCLUDE() 7401cb0ef41Sopenharmony_ci# ----------------- 7411cb0ef41Sopenharmony_ci# Check whether make has an 'include' directive that can support all 7421cb0ef41Sopenharmony_ci# the idioms we need for our automatic dependency tracking code. 7431cb0ef41Sopenharmony_ciAC_DEFUN([AM_MAKE_INCLUDE], 7441cb0ef41Sopenharmony_ci[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 7451cb0ef41Sopenharmony_cicat > confinc.mk << 'END' 7461cb0ef41Sopenharmony_ciam__doit: 7471cb0ef41Sopenharmony_ci @echo this is the am__doit target >confinc.out 7481cb0ef41Sopenharmony_ci.PHONY: am__doit 7491cb0ef41Sopenharmony_ciEND 7501cb0ef41Sopenharmony_ciam__include="#" 7511cb0ef41Sopenharmony_ciam__quote= 7521cb0ef41Sopenharmony_ci# BSD make does it like this. 7531cb0ef41Sopenharmony_ciecho '.include "confinc.mk" # ignored' > confmf.BSD 7541cb0ef41Sopenharmony_ci# Other make implementations (GNU, Solaris 10, AIX) do it like this. 7551cb0ef41Sopenharmony_ciecho 'include confinc.mk # ignored' > confmf.GNU 7561cb0ef41Sopenharmony_ci_am_result=no 7571cb0ef41Sopenharmony_cifor s in GNU BSD; do 7581cb0ef41Sopenharmony_ci AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 7591cb0ef41Sopenharmony_ci AS_CASE([$?:`cat confinc.out 2>/dev/null`], 7601cb0ef41Sopenharmony_ci ['0:this is the am__doit target'], 7611cb0ef41Sopenharmony_ci [AS_CASE([$s], 7621cb0ef41Sopenharmony_ci [BSD], [am__include='.include' am__quote='"'], 7631cb0ef41Sopenharmony_ci [am__include='include' am__quote=''])]) 7641cb0ef41Sopenharmony_ci if test "$am__include" != "#"; then 7651cb0ef41Sopenharmony_ci _am_result="yes ($s style)" 7661cb0ef41Sopenharmony_ci break 7671cb0ef41Sopenharmony_ci fi 7681cb0ef41Sopenharmony_cidone 7691cb0ef41Sopenharmony_cirm -f confinc.* confmf.* 7701cb0ef41Sopenharmony_ciAC_MSG_RESULT([${_am_result}]) 7711cb0ef41Sopenharmony_ciAC_SUBST([am__include])]) 7721cb0ef41Sopenharmony_ciAC_SUBST([am__quote])]) 7731cb0ef41Sopenharmony_ci 7741cb0ef41Sopenharmony_ci# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 7751cb0ef41Sopenharmony_ci 7761cb0ef41Sopenharmony_ci# Copyright (C) 1997-2021 Free Software Foundation, Inc. 7771cb0ef41Sopenharmony_ci# 7781cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 7791cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 7801cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 7811cb0ef41Sopenharmony_ci 7821cb0ef41Sopenharmony_ci# AM_MISSING_PROG(NAME, PROGRAM) 7831cb0ef41Sopenharmony_ci# ------------------------------ 7841cb0ef41Sopenharmony_ciAC_DEFUN([AM_MISSING_PROG], 7851cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_MISSING_HAS_RUN]) 7861cb0ef41Sopenharmony_ci$1=${$1-"${am_missing_run}$2"} 7871cb0ef41Sopenharmony_ciAC_SUBST($1)]) 7881cb0ef41Sopenharmony_ci 7891cb0ef41Sopenharmony_ci# AM_MISSING_HAS_RUN 7901cb0ef41Sopenharmony_ci# ------------------ 7911cb0ef41Sopenharmony_ci# Define MISSING if not defined so far and test if it is modern enough. 7921cb0ef41Sopenharmony_ci# If it is, set am_missing_run to use it, otherwise, to nothing. 7931cb0ef41Sopenharmony_ciAC_DEFUN([AM_MISSING_HAS_RUN], 7941cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7951cb0ef41Sopenharmony_ciAC_REQUIRE_AUX_FILE([missing])dnl 7961cb0ef41Sopenharmony_ciif test x"${MISSING+set}" != xset; then 7971cb0ef41Sopenharmony_ci MISSING="\${SHELL} '$am_aux_dir/missing'" 7981cb0ef41Sopenharmony_cifi 7991cb0ef41Sopenharmony_ci# Use eval to expand $SHELL 8001cb0ef41Sopenharmony_ciif eval "$MISSING --is-lightweight"; then 8011cb0ef41Sopenharmony_ci am_missing_run="$MISSING " 8021cb0ef41Sopenharmony_cielse 8031cb0ef41Sopenharmony_ci am_missing_run= 8041cb0ef41Sopenharmony_ci AC_MSG_WARN(['missing' script is too old or missing]) 8051cb0ef41Sopenharmony_cifi 8061cb0ef41Sopenharmony_ci]) 8071cb0ef41Sopenharmony_ci 8081cb0ef41Sopenharmony_ci# Helper functions for option handling. -*- Autoconf -*- 8091cb0ef41Sopenharmony_ci 8101cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 8111cb0ef41Sopenharmony_ci# 8121cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 8131cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 8141cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 8151cb0ef41Sopenharmony_ci 8161cb0ef41Sopenharmony_ci# _AM_MANGLE_OPTION(NAME) 8171cb0ef41Sopenharmony_ci# ----------------------- 8181cb0ef41Sopenharmony_ciAC_DEFUN([_AM_MANGLE_OPTION], 8191cb0ef41Sopenharmony_ci[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 8201cb0ef41Sopenharmony_ci 8211cb0ef41Sopenharmony_ci# _AM_SET_OPTION(NAME) 8221cb0ef41Sopenharmony_ci# -------------------- 8231cb0ef41Sopenharmony_ci# Set option NAME. Presently that only means defining a flag for this option. 8241cb0ef41Sopenharmony_ciAC_DEFUN([_AM_SET_OPTION], 8251cb0ef41Sopenharmony_ci[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 8261cb0ef41Sopenharmony_ci 8271cb0ef41Sopenharmony_ci# _AM_SET_OPTIONS(OPTIONS) 8281cb0ef41Sopenharmony_ci# ------------------------ 8291cb0ef41Sopenharmony_ci# OPTIONS is a space-separated list of Automake options. 8301cb0ef41Sopenharmony_ciAC_DEFUN([_AM_SET_OPTIONS], 8311cb0ef41Sopenharmony_ci[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 8321cb0ef41Sopenharmony_ci 8331cb0ef41Sopenharmony_ci# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 8341cb0ef41Sopenharmony_ci# ------------------------------------------- 8351cb0ef41Sopenharmony_ci# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8361cb0ef41Sopenharmony_ciAC_DEFUN([_AM_IF_OPTION], 8371cb0ef41Sopenharmony_ci[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 8381cb0ef41Sopenharmony_ci 8391cb0ef41Sopenharmony_ci# Copyright (C) 1999-2021 Free Software Foundation, Inc. 8401cb0ef41Sopenharmony_ci# 8411cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 8421cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 8431cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 8441cb0ef41Sopenharmony_ci 8451cb0ef41Sopenharmony_ci# _AM_PROG_CC_C_O 8461cb0ef41Sopenharmony_ci# --------------- 8471cb0ef41Sopenharmony_ci# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 8481cb0ef41Sopenharmony_ci# to automatically call this. 8491cb0ef41Sopenharmony_ciAC_DEFUN([_AM_PROG_CC_C_O], 8501cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 8511cb0ef41Sopenharmony_ciAC_REQUIRE_AUX_FILE([compile])dnl 8521cb0ef41Sopenharmony_ciAC_LANG_PUSH([C])dnl 8531cb0ef41Sopenharmony_ciAC_CACHE_CHECK( 8541cb0ef41Sopenharmony_ci [whether $CC understands -c and -o together], 8551cb0ef41Sopenharmony_ci [am_cv_prog_cc_c_o], 8561cb0ef41Sopenharmony_ci [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 8571cb0ef41Sopenharmony_ci # Make sure it works both with $CC and with simple cc. 8581cb0ef41Sopenharmony_ci # Following AC_PROG_CC_C_O, we do the test twice because some 8591cb0ef41Sopenharmony_ci # compilers refuse to overwrite an existing .o file with -o, 8601cb0ef41Sopenharmony_ci # though they will create one. 8611cb0ef41Sopenharmony_ci am_cv_prog_cc_c_o=yes 8621cb0ef41Sopenharmony_ci for am_i in 1 2; do 8631cb0ef41Sopenharmony_ci if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 8641cb0ef41Sopenharmony_ci && test -f conftest2.$ac_objext; then 8651cb0ef41Sopenharmony_ci : OK 8661cb0ef41Sopenharmony_ci else 8671cb0ef41Sopenharmony_ci am_cv_prog_cc_c_o=no 8681cb0ef41Sopenharmony_ci break 8691cb0ef41Sopenharmony_ci fi 8701cb0ef41Sopenharmony_ci done 8711cb0ef41Sopenharmony_ci rm -f core conftest* 8721cb0ef41Sopenharmony_ci unset am_i]) 8731cb0ef41Sopenharmony_ciif test "$am_cv_prog_cc_c_o" != yes; then 8741cb0ef41Sopenharmony_ci # Losing compiler, so override with the script. 8751cb0ef41Sopenharmony_ci # FIXME: It is wrong to rewrite CC. 8761cb0ef41Sopenharmony_ci # But if we don't then we get into trouble of one sort or another. 8771cb0ef41Sopenharmony_ci # A longer-term fix would be to have automake use am__CC in this case, 8781cb0ef41Sopenharmony_ci # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 8791cb0ef41Sopenharmony_ci CC="$am_aux_dir/compile $CC" 8801cb0ef41Sopenharmony_cifi 8811cb0ef41Sopenharmony_ciAC_LANG_POP([C])]) 8821cb0ef41Sopenharmony_ci 8831cb0ef41Sopenharmony_ci# For backward compatibility. 8841cb0ef41Sopenharmony_ciAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 8851cb0ef41Sopenharmony_ci 8861cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 8871cb0ef41Sopenharmony_ci# 8881cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 8891cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 8901cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 8911cb0ef41Sopenharmony_ci 8921cb0ef41Sopenharmony_ci# AM_RUN_LOG(COMMAND) 8931cb0ef41Sopenharmony_ci# ------------------- 8941cb0ef41Sopenharmony_ci# Run COMMAND, save the exit status in ac_status, and log it. 8951cb0ef41Sopenharmony_ci# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 8961cb0ef41Sopenharmony_ciAC_DEFUN([AM_RUN_LOG], 8971cb0ef41Sopenharmony_ci[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 8981cb0ef41Sopenharmony_ci ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 8991cb0ef41Sopenharmony_ci ac_status=$? 9001cb0ef41Sopenharmony_ci echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 9011cb0ef41Sopenharmony_ci (exit $ac_status); }]) 9021cb0ef41Sopenharmony_ci 9031cb0ef41Sopenharmony_ci# Check to make sure that the build environment is sane. -*- Autoconf -*- 9041cb0ef41Sopenharmony_ci 9051cb0ef41Sopenharmony_ci# Copyright (C) 1996-2021 Free Software Foundation, Inc. 9061cb0ef41Sopenharmony_ci# 9071cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 9081cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 9091cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 9101cb0ef41Sopenharmony_ci 9111cb0ef41Sopenharmony_ci# AM_SANITY_CHECK 9121cb0ef41Sopenharmony_ci# --------------- 9131cb0ef41Sopenharmony_ciAC_DEFUN([AM_SANITY_CHECK], 9141cb0ef41Sopenharmony_ci[AC_MSG_CHECKING([whether build environment is sane]) 9151cb0ef41Sopenharmony_ci# Reject unsafe characters in $srcdir or the absolute working directory 9161cb0ef41Sopenharmony_ci# name. Accept space and tab only in the latter. 9171cb0ef41Sopenharmony_ciam_lf=' 9181cb0ef41Sopenharmony_ci' 9191cb0ef41Sopenharmony_cicase `pwd` in 9201cb0ef41Sopenharmony_ci *[[\\\"\#\$\&\'\`$am_lf]]*) 9211cb0ef41Sopenharmony_ci AC_MSG_ERROR([unsafe absolute working directory name]);; 9221cb0ef41Sopenharmony_ciesac 9231cb0ef41Sopenharmony_cicase $srcdir in 9241cb0ef41Sopenharmony_ci *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 9251cb0ef41Sopenharmony_ci AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 9261cb0ef41Sopenharmony_ciesac 9271cb0ef41Sopenharmony_ci 9281cb0ef41Sopenharmony_ci# Do 'set' in a subshell so we don't clobber the current shell's 9291cb0ef41Sopenharmony_ci# arguments. Must try -L first in case configure is actually a 9301cb0ef41Sopenharmony_ci# symlink; some systems play weird games with the mod time of symlinks 9311cb0ef41Sopenharmony_ci# (eg FreeBSD returns the mod time of the symlink's containing 9321cb0ef41Sopenharmony_ci# directory). 9331cb0ef41Sopenharmony_ciif ( 9341cb0ef41Sopenharmony_ci am_has_slept=no 9351cb0ef41Sopenharmony_ci for am_try in 1 2; do 9361cb0ef41Sopenharmony_ci echo "timestamp, slept: $am_has_slept" > conftest.file 9371cb0ef41Sopenharmony_ci set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 9381cb0ef41Sopenharmony_ci if test "$[*]" = "X"; then 9391cb0ef41Sopenharmony_ci # -L didn't work. 9401cb0ef41Sopenharmony_ci set X `ls -t "$srcdir/configure" conftest.file` 9411cb0ef41Sopenharmony_ci fi 9421cb0ef41Sopenharmony_ci if test "$[*]" != "X $srcdir/configure conftest.file" \ 9431cb0ef41Sopenharmony_ci && test "$[*]" != "X conftest.file $srcdir/configure"; then 9441cb0ef41Sopenharmony_ci 9451cb0ef41Sopenharmony_ci # If neither matched, then we have a broken ls. This can happen 9461cb0ef41Sopenharmony_ci # if, for instance, CONFIG_SHELL is bash and it inherits a 9471cb0ef41Sopenharmony_ci # broken ls alias from the environment. This has actually 9481cb0ef41Sopenharmony_ci # happened. Such a system could not be considered "sane". 9491cb0ef41Sopenharmony_ci AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9501cb0ef41Sopenharmony_ci alias in your environment]) 9511cb0ef41Sopenharmony_ci fi 9521cb0ef41Sopenharmony_ci if test "$[2]" = conftest.file || test $am_try -eq 2; then 9531cb0ef41Sopenharmony_ci break 9541cb0ef41Sopenharmony_ci fi 9551cb0ef41Sopenharmony_ci # Just in case. 9561cb0ef41Sopenharmony_ci sleep 1 9571cb0ef41Sopenharmony_ci am_has_slept=yes 9581cb0ef41Sopenharmony_ci done 9591cb0ef41Sopenharmony_ci test "$[2]" = conftest.file 9601cb0ef41Sopenharmony_ci ) 9611cb0ef41Sopenharmony_cithen 9621cb0ef41Sopenharmony_ci # Ok. 9631cb0ef41Sopenharmony_ci : 9641cb0ef41Sopenharmony_cielse 9651cb0ef41Sopenharmony_ci AC_MSG_ERROR([newly created file is older than distributed files! 9661cb0ef41Sopenharmony_ciCheck your system clock]) 9671cb0ef41Sopenharmony_cifi 9681cb0ef41Sopenharmony_ciAC_MSG_RESULT([yes]) 9691cb0ef41Sopenharmony_ci# If we didn't sleep, we still need to ensure time stamps of config.status and 9701cb0ef41Sopenharmony_ci# generated files are strictly newer. 9711cb0ef41Sopenharmony_ciam_sleep_pid= 9721cb0ef41Sopenharmony_ciif grep 'slept: no' conftest.file >/dev/null 2>&1; then 9731cb0ef41Sopenharmony_ci ( sleep 1 ) & 9741cb0ef41Sopenharmony_ci am_sleep_pid=$! 9751cb0ef41Sopenharmony_cifi 9761cb0ef41Sopenharmony_ciAC_CONFIG_COMMANDS_PRE( 9771cb0ef41Sopenharmony_ci [AC_MSG_CHECKING([that generated files are newer than configure]) 9781cb0ef41Sopenharmony_ci if test -n "$am_sleep_pid"; then 9791cb0ef41Sopenharmony_ci # Hide warnings about reused PIDs. 9801cb0ef41Sopenharmony_ci wait $am_sleep_pid 2>/dev/null 9811cb0ef41Sopenharmony_ci fi 9821cb0ef41Sopenharmony_ci AC_MSG_RESULT([done])]) 9831cb0ef41Sopenharmony_cirm -f conftest.file 9841cb0ef41Sopenharmony_ci]) 9851cb0ef41Sopenharmony_ci 9861cb0ef41Sopenharmony_ci# Copyright (C) 2009-2021 Free Software Foundation, Inc. 9871cb0ef41Sopenharmony_ci# 9881cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 9891cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 9901cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 9911cb0ef41Sopenharmony_ci 9921cb0ef41Sopenharmony_ci# AM_SILENT_RULES([DEFAULT]) 9931cb0ef41Sopenharmony_ci# -------------------------- 9941cb0ef41Sopenharmony_ci# Enable less verbose build rules; with the default set to DEFAULT 9951cb0ef41Sopenharmony_ci# ("yes" being less verbose, "no" or empty being verbose). 9961cb0ef41Sopenharmony_ciAC_DEFUN([AM_SILENT_RULES], 9971cb0ef41Sopenharmony_ci[AC_ARG_ENABLE([silent-rules], [dnl 9981cb0ef41Sopenharmony_ciAS_HELP_STRING( 9991cb0ef41Sopenharmony_ci [--enable-silent-rules], 10001cb0ef41Sopenharmony_ci [less verbose build output (undo: "make V=1")]) 10011cb0ef41Sopenharmony_ciAS_HELP_STRING( 10021cb0ef41Sopenharmony_ci [--disable-silent-rules], 10031cb0ef41Sopenharmony_ci [verbose build output (undo: "make V=0")])dnl 10041cb0ef41Sopenharmony_ci]) 10051cb0ef41Sopenharmony_cicase $enable_silent_rules in @%:@ ((( 10061cb0ef41Sopenharmony_ci yes) AM_DEFAULT_VERBOSITY=0;; 10071cb0ef41Sopenharmony_ci no) AM_DEFAULT_VERBOSITY=1;; 10081cb0ef41Sopenharmony_ci *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 10091cb0ef41Sopenharmony_ciesac 10101cb0ef41Sopenharmony_cidnl 10111cb0ef41Sopenharmony_cidnl A few 'make' implementations (e.g., NonStop OS and NextStep) 10121cb0ef41Sopenharmony_cidnl do not support nested variable expansions. 10131cb0ef41Sopenharmony_cidnl See automake bug#9928 and bug#10237. 10141cb0ef41Sopenharmony_ciam_make=${MAKE-make} 10151cb0ef41Sopenharmony_ciAC_CACHE_CHECK([whether $am_make supports nested variables], 10161cb0ef41Sopenharmony_ci [am_cv_make_support_nested_variables], 10171cb0ef41Sopenharmony_ci [if AS_ECHO([['TRUE=$(BAR$(V)) 10181cb0ef41Sopenharmony_ciBAR0=false 10191cb0ef41Sopenharmony_ciBAR1=true 10201cb0ef41Sopenharmony_ciV=1 10211cb0ef41Sopenharmony_ciam__doit: 10221cb0ef41Sopenharmony_ci @$(TRUE) 10231cb0ef41Sopenharmony_ci.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 10241cb0ef41Sopenharmony_ci am_cv_make_support_nested_variables=yes 10251cb0ef41Sopenharmony_cielse 10261cb0ef41Sopenharmony_ci am_cv_make_support_nested_variables=no 10271cb0ef41Sopenharmony_cifi]) 10281cb0ef41Sopenharmony_ciif test $am_cv_make_support_nested_variables = yes; then 10291cb0ef41Sopenharmony_ci dnl Using '$V' instead of '$(V)' breaks IRIX make. 10301cb0ef41Sopenharmony_ci AM_V='$(V)' 10311cb0ef41Sopenharmony_ci AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10321cb0ef41Sopenharmony_cielse 10331cb0ef41Sopenharmony_ci AM_V=$AM_DEFAULT_VERBOSITY 10341cb0ef41Sopenharmony_ci AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10351cb0ef41Sopenharmony_cifi 10361cb0ef41Sopenharmony_ciAC_SUBST([AM_V])dnl 10371cb0ef41Sopenharmony_ciAM_SUBST_NOTMAKE([AM_V])dnl 10381cb0ef41Sopenharmony_ciAC_SUBST([AM_DEFAULT_V])dnl 10391cb0ef41Sopenharmony_ciAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 10401cb0ef41Sopenharmony_ciAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 10411cb0ef41Sopenharmony_ciAM_BACKSLASH='\' 10421cb0ef41Sopenharmony_ciAC_SUBST([AM_BACKSLASH])dnl 10431cb0ef41Sopenharmony_ci_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 10441cb0ef41Sopenharmony_ci]) 10451cb0ef41Sopenharmony_ci 10461cb0ef41Sopenharmony_ci# Copyright (C) 2001-2021 Free Software Foundation, Inc. 10471cb0ef41Sopenharmony_ci# 10481cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 10491cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 10501cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 10511cb0ef41Sopenharmony_ci 10521cb0ef41Sopenharmony_ci# AM_PROG_INSTALL_STRIP 10531cb0ef41Sopenharmony_ci# --------------------- 10541cb0ef41Sopenharmony_ci# One issue with vendor 'install' (even GNU) is that you can't 10551cb0ef41Sopenharmony_ci# specify the program used to strip binaries. This is especially 10561cb0ef41Sopenharmony_ci# annoying in cross-compiling environments, where the build's strip 10571cb0ef41Sopenharmony_ci# is unlikely to handle the host's binaries. 10581cb0ef41Sopenharmony_ci# Fortunately install-sh will honor a STRIPPROG variable, so we 10591cb0ef41Sopenharmony_ci# always use install-sh in "make install-strip", and initialize 10601cb0ef41Sopenharmony_ci# STRIPPROG with the value of the STRIP variable (set by the user). 10611cb0ef41Sopenharmony_ciAC_DEFUN([AM_PROG_INSTALL_STRIP], 10621cb0ef41Sopenharmony_ci[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10631cb0ef41Sopenharmony_ci# Installed binaries are usually stripped using 'strip' when the user 10641cb0ef41Sopenharmony_ci# run "make install-strip". However 'strip' might not be the right 10651cb0ef41Sopenharmony_ci# tool to use in cross-compilation environments, therefore Automake 10661cb0ef41Sopenharmony_ci# will honor the 'STRIP' environment variable to overrule this program. 10671cb0ef41Sopenharmony_cidnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 10681cb0ef41Sopenharmony_ciif test "$cross_compiling" != no; then 10691cb0ef41Sopenharmony_ci AC_CHECK_TOOL([STRIP], [strip], :) 10701cb0ef41Sopenharmony_cifi 10711cb0ef41Sopenharmony_ciINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10721cb0ef41Sopenharmony_ciAC_SUBST([INSTALL_STRIP_PROGRAM])]) 10731cb0ef41Sopenharmony_ci 10741cb0ef41Sopenharmony_ci# Copyright (C) 2006-2021 Free Software Foundation, Inc. 10751cb0ef41Sopenharmony_ci# 10761cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 10771cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 10781cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 10791cb0ef41Sopenharmony_ci 10801cb0ef41Sopenharmony_ci# _AM_SUBST_NOTMAKE(VARIABLE) 10811cb0ef41Sopenharmony_ci# --------------------------- 10821cb0ef41Sopenharmony_ci# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 10831cb0ef41Sopenharmony_ci# This macro is traced by Automake. 10841cb0ef41Sopenharmony_ciAC_DEFUN([_AM_SUBST_NOTMAKE]) 10851cb0ef41Sopenharmony_ci 10861cb0ef41Sopenharmony_ci# AM_SUBST_NOTMAKE(VARIABLE) 10871cb0ef41Sopenharmony_ci# -------------------------- 10881cb0ef41Sopenharmony_ci# Public sister of _AM_SUBST_NOTMAKE. 10891cb0ef41Sopenharmony_ciAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 10901cb0ef41Sopenharmony_ci 10911cb0ef41Sopenharmony_ci# Check how to create a tarball. -*- Autoconf -*- 10921cb0ef41Sopenharmony_ci 10931cb0ef41Sopenharmony_ci# Copyright (C) 2004-2021 Free Software Foundation, Inc. 10941cb0ef41Sopenharmony_ci# 10951cb0ef41Sopenharmony_ci# This file is free software; the Free Software Foundation 10961cb0ef41Sopenharmony_ci# gives unlimited permission to copy and/or distribute it, 10971cb0ef41Sopenharmony_ci# with or without modifications, as long as this notice is preserved. 10981cb0ef41Sopenharmony_ci 10991cb0ef41Sopenharmony_ci# _AM_PROG_TAR(FORMAT) 11001cb0ef41Sopenharmony_ci# -------------------- 11011cb0ef41Sopenharmony_ci# Check how to create a tarball in format FORMAT. 11021cb0ef41Sopenharmony_ci# FORMAT should be one of 'v7', 'ustar', or 'pax'. 11031cb0ef41Sopenharmony_ci# 11041cb0ef41Sopenharmony_ci# Substitute a variable $(am__tar) that is a command 11051cb0ef41Sopenharmony_ci# writing to stdout a FORMAT-tarball containing the directory 11061cb0ef41Sopenharmony_ci# $tardir. 11071cb0ef41Sopenharmony_ci# tardir=directory && $(am__tar) > result.tar 11081cb0ef41Sopenharmony_ci# 11091cb0ef41Sopenharmony_ci# Substitute a variable $(am__untar) that extract such 11101cb0ef41Sopenharmony_ci# a tarball read from stdin. 11111cb0ef41Sopenharmony_ci# $(am__untar) < result.tar 11121cb0ef41Sopenharmony_ci# 11131cb0ef41Sopenharmony_ciAC_DEFUN([_AM_PROG_TAR], 11141cb0ef41Sopenharmony_ci[# Always define AMTAR for backward compatibility. Yes, it's still used 11151cb0ef41Sopenharmony_ci# in the wild :-( We should find a proper way to deprecate it ... 11161cb0ef41Sopenharmony_ciAC_SUBST([AMTAR], ['$${TAR-tar}']) 11171cb0ef41Sopenharmony_ci 11181cb0ef41Sopenharmony_ci# We'll loop over all known methods to create a tar archive until one works. 11191cb0ef41Sopenharmony_ci_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 11201cb0ef41Sopenharmony_ci 11211cb0ef41Sopenharmony_cim4_if([$1], [v7], 11221cb0ef41Sopenharmony_ci [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 11231cb0ef41Sopenharmony_ci 11241cb0ef41Sopenharmony_ci [m4_case([$1], 11251cb0ef41Sopenharmony_ci [ustar], 11261cb0ef41Sopenharmony_ci [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 11271cb0ef41Sopenharmony_ci # There is notably a 21 bits limit for the UID and the GID. In fact, 11281cb0ef41Sopenharmony_ci # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 11291cb0ef41Sopenharmony_ci # and bug#13588). 11301cb0ef41Sopenharmony_ci am_max_uid=2097151 # 2^21 - 1 11311cb0ef41Sopenharmony_ci am_max_gid=$am_max_uid 11321cb0ef41Sopenharmony_ci # The $UID and $GID variables are not portable, so we need to resort 11331cb0ef41Sopenharmony_ci # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 11341cb0ef41Sopenharmony_ci # below are definitely unexpected, so allow the users to see them 11351cb0ef41Sopenharmony_ci # (that is, avoid stderr redirection). 11361cb0ef41Sopenharmony_ci am_uid=`id -u || echo unknown` 11371cb0ef41Sopenharmony_ci am_gid=`id -g || echo unknown` 11381cb0ef41Sopenharmony_ci AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 11391cb0ef41Sopenharmony_ci if test $am_uid -le $am_max_uid; then 11401cb0ef41Sopenharmony_ci AC_MSG_RESULT([yes]) 11411cb0ef41Sopenharmony_ci else 11421cb0ef41Sopenharmony_ci AC_MSG_RESULT([no]) 11431cb0ef41Sopenharmony_ci _am_tools=none 11441cb0ef41Sopenharmony_ci fi 11451cb0ef41Sopenharmony_ci AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 11461cb0ef41Sopenharmony_ci if test $am_gid -le $am_max_gid; then 11471cb0ef41Sopenharmony_ci AC_MSG_RESULT([yes]) 11481cb0ef41Sopenharmony_ci else 11491cb0ef41Sopenharmony_ci AC_MSG_RESULT([no]) 11501cb0ef41Sopenharmony_ci _am_tools=none 11511cb0ef41Sopenharmony_ci fi], 11521cb0ef41Sopenharmony_ci 11531cb0ef41Sopenharmony_ci [pax], 11541cb0ef41Sopenharmony_ci [], 11551cb0ef41Sopenharmony_ci 11561cb0ef41Sopenharmony_ci [m4_fatal([Unknown tar format])]) 11571cb0ef41Sopenharmony_ci 11581cb0ef41Sopenharmony_ci AC_MSG_CHECKING([how to create a $1 tar archive]) 11591cb0ef41Sopenharmony_ci 11601cb0ef41Sopenharmony_ci # Go ahead even if we have the value already cached. We do so because we 11611cb0ef41Sopenharmony_ci # need to set the values for the 'am__tar' and 'am__untar' variables. 11621cb0ef41Sopenharmony_ci _am_tools=${am_cv_prog_tar_$1-$_am_tools} 11631cb0ef41Sopenharmony_ci 11641cb0ef41Sopenharmony_ci for _am_tool in $_am_tools; do 11651cb0ef41Sopenharmony_ci case $_am_tool in 11661cb0ef41Sopenharmony_ci gnutar) 11671cb0ef41Sopenharmony_ci for _am_tar in tar gnutar gtar; do 11681cb0ef41Sopenharmony_ci AM_RUN_LOG([$_am_tar --version]) && break 11691cb0ef41Sopenharmony_ci done 11701cb0ef41Sopenharmony_ci am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 11711cb0ef41Sopenharmony_ci am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 11721cb0ef41Sopenharmony_ci am__untar="$_am_tar -xf -" 11731cb0ef41Sopenharmony_ci ;; 11741cb0ef41Sopenharmony_ci plaintar) 11751cb0ef41Sopenharmony_ci # Must skip GNU tar: if it does not support --format= it doesn't create 11761cb0ef41Sopenharmony_ci # ustar tarball either. 11771cb0ef41Sopenharmony_ci (tar --version) >/dev/null 2>&1 && continue 11781cb0ef41Sopenharmony_ci am__tar='tar chf - "$$tardir"' 11791cb0ef41Sopenharmony_ci am__tar_='tar chf - "$tardir"' 11801cb0ef41Sopenharmony_ci am__untar='tar xf -' 11811cb0ef41Sopenharmony_ci ;; 11821cb0ef41Sopenharmony_ci pax) 11831cb0ef41Sopenharmony_ci am__tar='pax -L -x $1 -w "$$tardir"' 11841cb0ef41Sopenharmony_ci am__tar_='pax -L -x $1 -w "$tardir"' 11851cb0ef41Sopenharmony_ci am__untar='pax -r' 11861cb0ef41Sopenharmony_ci ;; 11871cb0ef41Sopenharmony_ci cpio) 11881cb0ef41Sopenharmony_ci am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11891cb0ef41Sopenharmony_ci am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11901cb0ef41Sopenharmony_ci am__untar='cpio -i -H $1 -d' 11911cb0ef41Sopenharmony_ci ;; 11921cb0ef41Sopenharmony_ci none) 11931cb0ef41Sopenharmony_ci am__tar=false 11941cb0ef41Sopenharmony_ci am__tar_=false 11951cb0ef41Sopenharmony_ci am__untar=false 11961cb0ef41Sopenharmony_ci ;; 11971cb0ef41Sopenharmony_ci esac 11981cb0ef41Sopenharmony_ci 11991cb0ef41Sopenharmony_ci # If the value was cached, stop now. We just wanted to have am__tar 12001cb0ef41Sopenharmony_ci # and am__untar set. 12011cb0ef41Sopenharmony_ci test -n "${am_cv_prog_tar_$1}" && break 12021cb0ef41Sopenharmony_ci 12031cb0ef41Sopenharmony_ci # tar/untar a dummy directory, and stop if the command works. 12041cb0ef41Sopenharmony_ci rm -rf conftest.dir 12051cb0ef41Sopenharmony_ci mkdir conftest.dir 12061cb0ef41Sopenharmony_ci echo GrepMe > conftest.dir/file 12071cb0ef41Sopenharmony_ci AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 12081cb0ef41Sopenharmony_ci rm -rf conftest.dir 12091cb0ef41Sopenharmony_ci if test -s conftest.tar; then 12101cb0ef41Sopenharmony_ci AM_RUN_LOG([$am__untar <conftest.tar]) 12111cb0ef41Sopenharmony_ci AM_RUN_LOG([cat conftest.dir/file]) 12121cb0ef41Sopenharmony_ci grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 12131cb0ef41Sopenharmony_ci fi 12141cb0ef41Sopenharmony_ci done 12151cb0ef41Sopenharmony_ci rm -rf conftest.dir 12161cb0ef41Sopenharmony_ci 12171cb0ef41Sopenharmony_ci AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 12181cb0ef41Sopenharmony_ci AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 12191cb0ef41Sopenharmony_ci 12201cb0ef41Sopenharmony_ciAC_SUBST([am__tar]) 12211cb0ef41Sopenharmony_ciAC_SUBST([am__untar]) 12221cb0ef41Sopenharmony_ci]) # _AM_PROG_TAR 12231cb0ef41Sopenharmony_ci 12241cb0ef41Sopenharmony_cim4_include([m4/ax_ac_append_to_file.m4]) 12251cb0ef41Sopenharmony_cim4_include([m4/ax_ac_print_to_file.m4]) 12261cb0ef41Sopenharmony_cim4_include([m4/ax_add_am_macro_static.m4]) 12271cb0ef41Sopenharmony_cim4_include([m4/ax_am_macros_static.m4]) 12281cb0ef41Sopenharmony_cim4_include([m4/ax_append_compile_flags.m4]) 12291cb0ef41Sopenharmony_cim4_include([m4/ax_append_flag.m4]) 12301cb0ef41Sopenharmony_cim4_include([m4/ax_append_link_flags.m4]) 12311cb0ef41Sopenharmony_cim4_include([m4/ax_check_compile_flag.m4]) 12321cb0ef41Sopenharmony_cim4_include([m4/ax_check_gnu_make.m4]) 12331cb0ef41Sopenharmony_cim4_include([m4/ax_check_link_flag.m4]) 12341cb0ef41Sopenharmony_cim4_include([m4/ax_check_user_namespace.m4]) 12351cb0ef41Sopenharmony_cim4_include([m4/ax_check_uts_namespace.m4]) 12361cb0ef41Sopenharmony_cim4_include([m4/ax_code_coverage.m4]) 12371cb0ef41Sopenharmony_cim4_include([m4/ax_compiler_vendor.m4]) 12381cb0ef41Sopenharmony_cim4_include([m4/ax_cxx_compile_stdcxx.m4]) 12391cb0ef41Sopenharmony_cim4_include([m4/ax_cxx_compile_stdcxx_14.m4]) 12401cb0ef41Sopenharmony_cim4_include([m4/ax_file_escapes.m4]) 12411cb0ef41Sopenharmony_cim4_include([m4/ax_pthread.m4]) 12421cb0ef41Sopenharmony_cim4_include([m4/ax_require_defined.m4]) 12431cb0ef41Sopenharmony_cim4_include([m4/libtool.m4]) 12441cb0ef41Sopenharmony_cim4_include([m4/ltoptions.m4]) 12451cb0ef41Sopenharmony_cim4_include([m4/ltsugar.m4]) 12461cb0ef41Sopenharmony_cim4_include([m4/ltversion.m4]) 12471cb0ef41Sopenharmony_cim4_include([m4/lt~obsolete.m4]) 12481cb0ef41Sopenharmony_cim4_include([m4/pkg.m4]) 1249