diff src/Makefile.in @ 108119:beeec356b30f

Use autoconf instead of cpp for LIB_MATH. * s/darwin.h (LIB_MATH): Do not define here, move to configure. * s/cygwin.h (LIB_MATH): Likewise. * Makefile.in (LIB_MATH): Do not define with cpp. (LIBES): Use autoconf for LIB_MATH. * configure.in (LIB_MATH): New output variable. Set it for some systems.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 26 Apr 2010 10:10:09 -0700
parents 457366a09420
children 080274726e38
line wrap: on
line diff
--- a/src/Makefile.in	Mon Apr 26 21:03:28 2010 +0900
+++ b/src/Makefile.in	Mon Apr 26 10:10:09 2010 -0700
@@ -175,10 +175,6 @@
 #define LIBS_MACHINE
 #endif
 
-#ifndef LIB_MATH
-#  define LIB_MATH -lm
-#endif /* LIB_MATH */
-
 /* Some s/SYSTEM.h files define this to request special switches in ld.  */
 #ifndef LD_SWITCH_SYSTEM
 #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
@@ -795,7 +791,7 @@
    @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
    $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
    @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
-   $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
+   $(GNULIB_VAR) @LIB_MATH@ LIB_STANDARD $(GNULIB_VAR)
 
 all: emacs${EXEEXT} $(OTHER_FILES)