]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
We need to link only ab against libm (because of
authorRainer Jung <rjung@apache.org>
Sat, 3 Jan 2009 00:58:11 +0000 (00:58 +0000)
committerRainer Jung <rjung@apache.org>
Sat, 3 Jan 2009 00:58:11 +0000 (00:58 +0000)
sqrt()).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730881 13f79535-47bb-0310-9956-ffa450edef68

configure.in
support/Makefile.in

index 2718b2434c11a6ba43c3c0b59bcd330c36582d05..d4c245b600c721aadd1bcac191d429796e42ba29 100644 (file)
@@ -390,7 +390,13 @@ dnl ## Check for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 
 dnl ## Check for library functions
+dnl ## sqrt() only needed in support/ab.c
+saved_LIBS="$LIBS"
+LIBS=""
 AC_SEARCH_LIBS(sqrt, m)
+MATH_LIBS="$LIBS"
+APACHE_SUBST(MATH_LIBS)
+LIBS="$saved_LIBS"
 
 dnl See Comment #Spoon
 
index 670e465d9dc69c293df55de4a867883ac011691c..3425ffe7a6e1421cd92e2006b62a172cc0d627ec 100644 (file)
@@ -50,7 +50,7 @@ htdbm: $(htdbm_OBJECTS)
        $(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD)
 
 ab_OBJECTS = ab.lo
-ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS)
+ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS) $(MATH_LIBS)
 ab: $(ab_OBJECTS)
        $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD)