bug-autoconf
[Top][All Lists]
Advanced

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

[sr #110271] libSDL2 fails with autoconf 2.70


From: Ross Burton
Subject: [sr #110271] libSDL2 fails with autoconf 2.70
Date: Thu, 16 Jul 2020 11:28:16 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15

URL:
  <https://savannah.gnu.org/support/?110271>

                 Summary: libSDL2 fails with autoconf 2.70
                 Project: Autoconf
            Submitted by: rossburton
            Submitted on: Thu 16 Jul 2020 03:28:14 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

First, apologies if we've already discussed this but I cant find the
discussion.

libSDL2 fails to configure with autoconf 2.70 but works with 2.69:

| checking for size_t... yes
| checking for M_PI in math.h... ../SDL2-2.0.12/configure: line 13202: CPP:
command not found
| checking how to run the C preprocessor... gcc  -E
| ../SDL2-2.0.12/configure: line 13328: ac_fn_c_try_cpp: command not found
| ../SDL2-2.0.12/configure: line 13328: ac_fn_c_try_cpp: command not found
| configure: error: in
`/home/pokybuild/yocto-worker/qemux86-64/build/build/tmp/work/x86_64-linux/libsdl2-native/2.0.12-r0/build':
| configure: error: C preprocessor "gcc  -E" fails sanity check
| See `config.log' for more details
| WARNING: exit code 1 from a shell command.

The configure.ac is just a very badly named macro:

    AC_CHECK_DEFINE(M_PI, math.h)

Which is implemented here:

https://github.com/spurious/SDL-mirror/blob/master/acinclude/ac_check_define.m4

This uses AC_EGREP_CPP but it doesn't appear to explicitly look for a cpp.  My
workaround is to explicltly call AC_PROG_CPP earlier: should AC_EGREP_CPP be
doing this, or should this requirement be documented?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110271>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]