acinclude.m4 1.5 KB

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