This file is indexed.

/usr/share/aclocal/p4est_metis.m4 is in libp4est-dev 1.1-4.

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
dnl P4EST_CHECK_METIS(PREFIX)
dnl Check for the METIS library and link a test program
dnl
AC_DEFUN([P4EST_CHECK_METIS], [

AC_MSG_CHECKING([for metis])

SC_ARG_WITH_PREFIX([metis], [enable metis-dependent code], [METIS], [$1])
if test "x$$1_WITH_METIS" != xno ; then
  $1_METIS_INC=
  $1_METIS_LD=
  $1_METIS_LIB="-lmetis"
  if test "x$$1_WITH_METIS" != xyes ; then
    $1_METIS_INC="-I$$1_WITH_METIS/include"
    $1_METIS_LD="-L$$1_WITH_METIS/lib"
  fi
  PRE_METIS_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS $$1_METIS_INC"
  PRE_METIS_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $$1_METIS_LD"
  PRE_METIS_LIBS="$LIBS"
  LIBS="$$1_METIS_LIB $LIBS"

  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <metis.h>]],
[[
 int n = 0, xadj, adjncy, adjwgt, vwgt;
 int nparts = 0, options = 0, volume, part, ncon, vsize;
 float tpwgts, ubvec;

 METIS_PartGraphRecursive (&n, &ncon, &xadj, &adjncy, &vwgt, &vsize,
                           &adjwgt, &nparts, &tpwgts, &ubvec, &options,
                           &volume, &part);
]])],,
                 [AC_MSG_ERROR([Unable to link metis])])
dnl Keep the variables changed as done above
dnl CPPFLAGS="$PRE_METIS_CPPFLAGS"
dnl LDFLAGS="$PRE_METIS_LDFLAGS"
dnl LIBS="$PRE_METIS_LIBS"

  AC_MSG_RESULT([successful])
else
  AC_MSG_RESULT([not used])
fi

dnl No AC_SUBST since we're changing variables directly
dnl AC_SUBST([$1_METIS_LIBS])
dnl AC_SUBST([$1_METIS_INCLUDES])
])