autotest.m4 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # This file is part of Autoconf. -*- Autoconf -*-
  2. # Interface with Autotest.
  3. # Copyright (C) 1992-1996, 1998-2005, 2009-2012 Free Software
  4. # Foundation, Inc.
  5. # This file is part of Autoconf. This program is free
  6. # software; you can redistribute it and/or modify it under the
  7. # terms of the GNU General Public License as published by the
  8. # Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # Under Section 7 of GPL version 3, you are granted additional
  17. # permissions described in the Autoconf Configure Script Exception,
  18. # version 3.0, as published by the Free Software Foundation.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # and a copy of the Autoconf Configure Script Exception along with
  22. # this program; see the files COPYINGv3 and COPYING.EXCEPTION
  23. # respectively. If not, see <http://www.gnu.org/licenses/>.
  24. # Written by David MacKenzie, with help from
  25. # Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
  26. # Roland McGrath, Noah Friedman, david d zuhn, and many others.
  27. # AC_CONFIG_TESTDIR(TEST-DIRECTORY, [AUTOTEST-PATH = TEST-DIRECTORY])
  28. # -------------------------------------------------------------------
  29. # Configure an Autotest test suite directory. Invoke it once per dir,
  30. # even if there are several test suites in there.
  31. #
  32. # AUTOTEST-PATH must help the test suite to find the executables.
  33. # It is relative to the top level of the package, and is expanded
  34. # into all the build dirs of AUTOTEST-PATH, then all the src dirs.
  35. #
  36. # Do not use _ACEOF as we are being dumped into config.status via
  37. # an _ACEOF-heredoc.
  38. AC_DEFUN([AC_CONFIG_TESTDIR],
  39. [AC_CONFIG_COMMANDS([$1/atconfig],
  40. [cat >$1/atconfig <<ATEOF
  41. @%:@ Configurable variable values for building test suites.
  42. @%:@ Generated by $[0].
  43. @%:@ Copyright (C) m4_PACKAGE_YEAR Free Software Foundation, Inc.
  44. # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
  45. at_testdir='$1'
  46. abs_builddir='$ac_abs_builddir'
  47. at_srcdir='$ac_srcdir'
  48. abs_srcdir='$ac_abs_srcdir'
  49. at_top_srcdir='$ac_top_srcdir'
  50. abs_top_srcdir='$ac_abs_top_srcdir'
  51. at_top_build_prefix='$ac_top_build_prefix'
  52. abs_top_builddir='$ac_abs_top_builddir'
  53. # Backward compatibility with Autotest <= 2.59b:
  54. at_top_builddir=\$at_top_build_prefix
  55. AUTOTEST_PATH='m4_default([$2], [$1])'
  56. SHELL=\${CONFIG_SHELL-'$SHELL'}
  57. m4_provide_if([AC_ERLANG_PATH_ERL], [
  58. ERL='$ERL'
  59. ])dnl
  60. m4_provide_if([AC_ERLANG_PATH_ERLC], [
  61. ERLC='$ERLC'
  62. ERLCFLAGS='$ERLCFLAGS'
  63. ])dnl
  64. ATEOF
  65. ],
  66. [m4_provide_if([AC_ERLANG_PATH_ERL], [ERL="$ERL"
  67. ])m4_provide_if([AC_ERLANG_PATH_ERLC], [ERLC="$ERLC"
  68. ERLCFLAGS="$ERLCFLAGS"
  69. ])])])# AC_CONFIG_TESTDIR