# HG changeset patch # User Bruno Haible # Date 1304893819 -7200 # Node ID 07c4dd77a5dc0c56b4f6f0531bd2cd8d156aa6f3 # Parent 48ead8d2c5c1b403ebf26d1a58e221c85523a8b8 imaxdiv: Move AC_LIBOBJ invocations to module description. * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV invocations from here... * modules/imaxdiv (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-08 Bruno Haible + + imaxdiv: Move AC_LIBOBJ invocations to module description. + * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV + invocations from here... + * modules/imaxdiv (configure.ac): ... to here. + 2011-05-08 Bruno Haible imaxabs: Move AC_LIBOBJ invocations to module description. diff --git a/m4/imaxdiv.m4 b/m4/imaxdiv.m4 --- a/m4/imaxdiv.m4 +++ b/m4/imaxdiv.m4 @@ -1,4 +1,4 @@ -# imaxdiv.m4 serial 2 +# imaxdiv.m4 serial 3 dnl Copyright (C) 2006, 2009-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, @@ -10,8 +10,6 @@ AC_CHECK_DECLS_ONCE([imaxdiv]) if test "$ac_cv_have_decl_imaxdiv" != yes; then HAVE_DECL_IMAXDIV=0 - AC_LIBOBJ([imaxdiv]) - gl_PREREQ_IMAXDIV fi ]) diff --git a/modules/imaxdiv b/modules/imaxdiv --- a/modules/imaxdiv +++ b/modules/imaxdiv @@ -10,6 +10,10 @@ configure.ac: gl_FUNC_IMAXDIV +if test $HAVE_DECL_IMAXDIV = 0; then + AC_LIBOBJ([imaxdiv]) + gl_PREREQ_IMAXDIV +fi gl_INTTYPES_MODULE_INDICATOR([imaxdiv]) Makefile.am: