/usr/share/aclocal/llnl_lib_fmain.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 | dnl
dnl @synopsis LLNL_LIB_FMAIN
dnl
dnl Finds the "main" function if the driver is written in fortran
dnl
dnl @version
dnl @author Gary Kumfert <kumfert1@llnl.gov>
dnl
AC_DEFUN([LLNL_LIB_FMAIN],
[AC_REQUIRE([AC_PROG_F77])dnl
AC_CACHE_CHECK([if C linker ($CC) needs a special library for F77 main($F77)], [llnl_cv_lib_fmain], [
echo " END" > conftest.f
foutput=`${F77} -v -o conftest conftest.f 2>&1`
xlf_p=`echo $foutput | grep xlfentry`
if test -n "$xlf_p"; then
foutput=`echo $foutput | sed 's/,/ /g'`
fi
fmain=no
for arg in $foutput; do
case "$arg" in
-lgfortranbegin)
found=true
f90main="$arg"
;;
*f*main.o)
if test -e $arg; then
found=true
fmain="$arg"
fi
;;
-L*)
tmp_path="$tmp_path "`echo $arg | sed -e 's/^-L//'`
;;
-lfrtbegin) #(gkk) needed for g77
found=true
fmain="$arg"
case $target_os in
"darwin7"*)
if test -n "$tmp_path"; then
libname="frtbegin"
for tp in $tmp_path; do
if test -d $tp -a -r $tp; then
shortpath=`cd $tp 2>/dev/null && pwd`
else
shortpath=$tp
fi
if test -r "$shortpath/lib$libname.a" ; then
fmain="$shortpath/lib$libname.a"
elif test -r "$shortpath/lib$libname.so" ; then
fmain="$shortpath/lib$libname.so"
elif test -r "$shortpath/lib$libname.dylib" ; then
fmain="$shortpath/lib$libname.dylib"
fi
done
fi
;;
esac
;;
esac
done
if test "x$fmain" != xno; then
llnl_cv_lib_fmain="$fmain"
else
llnl_cv_lib_fmain=
fi
rm -f conftest.f conftest
])
AC_SUBST([FMAIN],[$llnl_cv_lib_fmain])
])
|