Annotation of embedaddon/libnet/aclocal.m4, revision 1.1.1.3
1.1.1.3 ! misho 1: # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1.1 misho 2:
1.1.1.3 ! misho 3: # Copyright (C) 1996-2018 Free Software Foundation, Inc.
1.1.1.2 misho 4:
1.1.1.3 ! misho 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.
1.1 misho 8:
1.1.1.3 ! misho 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.
1.1 misho 13:
1.1.1.3 ! misho 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'.])])
1.1 misho 22:
1.1.1.3 ! misho 23: # Copyright (C) 2002-2018 Free Software Foundation, Inc.
1.1.1.2 misho 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.
1.1 misho 28:
1.1.1.2 misho 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],
1.1.1.3 ! misho 35: [am__api_version='1.16'
1.1.1.2 misho 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.
1.1.1.3 ! misho 38: m4_if([$1], [1.16.1], [],
1.1.1.2 misho 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],
1.1.1.3 ! misho 54: [AM_AUTOMAKE_VERSION([1.16.1])dnl
1.1.1.2 misho 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:
1.1.1.3 ! misho 61: # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1.1.1.2 misho 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.
1.1 misho 66:
67: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.1.1.3 ! misho 68: # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
! 69: # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
1.1 misho 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
1.1.1.3 ! misho 88: # harmless because $srcdir is '.', but things will broke when you
1.1 misho 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:
1.1.1.2 misho 105: AC_DEFUN([AM_AUX_DIR_EXPAND],
1.1.1.3 ! misho 106: [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
! 107: # Expand $ac_aux_dir to an absolute path.
! 108: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.1 misho 109: ])
110:
1.1.1.2 misho 111: # AM_CONDITIONAL -*- Autoconf -*-
1.1 misho 112:
1.1.1.3 ! misho 113: # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1.1.1.2 misho 114: #
115: # This file is free software; the Free Software Foundation
116: # gives unlimited permission to copy and/or distribute it,
117: # with or without modifications, as long as this notice is preserved.
1.1 misho 118:
1.1.1.2 misho 119: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
120: # -------------------------------------
121: # Define a conditional.
122: AC_DEFUN([AM_CONDITIONAL],
1.1.1.3 ! misho 123: [AC_PREREQ([2.52])dnl
! 124: m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
! 125: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.1.1.2 misho 126: AC_SUBST([$1_TRUE])dnl
127: AC_SUBST([$1_FALSE])dnl
128: _AM_SUBST_NOTMAKE([$1_TRUE])dnl
129: _AM_SUBST_NOTMAKE([$1_FALSE])dnl
130: m4_define([_AM_COND_VALUE_$1], [$2])dnl
131: if $2; then
132: $1_TRUE=
133: $1_FALSE='#'
134: else
135: $1_TRUE='#'
136: $1_FALSE=
1.1 misho 137: fi
1.1.1.2 misho 138: AC_CONFIG_COMMANDS_PRE(
139: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
140: AC_MSG_ERROR([[conditional "$1" was never defined.
141: Usually this means the macro was only invoked conditionally.]])
142: fi])])
1.1 misho 143:
1.1.1.2 misho 144: # Do all the work for Automake. -*- Autoconf -*-
145:
1.1.1.3 ! misho 146: # Copyright (C) 1996-2018 Free Software Foundation, Inc.
1.1.1.2 misho 147: #
148: # This file is free software; the Free Software Foundation
149: # gives unlimited permission to copy and/or distribute it,
150: # with or without modifications, as long as this notice is preserved.
151:
152: # This macro actually does too much. Some checks are only needed if
153: # your package does certain things. But this isn't really a big deal.
154:
1.1.1.3 ! misho 155: dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
! 156: m4_define([AC_PROG_CC],
! 157: m4_defn([AC_PROG_CC])
! 158: [_AM_PROG_CC_C_O
! 159: ])
! 160:
1.1.1.2 misho 161: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
162: # AM_INIT_AUTOMAKE([OPTIONS])
163: # -----------------------------------------------
164: # The call with PACKAGE and VERSION arguments is the old style
165: # call (pre autoconf-2.50), which is being phased out. PACKAGE
166: # and VERSION should now be passed to AC_INIT and removed from
167: # the call to AM_INIT_AUTOMAKE.
168: # We support both call styles for the transition. After
169: # the next Automake release, Autoconf can make the AC_INIT
170: # arguments mandatory, and then we can depend on a new Autoconf
171: # release and drop the old call support.
172: AC_DEFUN([AM_INIT_AUTOMAKE],
1.1.1.3 ! misho 173: [AC_PREREQ([2.65])dnl
1.1.1.2 misho 174: dnl Autoconf wants to disallow AM_ names. We explicitly allow
175: dnl the ones we care about.
176: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
177: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
178: AC_REQUIRE([AC_PROG_INSTALL])dnl
179: if test "`cd $srcdir && pwd`" != "`pwd`"; then
180: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
181: # is not polluted with repeated "-I."
182: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
183: # test to see if srcdir already configured
184: if test -f $srcdir/config.status; then
185: AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
186: fi
187: fi
188:
189: # test whether we have cygpath
190: if test -z "$CYGPATH_W"; then
191: if (cygpath --version) >/dev/null 2>/dev/null; then
192: CYGPATH_W='cygpath -w'
193: else
194: CYGPATH_W=echo
195: fi
196: fi
197: AC_SUBST([CYGPATH_W])
198:
199: # Define the identity of the package.
200: dnl Distinguish between old-style and new-style calls.
201: m4_ifval([$2],
1.1.1.3 ! misho 202: [AC_DIAGNOSE([obsolete],
! 203: [$0: two- and three-arguments forms are deprecated.])
! 204: m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.1.1.2 misho 205: AC_SUBST([PACKAGE], [$1])dnl
206: AC_SUBST([VERSION], [$2])],
207: [_AM_SET_OPTIONS([$1])dnl
208: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1.1.1.3 ! misho 209: m4_if(
! 210: m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
! 211: [ok:ok],,
1.1.1.2 misho 212: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
213: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
214: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
215:
216: _AM_IF_OPTION([no-define],,
1.1.1.3 ! misho 217: [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
! 218: AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1.1.1.2 misho 219:
220: # Some tools Automake needs.
221: AC_REQUIRE([AM_SANITY_CHECK])dnl
222: AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.1.1.3 ! misho 223: AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
! 224: AM_MISSING_PROG([AUTOCONF], [autoconf])
! 225: AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
! 226: AM_MISSING_PROG([AUTOHEADER], [autoheader])
! 227: AM_MISSING_PROG([MAKEINFO], [makeinfo])
1.1.1.2 misho 228: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
229: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1.1.1.3 ! misho 230: AC_REQUIRE([AC_PROG_MKDIR_P])dnl
! 231: # For better backward compatibility. To be removed once Automake 1.9.x
! 232: # dies out for good. For more background, see:
! 233: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
! 234: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
! 235: AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
! 236: # We need awk for the "check" target (and possibly the TAP driver). The
! 237: # system "awk" is bad on some platforms.
1.1.1.2 misho 238: AC_REQUIRE([AC_PROG_AWK])dnl
239: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
240: AC_REQUIRE([AM_SET_LEADING_DOT])dnl
241: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
242: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
243: [_AM_PROG_TAR([v7])])])
244: _AM_IF_OPTION([no-dependencies],,
245: [AC_PROVIDE_IFELSE([AC_PROG_CC],
1.1.1.3 ! misho 246: [_AM_DEPENDENCIES([CC])],
! 247: [m4_define([AC_PROG_CC],
! 248: m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1.1.1.2 misho 249: AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.1.1.3 ! misho 250: [_AM_DEPENDENCIES([CXX])],
! 251: [m4_define([AC_PROG_CXX],
! 252: m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1.1.1.2 misho 253: AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1.1.1.3 ! misho 254: [_AM_DEPENDENCIES([OBJC])],
! 255: [m4_define([AC_PROG_OBJC],
! 256: m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
! 257: AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
! 258: [_AM_DEPENDENCIES([OBJCXX])],
! 259: [m4_define([AC_PROG_OBJCXX],
! 260: m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
! 261: ])
! 262: AC_REQUIRE([AM_SILENT_RULES])dnl
! 263: dnl The testsuite driver may need to know about EXEEXT, so add the
! 264: dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
! 265: dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1.1.1.2 misho 266: AC_CONFIG_COMMANDS_PRE(dnl
267: [m4_provide_if([_AM_COMPILER_EXEEXT],
268: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1.1.1.3 ! misho 269:
! 270: # POSIX will say in a future version that running "rm -f" with no argument
! 271: # is OK; and we want to be able to make that assumption in our Makefile
! 272: # recipes. So use an aggressive probe to check that the usage we want is
! 273: # actually supported "in the wild" to an acceptable degree.
! 274: # See automake bug#10828.
! 275: # To make any issue more visible, cause the running configure to be aborted
! 276: # by default if the 'rm' program in use doesn't match our expectations; the
! 277: # user can still override this though.
! 278: if rm -f && rm -fr && rm -rf; then : OK; else
! 279: cat >&2 <<'END'
! 280: Oops!
! 281:
! 282: Your 'rm' program seems unable to run without file operands specified
! 283: on the command line, even when the '-f' option is present. This is contrary
! 284: to the behaviour of most rm programs out there, and not conforming with
! 285: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
! 286:
! 287: Please tell bug-automake@gnu.org about your system, including the value
! 288: of your $PATH and any error possibly output before this message. This
! 289: can help us improve future automake versions.
! 290:
! 291: END
! 292: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
! 293: echo 'Configuration will proceed anyway, since you have set the' >&2
! 294: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
! 295: echo >&2
! 296: else
! 297: cat >&2 <<'END'
! 298: Aborting the configuration process, to ensure you take notice of the issue.
! 299:
! 300: You can download and install GNU coreutils to get an 'rm' implementation
! 301: that behaves properly: <https://www.gnu.org/software/coreutils/>.
! 302:
! 303: If you want to complete the configuration process using your problematic
! 304: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
! 305: to "yes", and re-run configure.
! 306:
! 307: END
! 308: AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
! 309: fi
! 310: fi
! 311: dnl The trailing newline in this macro's definition is deliberate, for
! 312: dnl backward compatibility and to allow trailing 'dnl'-style comments
! 313: dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1.1 misho 314: ])
315:
1.1.1.3 ! misho 316: dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1.1.1.2 misho 317: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
318: dnl mangled by Autoconf and run in a shell conditional statement.
319: m4_define([_AC_COMPILER_EXEEXT],
320: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
321:
322: # When config.status generates a header, we must update the stamp-h file.
323: # This file resides in the same directory as the config header
324: # that is generated. The stamp files are numbered to have different names.
1.1 misho 325:
1.1.1.2 misho 326: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
327: # loop where config.status creates the headers, so we can generate
328: # our stamp files there.
329: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
330: [# Compute $1's index in $config_headers.
331: _am_arg=$1
332: _am_stamp_count=1
333: for _am_header in $config_headers :; do
334: case $_am_header in
335: $_am_arg | $_am_arg:* )
336: break ;;
337: * )
338: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
339: esac
340: done
341: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1.1 misho 342:
1.1.1.3 ! misho 343: # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1.1.1.2 misho 344: #
345: # This file is free software; the Free Software Foundation
346: # gives unlimited permission to copy and/or distribute it,
347: # with or without modifications, as long as this notice is preserved.
1.1 misho 348:
1.1.1.2 misho 349: # AM_PROG_INSTALL_SH
350: # ------------------
351: # Define $install_sh.
352: AC_DEFUN([AM_PROG_INSTALL_SH],
353: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.1.1.3 ! misho 354: if test x"${install_sh+set}" != xset; then
1.1.1.2 misho 355: case $am_aux_dir in
356: *\ * | *\ *)
357: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
358: *)
359: install_sh="\${SHELL} $am_aux_dir/install-sh"
360: esac
361: fi
1.1.1.3 ! misho 362: AC_SUBST([install_sh])])
1.1 misho 363:
1.1.1.3 ! misho 364: # Copyright (C) 2003-2018 Free Software Foundation, Inc.
1.1.1.2 misho 365: #
366: # This file is free software; the Free Software Foundation
367: # gives unlimited permission to copy and/or distribute it,
368: # with or without modifications, as long as this notice is preserved.
1.1 misho 369:
1.1.1.2 misho 370: # Check whether the underlying file-system supports filenames
371: # with a leading dot. For instance MS-DOS doesn't.
372: AC_DEFUN([AM_SET_LEADING_DOT],
373: [rm -rf .tst 2>/dev/null
374: mkdir .tst 2>/dev/null
375: if test -d .tst; then
376: am__leading_dot=.
377: else
378: am__leading_dot=_
379: fi
380: rmdir .tst 2>/dev/null
381: AC_SUBST([am__leading_dot])])
1.1 misho 382:
1.1.1.2 misho 383: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1.1 misho 384:
1.1.1.3 ! misho 385: # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1.1.1.2 misho 386: #
387: # This file is free software; the Free Software Foundation
388: # gives unlimited permission to copy and/or distribute it,
389: # with or without modifications, as long as this notice is preserved.
1.1 misho 390:
1.1.1.2 misho 391: # AM_MISSING_PROG(NAME, PROGRAM)
392: # ------------------------------
393: AC_DEFUN([AM_MISSING_PROG],
394: [AC_REQUIRE([AM_MISSING_HAS_RUN])
395: $1=${$1-"${am_missing_run}$2"}
396: AC_SUBST($1)])
1.1 misho 397:
1.1.1.2 misho 398: # AM_MISSING_HAS_RUN
399: # ------------------
1.1.1.3 ! misho 400: # Define MISSING if not defined so far and test if it is modern enough.
! 401: # If it is, set am_missing_run to use it, otherwise, to nothing.
1.1.1.2 misho 402: AC_DEFUN([AM_MISSING_HAS_RUN],
403: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
404: AC_REQUIRE_AUX_FILE([missing])dnl
405: if test x"${MISSING+set}" != xset; then
406: case $am_aux_dir in
407: *\ * | *\ *)
408: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
409: *)
410: MISSING="\${SHELL} $am_aux_dir/missing" ;;
411: esac
412: fi
413: # Use eval to expand $SHELL
1.1.1.3 ! misho 414: if eval "$MISSING --is-lightweight"; then
! 415: am_missing_run="$MISSING "
1.1 misho 416: else
1.1.1.2 misho 417: am_missing_run=
1.1.1.3 ! misho 418: AC_MSG_WARN(['missing' script is too old or missing])
1.1 misho 419: fi
1.1.1.2 misho 420: ])
1.1 misho 421:
1.1.1.2 misho 422: # Helper functions for option handling. -*- Autoconf -*-
1.1 misho 423:
1.1.1.3 ! misho 424: # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1.1.1.2 misho 425: #
426: # This file is free software; the Free Software Foundation
427: # gives unlimited permission to copy and/or distribute it,
428: # with or without modifications, as long as this notice is preserved.
1.1 misho 429:
1.1.1.2 misho 430: # _AM_MANGLE_OPTION(NAME)
431: # -----------------------
432: AC_DEFUN([_AM_MANGLE_OPTION],
433: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1.1 misho 434:
1.1.1.2 misho 435: # _AM_SET_OPTION(NAME)
1.1.1.3 ! misho 436: # --------------------
1.1.1.2 misho 437: # Set option NAME. Presently that only means defining a flag for this option.
438: AC_DEFUN([_AM_SET_OPTION],
1.1.1.3 ! misho 439: [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1.1 misho 440:
1.1.1.2 misho 441: # _AM_SET_OPTIONS(OPTIONS)
1.1.1.3 ! misho 442: # ------------------------
1.1.1.2 misho 443: # OPTIONS is a space-separated list of Automake options.
444: AC_DEFUN([_AM_SET_OPTIONS],
445: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1.1 misho 446:
1.1.1.2 misho 447: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
448: # -------------------------------------------
449: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
450: AC_DEFUN([_AM_IF_OPTION],
451: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.1 misho 452:
1.1.1.3 ! misho 453: # Copyright (C) 1999-2018 Free Software Foundation, Inc.
! 454: #
! 455: # This file is free software; the Free Software Foundation
! 456: # gives unlimited permission to copy and/or distribute it,
! 457: # with or without modifications, as long as this notice is preserved.
! 458:
! 459: # _AM_PROG_CC_C_O
! 460: # ---------------
! 461: # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
! 462: # to automatically call this.
! 463: AC_DEFUN([_AM_PROG_CC_C_O],
! 464: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 465: AC_REQUIRE_AUX_FILE([compile])dnl
! 466: AC_LANG_PUSH([C])dnl
! 467: AC_CACHE_CHECK(
! 468: [whether $CC understands -c and -o together],
! 469: [am_cv_prog_cc_c_o],
! 470: [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
! 471: # Make sure it works both with $CC and with simple cc.
! 472: # Following AC_PROG_CC_C_O, we do the test twice because some
! 473: # compilers refuse to overwrite an existing .o file with -o,
! 474: # though they will create one.
! 475: am_cv_prog_cc_c_o=yes
! 476: for am_i in 1 2; do
! 477: if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
! 478: && test -f conftest2.$ac_objext; then
! 479: : OK
! 480: else
! 481: am_cv_prog_cc_c_o=no
! 482: break
! 483: fi
! 484: done
! 485: rm -f core conftest*
! 486: unset am_i])
! 487: if test "$am_cv_prog_cc_c_o" != yes; then
! 488: # Losing compiler, so override with the script.
! 489: # FIXME: It is wrong to rewrite CC.
! 490: # But if we don't then we get into trouble of one sort or another.
! 491: # A longer-term fix would be to have automake use am__CC in this case,
! 492: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
! 493: CC="$am_aux_dir/compile $CC"
! 494: fi
! 495: AC_LANG_POP([C])])
1.1 misho 496:
1.1.1.3 ! misho 497: # For backward compatibility.
! 498: AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
! 499:
! 500: # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1.1.1.2 misho 501: #
502: # This file is free software; the Free Software Foundation
503: # gives unlimited permission to copy and/or distribute it,
504: # with or without modifications, as long as this notice is preserved.
1.1 misho 505:
1.1.1.3 ! misho 506: # AM_RUN_LOG(COMMAND)
! 507: # -------------------
! 508: # Run COMMAND, save the exit status in ac_status, and log it.
! 509: # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
! 510: AC_DEFUN([AM_RUN_LOG],
! 511: [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
! 512: ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
! 513: ac_status=$?
! 514: echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
! 515: (exit $ac_status); }])
! 516:
! 517: # Check to make sure that the build environment is sane. -*- Autoconf -*-
! 518:
! 519: # Copyright (C) 1996-2018 Free Software Foundation, Inc.
! 520: #
! 521: # This file is free software; the Free Software Foundation
! 522: # gives unlimited permission to copy and/or distribute it,
! 523: # with or without modifications, as long as this notice is preserved.
1.1 misho 524:
1.1.1.2 misho 525: # AM_SANITY_CHECK
526: # ---------------
527: AC_DEFUN([AM_SANITY_CHECK],
528: [AC_MSG_CHECKING([whether build environment is sane])
529: # Reject unsafe characters in $srcdir or the absolute working directory
530: # name. Accept space and tab only in the latter.
531: am_lf='
532: '
533: case `pwd` in
534: *[[\\\"\#\$\&\'\`$am_lf]]*)
535: AC_MSG_ERROR([unsafe absolute working directory name]);;
536: esac
537: case $srcdir in
538: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1.1.1.3 ! misho 539: AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1.1.1.2 misho 540: esac
1.1 misho 541:
1.1.1.3 ! misho 542: # Do 'set' in a subshell so we don't clobber the current shell's
1.1.1.2 misho 543: # arguments. Must try -L first in case configure is actually a
544: # symlink; some systems play weird games with the mod time of symlinks
545: # (eg FreeBSD returns the mod time of the symlink's containing
546: # directory).
547: if (
1.1.1.3 ! misho 548: am_has_slept=no
! 549: for am_try in 1 2; do
! 550: echo "timestamp, slept: $am_has_slept" > conftest.file
! 551: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
! 552: if test "$[*]" = "X"; then
! 553: # -L didn't work.
! 554: set X `ls -t "$srcdir/configure" conftest.file`
! 555: fi
! 556: if test "$[*]" != "X $srcdir/configure conftest.file" \
! 557: && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.1 misho 558:
1.1.1.3 ! misho 559: # If neither matched, then we have a broken ls. This can happen
! 560: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 561: # broken ls alias from the environment. This has actually
! 562: # happened. Such a system could not be considered "sane".
! 563: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
! 564: alias in your environment])
! 565: fi
! 566: if test "$[2]" = conftest.file || test $am_try -eq 2; then
! 567: break
! 568: fi
! 569: # Just in case.
! 570: sleep 1
! 571: am_has_slept=yes
! 572: done
1.1.1.2 misho 573: test "$[2]" = conftest.file
574: )
575: then
576: # Ok.
577: :
578: else
579: AC_MSG_ERROR([newly created file is older than distributed files!
580: Check your system clock])
581: fi
1.1.1.3 ! misho 582: AC_MSG_RESULT([yes])
! 583: # If we didn't sleep, we still need to ensure time stamps of config.status and
! 584: # generated files are strictly newer.
! 585: am_sleep_pid=
! 586: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
! 587: ( sleep 1 ) &
! 588: am_sleep_pid=$!
! 589: fi
! 590: AC_CONFIG_COMMANDS_PRE(
! 591: [AC_MSG_CHECKING([that generated files are newer than configure])
! 592: if test -n "$am_sleep_pid"; then
! 593: # Hide warnings about reused PIDs.
! 594: wait $am_sleep_pid 2>/dev/null
! 595: fi
! 596: AC_MSG_RESULT([done])])
! 597: rm -f conftest.file
! 598: ])
1.1 misho 599:
1.1.1.3 ! misho 600: # Copyright (C) 2009-2018 Free Software Foundation, Inc.
! 601: #
! 602: # This file is free software; the Free Software Foundation
! 603: # gives unlimited permission to copy and/or distribute it,
! 604: # with or without modifications, as long as this notice is preserved.
! 605:
! 606: # AM_SILENT_RULES([DEFAULT])
! 607: # --------------------------
! 608: # Enable less verbose build rules; with the default set to DEFAULT
! 609: # ("yes" being less verbose, "no" or empty being verbose).
! 610: AC_DEFUN([AM_SILENT_RULES],
! 611: [AC_ARG_ENABLE([silent-rules], [dnl
! 612: AS_HELP_STRING(
! 613: [--enable-silent-rules],
! 614: [less verbose build output (undo: "make V=1")])
! 615: AS_HELP_STRING(
! 616: [--disable-silent-rules],
! 617: [verbose build output (undo: "make V=0")])dnl
! 618: ])
! 619: case $enable_silent_rules in @%:@ (((
! 620: yes) AM_DEFAULT_VERBOSITY=0;;
! 621: no) AM_DEFAULT_VERBOSITY=1;;
! 622: *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
! 623: esac
! 624: dnl
! 625: dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
! 626: dnl do not support nested variable expansions.
! 627: dnl See automake bug#9928 and bug#10237.
! 628: am_make=${MAKE-make}
! 629: AC_CACHE_CHECK([whether $am_make supports nested variables],
! 630: [am_cv_make_support_nested_variables],
! 631: [if AS_ECHO([['TRUE=$(BAR$(V))
! 632: BAR0=false
! 633: BAR1=true
! 634: V=1
! 635: am__doit:
! 636: @$(TRUE)
! 637: .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
! 638: am_cv_make_support_nested_variables=yes
! 639: else
! 640: am_cv_make_support_nested_variables=no
! 641: fi])
! 642: if test $am_cv_make_support_nested_variables = yes; then
! 643: dnl Using '$V' instead of '$(V)' breaks IRIX make.
! 644: AM_V='$(V)'
! 645: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
! 646: else
! 647: AM_V=$AM_DEFAULT_VERBOSITY
! 648: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
! 649: fi
! 650: AC_SUBST([AM_V])dnl
! 651: AM_SUBST_NOTMAKE([AM_V])dnl
! 652: AC_SUBST([AM_DEFAULT_V])dnl
! 653: AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
! 654: AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
! 655: AM_BACKSLASH='\'
! 656: AC_SUBST([AM_BACKSLASH])dnl
! 657: _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
! 658: ])
! 659:
! 660: # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1.1.1.2 misho 661: #
662: # This file is free software; the Free Software Foundation
663: # gives unlimited permission to copy and/or distribute it,
664: # with or without modifications, as long as this notice is preserved.
1.1 misho 665:
1.1.1.2 misho 666: # AM_PROG_INSTALL_STRIP
667: # ---------------------
1.1.1.3 ! misho 668: # One issue with vendor 'install' (even GNU) is that you can't
1.1.1.2 misho 669: # specify the program used to strip binaries. This is especially
670: # annoying in cross-compiling environments, where the build's strip
671: # is unlikely to handle the host's binaries.
672: # Fortunately install-sh will honor a STRIPPROG variable, so we
1.1.1.3 ! misho 673: # always use install-sh in "make install-strip", and initialize
1.1.1.2 misho 674: # STRIPPROG with the value of the STRIP variable (set by the user).
675: AC_DEFUN([AM_PROG_INSTALL_STRIP],
676: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.1.1.3 ! misho 677: # Installed binaries are usually stripped using 'strip' when the user
! 678: # run "make install-strip". However 'strip' might not be the right
1.1.1.2 misho 679: # tool to use in cross-compilation environments, therefore Automake
1.1.1.3 ! misho 680: # will honor the 'STRIP' environment variable to overrule this program.
! 681: dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1.1.1.2 misho 682: if test "$cross_compiling" != no; then
683: AC_CHECK_TOOL([STRIP], [strip], :)
684: fi
685: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
686: AC_SUBST([INSTALL_STRIP_PROGRAM])])
1.1 misho 687:
1.1.1.3 ! misho 688: # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1.1.1.2 misho 689: #
690: # This file is free software; the Free Software Foundation
691: # gives unlimited permission to copy and/or distribute it,
692: # with or without modifications, as long as this notice is preserved.
1.1 misho 693:
1.1.1.2 misho 694: # _AM_SUBST_NOTMAKE(VARIABLE)
695: # ---------------------------
696: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
697: # This macro is traced by Automake.
698: AC_DEFUN([_AM_SUBST_NOTMAKE])
699:
700: # AM_SUBST_NOTMAKE(VARIABLE)
1.1.1.3 ! misho 701: # --------------------------
1.1.1.2 misho 702: # Public sister of _AM_SUBST_NOTMAKE.
703: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1.1 misho 704:
1.1.1.2 misho 705: # Check how to create a tarball. -*- Autoconf -*-
1.1 misho 706:
1.1.1.3 ! misho 707: # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1.1.1.2 misho 708: #
709: # This file is free software; the Free Software Foundation
710: # gives unlimited permission to copy and/or distribute it,
711: # with or without modifications, as long as this notice is preserved.
712:
713: # _AM_PROG_TAR(FORMAT)
714: # --------------------
715: # Check how to create a tarball in format FORMAT.
1.1.1.3 ! misho 716: # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1.1.1.2 misho 717: #
718: # Substitute a variable $(am__tar) that is a command
719: # writing to stdout a FORMAT-tarball containing the directory
720: # $tardir.
721: # tardir=directory && $(am__tar) > result.tar
722: #
723: # Substitute a variable $(am__untar) that extract such
724: # a tarball read from stdin.
725: # $(am__untar) < result.tar
1.1.1.3 ! misho 726: #
1.1.1.2 misho 727: AC_DEFUN([_AM_PROG_TAR],
1.1.1.3 ! misho 728: [# Always define AMTAR for backward compatibility. Yes, it's still used
! 729: # in the wild :-( We should find a proper way to deprecate it ...
! 730: AC_SUBST([AMTAR], ['$${TAR-tar}'])
! 731:
! 732: # We'll loop over all known methods to create a tar archive until one works.
1.1.1.2 misho 733: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
734:
1.1.1.3 ! misho 735: m4_if([$1], [v7],
! 736: [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1.1.1.2 misho 737:
1.1.1.3 ! misho 738: [m4_case([$1],
! 739: [ustar],
! 740: [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
! 741: # There is notably a 21 bits limit for the UID and the GID. In fact,
! 742: # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
! 743: # and bug#13588).
! 744: am_max_uid=2097151 # 2^21 - 1
! 745: am_max_gid=$am_max_uid
! 746: # The $UID and $GID variables are not portable, so we need to resort
! 747: # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
! 748: # below are definitely unexpected, so allow the users to see them
! 749: # (that is, avoid stderr redirection).
! 750: am_uid=`id -u || echo unknown`
! 751: am_gid=`id -g || echo unknown`
! 752: AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
! 753: if test $am_uid -le $am_max_uid; then
! 754: AC_MSG_RESULT([yes])
! 755: else
! 756: AC_MSG_RESULT([no])
! 757: _am_tools=none
! 758: fi
! 759: AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
! 760: if test $am_gid -le $am_max_gid; then
! 761: AC_MSG_RESULT([yes])
! 762: else
! 763: AC_MSG_RESULT([no])
! 764: _am_tools=none
! 765: fi],
! 766:
! 767: [pax],
! 768: [],
! 769:
! 770: [m4_fatal([Unknown tar format])])
! 771:
! 772: AC_MSG_CHECKING([how to create a $1 tar archive])
! 773:
! 774: # Go ahead even if we have the value already cached. We do so because we
! 775: # need to set the values for the 'am__tar' and 'am__untar' variables.
! 776: _am_tools=${am_cv_prog_tar_$1-$_am_tools}
! 777:
! 778: for _am_tool in $_am_tools; do
! 779: case $_am_tool in
! 780: gnutar)
! 781: for _am_tar in tar gnutar gtar; do
! 782: AM_RUN_LOG([$_am_tar --version]) && break
! 783: done
! 784: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
! 785: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
! 786: am__untar="$_am_tar -xf -"
! 787: ;;
! 788: plaintar)
! 789: # Must skip GNU tar: if it does not support --format= it doesn't create
! 790: # ustar tarball either.
! 791: (tar --version) >/dev/null 2>&1 && continue
! 792: am__tar='tar chf - "$$tardir"'
! 793: am__tar_='tar chf - "$tardir"'
! 794: am__untar='tar xf -'
! 795: ;;
! 796: pax)
! 797: am__tar='pax -L -x $1 -w "$$tardir"'
! 798: am__tar_='pax -L -x $1 -w "$tardir"'
! 799: am__untar='pax -r'
! 800: ;;
! 801: cpio)
! 802: am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
! 803: am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
! 804: am__untar='cpio -i -H $1 -d'
! 805: ;;
! 806: none)
! 807: am__tar=false
! 808: am__tar_=false
! 809: am__untar=false
! 810: ;;
! 811: esac
! 812:
! 813: # If the value was cached, stop now. We just wanted to have am__tar
! 814: # and am__untar set.
! 815: test -n "${am_cv_prog_tar_$1}" && break
! 816:
! 817: # tar/untar a dummy directory, and stop if the command works.
! 818: rm -rf conftest.dir
! 819: mkdir conftest.dir
! 820: echo GrepMe > conftest.dir/file
! 821: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
! 822: rm -rf conftest.dir
! 823: if test -s conftest.tar; then
! 824: AM_RUN_LOG([$am__untar <conftest.tar])
! 825: AM_RUN_LOG([cat conftest.dir/file])
! 826: grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
! 827: fi
! 828: done
1.1.1.2 misho 829: rm -rf conftest.dir
830:
1.1.1.3 ! misho 831: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
! 832: AC_MSG_RESULT([$am_cv_prog_tar_$1])])
! 833:
1.1.1.2 misho 834: AC_SUBST([am__tar])
835: AC_SUBST([am__untar])
836: ]) # _AM_PROG_TAR
1.1 misho 837:
1.1.1.3 ! misho 838: m4_include([m4/acinclude.m4])
! 839: m4_include([m4/ax_check_link_flag.m4])
! 840: m4_include([m4/ax_prog_doxygen.m4])
! 841: m4_include([m4/libtool.m4])
! 842: m4_include([m4/ltoptions.m4])
! 843: m4_include([m4/ltsugar.m4])
! 844: m4_include([m4/ltversion.m4])
! 845: m4_include([m4/lt~obsolete.m4])
! 846: m4_include([m4/shell.m4])
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>