Go to file
Brian Behlendorf 16b719f006 Allow spl_config.h to be included by dependant packages (updated)
We need dependent packages to be able to include spl_config.h to
build properly.  This was partially solved in commit 0cbaeb1 by using
AH_BOTTOM to #undef common #defines (PACKAGE, VERSION, etc) which
autoconf always adds and cannot be easily removed.  This solution
works as long as the spl_config.h is included before your projects
config.h.  That turns out to be easier said than done.  In particular,
this is a problem when your package includes its config.h using the
-include gcc option which ensures the first thing included is your
config.h.

To handle all cases cleanly I have removed the AH_BOTTOM hack and
replaced it with an AC_CONFIG_HEADERS command.  This command runs
immediately after spl_config.h is written and with a little awk-foo
it strips the offending #defines from the file.  This eliminates
the problem entirely and makes header safe for inclusion.

Also in this change I have removed the few places in the code where
spl_config.h is included.  It is now added to the gcc compile line
to ensure the config results are always available.

Finally, I have also disabled the verbose kernel builds.  If you
want them back you can always build with 'make V=1'.  Since things
are working now they don't need to be on by default.
2010-03-22 14:45:33 -07:00
cmd Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
config Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
include Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
lib Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
module Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
patches Reimplement rwlocks for Linux lock profiling/analysis. 2009-09-18 16:09:47 -07:00
scripts sun-misc-gitignore 2010-01-08 09:37:54 -08:00
.gitignore Ignore unsigned module build products 2010-03-11 14:29:17 -08:00
AUTHORS Prep for spl-0.4.3 tag. 2009-03-20 14:48:30 -07:00
autogen.sh Packaging improvements for RHEL and SLES 2009-06-16 10:44:59 -07:00
ChangeLog Prep for 0.4.8 tag, updated META and ChangeLog 2010-03-11 15:39:33 -08:00
configure Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
configure.ac Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
COPYING Go through and add a header with the proper UCRL number. 2008-05-26 04:38:26 +00:00
DISCLAIMER Go through and add a header with the proper UCRL number. 2008-05-26 04:38:26 +00:00
INSTALL Trivial commit to remove whitespace 2008-07-09 19:11:29 +00:00
Makefile.am Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
Makefile.in Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
META Prep for 0.4.8 tag, updated META and ChangeLog 2010-03-11 15:39:33 -08:00
spl_config.h.in Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
spl-modules.spec.in Fix definitions for the unknown distro/installation 2010-03-08 15:16:55 -08:00
spl.spec.in Remove usage of the __id_u macro for portability. 2009-10-05 12:51:58 -07:00