From: Memphiz Date: Tue, 7 Jun 2011 22:22:37 +0000 (+0200) Subject: - no ldconfig for darwin X-Git-Tag: upstream/1.9.6^2~405^2~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=23701e42467cbd3b371dee70b2086336c497b863;p=deb_libnfs.git - no ldconfig for darwin - add variable is_darwin - used in Makefile.in for building the proper dynamic lib - add option --without-examples for disable build of examples --- diff --git a/configure.ac b/configure.ac index 4bdc5a5..fab196c 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,7 @@ if test "${libdir}" = '${exec_prefix}/lib'; then fi is_solaris="no" +is_darwin="no" install="/usr/bin/install" ldconfig="ldconfig" @@ -22,6 +23,8 @@ case `uname` in ;; Darwin*) libdir='${exec_prefix}/lib' + ldconfig='echo no ldconfig on darwin' + is_darwin="yes" ;; AIX*) ;; @@ -50,6 +53,13 @@ if test ! -z "$LOGDIR"; then fi AC_SUBST(LOGDIR) +AC_ARG_WITH([examples], + [ --without-examples Disable build of examples], + [ENABLE_EXAMPLES="no"], + [ENABLE_EXAMPLES="yes"] + ) +AC_SUBST(ENABLE_EXAMPLES) + AC_CONFIG_HEADER(config.h) EXTRA_OBJ="" @@ -69,6 +79,7 @@ fi AC_SUBST(libdir) AC_SUBST(install) AC_SUBST(ldconfig) +AC_SUBST(is_darwin) #AC_SUBST(LIBNFS_LDFLAGS) AC_OUTPUT(Makefile)