This file is indexed.

/usr/share/aclocal/llnl_lib_chasm.m4 is in libsidl-dev 1.4.0.dfsg-8build3.

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
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#####################################
#
# LLNL_LIB_CHASM
#
# Check for CHASM_PREFIX (if set) and commandline.
# 

AC_DEFUN([LLNL_GUESS_VENDOR],
[
  CHASM_FORTRAN_VENDOR=$1
  AC_MSG_WARN([Guessing Fortran 90/95 vendor as $1 based on the compiler name $FC])
])

AC_DEFUN([LLNL_LIB_CHASM], 
[ 
  AC_ARG_WITH(F90-vendor,
    [AS_HELP_STRING([--with-F90-vendor@<:@=name@:>@],[Fortran compiler (Absoft,Alpha,Cray,GNU,G95,IBMXL,Intel,Intel_7,Lahey,MIPSpro,NAG,PathScale,PGI,SUNWspro)])],
    [CHASM_FORTRAN_VENDOR=$withval],
    [CHASM_FORTRAN_VENDOR='unknown'])
  AC_ARG_WITH(arch,
    AS_HELP_STRING(--with-arch@<:@=CHASM_ARCH@:>@,CHASM architecture),
    [CHASM_ARCH=$withval],[CHASM_ARCH=${CHASM_ARCH='unknown'}])
  if test "X$CHASM_FORTRAN_VENDOR" == "Xunknown" ; then
    llnl_fc_basename=`basename $FC`
    case "$llnl_fc_basename" in
      *gfortran*)
	LLNL_GUESS_VENDOR("GNU")
	;;
      *g95*)
	LLNL_GUESS_VENDOR("G95")
	;;
      *xlf*)
	LLNL_GUESS_VENDOR("IBMXL")
	;;
      *ifc*|*ifort*)
	LLNL_GUESS_VENDOR("Intel")
	;;
      *lf95*)
	LLNL_GUESS_VENDOR("Lahey")
	;;
      *pgf90*|*pgf95*)
	LLNL_GUESS_VENDOR("PGI")
	;;
      *pathf90* | *pathf95*)
	LLNL_GUESS_VENDOR("PathScale")
	;;
     esac
  fi
  if test "X$CHASM_FORTRAN_VENDOR" != "Xunknown" ; then
    AC_CACHE_CHECK(for 64-bit bitfield error, llnl_cv_bitfield_error,[
      AC_LANG_PUSH([C])
      AC_COMPILE_IFELSE(AC_LANG_PROGRAM(,[struct {
  long stride_mult :64;   /* distance between successive elements (bytes)  */
  long upper_bound :64;   /* last array index for a given dimension        */
  long lower_bound :64;   /* first array index for a given dimension       */
} dim[7];
  ]),[llnl_cv_bitfield_error=false],[llnl_cv_bitfield_error=true])
      AC_LANG_POP([])
    ])
    if test "X$llnl_cv_bitfield_error" != "Xtrue" ; then
      CHASM_BROKEN_BITFIELD=0
    else
      CHASM_BROKEN_BITFIELD=1
    fi
    AC_SUBST([CHASM_BROKEN_BITFIELD])
    AC_CACHE_CHECK(whether CHASM architecture is 32- or 64-bit,llnl_cv_chasm_arch_64,[
      if test "$CHASM_ARCH" == "unknown" ; then
        if test $ac_cv_sizeof_void_p -ge 8 ; then
	  llnl_cv_chasm_arch_64=64
        else
	  llnl_cv_chasm_arch_64=32
        fi
      else
        case $CHASM_ARCH in
          linux64|aix64|alpha64|ia64)
            llnl_cv_chasm_arch_64=64
            ;;
          *)
            llnl_cv_chasm_arch_64=32
            ;;
        esac
      fi
    ])
    if test $llnl_cv_chasm_arch_64 -eq 64 ; then
      CHASM_ARCH_64=1
    else
      CHASM_ARCH_64=0
    fi
    AC_SUBST([CHASM_ARCH_64])
    AC_MSG_CHECKING([module include flag for $FC])
    CHASM_FORTRAN_MFLAG="-I"
    case "$CHASM_FORTRAN_VENDOR" in
    Absoft | Cray)
       CHASM_FORTRAN_MFLAG="-p"
       ;;
    PathScale)
       CHASM_FORTRAN_MFLAG="-I"
       ;;
    PGI)
       CHASM_FORTRAN_MFLAG="-module "
       ;;
    SUNWspro)
       CHASM_FORTRAN_MFLAG="-M"
       ;;
    Alpha | GNU | G95 | IBMXL | Intel | Intel_7 | MPISpro | NAG | PGI)
       CHASM_FORTRAN_MFLAG="-I"
       ;;
    *)
       AC_MSG_ERROR(["--with-F90-vendor=NAME" flag needed at configure time (new with chasmlite). "$CHASM_FORTRAN_VENDOR" is insufficient. See choices in --help.])
       ;;
    esac
    AC_MSG_RESULT([$CHASM_FORTRAN_MFLAG])
    AC_SUBST(CHASM_FORTRAN_MFLAG)

    CHASM_CFLAGS='-I../libchasmlite -I${srcdir}/../libchasmlite'
    CHASM_LIBS="../libchasmlite/libchasmlite.la"
    CHASM_PYSETUP="--extra-library=chasmlite"

    AC_SUBST(CHASM_CFLAGS)
    AC_SUBST(CHASM_LIBS)
    AC_SUBST(CHASM_FORTRAN_VENDOR)
    AC_SUBST(CHASM_PYSETUP)
    AC_DEFINE_UNQUOTED([SIDL_MAX_F90_DESCRIPTOR],256,[Maximum Fortran array descriptor size])
    AC_DEFINE_UNQUOTED([CHASM_FORTRAN_VENDOR],"$CHASM_FORTRAN_VENDOR",[Name of the F90 compiler to use with CHASM])
  else
    if echo $enable_auto_disable | egrep -i "yes|f90" 2>&1 > /dev/null; then
      AC_MSG_WARN([Disabling F90 support due to missing --with-F90-vendor=NAME.])
      enable_fortran90="no_chasm"
    else
      AC_MSG_ERROR([The --with-F90-vendor=NAME flag is needed at configure time (new for Babel with chasmlite).  For choices use --help.])
    fi
  fi
]) # end LLNL_LIB_CHASM