emacs-devel
[Top][All Lists]
Advanced

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

RE: address@hidden: Re: Reported bad code in Emacs configure file]


From: Daniel Ortmann
Subject: RE: address@hidden: Re: Reported bad code in Emacs configure file]
Date: Fri, 3 May 2002 13:43:06 -0500

The only difference was "--without-gcc".  (I am not setting the
emacs_cvs_speed_t variable; neither is anything in the system, according to
env | grep speed.)

Note the configure script location marked with @@@ below.  The "if" part
does set the speed variable; the "else" part does not.  And, since I am not
setting it myself, I believe this is why the variable is not being set.

In other words, I believe that, when using the "--without-gcc" option, the
"if" part is not being run and therefore the variable is not being set.

    echo $ac_n "checking for speed_t""... $ac_c" 1>&6
    echo "configure:3020: checking for speed_t" >&5
    if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    #line 3025 "configure"
    #include "confdefs.h"
    #include <termios.h>
    int main() {
    speed_t x = 1;
    ; return 0; }
    EOF
    if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
      rm -rf conftest*
@@@   emacs_cv_speed_t=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
    fi
    rm -f conftest*
    fi

    echo "$ac_t""$emacs_cv_speed_t" 1>&6
    if test "$emacs_cv_speed_t" = yes; then
      cat >> confdefs.h <<\EOF
    #define HAVE_SPEED_T 1
    EOF

    fi


Is there anything else I might be able to check?

-----Original Message-----
From: Richard Stallman [mailto:address@hidden
Sent: Friday, May 03, 2002 1:26 PM
To: address@hidden
Subject: address@hidden: Re: Reported bad code in Emacs configure
file]


Can you talk with them and together figure out what's really going on?

------- Start of forwarded message -------
To: address@hidden
Cc: address@hidden, Alexandre Oliva <address@hidden>,
   Akim Demaille <address@hidden>, Tom Tromey <address@hidden>,
   Paul Eggert <address@hidden>, Pavel Roskin <address@hidden>
Subject: Re: Reported bad code in Emacs configure file
In-Reply-To: <address@hidden> (Richard
Stallman's message of "Wed, 1 May 2002 01:14:51 -0600 (MDT)")
From: Jim Meyering <address@hidden>
Date: Wed, 01 May 2002 09:26:18 +0200

That code comes from configure.in:

dnl Check for speed_t typedef.
AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t,
AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;],
  emacs_cv_speed_t=yes, emacs_cv_speed_t=no))
if test $emacs_cv_speed_t = yes; then
  AC_DEFINE(HAVE_SPEED_T, 1, [Define to 1 if `speed_t' is declared by
<termios.h>.])
fi

Since that variable is defined either to no or to yes just above
(in the absence of a cached value), I don't see a need for double
quotes, unless he's doing something strange:

  -- he is using a corrupted cache file, or
  -- he has set emacs_cv_speed_t to the empty string in his environment

...
> *** configure.~1~       Fri Mar 15 06:46:09 2002
> --- configure   Tue Apr 30 13:26:28 2002
> ***************
> *** 3039,3045 ****
>   fi
>
>   echo "$ac_t""$emacs_cv_speed_t" 1>&6
> ! if test $emacs_cv_speed_t = yes; then
>     cat >> confdefs.h <<\EOF
>   #define HAVE_SPEED_T 1
>   EOF
> --- 3039,3045 ----
>   fi
>
>   echo "$ac_t""$emacs_cv_speed_t" 1>&6
> ! if test "$emacs_cv_speed_t" = yes; then
>     cat >> confdefs.h <<\EOF
>   #define HAVE_SPEED_T 1
>   EOF
------- End of forwarded message -------




reply via email to

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