From: Bruno Haible Date: Sat, 21 May 2011 10:33:31 +0000 (+0200) Subject: atexit: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41c1ddac73bb7cf3a0e06497b38b2c5074c1362;p=pspp atexit: Move AC_LIBOBJ invocations to module description. * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from here... * modules/atexit (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 6de18dde97..f030e93a00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-21 Bruno Haible + + atexit: Move AC_LIBOBJ invocations to module description. + * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from + here... + * modules/atexit (configure.ac): ... to here. + 2011-05-05 Bruno Haible atoll: Move AC_LIBOBJ invocations to module description. diff --git a/m4/atexit.m4 b/m4/atexit.m4 index 97a010679a..84e30a5aac 100644 --- a/m4/atexit.m4 +++ b/m4/atexit.m4 @@ -1,4 +1,4 @@ -# atexit.m4 serial 3 +# atexit.m4 serial 4 dnl Copyright (C) 2002, 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, @@ -6,10 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_ATEXIT], [ - AC_REPLACE_FUNCS([atexit]) - if test $ac_cv_func_atexit = no; then - gl_PREREQ_ATEXIT - fi + AC_CHECK_FUNCS([atexit]) ]) # Prerequisites of lib/atexit.c. diff --git a/modules/atexit b/modules/atexit index 5bb202e600..d01895fa5a 100644 --- a/modules/atexit +++ b/modules/atexit @@ -15,6 +15,10 @@ Depends-on: configure.ac: gl_FUNC_ATEXIT +if test $ac_cv_func_atexit = no; then + AC_LIBOBJ([atexit]) + gl_PREREQ_ATEXIT +fi Makefile.am: