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