depcomp-implicit-auxdir.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #! /bin/sh
  2. # Copyright (C) 2000-2017 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Make sure a top-level depcomp file is found when
  17. # AC_CONFIG_AUX_DIR is not specified.
  18. . test-init.sh
  19. mkdir lib src
  20. cat >> configure.ac << 'END'
  21. AC_PROG_RANLIB
  22. AC_PROG_CC
  23. AM_PROG_AR
  24. AC_CONFIG_FILES([lib/Makefile src/Makefile])
  25. AC_OUTPUT
  26. END
  27. # Files required because we are using '--gnu'.
  28. : > INSTALL
  29. : > NEWS
  30. : > README
  31. : > COPYING
  32. : > AUTHORS
  33. : > ChangeLog
  34. cat > Makefile.am << 'END'
  35. SUBDIRS = lib src
  36. END
  37. cat > lib/Makefile.am << 'END'
  38. pkgdata_DATA =
  39. noinst_LIBRARIES = libfoo.a
  40. libfoo_a_SOURCES = foo.c
  41. END
  42. cat > lib/foo.c << 'END'
  43. int foo () {}
  44. END
  45. cat > src/Makefile.am << 'END'
  46. pkgdata_DATA =
  47. END
  48. : > ar-lib
  49. $ACLOCAL
  50. $AUTOMAKE --gnu
  51. # Make sure that depcomp is *not* included in the definition
  52. # of DIST_COMMON in lib/Makefile.in. If you change this test
  53. # so that more files are included in lib's DIST_COMMON definition,
  54. # then you must handle the case in which depcomp is listed on a
  55. # continued line.
  56. grep '^DIST_COMMON.*depcomp' lib/Makefile.in && exit 1
  57. :