comparison configure.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
comparison
equal deleted inserted replaced
108118:769f66a9a7ef 108119:beeec356b30f
825 AC_MSG_CHECKING([for -znocombreloc]) 825 AC_MSG_CHECKING([for -znocombreloc])
826 AC_LINK_IFELSE([main(){return 0;}], 826 AC_LINK_IFELSE([main(){return 0;}],
827 [AC_MSG_RESULT(yes)], 827 [AC_MSG_RESULT(yes)],
828 LDFLAGS=$late_LDFLAGS 828 LDFLAGS=$late_LDFLAGS
829 [AC_MSG_RESULT(no)]) 829 [AC_MSG_RESULT(no)])
830
831 LIB_MATH=-lm
832
833 case $opsys in
834 cygwin )
835 LIB_MATH=
836 ;;
837 darwin )
838 ## Adding -lm confuses the dynamic linker, so omit it.
839 LIB_MATH=
840 ;;
841 esac
842
843 AC_SUBST(LIB_MATH)
830 844
831 #### Extract some information from the operating system and machine files. 845 #### Extract some information from the operating system and machine files.
832 846
833 AC_CHECKING([the machine- and system-dependent files to find out 847 AC_CHECKING([the machine- and system-dependent files to find out
834 - which libraries the lib-src programs will want, and 848 - which libraries the lib-src programs will want, and