unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: configure problem
Date: Tue, 15 Jul 2003 15:58:05 +0900 (JST)	[thread overview]
Message-ID: <200307150658.PAA14821@etlken.m17n.org> (raw)
In-Reply-To: <b9yvfu4z3q4.fsf@jpl.org> (message from Katsumi Yamaoka on Tue, 15 Jul 2003 15:46:59 +0900)

In article <b9yvfu4z3q4.fsf@jpl.org>, Katsumi Yamaoka <yamaoka@jpl.org> writes:
> configure.in:50: error: possibly undefined macro: AC_DEFINE
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.

> Here is a patch which has been confirmed by the NetBSD user.
> I don't know why the AC_DEFINE macro is not expanded there,
> though. :{

The reason is described in the comment above this jambo
"case" statement as this:

dnl This used to use changequote, but, apart from `changequote is evil'
dnl per the autoconf manual, we can speed up autoconf somewhat by quoting
dnl the great gob of text.  Thus it's not processed for possible expansion.
dnl Just make sure the brackets remain balanced.

I think it's not good to handle confdefs.h directly in
configure.in.  It's the task of autoconf.  So, have about
this alternative change?

---
Ken'ichi HANDA
handa@m17n.org


*** configure.in.~1.343.~	Tue Jul 15 13:11:42 2003
--- configure.in	Tue Jul 15 15:45:56 2003
***************
*** 222,231 ****
    ## NetBSD ports
    *-*-netbsd* )
      opsys=netbsd
-     if test -f /usr/lib/crti.o; then
-       AC_DEFINE(HAVE_CRTIN)
-     fi
- 
      case "${canonical}" in
        alpha*-*-netbsd*)	machine=alpha ;;
        i[3456]86-*-netbsd*) machine=intel386 ;;
--- 222,227 ----
***************
*** 1168,1173 ****
--- 1164,1175 ----
  fi
  
  ]
+ 
+ if test "${opsys}" = "netbsd"; then
+   if test -f /usr/lib/crti.o; then
+     AC_DEFINE(HAVE_CRTIN)
+   fi
+ fi
  
  if test $unported = yes; then
    AC_MSG_ERROR([Emacs hasn't been ported to `${canonical}' systems.

  reply	other threads:[~2003-07-15  6:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15  6:46 configure problem Katsumi Yamaoka
2003-07-15  6:58 ` Kenichi Handa [this message]
2003-07-15  7:03   ` Katsumi Yamaoka
2003-07-15  8:09   ` Andreas Schwab

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=200307150658.PAA14821@etlken.m17n.org \
    --to=handa@m17n.org \
    --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).