aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-04-13 22:23:31 -0700
committerPaul Eggert2014-04-13 22:23:31 -0700
commit93ca48872e6473db782382fc828e65e6540229d6 (patch)
treea4ce4e90eab7bcbb5494a44c6b9709a2db7c6547 /src
parentf7993853c2512d2cb8067c37ea01db4175e37be3 (diff)
downloademacs-93ca48872e6473db782382fc828e65e6540229d6.tar.gz
emacs-93ca48872e6473db782382fc828e65e6540229d6.zip
Clean up configure-time library handling a bit.
This patch was inspired by emacs-24 2014-04-09T13:37:49Z!sdl.web@gmail.com, which fixed a bug due to sloppy library handling in 'configure'. * configure.ac (LIB_MATH, LIB_PTHREAD, LIBXMU): Use AC_SEARCH_LIBS instead of AC_CHECK_LIB as per Autoconf manual. (LIB_MATH, LIB_PTHREAD, HAVE_X11, IMAGEMAGICK_LIBS, GTK_LIBS) (DBUS_LIBS, LIBXMU, XFT_LIBS, LIBXSM, LIBXML2_LIBS, LIBS_MAIL) (with_kerberos): Don't let the library choice infect $LIBS. (dnet_ntoa, cma_open): Remove obsolete tests. (emacs_pthread_function): Probe for pthread_kill, not pthread_self, as that's a bit more selective on GNU/Linux. (LIBXEXT): Remove. (touchlock): Test for existence when $LIBS_MAIL is in use. (AC_CHECK_FUNCS): Use only $LIB_MATH in addition to $LIBS when testing for typical functions like accept4, lrand48. (random, rint): Remove obsolete HP-UX 9 A.09.05 test.
Diffstat (limited to 'src')
-rw-r--r--src/conf_post.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index 80d561090ed..05abe057afd 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -87,10 +87,6 @@ typedef bool bool_bf;
87#ifdef HPUX 87#ifdef HPUX
88#undef srandom 88#undef srandom
89#undef random 89#undef random
90/* We try to avoid checking for random and rint on hpux in
91 configure.ac, but some other configure test might check for them as
92 a dependency, so to be safe we also undefine them here.
93 */
94#undef HAVE_RANDOM 90#undef HAVE_RANDOM
95#undef HAVE_RINT 91#undef HAVE_RINT
96#endif /* HPUX */ 92#endif /* HPUX */