emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.50; Configure with-gpm=no but yes


From: Nick Roberts
Subject: Re: 23.0.50; Configure with-gpm=no but yes
Date: Sun, 2 Sep 2007 11:04:41 +1200

 > Whem building emacs 23.0.50 for i686-pc-linux-gnu
 > Configure --with-gpm=no
 > 
 > * With gpm installed
 > => Does Emacs use -lgpm? yes".
 > 
 > * Without gpm installed
 > => Does Emacs use -lgpm? no".
 > 
 > Why to ask?

I have gpm installed and if I do "./configure --with-gpm=no" I get:

  Does Emacs use -lgpm?   no

In config.log do you have?:

  #define EMACS_CONFIG_OPTIONS " '--with-gpm=no'"

and in config.h?:

  /* Define to the options passed to configure. */
  #define EMACS_CONFIG_OPTIONS " '--with-gpm=no'"

  /* Define to 1 if you have the gpm library (-lgpm). */
  /* #undef HAVE_GPM */


In configure.in the relevant part of the code is:

  ### Use -lgpm if available, unless `--with-gpm=no'.
  HAVE_GPM=no
  if test "${with_gpm}" != "no"; then
    AC_CHECK_HEADER(gpm.h,
      AC_CHECK_LIB(gpm, Gpm_Open, HAVE_GPM=yes))
  fi

  if test "${HAVE_GPM}" = "yes"; then
    AC_DEFINE(HAVE_GPM, 1, [Define to 1 if you have the gpm library (-lgpm).])
  fi

I've just copied this from the other options.  I don't know how "--with-gpm=no"
gets transferred to "with_gpm" but presuming it does, then HAVE_GPM should
still be "no".

Perhaps using "M-x report-emacs-bug" to report your configuration will help
someone who knows more about autoconf than me.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]