From 9768393b3b91b8e508beae30e7e8bd942292b7f0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Sep 2006 06:28:14 +0000 Subject: r18443: add object files only when needed metze (This used to be commit 5fddb66def8dd29a9f8d13b4b679df26aca6cfab) --- source4/lib/replace/getpass.m4 | 1 + source4/lib/replace/libreplace.m4 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/getpass.m4 b/source4/lib/replace/getpass.m4 index 3f008bbf4e..20d04a63f6 100644 --- a/source4/lib/replace/getpass.m4 +++ b/source4/lib/replace/getpass.m4 @@ -13,4 +13,5 @@ CPPFLAGS="$SAVE_CPPFLAGS" ]) if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced]) + LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o" fi diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index 4dff22b4aa..43ed3e39a2 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/lib/replace/libreplace.m4 @@ -8,9 +8,11 @@ for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../librep break; fi done -LIBREPLACEOBJ="dlfcn.o getpass.o replace.o snprintf.o timegm.o" +LIBREPLACEOBJ="replace.o" AC_SUBST(LIBREPLACEOBJ) +LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o snprintf.o timegm.o" + dnl stop the C89 attempt by autoconf - if autoconf detects -Ae it will enable it dnl which conflicts with C99 on HPUX ac_cv_prog_cc_Ae=no -- cgit