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