acinclude.m4 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. dnl ----------------------------------------------------------------------
  2. dnl This whole bit snagged from libgfortran.
  3. sinclude(../libtool.m4)
  4. sinclude(../config/enable.m4)
  5. sinclude(../config/cet.m4)
  6. dnl The lines below arrange for aclocal not to bring an installed
  7. dnl libtool.m4 into aclocal.m4, while still arranging for automake to
  8. dnl add a definition of LIBTOOL to Makefile.in.
  9. ifelse(,,,[AC_SUBST(LIBTOOL)
  10. AC_DEFUN([AM_PROG_LIBTOOL])
  11. ])
  12. dnl
  13. dnl Initialize the rest of the library configury. At this point we have
  14. dnl variables like $host.
  15. dnl
  16. dnl Substs:
  17. dnl libvtv_builddir (absolute path)
  18. dnl libvtv_srcdir (absolute path)
  19. dnl toplevel_builddir (absolute path)
  20. dnl toplevel_srcdir (absolute path)
  21. dnl with_cross_host
  22. dnl with_newlib
  23. dnl with_target_subdir
  24. dnl plus
  25. dnl - the variables in LIBVTV_CHECK_HOST / configure.host
  26. dnl - default settings for all AM_CONDITIONAL test variables
  27. dnl - lots of tools, like CC and CXX
  28. dnl
  29. AC_DEFUN([LIBVTV_CONFIGURE], [
  30. # These need to be absolute paths, yet at the same time need to
  31. # canonicalize only relative paths, because then amd will not unmount
  32. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  33. libvtv_builddir=`${PWDCMD-pwd}`
  34. case $srcdir in
  35. [\\/$]* | ?:[\\/]*) libvtv_srcdir=${srcdir} ;;
  36. *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  37. esac
  38. toplevel_builddir=${libvtv_builddir}/..
  39. toplevel_srcdir=${libvtv_srcdir}/..
  40. AC_SUBST(libvtv_builddir)
  41. AC_SUBST(libvtv_srcdir)
  42. AC_SUBST(toplevel_builddir)
  43. AC_SUBST(toplevel_srcdir)
  44. ])