From owner-cvs-all Sun Feb 27 13:27: 4 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BB2D337B676; Sun, 27 Feb 2000 13:27:00 -0800 (PST) (envelope-from kris@FreeBSD.org) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id NAA52605; Sun, 27 Feb 2000 13:27:00 -0800 (PST) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Sun, 27 Feb 2000 13:27:00 -0800 (PST) From: Kris Kennaway To: Bill Fenner Cc: obrien@freebsd.org, markm@freebsd.org, cvs@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/contrib/tcpdump print-esp.c In-Reply-To: <200002271740.JAA00685@windsor.research.att.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sun, 27 Feb 2000, Bill Fenner wrote: > > Wouldn't it be easier to just add the following to the Makefile? > > # if not NO_CRYPTO > DPADD+= ${LIBCRYPTO} ${LIBRSAGLUE} > LDADD+= -lcrypto -lRSAglue > CFLAGS+= -I/usr/include/openssl -DCRYPTO -DHAVE_LIBCRYPTO > # endif This should probably be something like (untested): .if exists(../../crypto) && !defined(NOSECURE) && !defined(NO_OPENSSL) DPADD+= ${LIBCRYPTO} ${LIBRSAGLUE} LDADD+= -lcrypto CFLAGS+= -I${DESTDIR}/usr/include/openssl -DCRYPTO -DHAVE_LIBCRYPTO SRCS+= print-esp.c .endif The reason for the SRCS+= is that if someone is compiling NOSECURE or NO_OPENSSL then they won't be getting libdes compatability either, and so I don't think this will compile. Kris ---- "How many roads must a man walk down, before you call him a man?" "Eight!" "That was a rhetorical question!" "Oh..then, seven!" -- Homer Simpson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message