unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: emacs-devel@gnu.org
Cc: "Aurélien Aptel" <aurelien.aptel@gmail.com>
Subject: Re: emacs-25 307e76c 4/6: Add dynamic module module support
Date: Sun, 07 Feb 2016 10:53:10 +0100	[thread overview]
Message-ID: <m2egco9795.fsf@linux-m68k.org> (raw)
In-Reply-To: <E1Zz8M2-0005RN-CB@vcs.savannah.gnu.org> (Teodor Zlatanov's message of "Wed, 18 Nov 2015 19:25:18 +0000")

Teodor Zlatanov <tzz@lifelogs.com> writes:

> +### Dynamic modules support
> +LIBMODULES=
> +HAVE_MODULES=no
> +MODULES_OBJ=
> +MODULES_SUFFIX=
> +if test "${with_modules}" != "no"; then
> +  if test "$opsys" = "gnu-linux"; then
> +    LIBMODULES="-ldl"
> +    MODULES_SUFFIX=".so"
> +    HAVE_MODULES=yes
> +  elif test "$opsys" = "cygwin"; then
> +    # XXX: not tested
> +    LIBMODULES="-lcygwin"
> +    MODULES_SUFFIX=".dll"
> +    HAVE_MODULES=yes
> +  elif test "$opsys" = "darwin"; then
> +    MODULES_SUFFIX=".so"
> +    HAVE_MODULES=yes
> +  elif test "$opsys" = "mingw32"; then
> +    MODULES_SUFFIX=".dll"
> +    HAVE_MODULES=yes
> +  else
> +    # BSD system have dlopen in the libc
> +    AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"]
> +                          [HAVE_MODULES=yes], [])
> +  fi
> +
> +  if test "${HAVE_MODULES}" = no; then
> +    AC_MSG_ERROR([Dynamic modules are not supported on your system])
> +  fi
> +fi
> +
> +if test "${HAVE_MODULES}" = yes; then
> +   MODULES_OBJ="dynlib.o module.o"
> +   AC_DEFINE(HAVE_MODULES, 1, [Define to 1 if dynamic modules are enabled])
> +   AC_DEFINE_UNQUOTED(MODULES_SUFFIX, "$MODULES_SUFFIX", [System extension for dynamic libraries])
> +fi
> +AC_SUBST(MODULES_OBJ)
> +AC_SUBST(LIBMODULES)
> +AX_GCC_VAR_ATTRIBUTE(cleanup)
> +AC_CHECK_FUNCS(dladdr)

dladdr requires -ldl, but this check doesn't use LIBMODULES, which means
dladdr is never found here.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



       reply	other threads:[~2016-02-07  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20151118192512.20738.15828@vcs.savannah.gnu.org>
     [not found] ` <E1Zz8M2-0005RN-CB@vcs.savannah.gnu.org>
2016-02-07  9:53   ` Andreas Schwab [this message]
2016-02-07 15:49     ` emacs-25 307e76c 4/6: Add dynamic module module support Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2egco9795.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=aurelien.aptel@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).