|
|
c079ae |
Remove obsolete a.out linker test. It contains an implicit
|
|
|
c079ae |
function declaration, leading to false positives.
|
|
|
c079ae |
|
|
|
c079ae |
Submitted upstream:
|
|
|
c079ae |
|
|
|
c079ae |
<https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg01019.html>
|
|
|
c079ae |
|
|
|
c079ae |
diff --git a/configure.ac b/configure.ac
|
|
|
c079ae |
index 660784347bbc0dcd..cc390d40b33a1d8f 100644
|
|
|
c079ae |
--- a/configure.ac
|
|
|
c079ae |
+++ b/configure.ac
|
|
|
c079ae |
@@ -2493,39 +2493,6 @@ if test "${HAVE_X11}" = "yes"; then
|
|
|
c079ae |
export LD_RUN_PATH
|
|
|
c079ae |
fi
|
|
|
c079ae |
|
|
|
c079ae |
- if test "${opsys}" = "gnu-linux"; then
|
|
|
c079ae |
- AC_CACHE_CHECK([whether X on GNU/Linux needs -b to link], [emacs_cv_b_link],
|
|
|
c079ae |
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
|
|
|
c079ae |
- [[XOpenDisplay ("foo");]])],
|
|
|
c079ae |
- [xgnu_linux_first_failure=no],
|
|
|
c079ae |
- [xgnu_linux_first_failure=yes])
|
|
|
c079ae |
- if test "${xgnu_linux_first_failure}" = "yes"; then
|
|
|
c079ae |
- OLD_CPPFLAGS="$CPPFLAGS"
|
|
|
c079ae |
- OLD_LIBS="$LIBS"
|
|
|
c079ae |
- CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
|
c079ae |
- LIBS="$LIBS -b i486-linuxaout"
|
|
|
c079ae |
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
|
|
|
c079ae |
- [[XOpenDisplay ("foo");]])],
|
|
|
c079ae |
- [xgnu_linux_second_failure=no],
|
|
|
c079ae |
- [xgnu_linux_second_failure=yes])
|
|
|
c079ae |
- if test "${xgnu_linux_second_failure}" = "yes"; then
|
|
|
c079ae |
- # If we get the same failure with -b, there is no use adding -b.
|
|
|
c079ae |
- # So leave it out. This plays safe.
|
|
|
c079ae |
- emacs_cv_b_link=no
|
|
|
c079ae |
- else
|
|
|
c079ae |
- emacs_cv_b_link=yes
|
|
|
c079ae |
- fi
|
|
|
c079ae |
- CPPFLAGS=$OLD_CPPFLAGS
|
|
|
c079ae |
- LIBS=$OLD_LIBS
|
|
|
c079ae |
- else
|
|
|
c079ae |
- emacs_cv_b_link=no
|
|
|
c079ae |
- fi])
|
|
|
c079ae |
- if test "x$emacs_cv_b_link" = xyes ; then
|
|
|
c079ae |
- LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
|
c079ae |
- C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
|
c079ae |
- fi
|
|
|
c079ae |
- fi
|
|
|
c079ae |
-
|
|
|
c079ae |
# Reportedly, some broken Solaris systems have XKBlib.h but are missing
|
|
|
c079ae |
# header files included from there.
|
|
|
c079ae |
AC_CACHE_CHECK([for Xkb], [emacs_cv_xkb],
|