r18443: add object files only when needed
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Sep 2006 06:28:14 +0000 (06:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:30 +0000 (14:18 -0500)
metze
(This used to be commit 5fddb66def8dd29a9f8d13b4b679df26aca6cfab)

source4/lib/replace/getpass.m4
source4/lib/replace/libreplace.m4

index 3f008bbf4e1a75c6c65df65f6d196d04201cee78..20d04a63f65536883648cf9a1c369974e808492e 100644 (file)
@@ -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
index 4dff22b4aa710f7049fcc46e9606cb7c11ffcf41..43ed3e39a27286a54694b18194768904cc3fd0b1 100644 (file)
@@ -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