tsearch: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 15:08:59 +0000 (17:08 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:01 +0000 (00:07 +0200)
* m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
invocations from here...
* modules/tsearch (configure.ac): ... to here.

ChangeLog
m4/tsearch.m4
modules/tsearch

index 5e3863c59317a5d9b8af950aae6217710c381650..f7dc3c1b4266cfc2d1582bba99ba2a46a09061f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       tsearch: Move AC_LIBOBJ invocations to module description.
+       * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
+       invocations from here...
+       * modules/tsearch (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        towctrans: Move AC_LIBOBJ invocations to module description.
index 4bd0c4ae48c09501db47d56ab63a3503ff765935..9d1a1adfd55b2d76e574493df3ab57b147d001cf 100644 (file)
@@ -1,4 +1,4 @@
-# tsearch.m4 serial 5
+# tsearch.m4 serial 6
 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -46,14 +46,10 @@ main ()
     case "$gl_cv_func_tdelete_works" in
       *no)
         REPLACE_TSEARCH=1
-        AC_LIBOBJ([tsearch])
-        gl_PREREQ_TSEARCH
         ;;
     esac
   else
     HAVE_TSEARCH=0
-    AC_LIBOBJ([tsearch])
-    gl_PREREQ_TSEARCH
   fi
 ])
 
index ad1bbefe0d709fbc4ec40810e26dbb7b6945c340..ffb952b8c16c5c80f6207850b5ee38c3978e1eed 100644 (file)
@@ -10,6 +10,10 @@ search
 
 configure.ac:
 gl_FUNC_TSEARCH
+if test $HAVE_TSEARCH = 0 || test $REPLACE_TSEARCH = 1; then
+  AC_LIBOBJ([tsearch])
+  gl_PREREQ_TSEARCH
+fi
 gl_SEARCH_MODULE_INDICATOR([tsearch])
 
 Makefile.am: