kopia lustrzana https://github.com/Hamlib/Hamlib
Do not let macros/ac_python_devel.m4 trash CPPFLAGS and LIBS
A macro here seems to expect ac_save_LIBS and ac_save_CPPFLAGS to
be set on entry (by configure?) but configure doesn't do any such
thing, so that would trash any pre-set CPPFLAGS and LIBS when it
runs (making ./configure CPPFLAGS=something fail to work).
(cherry picked from commit 790ac8075d
)
Hamlib-1.2.15
rodzic
059959269a
commit
4b54e83657
|
@ -287,6 +287,15 @@ EOD`
|
||||||
#
|
#
|
||||||
AC_MSG_CHECKING([consistency of all components of python development environment])
|
AC_MSG_CHECKING([consistency of all components of python development environment])
|
||||||
# save current global flags
|
# save current global flags
|
||||||
|
####
|
||||||
|
#### Why does this macro expect ac_save_LIBS and ac_save_CPPFLAGS to
|
||||||
|
#### be set? configure doesn't appear to set them automatically,
|
||||||
|
#### so this macro trashes any pre-set CPPFLAGS and LIBS when it runs!
|
||||||
|
#### Hack to fix that:
|
||||||
|
ac_save_LIBS="$LIBS"
|
||||||
|
ac_save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
####
|
||||||
|
####
|
||||||
LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
|
LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
|
||||||
CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
|
CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
|
||||||
AC_LANG_PUSH([C])
|
AC_LANG_PUSH([C])
|
||||||
|
|
Ładowanie…
Reference in New Issue