Giter Site home page Giter Site logo

configure error about libspiro HOT 3 CLOSED

fontforge avatar fontforge commented on September 13, 2024
configure error

from libspiro.

Comments (3)

AlexeiKharchev avatar AlexeiKharchev commented on September 13, 2024

to solve problem I just commented configure.ac:

sed -i '106,111s/^(.*)$/#\1/' configure.ac
sed -i 's/^(AC_CHECK_FUNCS.hypot)/#\1/' configure.ac
autoreconf -fi
LIBS=-lm ./configure --prefix="$installdir" --disable-static
make
make check
make install

but it is not a solution!

from libspiro.

JoesCat avatar JoesCat commented on September 13, 2024

Don't have time to check it right now this moment, I will check this later today, but here is something you can try in the meantime.

While dealing with the various versions of configure, some versions didn't quite understand AC_SEARCH_LIBS(), and therefore AC_CHECK_LIB() was used as a catch. Newer versions of configure are okay with AC_SEARCH_LIBS(), and I suspect that autoconf may have dropped AC_CHECK_LIB() or something may have broke with autoconf since this code hasn't changed for years.

Try simplify configure.ac here:

AC_CHECK_HEADER([math.h],
  AC_SEARCH_LIBS([cos],[m],[have_libm=yes],
    AC_CHECK_LIB([m],[cos],[have_libm=yes])))
if test x"${have_libm}" != xyes; then
   AC_MSG_FAILURE([ERROR: Please install Math libraries and math.h include files for libm],[1])
fi

to

have_libm=maybe
AC_CHECK_HEADER([math.h],
    AC_SEARCH_LIBS([cos],[m],[have_libm=yes]))
if test x"${have_libm}" != xyes; then
   AC_MSG_FAILURE([ERROR: Please install Math libraries and math.h include files     fi

If it works and you want to send in a patch, go ahead.
Looking at it now, I could have updated configure.guess and configure.sub too :-)

from libspiro.

JoesCat avatar JoesCat commented on September 13, 2024

Hi @AlexeiKharchev,
Had to run linux mint to find this problem...Found the problem. You are missing libtool development files.
Doing a search for linux mint libtool showed this mint libtool dev files

After you install those dev files try again:

autoreconf -fvi
automake
./configure
make check

Seeing this works, I think it is safe to close this issue as resolved.

from libspiro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.