From: Niels Möller Date: Wed, 2 Oct 2002 14:11:43 +0000 (+0200) Subject: Fixed the enable-shared option. X-Git-Tag: nettle_1.6_release_20021003~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f3dec63de0a29c70ebc5b69f6cbb27147b5d987;p=thirdparty%2Fnettle.git Fixed the enable-shared option. Rev: src/nettle/configure.ac:1.12 --- diff --git a/configure.ac b/configure.ac index f4e6c17c..ab3cbb20 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ AC_ARG_ENABLE(assembler, [enable_assembler=yes]) AC_ARG_ENABLE(shared, - AC_HELP_STRING([--enable-shared], [Build a shared library]), + AC_HELP_STRING([--enable-shared], [Build a shared library]),, [enable_shared=no]) LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \ @@ -96,15 +96,24 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' SHLIBFILE='$(SHLIBSONAME).$(MINOR)' SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)' +echo "enable_shared: $enable_shared" + if test "x$enable_shared" = xyes ; then SHLIBTARGET='$(SHLIBFORLINK)' SHLIBINSTALL=install-shared +else + SHLIBTARGET='' + SHLIBINSTALL='' fi AC_SUBST(SHLIBCFLAGS) +AC_SUBST(SHLIBFORLINK) +AC_SUBST(SHLIBSONAME) +AC_SUBST(SHLIBFILE) +AC_SUBST(SHLIBLINK) AC_SUBST(SHLIBTARGET) AC_SUBST(SHLIBINSTALL) - + AC_PATH_PROG(M4, m4, m4) # Checks for typedefs, structures, and compiler characteristics.