[PATCH] auto-generate smbd/build_options.c

Vance Lankhaar vlankhaar at shaw.ca
Sat Mar 15 04:45:53 GMT 2003


Attached is a patch to automatically generate smbd/build_options.c from
the contents of include/config.h.in . I'm really not too sure about how
the stuff I've done to the Makefile - could someone who understands
Makefiles better than me take a look and comment? And of course,
comments on the awk too! 

I was also a little unsure about what the output should look like, so
I've included all three of my ideas.

1) Just the define:

 Build Options:
   COMPILER_SUPPORTS_LL
   LDAP_SET_REBIND_PROC_ARGS

2) The define and the comment on different lines:

 Build Options:
   /* Whether the compiler supports the LL prefix on long long integers
*/
   COMPILER_SUPPORTS_LL

   /* Number of arguments to ldap_set_rebind_proc */
   LDAP_SET_REBIND_PROC_ARGS


3) the define and the comment on one line:

 Build Options:
   COMPILER_SUPPORTS_LL                  /* Whether the compiler
supports the LL prefix on long long integers */
   LDAP_SET_REBIND_PROC_ARGS             /* Number of arguments to
ldap_set_rebind_proc */


Personally, I prefer the third option, but the lines are long, which
probably isn't to everyone's likings. 

To try out the various options, comment/uncomment lines 215-217 of
script/mkbuildoptions.awk as necessary.

Vance Lankhaar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autogenerate_buildoptions.patch.txt
Type: text/x-patch
Size: 10777 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030314/34608d8b/autogenerate_buildoptions.patch.bin


More information about the samba-technical mailing list