111
|
1 dnl ----------------------------------------------------------------------
|
|
2 dnl This whole bit snagged from libgfortran.
|
|
3
|
|
4 sinclude(../libtool.m4)
|
|
5 dnl The lines below arrange for aclocal not to bring an installed
|
|
6 dnl libtool.m4 into aclocal.m4, while still arranging for automake to
|
|
7 dnl add a definition of LIBTOOL to Makefile.in.
|
|
8 ifelse(,,,[AC_SUBST(LIBTOOL)
|
|
9 AC_DEFUN([AM_PROG_LIBTOOL])
|
|
10 ])
|
|
11
|
|
12
|
|
13
|
|
14 dnl
|
|
15 dnl Initialize the rest of the library configury. At this point we have
|
|
16 dnl variables like $host.
|
|
17 dnl
|
|
18 dnl Substs:
|
|
19 dnl libvtv_builddir (absolute path)
|
|
20 dnl libvtv_srcdir (absolute path)
|
|
21 dnl toplevel_builddir (absolute path)
|
|
22 dnl toplevel_srcdir (absolute path)
|
|
23 dnl with_cross_host
|
|
24 dnl with_newlib
|
|
25 dnl with_target_subdir
|
|
26 dnl plus
|
|
27 dnl - the variables in LIBVTV_CHECK_HOST / configure.host
|
|
28 dnl - default settings for all AM_CONDITIONAL test variables
|
|
29 dnl - lots of tools, like CC and CXX
|
|
30 dnl
|
|
31 AC_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 ])
|