This file is indexed.

/usr/share/dune/aclocal/alglib.m4 is in libdune-geometry-dev 2.2.1-2ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## -*- autoconf -*-
# AlgLib provides arbitrary precision linear algebra and quadratures (and more).
# see http://www.alglib.net/
# Unfortunatly the available downloads are rather buggy, therefore we have
# to provide a fixed version of the files used here - obtainable 
# by contacting dedner|nolte@mathematik.uni-freiburg.de

# DUNE_PATH_ALGLIB()
#
# shell variables:
#   with_alglib
#     no or path
#   HAVE_ALGLIB
#     no or "yes (...)"
#   ALGLIB_CPPFLAGS
#   ALGLIB_LIBS
#
# substitutions:
#   ALGLIB_CPPFLAGS
#   ALGLIB_LIBS
#
# preprocessor defines:
#   HAVE_ALGLIB
#     undef or ENABLE_ALGLIB
#
# conditionals:
#   ALGLIB
AC_DEFUN([DUNE_PATH_ALGLIB],[
  AC_REQUIRE([AC_PROG_CXX])
  AC_REQUIRE([DUNE_PATH_GMP])

  HAVE_ALGLIB="no"

  AC_ARG_WITH(alglib,
    AS_HELP_STRING([--with-alglib=PATH],[directory to AlgLib for DUNE]))

  ac_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
  AS_IF([test "x$with_alglib" != "x"],
        [PKG_CONFIG_PATH="$with_alglib:$with_alglib/lib/pkgconfig:$PKG_CONFIG_PATH"])
  AC_MSG_CHECKING([for alglib4dune (>=1.0) via pkgconfig])
  AS_IF([PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --atleast-version=1.0 alglib4dune],[
    HAVE_ALGLIB="version `PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --modversion alglib4dune`"
    ALGLIB_CPPFLAGS="`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags alglib4dune` -DENABLE_ALGLIB=1"
    ALGLIB_LIBS="`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs alglib4dune`"
    AC_MSG_RESULT([yes])
  ],[
    AC_MSG_RESULT([no])
  ])
  PKG_CONFIG_PATH="$ac_save_PKG_CONFIG_PATH"

  AS_IF([test "$HAVE_ALGLIB" != "no"],[
    AC_LANG_PUSH([C++])
    ac_save_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $ALGLIB_CPPFLAGS"
    AC_CHECK_HEADER([alglib/amp.h],[],[HAVE_ALGLIB="no"])
    CPPFLAGS="$ac_save_CPPFLAGS"
    AC_LANG_POP
  ])

  AS_IF([test "$HAVE_ALGLIB" != "no"],[
    AC_DEFINE([HAVE_ALGLIB],[ENABLE_ALGLIB],[Was AlgLib for DUNE found and ALGLIB_CPPFLAGS used?])
    DUNE_ADD_ALL_PKG([AlgLib], [$ALGLIB_CPPFLAGS], [], [$ALGLIB_LIBS])
  ],[
    ALGLIB_CPPFLAGS=
    ALGLIB_LIBS=
  ])

  AC_SUBST([ALGLIB_CPPFLAGS])
  AC_SUBST([ALGLIB_LIBS])

  AM_CONDITIONAL(ALGLIB,[test "$HAVE_ALGLIB" != "no"])
  DUNE_ADD_SUMMARY_ENTRY([AlgLib for DUNE],[$HAVE_ALGLIB])
])