[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] Changed all LIBOBJS= to AC_LIBOBJ
From: |
Alfred M. Szmidt |
Subject: |
[patch] Changed all LIBOBJS= to AC_LIBOBJ |
Date: |
14 Apr 2002 19:02:04 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
Hi,
2002-04-14 Alfred M. Szmidt <address@hidden>
* configure.ac: Use AC_LIBOBJ instead of LIBOBJS assignments.
* acinclude.m4: Likewise.
OK to commit?
Index: acinclude.m4
===================================================================
RCS file: /cvsroot/inetutils/inetutils/acinclude.m4,v
retrieving revision 1.5
diff -u -p -r1.5 acinclude.m4
--- acinclude.m4 8 Apr 2002 13:59:51 -0000 1.5
+++ acinclude.m4 14 Apr 2002 16:54:22 -0000
@@ -1,6 +1,6 @@
dnl Autoconf macros used by inetutils
dnl
-dnl Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
+dnl Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
dnl
dnl Mostly written by Miles Bader <address@hidden>
dnl
@@ -579,8 +579,7 @@ AC_DEFUN(IU_INCLUDED_REGEX,
jm_with_regex=$withval,
jm_with_regex=$ac_use_included_regex)
if test "$jm_with_regex" = yes; then
- AC_SUBST(LIBOBJS)
- LIBOBJS="$LIBOBJS regex.$ac_objext"
+ AC_LIBOBJ([regex])
fi
],
)
@@ -661,4 +660,4 @@ AC_DEFUN(IU_CHECK_KRB5,
fi
AC_MSG_CHECKING(krb5 implementation)
AC_MSG_RESULT(${cached}$KRB5_IMPL)
-])
\ No newline at end of file
+])
Index: configure.ac
===================================================================
RCS file: /cvsroot/inetutils/inetutils/configure.ac,v
retrieving revision 1.4
diff -u -p -r1.4 configure.ac
--- configure.ac 8 Apr 2002 14:00:26 -0000 1.4
+++ configure.ac 14 Apr 2002 16:54:23 -0000
@@ -188,7 +188,7 @@ AC_REPLACE_FUNCS(getpass getusershell he
IU_INCLUDED_REGEX(libinetutils/regex.c)
AC_CHECK_FUNC(_obstack_free, ,
INCLUDES="$INCLUDES obstack.h"
- LIBOBJS="$LIBOBJS obstack.o")
+ AC_LIBOBJ([obstack]))
# Use (posix) `setpgid' if it's around, otherwise assume a BSD setpgrp
@@ -400,7 +400,7 @@ IU_LIB_TERMCAP
if test -z "$LIBTERMCAP"; then
# Some packages include termcap just ;
# for those cases, we really don't need termcap.
- LIBOBJS="$LIBOBJS stub_tgetent.o"
+ AC_LIBOBJ([stub_tgetent])
fi
# Can we use libls? but we must have fchdir()
@@ -514,19 +514,20 @@ fi
# system one doesn't have getopt_long.
AC_CHECK_FUNC(getopt_long, ,
INCLUDES="$INCLUDES getopt.h"
- LIBOBJS="$LIBOBJS getopt.o getopt1.o")
+ AC_LIBOBJ([getopt])
+ AC_LIBOBJ([getopt1]))
# Supply a version of poll() if the libray is missing.
# syslogd uses poll() unconditionnaly.
AC_CHECK_FUNC(poll, ,
AC_DEFINE(HAVE_POLL_H)
INCLUDES="$INCLUDES poll.h"
- LIBOBJS="$LIBOBJS poll.o")
+ AC_LIBOBJ([poll]))
# Supply versions of the BSD error reporting functions if the system doesn't
AC_CHECK_FUNC(verrx, ,
INCLUDES="$INCLUDES err.h"
- LIBOBJS="$LIBOBJS err.o")
+ AC_LIBOBJ([err.o]))
if test "$ac_cv_header_utmp_h" = yes; then
IU_CHECK_TYPE(struct lastlog, [#include <utmp.h>])
@@ -588,7 +589,7 @@ IU_CHECK_STRUCT_FIELD(sockaddr,
#include <sys/socket.h>])
# See if the system has strerror, and replace it if not
-AC_CHECK_FUNC(strerror, , LIBOBJS="$LIBOBJS strerror.o")
+AC_CHECK_FUNC(strerror, , AC_LIBOBJ([strerror]))
if test "$ac_cv_func_strerror" = no; then
# No strerror, so see if the SYS_ERRLIST variable can be used by ours
AC_CHECK_FUNC(sys_errlist, AC_DEFINE(HAVE_SYS_ERRLIST))
@@ -612,7 +613,7 @@ if test "$inetutils_cv_var_h_errno" = ye
fi
# See if the system has hstrerror, and replace it if not
-AC_CHECK_FUNC(hstrerror, , LIBOBJS="$LIBOBJS hstrerror.o")
+AC_CHECK_FUNC(hstrerror, , AC_LIBOBJ([hstrerror]))
if test "$ac_cv_func_hstrerror" = yes; then
IU_CHECK_DECL(hstrerror, [#include <netdb.h>])
else
@@ -663,17 +664,17 @@ IU_CHECK_TYPE(sa_family_t,
# See if the __PROGNAME variable is defined, otherwise use our own.
AC_CHECK_FUNC(__progname,
AC_DEFINE(HAVE___PROGNAME),
- LIBOBJS="$LIBOBJS __progname.o")
+ AC_LIBOBJ([__progname]))
# See if snprintf exists, otherwise just use a bogus version
AC_CHECK_FUNC(snprintf,
AC_DEFINE(HAVE_SNPRINTF),
- LIBOBJS="$LIBOBJS snprintf.o")
+ AC_LIBOBJ([snprintf]))
# See if vsnprintf exists, otherwise use our own.
AC_CHECK_FUNC(vsnprintf,
AC_DEFINE(HAVE_VSNPRINTF),
- LIBOBJS="$LIBOBJS snprintf.o")
+ AC_LIBOBJ([snprintf]))
# We want to use libreadline if it is available. However, it seems that the
# guile hackers have had problems because there is a Solaris libreadline
--
Alfred M. Szmidt
- [patch] Changed all LIBOBJS= to AC_LIBOBJ,
Alfred M. Szmidt <=