1 dnl ----------------------------------------------------------------------
2 dnl This whole bit snagged from libgfortran.
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])
15 dnl Initialize the rest of the library configury. At this point we have
16 dnl variables like $host.
19 dnl libvtv_builddir (absolute path)
20 dnl libvtv_srcdir (absolute path)
21 dnl toplevel_builddir (absolute path)
22 dnl toplevel_srcdir (absolute path)
25 dnl with_target_subdir
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
31 AC_DEFUN([LIBVTV_CONFIGURE], [
33 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
34 AC_ARG_ENABLE(vtable-verify,
35 [ --enable-vtable-verify Enable vtable verification feature ],
37 yes) enable_vtable_verify=yes ;;
38 no) enable_vtable_verify=no ;;
39 *) enable_vtable_verify=no;;
41 [enable_vtable_verify=no])
42 AM_CONDITIONAL(ENABLE_VTABLE_VERIFY, test $enable_vtable_verify = yes)
44 # These need to be absolute paths, yet at the same time need to
45 # canonicalize only relative paths, because then amd will not unmount
46 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
47 libvtv_builddir=`${PWDCMD-pwd}`
49 [\\/$]* | ?:[\\/]*) libvtv_srcdir=${srcdir} ;;
50 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
52 toplevel_builddir=${libvtv_builddir}/..
53 toplevel_srcdir=${libvtv_srcdir}/..
54 AC_SUBST(libvtv_builddir)
55 AC_SUBST(libvtv_srcdir)
56 AC_SUBST(toplevel_builddir)
57 AC_SUBST(toplevel_srcdir)