[627] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

Re: regcomp problems in solaris 2 (zephyr 2.0 beta 2) with fix

daemon@ATHENA.MIT.EDU (Derrick J Brashear)
Wed Jul 12 15:56:02 1995

Date: Wed, 12 Jul 1995 15:55:48 -0400 (EDT)
From: Derrick J Brashear <shadow@DEMENTIA.ORG>
To: bug-zephyr@MIT.EDU
Cc: ejb@ERA.COM

Jay wrote:
> BTW, in order to run autoheader, I had to pull h/zephyr/zephyr.h out
> of AC_CONFIG_HEADER and stick it in AC_OUTPUT instead.  There is
> nothing in h/zephyr/zephyr.h.in requires it to be in AC_CONFIG_HEADER
> anyway, and an h/zephyr/zephyr.h that was older than zephyr.h.in was
> included in the distribution.  Was h/zephyr/zehpyr.h listed under
> AC_CONFIG_HEADER because of oversight, or is there a reason it should
> be there?  In any case, that change is also included in this patch.
> (For the moment, I am also running autoconf 2.3, but I will probably
> install 2.4 soon.)

The autoconf docs claim AC_CONFIG_HEADER can handle more than one file, 
which would be nice if it were true. h/zephyr/zephyr.h.in should be being 
processed so the #undef ZEPHYR_USES_KERBEROS becomes #define 
ZEPHYR_USES_KERBEROS. Of course, we lose.

I patched configure.in to define (rather than 
AC_DEFINE) ZEPHYR_USES_KERBEROS to 1 if we're using kerberos, 0 otherwise, 
added an AC_SUBST(ZEPHYR_USES_KERBEROS), moved h/zephyr/zephyr.h.in to 
AC_OUTPUT as Jay suggested, and patched h/zephyr/zephyr.h.in thusly:
*** h/zephyr/zephyr.h.in.orig   Wed Jul 12 15:54:09 1995
--- h/zephyr/zephyr.h.in        Wed Jul 12 15:19:48 1995
***************
*** 16,22 ****
--- 16,26 ----
  #define __ZEPHYR_H__
  
  /* Define if Zephyr uses Kerberos support. */
+ #if @ZEPHYR_USES_KERBEROS@
+ #define ZEPHYR_USES_KERBEROS
+ #else
  #undef ZEPHYR_USES_KERBEROS
+ #endif
  
  #include <sys/types.h>
  #include <sys/time.h>

I'd diff my configure.in for you, but the diff wouldn't be meaningful....

-D


home help back first fref pref prev next nref lref last post