[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: f2c and autotools



On Wed, Mar 13, 2013 at 4:01 PM, Mathieu Malaterre <malat@debian.org> wrote:
> Hi there,
>
>   I am trying to work on #702882
>
>   Upstream is basically doing:
>
> if test "$internal_f2c" = "no"; then
>   AC_CHECK_LIB([f2c], [f77_alloc_], [],
>      AC_CHECK_LIB([f2c], [f77_alloc], [],
>         AC_CHECK_LIB([f2c], [F77_ALLOC_], [],
>            AC_CHECK_LIB([f2c], [F77_ALLOC], [],
>               [AC_MSG_RESULT(not found, trying to use -lf2c anyway.)]))))
>   LDFLAGS="${LDFLAGS}"
> else  AC_DEFINE([INTERNAL_F2C], [1], [Define to 1 if you use the internal
> F2C library])
> fi
>
>
>   As explained in #702882#5, this fails on debian system since one
> cannot link to f2c without first defining a MAIN__ symbol. Has anyone
> work on autotools and f2c issue on debian in the past ? How should one
> use the autotools *F77* macros to handle this case ?

Use cfortran package for calling fortran function.

> Thanks,
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] CA+7wUsz_7tiT67JEb1WnF2tGF4RQZJe+t4OEDRtLJeUG+K=X4A@mail.gmail.com">http://lists.debian.org/[🔎] CA+7wUsz_7tiT67JEb1WnF2tGF4RQZJe+t4OEDRtLJeUG+K=X4A@mail.gmail.com
>


Reply to: